Back to blog

TWIIRL: Token-Wise Interpretable Interventions via Reinforcement Learning

A short write-up of an in-progress project with Stephen Henstrom (UT Austin).

The idea

Activation steering nudges a frozen LLM toward (or away from) a target concept by adding a fixed direction to its residual stream. The standard recipe applies a single scalar coefficient to every token. We argue that this is the dominant factor limiting steering performance: the direction is fine, but the schedule of how strongly to apply it from token to token is not.

We reformulate steering as a token-level decision problem. A small GRU controller observes the residual stream at a fixed intervention layer and emits a per-token coefficient on a fixed diffmeans direction. The underlying LLM is frozen and treated as the environment. The controller is trained with an offline preference objective and an explicit KL trust region against the unsteered model.

Result

On Gemma 2 9B across two persona concepts (“sycophantic” and “self-deprecating”), TWIIRL strictly dominates the fixed-coefficient Persona Vectors baseline on the concept-coherence Pareto frontier: every attainable concept score has a higher coherence under TWIIRL, and vice versa. The controller adds well under 0.01% per-token compute over the base model.

Why it matters

The result implies a lot of the “ceiling” on steering-vector methods is the static schedule, not the vectors. Adaptive control recovers headroom while preserving the interpretability of intervening through a single linear direction.

Write-up coming when the preprint goes up.