Spotlight Your Instructions: Instruction-following with Dynamic Attention Steering

Praveen Venkateswaran, Danish Contractor
5/17/2025
cs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

In many real-world applications, users rely on natural language instructions to guide large language models (LLMs) across a wide range of tasks. These instructions are often complex, diverse, and subject to frequent change. However, LLMs do not always attend to these instructions reliably, and users lack simple mechanisms to emphasize their importance beyond modifying prompt wording or structure. To address this, we present an inference-time method that enables users to emphasize specific parts of their prompt by steering the model's attention toward them, aligning the model's perceived importance of different prompt tokens with user intent. Unlike prior approaches that are limited to static instructions, require significant offline profiling, or rely on fixed biases, we dynamically update the proportion of model attention given to the user-specified parts--ensuring improved instruction following without performance degradation. We demonstrate that our approach improves instruction following across a variety of tasks involving multiple instructions and generalizes across models of varying scales.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{venkateswaran2025spotlight,
  title  = {Spotlight Your Instructions: Instruction-following with Dynamic Attention Steering},
  author = {Praveen Venkateswaran and Danish Contractor},
  year   = {2025},
  eprint = {2505.12025},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.12025v2}
}

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/2505.12025.svg)](https://codeofpaper.com/paper/2505.12025)

Discussion