Search papers, labs, and topics across Lattice.
This paper introduces V-Steer, a novel inference-time method that rectifies violations of instruction hierarchies in language models by editing cached value vectors at prompt positions. By utilizing direct logit attribution to identify and adjust the influence of conflicting inputs, V-Steer significantly enhances the accuracy of primary constraints from below 18% to 92% on controlled benchmarks. This approach not only outperforms prompt-only baselines but also matches or exceeds state-of-the-art training-based methods across various model sizes, all while maintaining efficient decoding speeds.
V-Steer boosts the accuracy of language model instruction hierarchies to 92% by intelligently editing cached values without the need for retraining.
Instruction hierarchies are a core safety assumption of language model deployment: higher priority inputs, such as system prompts, should override conflicting lower priority inputs from users or tools. Yet frontier LLMs often violate this hierarchy. We introduce V-Steer, a training-free inference time method that restores privileged influence by editing cached value vectors at prompt positions. Using direct logit attribution on the first next token prediction, V-Steer identifies heads where lower priority spans dominate privileged ones, then boosts privileged spans and suppresses conflicting lower priority spans through in-place multiplicative edits to cached V tensors. Since the method acts only on cached values, it remains compatible with fused attention backends and adds only a one time prefill overhead. Across models from 7B to 70B, this attribution guided intervention raises primary constraint accuracy from under 18% up to 92% on controlled role conflict benchmarks, and on broader instruction hierarchy evaluations substantially outperforms prompt only baselines while matching or exceeding SoTA training based methods on 3 of 4 scales of LLMs, with negligible decoding-speed overhead. The code is available at https://github.com/cindy2000sh/v-steer.