GrAInS: Gradient-based Attribution for Inference-Time Steering of LLMs and VLMs
On the map: Multimodal LLMs / vision-language models → MLLM training and visual instruction tuning
Abstract (arXiv)
Inference-time steering methods offer a lightweight alternative to fine-tuning large language models (LLMs) and vision-language models (VLMs) by modifying internal activations at test time without updating model weights. However, most existing approaches rely on fixed, global intervention vectors, overlook the causal influence of individual input tokens, and fail to leverage informative gradients from the model's logits, particularly in multimodal settings where visual and textual inputs contribute unevenly. To address these limitations, we introduce GrAInS, an inference-time steering approach that operates across both language-only and vision-language models and tasks. GrAInS uses contrastive, gradient-based attribution via Integrated Gradients to identify the top-k most influential tokens, both positively and negatively attributed based on their contribution to preferred versus dispreferred outputs. These tokens are then used to construct directional steering vectors that capture semantic shifts from undesirable to desirable behavior. During inference, GrAInS adjusts hidden activations at transformer layers guided by token-level attribution signals, and normalizes activations to preserve representational scale. This enables fine-grained, interpretable, and modular control over model behavior, without retraining or auxiliary supervision. Empirically, GrAInS consistently outperforms both fine-tuning and existing steering baselines: it achieves a 13.22% accuracy gain on TruthfulQA using Llama-3.1-8B, reduces hallucination rates on MMHal-Bench from 0.624 to 0.514 with LLaVA-1.6-7B, and improves alignment win rates on SPA-VL by 8.11%, all while preserving the model's fluency and general capabilities.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in MLLM training and visual instruction tuning, one of 16 directions in Multimodal LLMs / vision-language models. Builds on 55 of its 70 references that are in the map. First posted on arXiv 24 Jul 2025.
Builds on
55 of 70 references.
Closest ancestors · 4
Same direction, newest first
- 2025A Survey on Mechanistic Interpretability for Multi-Modal Foundation Models22 Feb
- 2025Analyzing Finetuning Representation Shift for Multimodal LLMs Steering6 Jan
- 2024Quantifying and Mitigating Unimodal Biases in Multimodal Large Language Models: A Causal Perspective27 Mar
- 2023Aligning Large Multimodal Models with Factually Augmented RLHF25 Sep
Other references · 51
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
- 2016Learning without Forgettingcited by 2,496
- 2023MMMU: A Massive Multi-discipline Multimodal Understanding and Reasoning Benchmark for Expert AGIcited by 2,080
- 2017Gradient Episodic Memory for Continual Learningcited by 1,898
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
38 more
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
- 2017SmoothGrad: removing noise by adding noisecited by 1,109
- 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,085
- 2023Steering Language Models With Activation Engineeringcited by 922
- 2023The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasetscited by 712
- 2023Mitigating Object Hallucinations in Large Vision-Language Models through Visual Contrastive Decodingcited by 688
- 2022ToxiGen: A Large-Scale Machine-Generated Dataset for Adversarial and Implicit Hate Speech Detectioncited by 422
- 2023In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steeringcited by 245
- 2023Rewarded soups: towards Pareto-optimal alignment by interpolating weights fine-tuned on diverse rewardscited by 243
- 2020Explaining by Removing: A Unified Framework for Model Explanationcited by 218
- 2020A Diagnostic Study of Explainability Techniques for Text Classificationcited by 159
- 2021Guided Integrated Gradients: An Adaptive Path Method for Removing Noisecited by 102
- 2022A Consistent and Efficient Evaluation Strategy for Attribution Methodscited by 102
- 2024Decoding-Time Language Model Alignment with Multiple Objectivescited by 94
- 2022Interpreting Language Models with Contrastive Explanationscited by 92
- 2024FaithEval: Can Your Language Model Stay Faithful to Context, Even If "The Moon is Made of Marshmallows"cited by 86
- 2024SPA-VL: A Comprehensive Safety Preference Alignment Dataset for Vision Language Modelcited by 85
- 2024Contrastive Region Guidance: Improving Grounding in Vision-Language Models without Trainingcited by 64
- 2024Reducing Hallucinations in Vision-Language Models via Latent Space Steeringcited by 59
- 2024MADTP: Multimodal Alignment-Guided Dynamic Token Pruning for Accelerating Vision-Language Transformercited by 54
- 2022Rethinking Stability for Attribution-based Explanationscited by 52
- 2021Towards the Unification and Robustness of Perturbation and Gradient Based Explanationscited by 47
- 2024Nullu: Mitigating Object Hallucinations in Large Vision-Language Models via HalluSpace Projectioncited by 46
- 2025A Unified Understanding and Evaluation of Steering Methodscited by 46
- 2025Multi-Attribute Steering of Language Models via Targeted Interventioncited by 46
- 2024Immune: Improving Safety Against Jailbreaks in Multi-modal LLMs via Inference-Time Alignmentcited by 44
- 2023Explaining How Transformers Use Context to Build Predictionscited by 43
- 2021Combining Feature and Instance Attribution to Detect Artifactscited by 38
- 2024Frustratingly Easy Test-Time Adaptation of Vision-Language Modelscited by 36
- 2024Gradient based Feature Attribution in Explainable AI: A Technical Reviewcited by 34
- 2024ICT: Image-Object Cross-Level Trusted Intervention for Mitigating Object Hallucination in Large Vision-Language Modelscited by 30
- 2023AD-KD: Attribution-Driven Knowledge Distillation for Language Model Compressioncited by 26
- 2024Householder Pseudo-Rotation: A Novel Approach to Activation Editing in LLMs with Direction-Magnitude Perspectivecited by 23
- 2025LVPruning: An Effective yet Simple Language-Guided Vision Token Pruning Approach for Multi-modal Large Language Modelscited by 23
- 2025Bayesian Test-Time Adaptation for Vision-Language Modelscited by 22
- 2025BLEUBERI: BLEU is a surprisingly effective reward for instruction followingcited by 17
- 2024Attribution Analysis Meets Model Editing: Advancing Knowledge Correction in Vision Language Models with VisEditcited by 14
- 2024Non-Linear Inference Time Intervention: Improving LLM Truthfulnesscited by 9
50 most cited of 51 All 51 (JSON)
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026One Token, Two Fates: A Unified Framework via Vision Token Manipulation Against MLLMs Hallucinationcited by 2
- 2026The Master Key Hypothesis: Unlocking Cross-Model Capability Transfer via Linear Subspace Alignmentcited by 1
- 2026Token-Level Diagnosis of Sycophancy in LLMs with Attribution-Guided Steeringcited by 1
- 2026Activation Steering for Synthetic Data Generation: The Role of Diversity in Downstream Safety Detectioncited by 0
- 2026Guarded Gradient-Based Activation Steering of Shutdown Responses in Qwen3.5-0.8B: A Minimum-Step Policycited by 0
- 2026SphMind: Towards Robust, Training-Free VLM-based Spatial Reasoning with a 360 Cameracited by 0
- 2026SphMind: Towards Robust, Training-Free VLM-based Spatial Reasoning with a 360 Camera27 Sep 2026
- 2026Guarded Gradient-Based Activation Steering of Shutdown Responses in Qwen3.5-0.8B: A Minimum-Step Policy23 Sep 2026
- 2026Token-Level Diagnosis of Sycophancy in LLMs with Attribution-Guided Steering31 Jul 2026
- 2026Activation Steering for Synthetic Data Generation: The Role of Diversity in Downstream Safety Detection27 May 2026
- 2026The Master Key Hypothesis: Unlocking Cross-Model Capability Transfer via Linear Subspace Alignment7 Apr 2026
- 2026One Token, Two Fates: A Unified Framework via Vision Token Manipulation Against MLLMs Hallucination11 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2026COLD-Steer: Steering Large Language Models via In-Context One-step Learning Dynamics
- 2026Tracing the Evidence: Faithful Token Attribution Through Vision-Language Reasoning
- 2025Self-Improving Model Steering
- 2026Where to Steer: Input-Dependent Layer Selection for Steering Improves LLM Alignment
- 2026Zooming without Zooming: Region-to-Image Distillation for Fine-Grained Multimodal Perception
- 2026Hessian-Enhanced Token Attribution (HETA): Interpreting Autoregressive LLMs
- 2026Steering Vector Fields for Context-Aware Inference-Time Control in Large Language Models
- 2025Token-Level Inference-Time Alignment for Vision-Language Models