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

261–280 of 400

  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Emergent Structured Representations Support In-Context Inference in Large Language Models

    Ningyu Xu, Qi Zhang, Xipeng Qiu, Xuanjing Huang

    Abstract

    Whether large language models (LLMs) perform structured inference or merely exploit surface-level statistical associations remains a central debate. Here, rather than dissecting individual attention heads or neurons, we isolate a shared latent subspace in the residual stream and test its functional role in inference. Our results show that this subspace emerges in intermediate layers and exhibits increasing cross-context alignment with more demonstrations. Causal interventions reveal that it is not a mere epiphenomenon but a functional mediator of inference: restoring it recovers model performance under corruption, ablating it significantly degrades performance, and transferring its relational structure enables targeted steering of model predictions across contexts. We further identify a layer-wise progression where attention heads in early-to-middle layers integrate contextual cues to construct the subspace, and later layers leverage it to generate predictions. Together, these findings suggest that LLMs dynamically assemble a structured and transferable latent substrate for inference, offering insights into the computational foundations of flexible adaptation and a promising basis for steering model behavior.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Harmfulness Propagation Dynamics: Layer-wise Trajectories of Adversarial Intent in Large Language Models

    Noor Islam S. Mohammad

    Abstract

    We identify Harmfulness Propagation Dynamics (HPD). For harmful prompts, the projection of the last-token hidden state onto a learned harm direction rises monotonically with transformer depth, whereas benign prompts remain flat or oscillatory. This cross-layer signature reflects harmful intent as a progressively resolved semantic property: surface form appears early, while pragmatic intent consolidates later, making the trajectory shape more informative than any single-layer snapshot. Moreover, LDA-based harm directions, learned per layer, remain stable across random splits (pairwise cosine similarity $>0.97$), supporting the projection sequence as a reproducible structured signal. Building on HPD, we introduce HERALD (Harmful Encoding Recognition via Activation Layer Dynamics). This lightweight input moderator extracts a seven-dimensional feature record, slope, curvature, monotonicity, onset layer, and related statistics from the cross-layer projection sequence and classifies it with a 288-parameter MLP. \herald{} stores one $d$-dimensional direction per layer ($262$\,KB for a 32-layer, $d{=}4096$ model), requires no gradient computation during training, and adds only $2.6{\times}10^{-6}$ prefill FLOPs at inference. Across eight prompt-harmfulness benchmarks and four model families, HERALD achieves an average F1 score of $89.3$ on OLMo2-7B, surpassing all tested guard models on adversarial jailbreak detection ($98.4$ vs. $96.9$ F1) and outperforming prior latent-based methods by $2.3$-$4.1$ F1 points across all backbones. Per-instance trajectories provide machine-readable audit records that reveal when and how harmfulness emerges, offering an interpretability advantage over single-layer approaches. Code will be released at https://HERALD.github.io.

    Abstract source
  • 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

    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

    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

    Latent Mechanisms of Code-Switching in Large Language Models

    Ryo Mitsuhashi, Sabri Boughorbel, Majd Hawasly

    Abstract

    Multilingual large language models can exhibit unintended code-switching -- unnecessarily alternating between languages during generation. We present a comparative study of three methods that identify language-controlling latents in cross-layer transcoders: activation value-based selection (ValSel), activation frequency-based selection (FreqSel), and LLM-generated latent annotation-based selection (AnnSel). To evaluate the efficacy of these methods in identifying language-controlling latents, we introduce two multilingual code-switching benchmarks designed for fine-grained analysis of language steering across seven languages. Through targeted intervention experiments on Gemma-2-2B and Qwen3-4B, we find that all three methods effectively manipulate generation language, with FreqSel achieving the strongest overall performance, while AnnSel offering interpretable latent selection through explicit language annotations. We study the redundancy of language control representation in the latent space of the studied models by a knock-out analysis that suggests evidence of representation divergence.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Layer-Wise Category Structure in Large Language Models : A Cross-Architecture Analysis of Feature Decodability

    Guus Bouwens

    Abstract

    We study where category-relevant information becomes linearly decodable across layers in four instruction-tuned language models. Using residual-stream activations from 215 prompts spanning 16 task categories, we train 128 layer-wise linear probes and compare coarse early, middle, and late processing trends across architectures. We find a consistent broad representational organization in which some categories (for example, spatial navigation and logical reasoning) become decodable earlier than others, alongside meaningful architecture-specific differences in late-layer behavior such as Mistral-7B's late accuracy drop and Llama-8B's stronger confidence concentration. To keep the paper at a descriptive level, we emphasize phase-bins rather than exact layer rankings: with 16 categories, the current design has 80\% power only for cross-model rank correlations of about $\rho \approx 0.65$, and fine-grained orderings are sensitive to preprocessing choices. In particular, rank agreement with the default z-score pipeline drops to $\rho=0.287$ with raw activations and $\rho=0.101$ with per-sample L2 normalization. Sparse autoencoder analyses provide a complementary unsupervised-style cross-check of category-selective structure, but we do not claim a localized causal mechanism. The resulting contribution is a calibrated map of broad layer-wise category structure, together with explicit boundaries on what can and cannot be concluded from the current four-model, 215-prompt dataset.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Non-linear Interventions on Large Language Models

    Sangwoo Kim

    Abstract

    Intervention is one of the most representative and widely used methods for understanding the internal representations of large language models (LLMs). However, existing intervention methods are confined to linear interventions grounded in the Linear Representation Hypothesis, leaving features encoded along non-linear manifolds beyond their reach. In this work, we introduce a general formulation of intervention that extends naturally to non-linearly represented features, together with a learning procedure that further enables intervention on implicit features lacking a direct output signature. We validate our framework on refusal bypass steering, where it steers the model more precisely than linear baselines by intervening on a non-linear feature governing refusal.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Steering Externalities: Benign Activation Steering Unintentionally Increases Jailbreak Risk for Large Language Models

    Chen Xiong, Zhiyuan He, Pin-Yu Chen, Ching-Yun Ko, Tsung-Yi Ho

    Abstract

    Activation steering is a practical post-training model alignment technique to enhance the utility of Large Language Models (LLMs). Prior to deploying a model as a service, developers can steer a pre-trained model toward specific behavioral objectives, such as better truthfulness, or reasoning ability, without the need for retraining. Conceptually, these methods implement behavior control through hidden-state interventions, without changing the underlying model parameters. However, this capability unintentionally introduces critical and under-explored safety risks. We identify a phenomenon termed Steering Externalities, where steering vectors derived from benign datasets—such as reducing harmless refusals, improving structured-output following, truthfulness, and reasoning performance—inadvertently erode safety guardrails. Experiments reveal that these interventions act as a force multiplier, creating new vulnerabilities to jailbreaks and increasing attack success rates to over 80\% on standard benchmarks by bypassing the initial safety alignment. Ultimately, our results expose a critical blind spot in deployment: benign activation steering can erode the ``safety margin,'' rendering models more vulnerable to black-box attacks and indicating that inference-time utility improvements must be rigorously audited for unintended safety externalities.

    Abstract source
  • ICML · Workshop · Workshop on Mechanistic Interpretability

    Negative Before Positive: Asymmetric Valence Processing in Large Language Models

    Sohan Venkatesh

    Abstract

    Mechanistic interpretability has revealed how concepts are encoded in large language models (LLMs) but emotional content remains poorly understood at the mechanistic level. We study whether LLMs process emotional valence through dedicated internal structure or through surface token matching. Using activation patching and steering on open-source LLMs, we find that negative and positive valence are processed at different network depths. Negative outcomes localize to early layers while positive outcomes peak at mid-to-late layers. Holding topic fixed while flipping valence produces sign-opposite responses, ruling out topic detection. Steering with the good-news direction at the identified layers shifts neutral prompts toward positive valence, showing these layers encode valence as a manipulable direction. Emotional valence in LLMs is localized, causal and steerable, making it a concrete target for interpretability-based oversight.

    Abstract source
  • ICML · Workshop · AI for Law Workshop

    Benchmarking Vietnamese Legal Knowledge of Large Language Models

    Dong Nguyen Tien, Nguyen A Minh, Thanh-Dat Hoang, Nguyen T Ngoc, Quang M Xuan, Phan P Hai, Nguyen T Anh, Binh Vu, Dung D. Le

    Abstract

    The rapid advancement of large language models (LLMs) has expanded their potential in the legal domain. However, existing legal benchmarks remain largely English-centric and oriented toward common law, leaving a critical gap in evaluating LLMs for civil law systems that govern most jurisdictions worldwide. To address this gap, we introduce Vietnamese Legal Benchmark VietLegal, a cognitively grounded benchmark designed for the hierarchical and codified structure of Vietnamese law. Although instantiated in Vietnamese legislation, VietLegal provides a replicable evaluation framework for civil law systems characterized by complex statutory hierarchies and frequent amendments. Inspired by Bloom’s taxonomy, VietLegal assesses multiple levels of legal understanding through tasks that mirror real-world legal assistant use cases, including legal question answering, multi-step reasoning, and scenario-based problem solving. The benchmark contains 10,450 expert-annotated samples, each cross-validated against authoritative legal sources to ensure fidelity to practical legal workflows. By offering the first standardized legal benchmark for Vietnamese, VietLegal enables systematic assessment of LLMs in civil law contexts and supports the development of more reliable and interpretable AI-assisted legal systems.

    Abstract source
  • ICML · Workshop · AI for Law Workshop

    AFL-Law: Authority, Framing, and Language Invariance Testing in Large Language Models

    Chehak Malhotra, Aviral Dawar

    Abstract

    Legal AI systems are increasingly deployed in high-stakes settings, yet a fundamental reliability property remains unevaluated: counterfactual legal invariance, the requirement that legal verdicts remain stable under legally irrelevant changes to case presentation. We introduce AFL-Law, an evaluation suite testing verdict stability under non-substantive authority cues, persuasive framing, and language translation. Using 100 Indian Supreme Court cases from ILDC (Malik et al., 2021), we evaluate five model conditions: GPT-5.4 at two reasoning-effort levels, Llama 4, Grok 4-3, and Grok 4-20-R, across English, Hindi, Chinese, and Spanish. We measure authority bias rate, the share of cases where a legally irrelevant expert cue favoring one side changes a neutral judge verdict; framing sensitivity, the share where side-favorable framing changes a neutral judge verdict; and cross-lingual stability, the share where translated cases match the English verdict. Results show pervasive instability: authority bias reaches 37% for Grok 4-3 and 33% for Llama 4, framing sensitivity reaches 100% for Grok 4-20-R, and increasing GPT-5.4 reasoning effort worsens framing sensitivity from 71% to 76%. Cross-lingual stability is higher but uneven, with Hindi stability not improving under extended reasoning while Chinese and Spanish do. These findings suggest that model scale and reasoning depth do not resolve authority susceptibility or framing sensitivity in legal AI.

    Abstract source
  • ICML · Workshop · AI for Law Workshop

    Co-Evolution for Logic: Improving Autoformalization with Large Language Models

    Mark O'Neill, Megan Ma

    Abstract

    Autoformalisation (translating natural language into formal logic) has applications in law, mathematics, and AI. While large language models show promise, they often produce incorrect or syntactically invalid outputs. We adapt a co-evolutionary framework (CoCoEvo) to an autoformalisation task and extend it with syntax repair, diversity mechanisms, and validation tests (CoCoEvo++). On the FOLIO benchmark, CoCoEvo++ achieves $58.4 \pm 3.9\%$ correctness, up from $39.3 \pm 3.5\%$ for single-pass generation. On the SARA statutory reasoning benchmark, CoCoEvo++ achieves $57.7 \pm 2.2\%$, up from $49.3 \pm 1.9\%$ for single-pass, with more moderate gains indicating the limits of single-objective co-evolution on multi-objective legal reasoning tasks. We highlight limitations, such as reliance on a fixed vocabulary and increased computational cost, and point to directions for future research in more adaptive and efficient methods.

    Abstract source
  • ICML · Workshop · AI for Law Workshop

    Taxation Perspectives from Large Language Models: A Case Study on Additional Tax Penalties

    EUNKYUNG CHOI, Young J Suh, Siun Lee, Hongseok Oh, Juheon Kang, Won Hur, HUN PARK, Wonseok Hwang

    Abstract

    How capable are large language models (LLMs) in the domain of taxation? Although numerous studies have explored the legal domain, research dedicated to taxation remains scarce. Moreover, the datasets used in these studies are either simplified, failing to reflect the real-world complexities, or not released as open-source. To address this gap, we introduce PLAT, a new benchmark designed to assess the ability of LLMs to predict the legitimacy of additional tax penalties. PLAT comprises 300 examples: (1) 100 binary-choice questions, (2) 100 multiple-choice questions, and (3) 100 essay-type questions, all derived from 100 Korean court precedents. PLAT is constructed to evaluate not only LLMs’ understanding of tax law but also their performance in legal cases that require complex reasoning beyond straight forward application of statutes. Our systematic experiments with multiple LLMs reveal that (1) their baseline capabilities are limited, especially in cases involving conflicting issues that require a comprehensive understanding (not only of the statutes but also of the taxpayer’s circumstances), and (2) LLMs struggle particularly with the “AC” stages of “IRAC” even for advanced reasoning models like o3, which actively employ inference-time scaling.

    Abstract source
  • ICML · Workshop · Planning in The Era of Language Models (LM4Plan)

    Generating Robust Portfolios of Optimization Models using Large Language Models

    Eleni Straitouri, Cheol Kim, Milind Tambe

    Abstract

    Mathematical optimization is a powerful tool for structured decision-making across domains such as resource allocation and planning. Formulating optimization models faithful to reality, though, remains a significant bottleneck as it typically demands both domain expertise and optimization knowledge that are often scarce. Recent advances in large language models (LLMs) promise to bridge this gap, enabling the generation of candidate optimization models from natural language descriptions. However, there is no guarantee that any single LLM-generated model is reliable, and existing approaches that output only one model are therefore risky. In this work, we propose a novel algorithm that generates a portfolio of optimization models, designed to be robust to the limitations of LLMs. Our method exploits the observation that a single LLM can play two distinct roles —has a stochastic generator and as a reasoning evaluator—and proposes a unified framework that leverages both capabilities in a complementary manner. We provide theoretical guarantees showing that, as long as either the generator or the evaluator is well-aligned with human preferences, the portfolio is guaranteed to contain high-quality candidates, enabling a principled human-in-the-loop process in which a decision-maker can review multiple candidates before committing to one. We further validate our approach empirically, demonstrating strong performance across a range of optimization modeling tasks.

    Abstract source
  • ICML · Workshop · Planning in The Era of Language Models (LM4Plan)

    ReTreVal: Reasoning Tree with Validation and Cross-Problem Memory for Large Language Models

    Abhishek HS, Pavan C Shekar, Aswanth Krishnan, Arpit Jain

    Abstract

    Every existing inference-time reasoning framework discards all failure context at problem boundaries, leaving a model solving problem 500 no wiser than it was on problem 1. We present ReTreVal (Reasoning Tree with Validation), a training-free framework that closes this gap by combining adaptive tree exploration with tool-augmented node refinement, typed-failure backtracking that injects categorized error context into the recovered branch, and a self-rewriting memory that accumulates and revises strategy entries across problems, enabling inference-time learning on any fixed, unmodified LLM without fine-tuning. ReTreVal achieves 85.8\% pass@1 on MATH-500 (+8.6 pp over Zero-Shot CoT, +8.6 pp over the strongest baseline Self-Refine) and 54.4\% on MMLU-Pro (+15.3 pp over Self-Refine), with a 3.4:1 win-to-regression ratio confirming genuine error recovery rather than noise — capabilities previously requiring gradient updates, now enabling a 32B model to compete with much larger single-pass systems.

    Abstract source
  • ICML · Workshop · The Second Workshop on Agents in the Wild: Safety, Security, and Beyond

    Towards Predictive Models of Strategic Behaviour in Large Language Model Agents

    Jennifer Za, Aristeidis Panos, Jan Čuhel

    Abstract

    Large language models (LLMs) are increasingly deployed as autonomous agents in settings involving cooperation, competition, and coordination, yet current behavioural evaluations provide limited guidance for anticipating risks in deployment. We present a large-scale study of strategic decision-making across seven frontier models, analysing over 200,000 decisions in game-theoretic scenarios. Using controlled experiments, we found that apparent self-recognition effects operate through inferred policy correlation rather than identity; a correlated stranger elicits cooperation equivalent to a correlated self. We further observe substantial heterogeneity across model families, including opposite responses to identical ``rationality'' instructions, which one might use to steer agent behaviour, and marked differences in forgiveness and exploitation dynamics in iterated interactions. Finally, we introduce a lightweight prediction method that requires only 5-10 calibration scenarios and achieves $R^2 = 0.51$ on average (up to $R^2 = 0.70$) when forecasting held-out model behaviour. These results demonstrate that systematic behavioural evaluation of LLMs can support pre-deployment risk assessment and shed light on AI agent decision-making in strategic situations.

    Abstract source
  • ICML · Workshop · The Second Workshop on Agents in the Wild: Safety, Security, and Beyond

    Tracking the Truth: Object-Centric Spatio-Temporal Monitoring for Video Large Language Models

    Tri Cao, Khoi Le, Thong Nguyen, Cong-Duy T Nguyen, Quynh Vo, Anh Tuan Luu, Chunyan Miao, See-Kiong Ng, Shuicheng YAN, Bryan Hooi

    Abstract

    While multimodal large language models (MLLMs) have advanced video understanding, they remain highly prone to hallucinations in dynamic scenes. We argue this stems from a failure in spatio-temporal monitoring, the ability to persistently track object identities, states, and relations over time. Existing benchmarks obscure this deficit by relying on single final-answer evaluations for queries that can often be resolved via local visual cues or statistical priors. To rigorously diagnose this, we introduce $\textbf{STEMO-Bench}$ ($\textbf{S}$patio-$\textbf{TE}$mporal $\textbf{MO}$nitoring), a benchmark of human-verified object-centric facts that evaluates intermediate reasoning by decomposing queries into sub-questions, distinguishing genuine temporal understanding from coincidental correctness. To address failure modes exposed by STEMO, we propose $\textbf{STEMO-Track}$, a novel object-centric framework that explicitly constructs and reasons over structured object trajectories via chunk-wise state extraction and temporal aggregation. Extensive experiments demonstrate that our object-centric framework significantly reduces hallucinated answers and improves spatio-temporal reasoning consistency over state-of-the-art MLLMs.

    Abstract source
  • ICML · Workshop · The Second Workshop on Agents in the Wild: Safety, Security, and Beyond

    Steering Externalities: Benign Activation Steering Unintentionally Increases Jailbreak Risk for Large Language Models

    Chen Xiong, Zhiyuan He, Pin-Yu Chen, Ching-Yun Ko, Tsung-Yi Ho

    Abstract

    Activation steering is a practical post-training model alignment technique to enhance the utility of Large Language Models (LLMs). Prior to deploying a model as a service, developers can steer a pre-trained model toward specific behavioral objectives, such as better truthfulness, or reasoning ability, without the need for retraining. Conceptually, these methods implement behavior control through hidden-state interventions, without changing the underlying model parameters. However, this capability unintentionally introduces critical and under-explored safety risks. We identify a phenomenon termed Steering Externalities, where steering vectors derived from benign datasets—such as reducing harmless refusals, improving structured-output following, truthfulness, and reasoning performance—inadvertently erode safety guardrails. Experiments reveal that these interventions act as a force multiplier, creating new vulnerabilities to jailbreaks and increasing attack success rates to over 80\% on standard benchmarks by bypassing the initial safety alignment. Ultimately, our results expose a critical blind spot in deployment: benign activation steering can erode the ``safety margin,'' rendering models more vulnerable to black-box attacks and indicating that inference-time utility improvements must be rigorously audited for unintended safety externalities.

    Abstract source