Skip to content

ICML papers

Search ICML papers by title, author, or track. Open a paper’s abstract to read more.

Explore the ICML analysis

Search results

581–600 of 823

  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Language Triggers Hijack Language Circuits: A Mechanistic Analysis of Backdoor Behaviors in Large Language Models

    Théo Lasnier, Wissam Antoun, Francis Kulumba, Benoît Sagot, Djamé Seddah

    Abstract

    Backdoor attacks pose significant security risks for Large Language Models (LLMs), yet the internal mechanisms by which triggers operate remain poorly understood. We present the first mechanistic analysis of trigger-induced language-switching backdoors injected during pretraining, studying the Gaperon model family (1-24B). Using activation patching, we localize trigger formation and identify which attention heads process trigger and natural language information. Our central finding is that Trigger heads substantially overlap with heads naturally encoding output language across model scales, with Jaccard indices between 0.18 and 0.43 over the top heads identified. This suggests that backdoor triggers do not form new circuits but instead co-opt the model's existing language components and representations. These findings have implications for backdoor defense as detection methods and mitigation strategies could leverage this entanglement between triggers and natural behaviors. More broadly, our work represents a first step toward a more realistic mechanistic understanding of pretraining-injected backdoor in LLMs, paving the way for principled, interpretability-driven defenses.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    How Language Models Choose Sides: Internal Representations of Instruction Hierarchy

    Enrique Balp-Straffon, Chih-Hao Hsu, Rushiraj Gadhvi, Sunishchal Dev, Callum McDougall, Anusha Mujumdar

    Abstract

    We study how instruction-tuned LLMs arbitrate direct conflicts between system and user instructions. We introduce a benchmark of 41 paired constraints with deterministic verifiers and evaluate eight models under matched baseline, conflict, and same-channel control conditions.Behaviourally, the models split into three regimes by System Authority Delta: hierarchy-respecting models use the system channel as an authority signal, anti-hierarchy models follow the system less often than their same-channel baseline predicts, and no-effect models show little channel sensitivity. Llama-3.1-8B is the strongest anti-hierarchy case in our suite, following the system in only $0.10$ of conflict trials.We use this behavioural failure case to ask whether user-preferring arbitration reflects the absence of an internal conflict-resolution signal. It does not: on Llama-3.1-8B, the conflict outcome is linearly decodable from residual-stream activations at $0.97$ balanced accuracy, $17$ percentage points above a metadata-only baseline, with analogous signals on Qwen2.5-7B and gpt-oss-20b.Steering with a layer-$12$ mean of four per-conflict logistic-regression directions raises genuine system compliance from $0.132$ to $0.530$, while directions selected mainly for pooled separability steer poorly. User-preferring conflict resolution can therefore coexist with a readable internal arbitration signal, and successful intervention depends on the geometry of the readout rather than probe accuracy alone. Code is available at https://anonymous.4open.science/r/system-user-circuits.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Where Reliability Lives in Vision-Language Models: A Mechanistic Study of Attention, Hidden States, and Causal Circuits

    Logan Mann, Ajit Saravanan, Ishan Dave, Shikhar Shiromani, Saadullah ismail, Yi Xia, Emily Huang

    Abstract

    Vision-language models can produce confident, fluent mistakes, but it is still unclear where their internal reliability signal actually lives. A natural hypothesis is that reliability should be visible in visual attention: sharper focus on the relevant region should imply a more trustworthy answer. We test this hypothesis with VLM Reliability Probe (VRP), a cross-family study of LLaVA-1.5, PaliGemma, and Qwen2-VL that compares three classes of evidence: attention-map structure, generation dynamics, and hidden-state mechanisms. Our main claim is that attention structure is a poor reliability readout even when attention remains causally important for feature extraction: across the pooled structural-analysis set, cluster count and spatial entropy are nearly uncorrelated with correctness $R(C_k,y)=0.001$, $R(H_s,y)=-0.012$. Instead, the strongest reliability signals emerge later in the computation. Self-consistency is the strongest behavioral predictor we measure $R=0.429$, while hidden-state probes provide the best single-pass signal (AUROC $>0.95$ in our strongest settings). We further find a mechanistic split across model families: LLaVA exhibits early locking and a fragile late bottleneck, whereas PaliGemma and Qwen2-VL distribute reliability more broadly and remain robust under large interventions. The takeaway is narrow but important: in current VLMs, reliability is better understood through hidden-state geometry, layer-wise margin dynamics, and causal circuits than through attention-map sharpness alone.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Architecture, Not Scale: Circuit Localization in Large Language Models

    Sohan Venkatesh

    Abstract

    Mechanistic interpretability assumes that circuit analysis becomes harder as models scale. We challenge this assumption by showing that the attention architecture matters more than parameter count. Studying three circuit types across Pythia and Qwen2.5, we find that grouped query attention produces circuits that are far more concentrated and mechanistically stable than standard multi-head attention at comparable scales. The same concentration pattern holds across indirect object identification, induction heads, and factual recall. Within a single architecture family (Qwen2.5), factual recall circuits undergo a discrete phase transition above a critical scale, collapsing to a single bottleneck rather than degrading gradually. These findings suggest that some architectural choices make large models more tractable to study and that interpretability difficulty is not a fixed consequence of model size.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Probing Hybrid Language Models for In-Context Recall

    Pol Puigdemont, Volkan Cevher

    Abstract

    Hybrid language models that interleave quadratic-attention with linear-attention layers can match quadratic-attention models on in-context recall while being more efficient at long context, but how they actually handle recall inside the architecture is not yet understood. Recent mechanistic work locates the recall circuit at the prediction position via head ablations on a few publicly-released hybrids, where attention placement is fixed by the original training recipe. We pretrain placement-controlled hybrids at 340M alongside quadratic-attention and linear-attention baselines. To see how they perform recall, we construct the sequence-layer map: a 2D probe-accuracy matrix over layers and token positions in the residual stream, applied uniformly across architectures. Attention placement determines whether a hybrid recalls, while standard language-modeling evaluations stay flat across placements. At the prediction position, the recall signal undergoes a sharp layer-localized phase transition only in hybrids able to recall and in quadratic-attention models. Across the sequence, quadratic-attention models drop the recall signal and look it up at the prediction position; hybrids inherit this pattern depending on where the attention layer sits. A head-level analysis at 340M and on OLMo-Hybrid 7B further localizes the phase transition to a small set of attention heads, including some we can only see by reading what each head writes into the answer-token logits. Together, these results give a controlled view of how pretrained hybrid language models handle in-context recall, and why some succeed where others fail.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    From Directions to Regions: Decomposing Activations in Language Models via Local Geometry

    Or Shafran, Shaked Ronen, Omri Fahn, Shauli Ravfogel, Atticus Geiger, Mor Geva

    Abstract

    Activation decomposition methods in language models are tightly coupled to geometric assumptions on how concepts are realized in activation space. Existing approaches search for individual global directions, implicitly assuming linear separability, which overlooks concepts with nonlinear or multi-dimensional structure. In this work, we leverage Mixture of Factor Analyzers (MFA) as a scalable, unsupervised alternative that models the activation space as a collection of Gaussian regions with their local covariance structure. MFA decomposes activations into two compositional geometric objects: the region's centroid in activation space, and the local variation from the centroid. We train large-scale MFAs for Llama-3.1-8B and Gemma-2-2B, and show they capture complex, nonlinear structures in activation space. Moreover, evaluations on localization and steering benchmarks show that MFA outperforms unsupervised baselines, is competitive with supervised localization methods, and often achieves stronger steering performance than sparse autoencoders. Together, our findings position local geometry, expressed through subspaces, as a promising unit of analysis for scalable concept discovery and model control, accounting for complex structures that isolated directions fail to capture.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    How Language Models Compute Negation: A Mechanistic Study of Factual Negation

    Jongwook Yoon, Jongwon Lim, Yohan Jo

    Abstract

    Large language models (LLMs) often fail to handle negation, predicting the original object of a factual statement even when a negation cue gets inserted. We study how LLMs mechanistically compute factual negation through causal interventions and logit-space analyses on pairs of original and negated factual prompts. Our analysis on Gemma-3 and Qwen3 suggests that negation is not computed as a standalone late switch that flips the original object at the final prediction position. Instead, negation is first integrated into relation information and then propagated to the final position in middle-to-late layers. In later layers, this information shifts the model away from the original object, with a notable mechanism being reducing the model's attention to subject tokens. Together, these findings suggest that LLMs' negation handling is fragile not because they have limited access to negation signals, but more likely because negation must be integrated through multi-stage modifications within a factual recall pathway.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Language Models Learn Universal Representations of Numbers and Why You Should Care

    Michal Štefánik, Timothee Mickus, Marek Kadlčík, Bertram Højer, Michal Spiegel, Raúl Vázquez, Aman Sinha, Josef Kuchař, Philipp Mondorf, Pontus Stenetorp

    Abstract

    Prior work has shown that large language models (LLMs) often converge to accurate input embedding for numbers, based on sinusoidal representations. In this work, we quantify that these representations are in fact strikingly systematic, to the point of being almost perfectly universal: different LLM families develop equivalent sinusoidal structures, and number representations are broadly interchangeable in a large swathe of experimental setups. We show that properly factoring in this characteristic is crucial when it comes to assessing how accurately LLMs encode numeric and other ordinal information, and that mechanistically enhancing this sinusoidality can also lead to reductions of LLMs’ arithmetic errors.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Scale Determines Whether Language Models Organize Representation Geometry for Prediction

    Weilun Xu

    Abstract

    In language models, what a representation encodes is determined by the geometry of its representation space: distances, not activations, carry meaning. Existing tools characterize the shape of this geometry but do not ask what that shape is organized for. We introduce Subspace PGA, a metric that tests whether a layer's distance structure aligns with the readout subspace of the unembedding matrix $W_U$ more than with random subspaces of equal size. Across seven Pythia models (70M--6.9B) and three cross-family models, intermediate geometry is significantly organized for prediction (peak $z = 9$--$24$), but the degree is scale-dependent: small models ($d \leq 1024$) progressively lose it at late layers during training---even as loss keeps improving---while large models ($d \geq 2048$) preserve it throughout. We trace this to a capacity trade-off: a few dominant directions migrate away from $W_U$'s readout, masking rather than destroying the predictive structure beneath, and removing them restores alignment. Neither spectral metrics nor loss curves capture this distinction. Scale thus determines not only how well a model predicts, but how its representation geometry is organized to do so.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Interpreting Genomic Language Models using Sparse Autoencoders

    Akira Nair, Jaehyun Joo, Jonghyun Lee, Lina Takemaru, Yidi Huang, Manu Shivakumar, Matthew Lee, Jaesik Kim, Sokratis Apostolidis, Dokyoon Kim

    Abstract

    Genomic language models (gLMs) achieve strong performance across diverse genomic prediction tasks, but their internal biological representations remain poorly understood. Sparse autoencoders (SAEs) have emerged as an interpretability tool in vision and natural language models, yet their applicability to gLMs remains unexplored. We present a systematic study of SAE-based interpretability for gLMs, introducing a diverse benchmark of human genomic annotations and a suite of genome-tailored interpretability metrics. Using Evo2 as a primary case study, we show that SAE features, particularly those from intermediate layers, are more interpretable than raw model embeddings across 42/55 (76%) of our genomic concept evaluations, with 26 of them having an F1 score greater than 0.7. We further find that interpretability depends on SAE training data properties such as evolutionary proximity and context length, with mixed-species and longer-context training improving recovery of human genomic features. Finally, we develop a graph-based representation method to construct a feature atlas that organizes semantically related genomic concepts learned by an SAE, outperforming the baseline approach of using SAE model weights. Our results establish SAEs as a powerful framework for better understanding gLMs, broadening their accessibility and utility for disease-driven genomic analysis.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Contrastive Conceptor Activation Steering (COAST): Unlocking Vision-Language-Action Models through Hidden States

    Miranda Miao, Subin Kim, Brandon Y Yang, Dinesh Jayaraman, Lyle Ungar

    Abstract

    Vision-Language-Action (VLA) models leverage powerful perceptual priors from web-scale vision-language model (VLM) pre-training, yet they remain surprisingly brittle in practice, frequently failing at simple robotic tasks. To mitigate this, we propose \underline{C}ontrastive C\underline{o}nceptor \underline{A}ctivation \underline{St}eering (COAST). COAST builds on the notion of a conceptor, a linear operator that soft-projects data into the principal components of a target distribution. COAST uses conceptors to identify success-critical subspaces for a target robotic task from a few examples of success and failure rollouts. At inference time, it steers VLA latents into these identified success subspaces to improve task outcomes. Across three architecturally distinct neural policies (flow-matching VLAs, autoregressive VLA, and Diffusion Policy), COAST improves mean simulation and real-robot task success rate by approximately 20 and 40 percentage points, respectively. The activation subspace geometry reveals that failure modes share substantial structure across tasks while success representations remain largely task-specific. When tasks share similar failure modes, this structure enables zero-shot transfer of previously fitted conceptors to new tasks. Ultimately, our results suggest that the bottleneck in current VLAs is not a lack of relevant knowledge in VLM latents, but an inability to retrieve it during action generation. COAST provides a lightweight, training-free path to unlocking these latent capabilities by steering the model towards its own ``success'' distributions.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Linear probes rely on textual evidence: Results from leakage mitigation studies in language models

    Gerard B Corominas, Aman Neelappa, Shivam Raval

    Abstract

    White-box monitors are a popular technique for detecting potentially harmful behaviours in language models. While they perform well in general, their effectiveness in detecting text- ambiguous behaviour is disputed. In this work, we find evidence that removing textual evidence of a behaviour significantly decreases probe per- formance. The AUROC reduction ranges from 8- to 38-point depending on the setting. We evaluate probe monitors across three setups (Sandbagging, Sycophancy, and Bias), finding that when probes rely on textual evidence of the target behaviour (such as system prompts or CoT reasoning), per- formance degrades once these tokens are filtered. This filtering procedure is standard practice for output monitor evaluation. As further evidence of this phenomenon, we train Model Organisms which produce outputs without any behaviour ver- balisations. We validate that probe performance on Model Organisms is substantially lower than unfiltered evaluations: 0.58 vs 0.74 AUROC for Bias, and 0.51 vs 0.89 AUROC for Sandbagging. Our findings suggest that linear probes may be brittle in scenarios where they must detect non- surface-level patterns.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Geometry of Ordinal Representations in Language Models

    Saksham Bassi, Sharvi Tomar

    Abstract

    Recent work showed that language models represent character counts on curved 1D manifolds, with attention heads performing geometric transformations to enable computation. We test whether this generalizes across four ordinal tasks (bracket depth, indentation, table position, numeric magnitude) in Gemma-2-2B, Gemma-2-9B, and Qwen3-4B. We find that 1D manifolds with place-cell feature tiling emerge for tasks where the ordinal variable is locally computable from token identity, while tasks requiring cross-position integration or semantic extraction produce higher-dimensional or incoherent representations. Geometric computation is architecture-dependent: Qwen3-4B shows 4--10$\times$ stronger twisting than Gemma models for indentation, and its twisters preserve ordinal order ($\rho \geq 0.77$), unlike its numeric twisters ($\rho \leq 0.23$). Activation patching causally confirms that the manifold subspaces carry task-relevant information across all settings.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Representational Depth of Evaluation Awareness Shifts With Scale in Open-Weight Language Models

    Archit Manek

    Abstract

    Do language models know when they are being tested? This question matters for AI safety: a model that recognises an evaluation context could alter its behaviour strategically, making downstream benchmarks harder to interpret. Using 11 models spanning Qwen 2.5, Gemma 2, and Llama 3.2, we find a systematic size-dependent shift in representational depth: in both Qwen 2.5 and Gemma 2, the layer at which evaluation-awareness is most linearly recoverable moves from late layers in smaller models to early layers in larger ones. This suggests that scale changes not only the strength of evaluation-awareness but also where it is represented in the network. This depth shift helps explain why within-family scaling trajectories are non-monotonic or inverse rather than smooth and family-general, showing that a simple universal power law account does not hold under denser within-family sampling. Finally, white-box probe signals are consistently stronger than black-box behavioural expression, and the relationship between the two varies by family in ways not predicted by probe AUROC alone.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    FLIP: Final Layer Inference-Time Probing for Vision--Language Models

    Drandreb Earl Juanico, Rowel O Atienza

    Abstract

    We present FLIP, a final-layer inference-time probe for testing whether a logit-facing intervention site in an open-weight vision--language model (VLM) supports structured, task-linked computation rather than generic perturbation. Behavioral change under internal intervention is otherwise mechanistically ambiguous: it may reflect improved use of visual evidence, generic output instability, or outright degradation. FLIP applies elementwise flooring to the final normalized hidden state before logit computation, leaving parameters, prompts, and decoding unchanged. On a controlled detection/counting probe, sweeping intervention strength reveals three regions: negligible change, a bounded interior regime in which detection recall at IoU $0.50$ ($R_{50}$) improves while tolerant counting error ($\mathcal{E}_{\mathrm{count}}$) falls, and over-suppression. We formalize a four-criterion probe-and-sweep protocol for disciplining the interpretation of intervention effects: regime structure, grounding-proxy alignment, feature-coherence dependence, and failure to reproduce the same positive regime on a performance-based negative control. The post-normalization state passed to the output head is the logit-facing instantiation of this test; under a non-targeted flooring sweep it satisfies the full protocol. Raw decoder-layer interventions---including the last-block output before final normalization---and the singleton-pair left/right control fail to reproduce the Final-site signature, while same-site operators and multiple VLMs replicate it. FLIP is therefore a validation step for intervention-based mechanistic interpretability, not a steering method.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    User Persona Subspaces Modulate Refusal Behavior in Language Models

    Yan Zhou, Shichang Zhang, Zidi Xiong, Himabindu Lakkaraju

    Abstract

    As language-model chatbots increasingly use persistent user information, safety-relevant behaviors may depend not only on what is asked, but also on who the model represents the user to be. Prior work has shown that LLMs modulate refusal behavior based on perceived user personas. However, most studies examine this effect only at the behavioral level, while mechanistic analyses typically represent user personas as linear directions in activation space. We characterize user personas in terms of Knowledge, Intent, Emotion, and Belief, and decompose each into contextually distinct subcategories to study user-representation geometry. We find that user personas are encoded as coherent low-dimensional subspaces in activation space, rather than collapsing into a single generic user direction. These representations are behaviorally meaningful: projections onto directions within these subspaces predict model refusal for individual prompts, and interventions along them shift the model's inferred user profile. These findings show that personalized context can modulate safety behavior through structured internal user representations, with implications for auditing memory-enabled LLM systems.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Where’s the Plan? Locating Latent Planning in Language Models with Lightweight Mechanistic Interventions

    Nicole H. Ma, Nick Rui

    Abstract

    We study $\textit{planning site formation}$ in language models---$\textit{where}$ internal representations of structurally-constrained future tokens form during the forward pass, and whether they causally drive generation. Using rhyming-couplet completion as a clean test of forward-looking constraint, we apply two lightweight methods (linear probing and activation patching) across Qwen3, Gemma-3, and Llama-3 at more than ten scales. Probing shows that future-rhyme information is linearly decodable at the line boundary, with signal that strengthens with scale in all three families. Activation patching reveals that only Gemma-3-27B causally relies on this encoding, exhibiting a $\textit{handoff}$ in which the causal driver migrates from the rhyme word to the line boundary around layer 30. Every other model we test conditions on the rhyme word throughout generation, with near-zero causal effect at the line boundary despite strong probe signal. We localize the Gemma-3-27B handoff to five attention heads through two-stage path patching that recover ~${90}$% of the rhyme-routing capacity at the newline.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Spectral Guardrails: Detecting Prompt Injection via Attention Graph Fracture in Large Language Models

    Charly K Capo-Chichi, Ghanem AMARI, Valentin NOËL

    Abstract

    Abstract Prompt injection attacks redirect an LLM away from its system instructions by embedding ad- versarial directives in the user turn. Text-based detectors exploit lexical artifacts present in cur- rent benchmarks, artifacts that vanish under para- phrasing, leaving them blind to semantically novel attacks. We ask a different question: what hap- pens inside the model during an injection? We prove that a successful injection must collapse the algebraic connectivity of the attention graph because a functional injection and a healthy at- tention graph are mathematically incompatible (Eq. 1). Evaluated across seven models (1.1B– 14B) including GQA architectures, our Layerwise Multi-Metric probe (LMM-LR) achieves ROC- AUC 0.90–0.99, surpassing TF-IDF on the least lexically structured benchmark (0.965 vs. 0.951) and DeBERTa-v3 on two of three benchmarks, without ever reading the input text.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Scalable Circuit Learning for Interpreting Large Language Models

    Naiyu Yin, Dennis Wei, Tian Gao, Amit Dhurandhar, Karthikeyan Natesan Ramamurthy, Yue Yu

    Abstract

    A prominent research direction within mechanistic interpretability involves learning sparse circuits to model causal relationships between LLM components, thereby providing insights into model behavior. However, due to the polysemantic nature of LLM components, learned circuits are often difficult to interpret. While sparse autoencoder (SAE) features enhance interpretability, their high dimensionality presents a significant challenge for existing circuit learning methods to scale. To address these limitations, we propose a scalable circuit learning approach, CircuitLasso, that leverages sparse linear regression. Our method can efficiently uncover relationships among SAE features, showing how human-interpretable semantic features propagate through the model and influence its predictions. We empirically evaluate our method against state-of-the-art baselines on benchmark circuit learning tasks, demonstrating substantial improvements in efficiency while accurately capturing circuits involving LLM components. Given its efficiency, we then apply our method to SAE (high dimensional) features and obtain human-interpretable circuits for a grammatical classification task that has not been studied before in mechanistic interpretation. Finally, we validate the utility of our learned circuits by leveraging their insights to improve downstream performance in domain generalization.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Pretraining Numerical Frequency and Number-Line in Language Models

    Mohammed Ibrahim Awad, Ahmed Elshehaby, Velibor Bojkovic, Hilal AlQuabeh

    Abstract

    Large language models exhibit compressed, non-uniform internal representations of numerical magnitude, but the pretraining factors associated with this geometry remain unclear. We study whether corpus-level integer statistics are related to the learned number-line geometry of pretrained language models. For four documented pretraining corpora, we count integers in $[0,10{,}000]$ and fit a magnitude-frequency power law, $\mathrm{count}(N) \propto N^{\alpha}$, where more negative $\alpha$ indicates steeper decay and less exposure to large magnitudes. For nine corresponding base models, we extract hidden states for numerical prompts, project them onto a one-dimensional number line with PCA, and estimate a scaling factor $\beta$, where smaller $\beta$ indicates stronger compression. We first show that $\beta$ is behaviorally meaningful: models with less compressed number-line geometry achieve higher likelihood-based number-comparison accuracy. We then find that flatter integer-frequency distributions, corresponding to less negative $\alpha$, are associated with larger $\beta$. These results provide correlational evidence that pretraining integer statistics are reflected in the geometry of LLM number representations.

    Abstract source