arXiv Science⌕ Search

arXiv subjects

Alexandru Dimofte

Publications and source records attributed to Alexandru Dimofte.

2 recordsLinked to original sources

Model Internals Speak Volumes: J-Lens Loudness Predicts Decodability

When probing the activations of a Large Language Model (LLM), several design decisions arise. Besides the probe design itself, one must choose which layer(s) and token position(s) to probe. These choices are often made heuristically or through expensive sweeps over candidate layers and positions, and to our knowledge, no method yet predicts the decodability of a signal directly from the activations. We take a step in this direction by introducing J-Lens loudness, a new application of the Jacobian lens (J-Lens) that guides these choices without labels or probe training. We represent a signal of interest by a small subset of the model's vocabulary, and define J-Lens loudness as the log probability mass that the J-Lens assigns to this subset at a given activation. In the reasoning chains of two LLM agents navigating grid worlds, the balanced accuracy of next-action probes increases steadily with direction signal loudness, and the same holds for a probe whose labels come from the environment rather than from the model. Loud positions are more decodable than random ones at every layer, and the loudest layer lies on the plateau of highest decodability found by a full probe sweep. Taken together, we show that J-Lens loudness can be used as a criterion to find token positions, and a suitable layer, whose activations contain underlying computation relevant to a signal of interest. We note that this is a work in progress and describe the limitations of this preprint in the the Discussion section under Limitations.

cs.AI↗

CEReBrO: Compact Encoder for Representations of Brain Oscillations Using Efficient Alternating Attention

Electroencephalograph (EEG) is a crucial tool for studying brain activity. Recently, self-supervised learning methods leveraging large unlabeled datasets have emerged as a potential solution to the scarcity of widely available annotated EEG data. However, current methods suffer from at least one of the following limitations: i) sub-optimal EEG signal modeling, ii) model sizes in the hundreds of millions of trainable parameters, and iii) reliance on private datasets and/or inconsistent public benchmarks, hindering reproducibility. To address these challenges, we introduce a Compact Encoder for Representations of Brain Oscillations using alternating attention (CEReBrO), a new small EEG foundation model. Our tokenization scheme represents EEG signals at a per-channel patch granularity. We propose an alternating attention mechanism that jointly models intra-channel temporal dynamics and inter-channel spatial correlations, achieving 2x speed improvement with 6x less memory required compared to standard self-attention. We present several model sizes ranging from 3.6 million to 85 million parameters. Pre-trained on over 20,000 hours of publicly available scalp EEG recordings with diverse channel configurations, our models set new benchmarks in emotion detection and seizure detection tasks, with competitive performance in anomaly classification and gait prediction. This validates our models' effectiveness and efficiency.

cs.LG↗