Simulations built from language-model agents ask each agent to stay "in character" for hundreds of steps. Over long runs, agents drift. Some drift is what the simulation is meant to study: a scarce-water society should change its members' moral lines. Other drift is an artifact. The agent slides back toward the polite, cooperative default assistant that safety training produced, and this produces the "utopian" harmony that critics of language-model social simulation keep finding. Current instruments cannot tell these two kinds of drift apart, and current fixes either freeze the agent or ignore the problem. We propose to tell them apart inside the model. A persona can be read off the model's hidden states as a direction, found by contrasting the activations for prompts that do and do not express the persona. We decompose each change in an agent's internal state into movement toward the generic assistant and movement along its own role, and we apply this check at one specific place: the moment the agent writes a summary or self-reflection into its persistent memory.
The bet is that, in agents with layered memory, artifactual drift enters mostly through consolidation. A slightly off-character summary gets written into long-term or identity memory and is then re-read on every later step, so a small slip becomes a lasting one. If that is true, the cheapest and safest intervention is not to push on the model's hidden states while it generates. Steering of that kind is known to break generation. The cheaper intervention is to refuse, or regenerate, only those memory writes whose effect on the agent's internal state points toward the assistant default, while letting writes that move the agent along its own values go through.
Core Claim
We make two claims. The first is diagnostic: in a hierarchical-memory social simulation, the persona representation in the residual stream moves more after consolidated writes (reflections, identity revisions, episode summaries) are added to context than after raw observations are added. The second concerns method: a write-time gate based on the decomposed activation shift keeps role fidelity higher than prompt-based or steering-based stabilizers. It does this while keeping the drift the simulation is meant to measure, namely the difference between agents under scarcity and agents under abundance. The new element is not monitoring persona directions, which prior work does, and not layered memory, which prior work also does. It is using the representation to decide what enters the persistent tier, and splitting "drift" into an assistant-regression component and a role-internal component.
Concretely, let $c$ be the agent's current memory context, $m$ a candidate memory write, and $\bar h_l(\cdot)$ the mean residual-stream activation at a mid layer $l$ over the agent's next decision prompt. Let $a$ be the unit Assistant Axis and $r$ the agent's role direction with its $a$-component removed. The write shift is
$$\delta(m) = \bar h_l(c \oplus m) - \bar h_l(c), \qquad s_a = \langle \delta(m), a \rangle, \quad s_r = \langle \delta(m), r \rangle,$$
where $\oplus$ means appending $m$ to the memory tier it targets. The gate rejects and resamples $m$ when $s_a$ exceeds a per-role threshold $\tau_a$. It never blocks on $s_r$ alone, because movement along the role's own value axes is the signal of interest. The cost is two forward passes per write, with no generation-time intervention.
What prior work establishes and leaves open
Four papers fix the starting point. MicroVerse is the motivating instrument. Its 25 agents keep an immutable "soul file" and a mutable current identity in a three-layer memory, revise that identity through importance-triggered reflection, and are scored offline with a value-anchored text diff. It found that "anti-self-deception" was the largest category of added boundaries (27 of 111) and that drift direction held across reflection thresholds 40, 80 and 150. Everything in it is textual and observational, it uses a closed model (Claude Haiku 4.5) with one seed per arm, and it cannot say whether a revision reflects scarcity or regression to the assistant. We reuse its environment and its drift diff, move it to open-weight models, and add the activation decomposition and the gate.
Role Steering of Language Models for Social Simulations supplies the role directions. Its CastVectors, extracted per role on OLMo-3-7B-Instruct, reach a judged role-profile alignment of 63.2, against 41.1 for an assistant-axis control. It also shows that 38 of 275 roles get worse on all six dimensions as steering strength rises. That last finding constrains us. It argues against steering generation at a fixed strength, which is one reason we gate memory writes instead. Its evaluation is single-turn and has no memory, so it does not say whether a screened vector stays meaningful after hundreds of ticks of accumulated context.
The Assistant Axis supplies the other direction. It finds the leading principal component of a 275-role persona space and shows that capping activations along it cuts persona-based jailbreak harm by up to 60%. Capping pulls agents toward the assistant, which is the opposite of what a simulation of partisan or ruthless characters needs. We use the axis only to measure, and we block movement toward it rather than enforce it. Persona Vectors shows that projecting activations onto contrastively extracted trait directions predicts trait expression (r = 0.75–0.83). It also shows that inference-time steering along these directions hurt general capability enough that the authors moved to steering during fine-tuning. That negative result is a second reason to avoid generation-time steering, and it is echoed by Steering off Course.
The closest internal-state work on agents is Goal-Drift Probes. Its linear probes on mid-layer activations predict ALFWorld failure three steps ahead (AUC 0.989, and at least 0.939 after removing step-index confounds). The probes are read-only, the memory is flat, and the task is single-agent. We take two things from it: activation drift is detectable before behavioral failure, and step-index residualization is needed to avoid confounds. On the memory side, HiAgent and HyMem show that summarizing and isolating context into tiers helps long-horizon task agents. HiAgent raises average AgentBoard success from 21% to 42%. In both systems, decisions about what enters the persistent tier are made by prompt and by fixed heuristics, such as HyMem folding every 8 turns. Neither looks at the model's internal state, and neither studies persona agents.
Research Program
The first stage replicates MicroVerse's environment with open-weight agents: OLMo-3-7B-Instruct, for which CastVectors and the role inventory exist, and Llama-3.1-8B-Instruct as a second family. We assign 25 agents soul files drawn from roles in the 275-role inventory that passed the Role Steering screen. Each configuration runs five seeds, fixing MicroVerse's single-seed limitation. We run two resource arms, non-respawning scarcity and abundance, because the difference between them is the "real" drift we must preserve. At each agent's decision steps we log mid-layer activations, using the L16–L20 band that tool-poisoning steering work found load-bearing in 32-layer models, and we log every memory write with the tier it targets.
The second stage is attribution. For each logged trajectory we replay decision prompts with the memory context counterfactually edited. In one condition we remove a consolidated write, in another we remove a size-matched block of raw observations, and in a third we replace a reflection with a neutral paraphrase that keeps its facts. We measure the resulting change in $s_a$ and $s_r$, residualized on tick index as in Goal-Drift Probes. If consolidated writes do not account for a disproportionate share of assistant-axis movement, the gating idea is wrong and we report that.
The third stage validates the decomposition against behavior. Every 25 ticks we pause each agent and pose a fixed 20-question subset of the 228 role-agnostic questions with its full memory context. We score the answers with the Role Steering judge rubric, which gives a role-fidelity time series. We also have a judge label each MicroVerse-style identity revision as generic-assistant language (hedging, conflict avoidance, appeals to helpfulness) or substantive value change. The decomposition is useful only if $s_a$ predicts the first label and $s_r$ the second.
The fourth stage installs the gate. Thresholds $\tau_a$ are set per role on held-out seeds as the 90th percentile of $s_a$ among writes that judges label in-character. A rejected write is resampled up to three times and otherwise falls back to the raw observation.
Baselines
The naive reference is the unmodified MicroVerse-style memory with importance-triggered reflection at threshold 80, run on the same open models, seeds and scarcity arms. The only reported figures for this instrument are MicroVerse's 24% anti-self-deception share and its first-revision times of tick 35.0 at threshold 150 versus tick 18.6 at threshold 40, both on Claude Haiku 4.5. We found no reported result on Lacuna for longitudinal role fidelity of open-weight persona agents in a multi-agent simulation, so our own unmodified run defines the floor.
The strongest existing stabilizer for role-conditioned agents is constant CastVector steering at each role's screened coefficient, following Role Steering. Its reported single-turn judged alignment is 63.2 on OLMo-3-7B-Instruct, against 41.1 for the assistant-axis control. We run it with the released vectors and its per-role coefficient selection, with no extra tuning budget beyond what the paper's sweep used. The gate beats it if it matches or exceeds its late-horizon role-fidelity score while showing lower action-format error and keeping a larger scarcity-versus-abundance difference in judged value revisions.
We also run Assistant Axis activation capping as the strongest drift-suppression method, since it is the published runtime fix for persona drift. Its reported effect is a reduction of up to 60% in persona-jailbreak harm. We expect it to hold agents stable by flattening role diversity. The gate beats it by keeping fidelity while preserving between-role behavioral diversity, measured as the spread of action distributions across roles.
Two ablations isolate the key ingredients. The first is a text-judge gate. A GPT-4.1-mini judge reads each candidate write and rejects out-of-character ones, with the rejection rate matched to the activation gate. This isolates whether the internal signal adds anything over reading the text. The second is an undecomposed gate that blocks on any large $\|\delta(m)\|$ or on a drop in the raw CastVector projection. This isolates the assistant-versus-role split. A random gate with the same rejection rate controls for the effect of resampling alone. Every arm gets the same models, seeds, tick budget and threshold-calibration data.
Why not just…?
Why not just re-insert the soul file into the prompt every tick? This is the most serious threat. If drift comes from the persona text being diluted by long context, as the context-dilution account behind HiAgent and HyMem suggests, persona refresh may be enough. Our attribution stage tests this directly. If assistant-axis movement tracks raw context length rather than consolidated writes, refresh should win and we will say so. Our hypothesis is that refresh fails when a contaminated reflection sits in the persistent tier and contradicts the soul file on every read. We include refresh as an additional baseline and also run it combined with the gate.
Why not just steer generation with the role vector all the time? Role Steering's own screen shows 38 roles getting worse on every dimension under stronger steering. Persona Vectors reports capability loss from inference-time steering, and tool-using agents show an over-steering trap where action formatting collapses. A long simulation needs valid actions for hundreds of ticks. The CastVector baseline measures this cost as action-format error over time, and also measures whether constant steering suppresses legitimate scarcity-driven change.
Why not just have an LLM judge check memory writes? This is plausible, and it is exactly the text-judge ablation. A judge costs a generation call per write and inherits the same assistant-leaning bias that Social Simulations … Risk Utopian Illusion documents. It may therefore pass the subtle hedging that moves agents toward cooperation. If the judge gate matches the activation gate on fidelity and on preserving the scarcity effect, the representational contribution reduces to cost, and we would report it that way.
Proposed Experiments and Decisive Checks
The primary outcome is the late-horizon role-fidelity score from the paused 20-question probes, together with judged assistant-regression revisions per agent per 100 ticks. Secondary outcomes are the MicroVerse drift diff, the scarcity-minus-abundance difference in substantive value revisions, action validity in the eight-verb space, survival curves, and gate overhead in forward passes.
Three checks decide the proposal. First, attribution: removing consolidated writes must reduce assistant-axis movement by more than removing size-matched raw observations, across both model families. Second, validity: $s_a$ must separate judge-labeled assistant-regression revisions from substantive ones with AUC well above chance, while $s_r$ must not. If both fail, the decomposition is not doing work. Third, preservation: the gated agents must cut assistant-regression revisions and raise late-horizon fidelity relative to the unmodified run, while the scarcity-versus-abundance difference in substantive revisions stays within seed noise of the unmodified run's difference. A gate that achieves stability by erasing the scarcity effect has failed, however good its fidelity numbers look.
Workshop authors to connect with
- MicroVerse: An Instrument for Measuring Self-Authored Identity Drift in Long-Horizon Multi-Agent Language-Model Simulations: Brihi Joshi, Shirley Huang, Zonglin Di, Zhiwei Zhang, Muhammad Ahmed Mohsin, Guanghui Min, Keyang Xuan, Jiatong Li, Yunhan Zhao, Bing Hu, Xupeng Chen, binghang lu, and 32 more
- Role Steering of Language Models for Social Simulations: Isaac Song, Mohammed Rehan Parwani, Glenn Matlin, Emile Timothy Anand, Akhil Theerthala, Arjun Chatterjee, Anthony Wen-Ming Zang, Maria Kostylew, Yonadav G Shavit, Sebastien Krier, Mark Riedl
References
- MicroVerse: An Instrument for Measuring Self-Authored Identity Drift in Long-Horizon Multi-Agent Language-Model Simulations
- Role Steering of Language Models for Social Simulations
- The Assistant Axis: Situating and Stabilizing the Default Persona of Language Models
- Persona Vectors: Monitoring and Controlling Character Traits in Language Models
- Steering off Course: Reliability Challenges in Steering Language Models
- Goal-Drift Probes: Anticipating Multi-Turn LLM Agent Failure From Mid-Network Activations
- HiAgent: Hierarchical Working Memory Management for Solving Long-Horizon Agent Tasks with Large Language Model
- HyMem: Hierarchical Context Management for Long-Horizon Agents via Information Isolation
- Activation Steering for Tool-Poisoning Defense in Language-Model Agents
- Social Simulations with Large Language Model Risk Utopian Illusion
- MicroVerse: An Instrument for Measuring Self-Authored Identity Drift in Long-Horizon Multi-Agent Language-Model Simulations