Proceedings of the National Academy of Sciences of the United States of America

Efficient and accurate steering of large language models through attention-guided feature learning.

Parmida Davarmanesh, Ashia Wilson, Adityanarayanan Radhakrishnan

Department of Electrical Engineering and Computer Science, Massachusetts Institute of Technology, Cambridge, MA 02142. · Mathematics, Massachusetts Institute of Technology, Cambridge, MA 02142.

Computational

Key points

From the paper's conclusion
  • We introduced an attention-guided framework for activation steering of large language models to overcome challenges with existing brittle methods.
  • Our framework substantially improved steering across 512 semantic concepts and model architectures, nearly doubling the number of successfully steered concepts.
  • Attention-guided feature learning enables efficient and scalable fine-tuning of large language models.

Abstract

Activation steering, or direct manipulation of internal activations to guide large language model (LLM) responses toward specific semantic concepts, is emerging as a promising avenue for both understanding how semantic concepts are stored within LLMs and advancing LLM capabilities. Yet, existing steering methods are remarkably brittle, with seemingly nonsteerable concepts becoming completely steerable based on subtle algorithmic choices in how concept-related features are extracted. In this work, we introduce an attention-guided framework for activation steering that overcomes three core challenges associated with steering: 1) automatic selection of relevant token embeddings for extracting concept-related features; 2) accounting for heterogeneity of concept-related features across LLM activations; and 3) identification of layers most relevant for steering. Across a steering benchmark of 512 semantic concepts, our framework substantially improved steering over previous state-of-the-art (nearly doubling the number of successfully steered concepts) across model architectures and sizes (up to 70 billion parameter models). Furthermore, we use our framework to shed light on the distribution of concept-specific features across LLM layers. Overall, our framework opens further avenues for developing efficient, highly scalable fine-tuning algorithms for industry-scale LLMs.

Read the paper

Discussion · 1

Science Skim's AI key points, plus readers' public thoughts

Science SkimAI key points
Pinned
  • We introduced an attention-guided framework for activation steering of large language models to overcome challenges with existing brittle methods.
  • Our framework substantially improved steering across 512 semantic concepts and model architectures, nearly doubling the number of successfully steered concepts.
  • Attention-guided feature learning enables efficient and scalable fine-tuning of large language models.

Readers' thoughts

No reader thoughts yet.

Related papers