mlsanityData to 14 Oct 2026

GrAInS: Gradient-based Attribution for Inference-Time Steering of LLMs and VLMs

arXiv 2507.18043 ↗First posted 24 Jul 2025cs.CL cs.AI cs.CVcited by 6

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

  1. 2025A Survey on Mechanistic Interpretability for Multi-Modal Foundation Models22 Feb
  2. 2025Analyzing Finetuning Representation Shift for Multimodal LLMs Steering6 Jan
  3. 2024Quantifying and Mitigating Unimodal Biases in Multimodal Large Language Models: A Causal Perspective27 Mar
  4. 2023Aligning Large Multimodal Models with Factually Augmented RLHF25 Sep

Other references · 51

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  4. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  5. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  6. 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
  7. 2017Axiomatic Attribution for Deep Networkscited by 3,384
  8. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
  9. 2016Learning without Forgettingcited by 2,496
  10. 2023MMMU: A Massive Multi-discipline Multimodal Understanding and Reasoning Benchmark for Expert AGIcited by 2,080
  11. 2017Gradient Episodic Memory for Continual Learningcited by 1,898
  12. 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
38 more
  1. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
  2. 2017SmoothGrad: removing noise by adding noisecited by 1,109
  3. 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,085
  4. 2023Steering Language Models With Activation Engineeringcited by 922
  5. 2023The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasetscited by 712
  6. 2023Mitigating Object Hallucinations in Large Vision-Language Models through Visual Contrastive Decodingcited by 688
  7. 2022ToxiGen: A Large-Scale Machine-Generated Dataset for Adversarial and Implicit Hate Speech Detectioncited by 422
  8. 2023In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steeringcited by 245
  9. 2023Rewarded soups: towards Pareto-optimal alignment by interpolating weights fine-tuned on diverse rewardscited by 243
  10. 2020Explaining by Removing: A Unified Framework for Model Explanationcited by 218
  11. 2020A Diagnostic Study of Explainability Techniques for Text Classificationcited by 159
  12. 2021Guided Integrated Gradients: An Adaptive Path Method for Removing Noisecited by 102
  13. 2022A Consistent and Efficient Evaluation Strategy for Attribution Methodscited by 102
  14. 2024Decoding-Time Language Model Alignment with Multiple Objectivescited by 94
  15. 2022Interpreting Language Models with Contrastive Explanationscited by 92
  16. 2024FaithEval: Can Your Language Model Stay Faithful to Context, Even If "The Moon is Made of Marshmallows"cited by 86
  17. 2024SPA-VL: A Comprehensive Safety Preference Alignment Dataset for Vision Language Modelcited by 85
  18. 2024Contrastive Region Guidance: Improving Grounding in Vision-Language Models without Trainingcited by 64
  19. 2024Reducing Hallucinations in Vision-Language Models via Latent Space Steeringcited by 59
  20. 2024MADTP: Multimodal Alignment-Guided Dynamic Token Pruning for Accelerating Vision-Language Transformercited by 54
  21. 2022Rethinking Stability for Attribution-based Explanationscited by 52
  22. 2021Towards the Unification and Robustness of Perturbation and Gradient Based Explanationscited by 47
  23. 2024Nullu: Mitigating Object Hallucinations in Large Vision-Language Models via HalluSpace Projectioncited by 46
  24. 2025A Unified Understanding and Evaluation of Steering Methodscited by 46
  25. 2025Multi-Attribute Steering of Language Models via Targeted Interventioncited by 46
  26. 2024Immune: Improving Safety Against Jailbreaks in Multi-modal LLMs via Inference-Time Alignmentcited by 44
  27. 2023Explaining How Transformers Use Context to Build Predictionscited by 43
  28. 2021Combining Feature and Instance Attribution to Detect Artifactscited by 38
  29. 2024Frustratingly Easy Test-Time Adaptation of Vision-Language Modelscited by 36
  30. 2024Gradient based Feature Attribution in Explainable AI: A Technical Reviewcited by 34
  31. 2024ICT: Image-Object Cross-Level Trusted Intervention for Mitigating Object Hallucination in Large Vision-Language Modelscited by 30
  32. 2023AD-KD: Attribution-Driven Knowledge Distillation for Language Model Compressioncited by 26
  33. 2024Householder Pseudo-Rotation: A Novel Approach to Activation Editing in LLMs with Direction-Magnitude Perspectivecited by 23
  34. 2025LVPruning: An Effective yet Simple Language-Guided Vision Token Pruning Approach for Multi-modal Large Language Modelscited by 23
  35. 2025Bayesian Test-Time Adaptation for Vision-Language Modelscited by 22
  36. 2025BLEUBERI: BLEU is a surprisingly effective reward for instruction followingcited by 17
  37. 2024Attribution Analysis Meets Model Editing: Advancing Knowledge Correction in Vision Language Models with VisEditcited by 14
  38. 2024Non-Linear Inference Time Intervention: Improving LLM Truthfulnesscited by 9

50 most cited of 51 All 51 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 6.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026COLD-Steer: Steering Large Language Models via In-Context One-step Learning Dynamics
  2. 2026Tracing the Evidence: Faithful Token Attribution Through Vision-Language Reasoning
  3. 2025Self-Improving Model Steering
  4. 2026Where to Steer: Input-Dependent Layer Selection for Steering Improves LLM Alignment
  5. 2026Zooming without Zooming: Region-to-Image Distillation for Fine-Grained Multimodal Perception
  6. 2026Hessian-Enhanced Token Attribution (HETA): Interpreting Autoregressive LLMs
  7. 2026Steering Vector Fields for Context-Aware Inference-Time Control in Large Language Models
  8. 2025Token-Level Inference-Time Alignment for Vision-Language Models