CLAILGOct 15, 2024

Improving Instruction-Following in Language Models through Activation Steering

CMU
arXiv:2410.12877v2127 citationsh-index: 27Has CodeICLR
Originality Incremental advance
AI Analysis

This provides a practical and scalable method for fine-grained control in language generation, addressing a key challenge for real-world applications of language models, though it is incremental as it builds on existing activation steering techniques.

The paper tackles the problem of improving instruction-following in language models by using activation steering derived from differences in activations with and without instructions, resulting in enhanced adherence to constraints like output format and length across four models.

The ability to follow instructions is crucial for numerous real-world applications of language models. In pursuit of deeper insights and more powerful capabilities, we derive instruction-specific vector representations from language models and use them to steer models accordingly. These vectors are computed as the difference in activations between inputs with and without instructions, enabling a modular approach to activation steering. We demonstrate how this method can enhance model adherence to constraints such as output format, length, and word inclusion, providing inference-time control over instruction following. Our experiments across four models demonstrate how we can use the activation vectors to guide models to follow constraints even without explicit instructions and to enhance performance when instructions are present. Additionally, we explore the compositionality of activation steering, successfully applying multiple instructions simultaneously. Finally, we demonstrate that steering vectors computed on instruction-tuned models can transfer to improve base models. Our findings demonstrate that activation steering offers a practical and scalable approach for fine-grained control in language generation. Our code and data are available at https://github.com/microsoft/llm-steer-instruct.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes