Steering Instruction Hierarchies at Inference Time

Siqi Zeng, Sewoong Lee, Han Zhao, Julia Hockenmaier
7/28/2026
2 citations
cs.CL

Official code: cindy2000sh/v-steer (5 stars, Python, MIT, last commit 2026-07-24).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

[COLM '26] Code repo for the paper entitled "Steering Instruction Hierarchies at Inference Time" at COLM 2026.

50Python, ShellJul 24, 20264 months agoMIT

Similar Papers

Cite this paper

@article{zeng2026steering,
  title  = {Steering Instruction Hierarchies at Inference Time},
  author = {Siqi Zeng and Sewoong Lee and Han Zhao and Julia Hockenmaier},
  year   = {2026},
  eprint = {2607.26228},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.26228v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.26228.svg)](https://codeofpaper.com/paper/2607.26228)

Discussion