ICLR papers
Search ICLR papers by title, author, or track. Open a paper’s abstract to read more.
Explore the ICLR analysisSearch results
161–172 of 172
- ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities
Instruction Following by Principled Attention Boosting of Large Language Models
Vitoria Guardieiro, Avishree Khare, Adam Stein, Eric Wong
Abstract
Large language models' behavior is often shaped by instructions such as system prompts, refusal boundaries, privacy constraints, and tool-use rules that must hold at inference time. Yet in practice these constraints can be violated under long contexts or when user-provided context conflicts with them, creating reliability and safety risks. This motivates inference-time interventions that strengthen instruction influence without retraining. One such intervention is attention steering, which biases attention toward instruction tokens. In this work, we present a theoretical formalization of instruction following as rule-based competition between instruction rules and context-derived rules, with attention mediating which rules dominate, unifying existing attention-steering methods. We prove that boosting attention to instruction tokens tilts this competition, making it harder for context to override instruction-following. However, excessive boosting can suppress task-relevant context that should be incorporated alongside the instruction. Guided by this theory, we propose Instruction Attention Boosting (InstABoost), a simple intervention that applies a constant additive bias to instruction-key attention logits across all layers and heads. We evaluate InstABoost against prompting, latent steering, and prior attention methods across 15 steering tasks. InstABoost matches or outperforms all baselines while avoiding the fluency collapse of latent methods and the instruction over-focus of prior attention methods, achieving a stronger steering–quality tradeoff.
Abstract source - ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities
When RAG Hurts: Diagnosing and Mitigating Attention Distraction in Retrieval-Augmented LVLMs
Beidi Zhao, Wenlong Deng, Xinting Liao, Yushu Li, Nazim Shaikh, Yao Nie, Xiaoxiao Li
Abstract
While Retrieval-Augmented Generation (RAG) is one of the dominant paradigms for enhancing Large Vision-Language Models (LVLMs) on knowledge-based VQA tasks, recent work attributes RAG failures to insufficient attention towards the retrieved context, proposing to reduce the attention allocated to image tokens. In this work, we identify a distinct failure mode that previous study overlooked: Attention Distraction (AD). When the retrieved context is sufficient (highly relevant or including the correct answer), the retrieved text suppresses the visual attention globally, and the attention on image tokens shifts away from question-relevant regions. This leads to failures on questions the model could originally answer correctly without the retrieved text. To mitigate this issue, we propose MAD-RAG, a training-free intervention that decouples visual grounding from context integration through a dual-question formulation, combined with attention mixing to preserve image-conditioned evidence. Extensive experiments on OK-VQA, E-VQA, and InfoSeek demonstrate that MAD-RAG consistently outperforms existing baselines across different model families, yielding absolute gains of up to 4.76%, 9.20%, and 6.18% over the vanilla RAG baseline. Notably, MAD-RAG rectifies up to 74.68% of failure cases with negligible computational overhead.
Abstract source - ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities
When RAG Hurts: Diagnosing and Mitigating Attention Distraction in Retrieval-Augmented LVLMs
Beidi Zhao, Wenlong Deng, Xinting Liao, Yushu Li, Nazim Shaikh, Yao Nie, Xiaoxiao Li
Abstract
While Retrieval-Augmented Generation (RAG) is one of the dominant paradigms for enhancing Large Vision-Language Models (LVLMs) on knowledge-based VQA tasks, recent work attributes RAG failures to insufficient attention towards the retrieved context, proposing to reduce the attention allocated to image tokens. In this work, we identify a distinct failure mode that previous study overlooked: Attention Distraction (AD). When the retrieved context is sufficient (highly relevant or including the correct answer), the retrieved text suppresses the visual attention globally, and the attention on image tokens shifts away from question-relevant regions. This leads to failures on questions the model could originally answer correctly without the retrieved text. To mitigate this issue, we propose MAD-RAG, a training-free intervention that decouples visual grounding from context integration through a dual-question formulation, combined with attention mixing to preserve image-conditioned evidence. Extensive experiments on OK-VQA, E-VQA, and InfoSeek demonstrate that MAD-RAG consistently outperforms existing baselines across different model families, yielding absolute gains of up to 4.76%, 9.20%, and 6.18% over the vanilla RAG baseline. Notably, MAD-RAG rectifies up to 74.68% of failure cases with negligible computational overhead.
Abstract source - ICLR · Workshop · Principled Design for Trustworthy AI: Interpretability, Robustness, and Safety Across Modalities
Attention Sinks in Diffusion Language Models
Maximo Rulli, Simone Petruzzi, Edoardo Michielon, Fabrizio Silvestri, Simone Scardapane, Alessio Devoto
Abstract
Masked Diffusion Language Models (DLMs) have recently emerged as a promising alternative to traditional Autoregressive Models (ARMs). DLMs employ transformer encoders with bidirectional attention, enabling parallel token generation while maintaining competitive performance. Although their efficiency and effectiveness have been extensively studied, the internal mechanisms that govern DLMs remain largely unexplored. In this work, we conduct an empirical analysis of DLM attention patterns, focusing on the attention sinking phenomenon, an effect previously observed in various transformer-based architectures. Our findings reveal that DLMs also exhibit attention sinks, but with distinct characteristics. First, unlike in ARMs, the sink positions in DLMs tend to shift throughout the generation process, displaying a dynamic behavior. Second, while ARMs are highly sensitive to the removal of attention sinks, DLMs remain notably robust: masking sinks leads to only a minor degradation in performance. These results provide new insights into the inner workings of diffusion-based language models and highlight fundamental differences in how they allocate and utilize attention compared to autoregressive models.
Abstract source - ICLR · Workshop · Learning Meaningful Representations of Life (LMRL) Workshop @ ICLR 2026
Physics-Constrained Correlation-Aware Attention for Collective Cell Dynamics
Dmitriy Stanislavchuk-Abovsky, Andrei Zakharov, Ilya Makarov
Abstract
Collective cell migration is shaped by short-range physical interactions between neighboring cells, but trajectory predictors often rely on heuristic attention that lacks physical grounding and interpretability. We introduce a physics-constrained, correlation-aware attention framework that embeds analytically extracted direct interaction priors into graph-based models of cell dynamics. Our approach estimates the direct correlation function from empirical structure factors using Ornstein–Zernike-based deconvolution in Fourier space and incorporates this short-range signal into attention logits as a physical prior. To encourage consistent use of this prior, we propose a variational alignment objective that regularizes learned attention distributions toward physically motivated interaction patterns via a KL divergence. This framework yields physically meaningful attention representations and provides a principled way for integrating statistical physics into representation learning for biological dynamics. We present preliminary qualitative results on collective cell migration data and outline directions for systematic evaluation and extension.
Abstract source - ICLR · Workshop · Agentic AI in the Wild: From Hallucinations to Reliable Autonomy
Pay Attention to the Triggers: Constructing Backdoors That Survive Distillation
Giovanni De Muri, Mark Vero, Robin Staab, Martin Vechev
Abstract
Knowledge distillation is an increasingly popular technique to compress the capabilities of large teacher LMs into memory-efficient student models. However, the use of teacher models from untrusted sources raises potential security risks, as malicious behaviors may inadvertently transfer to the student. In this paper, we investigate the security implications of knowledge distillation from backdoored teacher models, when distilling on benign data. First, we show that existing backdoor attacks largely fail to transfer to student models during distillation. In particular, we find that this is due to existing backdoor attacks selecting trigger tokens that rarely occur in typical contexts. We argue that this underestimates the security risks of knowledge distillation, as users typically distill on popular, publicly-available datasets which can be anticipated by the attacker. Accordingly, we demonstrate that triggers composed of tokens that often occur individually in these datasets provide sufficient signal for the backdoor to transfer during distillation. Crucially, such triggers also preserve the stealthiness of the backdoored teacher. We find that often even under partial information of the dataset, the backdoor can still transfer onto the student. Finally, we study transferability failure cases and potential defenses. We validate our findings across two attack scenarios, jailbreaking and content modulation, and across multiple LLM families and sizes.
Abstract source - ICLR · Workshop · Agentic AI in the Wild: From Hallucinations to Reliable Autonomy
Efficient Hallucination Detection for LLMs Using Uncertainty-Aware Attention Heads
Artem Vazhentsev, Lyudmila Rvanova, Gleb Kuzmin, Ekaterina Fadeeva, Ivan Lazichny, Alexander Panchenko, Maxim Panov, Mrinmaya Sachan, Preslav Nakov, Timothy Baldwin, Artem Shelmanov
Abstract
While large language models (LLMs) have become highly capable, they remain prone to factual inaccuracies, commonly referred to as ``hallucinations.'' Uncertainty quantification (UQ) offers a promising way to mitigate this issue, but most existing methods are computationally intensive and/or require supervision. In this work, we propose Recurrent Attention-based Uncertainty Quantification (RAUQ), an unsupervised and efficient framework for identifying hallucinations. The method leverages an observation about transformer attention behavior: when incorrect information is generated, certain ``uncertainty-aware'' attention heads tend to reduce their focus on preceding tokens. RAUQ automatically detects these attention heads and combines their activation patterns with token-level confidence measures in a recurrent scheme, producing a sequence-level uncertainty estimate in just a single forward pass. Through experiments on twelve tasks spanning question answering, summarization, and translation across four different LLMs, we show that RAUQ consistently outperforms state-of-the-art UQ baselines. Importantly, it incurs minimal overhead, requiring less than 1\% additional computation. Since it requires neither labeled data nor extensive parameter tuning, RAUQ serves as a lightweight, plug-and-play solution for real-time hallucination detection in white-box LLMs.
Abstract source - ICLR · Workshop · ICLR 2026 Workshop on Memory for LLM-Based Agentic Systems (MemAgents)
Spectral Attention Steering for Prompt Highlighting
Waylon Li, Yuchen Niu, Yongxin Yang, Keshuang Li, Tiejun Ma, Shay B Cohen
Abstract
Steering a large language model's attention towards user-specified highlighted text is a critical capability. Existing prompt highlighting methods are incompatible with modern efficient attention mechanisms like Flash Attention due to their reliance on post-hoc matrix editing. We introduce Spectral Editing Key Amplification (SEKA), a training-free steering method that tackles this by directly editing key embeddings before attention computation. SEKA learns universal relevance subspaces offline via spectral decomposition. We extend this to Adaptive SEKA (AdaSEKA), a query-adaptive variant that uses a training-free routing mechanism to dynamically combine multiple expert subspaces based on the prompt's semantic intent. Our experiments show both methods significantly outperform strong baselines on standard steering benchmarks while adding much lower latency and memory overhead, ensuring full compatibility with optimised attention.
Abstract source - ICLR · Workshop · ICLR 2026 Workshop on Memory for LLM-Based Agentic Systems (MemAgents)
CAOTE: Optimizing KV Cache Memory Through Attention Output Error-based Token Eviction
Raghavv Goel, Junyoung Park, Mukul Gagrani, Dalton Jones, Matthew Morse, Matthew Harper Langston, Christopher Lott, Mingu Lee
Abstract
Long‑context support in large language models (LLMs) amplifies memory and compute bottlenecks during inference, especially in resource‑constrained environments. A major contributor is the key–value (KV) cache, which grows linearly with sequence length and can exceed model size. Token eviction—removing less important tokens from the cache—is a widely adopted post‑training strategy, but existing methods rely solely on attention scores, ignoring the contribution of value vectors to the attention output. We introduce CAOTE, a closed‑form criterion that minimizes the change in attention output caused by eviction. CAOTE integrates attention weights and value vectors to compute an exact eviction error per token, and can act as a meta‑policy atop existing heuristics such as H2O, TOVA, and SNAPKV. Across LLaMA‑3 and Qwen‑2.5 models, CAOTE consistently improves accuracy on LongBench, reduces perplexity gaps, and boosts Needle‑in‑Haystack recall by up to 60% at tight budgets (2k–4k tokens). Theoretical analysis shows that CAOTE adds negligible overhead (<0.1\%) of prefill FLOPs for 4k–32k contexts), and an efficient variant (FastCAOTE) achieves similar gains with further compute savings. By bounding KV memory while preserving task quality, CAOTE offers a practical, drop‑in solution for long‑context LLM serving.
Abstract source - ICLR · Workshop · ICLR 2026 Workshop on Memory for LLM-Based Agentic Systems (MemAgents)
Alleviating Forgetfulness of Linear Attention by Hybrid Sparse Attention and Contextualized Learnable Token Eviction
Mutian He, Philip N. Garner
Abstract
Linear-attention models that compress the entire past memory into a fixed-size recurrent state offer an efficient alternative to Transformers, but the finite memory induces forgetfulness that harms retrieval-intensive scenarios. To mitigate the issue, we explore a series of hybrid memory architectures that restore direct access to the past. We interleave layers with intermediate time and space complexity between linear and full attention, including sparse attention with token eviction, and the query-aware native sparse attention. Particularly, we propose a novel learnable eviction policy of past memory. Combined with sliding-window attention, an end-to-end trainable lightweight CNN aggregates information from both past and future adjacent context to adaptively retain a limited set of critical KV-pairs per head, maintaining linear attention's constant time and space complexity. Efficient Triton kernels for the sparse attention are provided. Empirical evaluations on retrieval-intensive benchmarks support the effectiveness of our approaches.
Abstract source - ICLR · Workshop · Representational Alignment
From Leads to Latents: Attention-Driven Masked Autoencoder for ECG Time Series
Moritz Vandenhirtz, Samuel Campillo, Simon Böhi, Sonia Laguna, Irene Cannistraci, Andrea Agostini, Ece Ozkan, Thomas Sutter, Julia E Vogt
Abstract
Electrocardiograms (ECGs) are among the most widely available clinical signals and play a central role in cardiovascular diagnosis. While recent foundation models have shown promise for learning transferable ECG representations, most existing pretraining approaches treat leads as independent channels and fail to explicitly leverage their strong structural redundancy. We introduce the latent attention masked autoencoder (LAMAE) framework that directly exploits this structure by learning cross-lead connection mechanisms during self-supervised pretraining. Our approach models higher-order interactions across leads through latent attention, enabling permutation-invariant aggregation and adaptive weighting of lead-specific representations. We provide empirical evidence on the Mimic-IV-ECG database that leveraging the cross-lead connection constitutes an effective form of structural supervision, improving representation quality and transferability. Our method shows strong performance on the difficult task of predicting ICD-10 codes, outperforming independent-lead masked modeling and alignment-based baselines.
Abstract source - ICLR · Workshop · The First Workshop on Efficient Spatial Reasoning
FROST: Filtering Reasoning Outliers with Attention for Efficient Reasoning
Haozheng Luo, Zhuolin Jiang, Md Zahid Hasan, Yan Chen, Soumalya Sarkar
Abstract
We propose FROST, an attention-aware method for efficient reasoning. Unlike traditional approaches, FROST leverages attention weights to prune uncritical reasoning paths, yielding shorter and more reliable reasoning trajectories. Methodologically, we introduce the concept of reasoning outliers and design an attention-based mechanism to remove them. Theoretically, FROST preserves and enhances the model’s reasoning capacity while eliminating outliers at the sentence level. Empirically, we validate FROST on four benchmarks using two strong reasoning models (Phi-4-Reasoning and GPT-oss-20B), outperforming state-of-the-art methods such as TALE and ThinkLess. Notably, FROST achieves an average 58.72% reduction in token usage and a 10.64% improvement in accuracy over the base model. Furthermore, in evaluations of attention outlier metrics, FROST reduces the maximum infinity norm $\||\mathbf{x}\||_{\infty}$ by 15.97% and the average kurtosis by 91.09% compared to the base model.
Abstract source