AI
Framework Locates Key Circuits in AI Models for Safer Steering Without Parameter Changes
Researchers developed REAL, a technique that pinpoints which internal components of large language models influence specific behaviors, enabling more targeted and effective control at inference time.
Controlling the outputs of large language models without retraining them is a growing challenge in AI safety. A research effort from arXiv introduces REAL, a method designed to solve a core problem: identifying which internal circuits in a Transformer model actually drive the behaviors we want to steer.
The Core Challenge#
Most existing approaches to inference-time steering—changing what an LLM says without modifying its weights—struggle to pinpoint which attention heads or layers matter most. They typically resort to crude heuristics or trial-and-error approaches, often leading to clumsy interventions that either don't work as intended or cause unintended side effects. The real difficulty lies in mapping behavior down to specific modules inside the network.
How REAL Works#
The method trains a vector-quantized autoencoder (VQ-AE) on the activations flowing through each module in the Transformer. These autoencoders use a shared, learnable codebook to split the latent space into regions linked to desired behaviors and regions linked to unwanted ones. REAL then scores each module by measuring how well its encoded signals can distinguish between responses that align with the target behavior and those that don't—using a binary classification metric as the ranking system.
Empirical Results#
The team tested REAL across eight language models from the Llama and Qwen families using nine different datasets. Targets included truthfulness enhancement, open-domain question-answering under knowledge conflicts, and general alignment tasks. REAL achieved an average 20% improvement over an existing method called ITI, with some scenarios showing gains as high as 81.5%. Notably, the modules it identified also generalized well to different truthfulness-steering tasks without retraining, suggesting the approach captures genuinely behavior-relevant structure rather than overfitting to specific scenarios.
Implications#
This work offers a path toward more transparent and reliable control over language model behavior at inference time. By systematically identifying which internal components govern specific behaviors, the approach could help AI developers steer models toward desired properties—truthfulness, safety, alignment—while maintaining model performance and avoiding unintended consequences.

