AI
New steering technique guides AI model behavior without retraining
GrAInS adjusts language and vision models at inference time using gradient-based token attribution, improving accuracy and reducing hallucinations.
Researchers have developed a method that allows large language models and vision-language models to be steered toward desired behaviors without expensive retraining. The technique, called GrAInS, operates during inference by identifying which input tokens most influence model outputs and using that information to adjust internal activations.
How it works#
GrAInS employs a gradient-based approach to rank input tokens by their causal contribution to model predictions. Rather than applying fixed intervention vectors across all layers, the method uses Integrated Gradients to distinguish tokens that push the model toward preferred versus dispreferred outputs. The system then constructs directional steering vectors that guide the model from undesirable to desirable behavior.
During inference, GrAInS modifies hidden activations at specific transformer layers, guided by token-level attribution signals. It also normalizes these adjustments to maintain the model's representational scale—preventing the steering process from distorting internal representations or degrading performance.
Multimodal capability#
Unlike earlier steering approaches designed for text-only models, GrAInS extends to vision-language systems, where visual and textual inputs contribute unevenly to outputs. This multimodal awareness allows the method to apply more nuanced control when both image and text information flow through the model.
Empirical results#
Testing across multiple benchmarks showed consistent gains:
- TruthfulQA (Llama-3.1-8B): 13.22% accuracy improvement
- MMHal-Bench (LLaVA-1.6-7B): hallucination rate reduction from 0.624 to 0.514
- SPA-VL alignment: 8.11% improvement in win rates
The improvements held without sacrificing the model's fluency or general capabilities—a key advantage over approaches that require auxiliary supervision or model fine-tuning.
Why it matters#
Inference-time steering offers a practical middle ground: it delivers behavioral changes comparable to fine-tuning but without the computational cost or need for retraining. By grounding steering in token-level attribution rather than global vectors, GrAInS provides more interpretable and modular control, making it easier to understand why the model is behaving a certain way.

