Controlling Large Language Model Agents with Entropic Activation Steering

Nate Rahn, Pierluca D'Oro, Marc G. Bellemare

TL;DR

LLM agents are notoriously overconfident, often committing to a single course of action in decision-making tasks before gathering enough evidence. This paper introduces Entropic Activation Steering (EAST), a method that identifies and manipulates internal "uncertainty" representations to increase action entropy, successfully guiding agents toward more rational, exploratory behavior where standard temperature sampling fails.

What Problem Does This Paper Address?

When we deploy Large Language Models (LLMs) as autonomous agents, we expect them to act like scientists: exploring their environment, gathering data, and only committing to a strategy once they are confident. However, recent research shows LLM agents suffer from "premature commitment." In a multi-armed bandit task (choosing between options with unknown rewards), an LLM might try one option, get a decent result, and then refuse to ever try the other—even if the rewards are statistically identical.

The authors point out a fundamental disconnect: we usually control LLM randomness via token-level temperature, but agent decisions happen at the action level (after parsing the model's text). Increasing temperature often just leads to garbled text or invalid actions rather than smarter exploration. The core challenge is finding a way to control the high-level "belief" or "uncertainty" that drives an agent's choices.

Methods

The authors propose Entropic Activation Steering (EAST), a two-phase approach to representation-level control:

  1. Phase 1: Vector Construction. The researchers let an agent interact with a task and record its internal activations ($z$) at the specific layer and token position just before it makes a decision. They also estimate the action entropy ($h$)—a measure of how uncertain the agent is—by sampling multiple completions for that same prompt. They then compute a "steering vector" ($u$) by taking an entropy-weighted average of these activations, centered around the mean activation of each run.
  2. Phase 2: Intervention. During new interactions, they add this steering vector (multiplied by a scaling factor $\beta$) to the model's activations at a target layer.

Unlike previous "activation addition" methods that use discrete labels (e.g., "honest" vs. "dishonest"), EAST uses a continuous signal (entropy) to find the specific direction in the model's latent space that corresponds to subjective uncertainty.

Overview of the EAST method, showing how steering vectors are computed from entropy-weighted activations and applied to influence generation.

Datasets

The study primarily uses Gaussian Multi-Armed Bandits described in natural language.

  • Task Variants: The "Buttons" task (choosing between two buttons) and the "Slot Machines" task (choosing between two machines). While the underlying math is the same, the linguistic framing differs.
  • Models: The method was validated on Mixtral-8x7B and DBRX, two high-performing open-weight LLMs.

Key Insights and Ideas

  • Uncertainty is an Abstract Concept: The most striking finding is that steering vectors generalize. A vector calculated on the "Buttons" task works perfectly when applied to the "Slot Machines" task. This suggests the LLM has a universal internal representation for "I am uncertain about my next action," regardless of whether it's talking about buttons or gambling.
  • Token Entropy $\neq$ Action Entropy: As shown in Figure 4, cranking up the sampling temperature does almost nothing to stop the agent from overcommitting to one arm. EAST, however, directly shifts the action distribution.
  • The "Middle Layer" Sweet Spot: The authors found that the steering effect is strongest in the middle layers of the network (e.g., layer 16 of 32 for Mixtral). This aligns with other research suggesting that high-level semantic concepts are processed in the model's "waistline" rather than the very early or late layers.
  • Steering the "Inner Monologue": When EAST is applied to agents using ReAct (Reason + Act) prompting, it doesn't just change the final choice; it changes the model's "thoughts." The steered model begins to use words like "variance," "volatile," and "uncertainty," actively reasoning that it needs more data.
Comparison of an agent's behavior with and without EAST. The steered agent (bottom) expresses uncertainty and chooses to explore, while the default agent (top) is overconfident.

Key Results

  • Increased Exploration: In a "hard" bandit task where both arms have the same mean reward, default LLMs commit to one arm within ~10 steps. Agents steered by EAST continue to explore both options throughout the 50-step horizon.
  • Entropy Control: EAST can increase action entropy from near-zero to the theoretical maximum ($\sim 0.69$ for two arms) without breaking the model's ability to produce valid, well-formatted responses.
  • Robustness: The results were consistent across different model architectures (Mixtral and DBRX), proving that this isn't a quirk of one specific training run but a general property of how these models represent decision-making.
Cumulative sum of actions over time. The "With EAST" lines (blue) show much more balanced exploration compared to the "Without EAST" lines (orange) which flatline early.

Limitations and Future Work

  • Task Complexity: The paper focuses on relatively simple bandit tasks. It remains to be seen if EAST can steer exploration in complex, long-horizon environments like open-world games or multi-step software engineering tasks.
  • Vector Discovery: The current method requires an offline phase to collect activations and calculate entropy. Developing "zero-shot" or online methods to identify these steering directions would be a significant leap forward.
  • Causal Link: While the thoughts change alongside the actions, the authors note that the model doesn't always follow its own verbalized logic. Further work is needed to understand the causal hierarchy between the internal representation, the generated thought, and the final action.

Summary updated

BibTeX
@inproceedings{rahn2024controlling,
  author = {Nate Rahn and Pierluca D'Oro and Marc G. Bellemare},
  title = {{Controlling Large Language Model Agents with Entropic Activation Steering}},
  booktitle = {MI @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=3eBdq2n848},
}
Figure