LGCLCYFeb 15, 2024

Representation Surgery: Theory and Practice of Affine Steering

arXiv:2402.09631v740 citationsh-index: 46ICML
Originality Incremental advance
AI Analysis

This work addresses the issue of controlling harmful outputs in language models for AI safety and fairness, presenting an incremental improvement over existing steering methods.

The paper tackled the problem of undesirable behaviors like toxicity and bias in language models by developing optimal affine steering functions to transform model representations, resulting in effective mitigation of bias and toxic generation as demonstrated empirically.

Language models often exhibit undesirable behavior, e.g., generating toxic or gender-biased text. In the case of neural language models, an encoding of the undesirable behavior is often present in the model's representations. Thus, one natural (and common) approach to prevent the model from exhibiting undesirable behavior is to steer the model's representations in a manner that reduces the probability of it generating undesirable text. This paper investigates the formal and empirical properties of steering functions, i.e., transformation of the neural language model's representations that alter its behavior. First, we derive two optimal, in the least-squares sense, affine steering functions under different constraints. Our theory provides justification for existing approaches and offers a novel, improved steering approach. Second, we offer a series of experiments that demonstrate the empirical effectiveness of the methods in mitigating bias and reducing toxic generation.

Code Implementations1 repo
Foundations

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

Your Notes