cs.CLMar 1, 2026

Spectral Attention Steering for Prompt Highlighting

Authors: Weixian Waylon Li, Yuchen Niu, Yongxin Yang, Keshuang Li, Tiejun Ma, Shay B. Cohen

Organizations: University of Edinburgh, UK · RayNeo, China · Queen Mary University of London, UK · Huawei Research Ltd., UK

Abstract

Attention steering is an important technique for controlling model focus, enabling capabilities such as prompt highlighting, where the model prioritises user-specified text. However, existing attention steering methods require explicit storage of the full attention matrix, making them incompatible with memory-efficient implementations like FlashAttention. We introduce Spectral Editing Key Amplification (SEKA), a training-free steering method that tackles this by directly editing key embeddings before attention computation. SEKA uses spectral decomposition to steer key embeddings towards latent directions that amplify attention scores for certain tokens. We extend this to Adaptive SEKA (AdaSEKA), a query-adaptive variant that uses a training-free routing mechanism to dynamically combine multiple expert subspaces based on the prompt's semantic intent. Our experiments show both methods significantly outperform strong baselines on standard steering benchmarks while adding much lower latency and memory overhead, in compatibility with optimised attention.

Figures & tables

Appendix figures & tables16 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. PRISM-ΔΔ: Differential Subspace Steering for Prompt Highlighting in Large Language Models

    Mar 11, 2026Yuyao Ge, Shenghua Liu, Yiwei Wang +5Language Model SteeringLLM Prompting

  2. Don't Lose Focus: Activation Steering via Key-Orthogonal Projections

    May 7, 2026Haoyan Luo, Mateo Espinosa Zarlenga, Mateja JamnikLanguage Model SteeringSelf-Attention

  3. Steer Like the LLM: Activation Steering that Mimics Prompting

    May 5, 2026Geert Heyman, Frederik VandeputteLanguage Model SteeringLLM Prompting