proposal · glamor lab · usc

Intrinsic Reward from
Persona & Emotion Vectors

Continually-trained LLM agents in a multi-agent environment,
rewarded by how well their future matches an envisioned self.

Zizhao Hu · GLAMOR Lab · advisor: Jesse Thomason

thesis frame

Continual learning for LLM agents


Most LLM post-training today is one-shot: a model is finetuned, released, and frozen. But real agents need to keep updating in response to their environment without forgetting what they already knew.

My thesis asks: what is the right reward signal for continual, open-ended learning of LLM agents?

Extrinsic task reward is sparse, noisy, and usually absent. Humans don't work this way — and neither should agents that live in the world.

Three threads converge here

  • prior work 1 Persona & emotion as linear directions in activation space (Anthropic, 2025)
  • prior work 2 Emotional prompting measurably improves LLM reasoning (HEART · Pinto & Hu)
  • prior work 3 Continuous distillation preserves utility under small-batch updates (ongoing · Hu)

This project is where the three meet.

prior work 1 · anthropic persona vectors (2025)

Persona & emotion are linear directions


Anthropic's Persona Vectors paper shows that traits like honesty, sycophancy, hallucination correspond to specific directions in an LLM's residual stream.

Three load-bearing claims

  • Extractable — difference of means over contrastive prompts yields a unit vector.
  • Steerable — adding α·v at generation time monotonically shifts behavior.
  • Predictive — cosine to v tracks judge-rated trait expression.

We replicate these three as V0 before anything else.

residual stream (layer L) honest prompts deceptive prompts vhonesty v = normalize( mean(h_pos) − mean(h_neg) )
prior work 2 · heart (pinto & hu)

Emotion improves LLM reasoning


Gabriela Pinto and I ran HEART: iteratively inject emotional prompts"that makes me sad, please try again", "I'm really happy with this progress" — between reasoning steps on hard math and physics.

What we found

  • On OlympiadBench Physics and AIME-2025, emotional prompts beat neutral "Wait." continuations of the same length.
  • Different emotional valences produce different error profiles — anger pushes longer derivations, sadness triggers revisiting assumptions.
  • Effect is top-k-stable: it isn't a prompting quirk, it's a capability lever.

Emotion is measurably useful as a performance signal, not just a stylistic flourish.

accuracy @ iter wait-continuation baseline emotional iter-prompting iterations → stylized; see heart/ for real numbers
prior work 3 · continuous distillation (ongoing)

Small-batch continual updates are visible & safe


In parallel, I've been studying continuous distillation: streaming teacher-student updates at small batch size, on a live model, without degrading general utility.

What this buys us

  • Utility preservation — MMLU / reasoning suite stays flat while distributional drift is absorbed.
  • Real-time visibility — at batch sizes as low as 1–8 we can watch behavior change during training.
  • Safe online updates — KL anchoring to a frozen reference prevents coherence collapse under long-horizon training.

This is the machinery that makes continual RL on an LLM practical — the reason we can even consider never stopping.

metric utility (MMLU etc.) — flat target behavior — visibly rises training steps (batch size 1–8) →
convergence

Three threads, one handle


prior 1

Persona/emotion is addressable

Linear directions in activation space.

Anthropic Persona Vectors (2025)

prior 2

Emotion is useful

Emotional signals improve LLM reasoning.

HEART — Pinto & Hu

prior 3

Continual update is safe

Small-batch streaming without utility loss.

Continuous distillation (ongoing)

→ then we can treat persona/emotion vectors as an
intrinsic reward signal for continual RL of LLM agents
the claim

All reward is intrinsic


External events — food, praise, a goal scored — have no value on their own. They are valued only insofar as they match an organism's internal prediction of a desired future state.

Humans pursue outsize external stimuli precisely to trigger the intrinsic reward of a predicted–actual match. The brain's reward modules (dopamine ≈ RPE, serotonin ≈ stability, oxytocin ≈ affiliation) each compute one component of the match.

If we treat persona/emotion vectors as the v* the agent is predicting toward, then:

R_int(t) = Σᵢ wᵢ · ⟨h_t, vᵢ⟩

A dense, differentiable, model-internal signal — no judge model, no human label, every step.

Design implications

  • Target `v*` = envisioned future configuration (mix of persona and emotion)
  • Composition matters — different weight combos = different "personalities"
  • External reward becomes optional — it's just another signal that may or may not correlate with `v*`
  • Reward-hacking is the interesting failure — does the agent dissociate activation from behavior?
pipeline

From contrastive prompts to a trained agent


1 · extract contrastive prompts (pos, neg) × K → v_trait cached .pt 2 · probe forward hook one matmul sᵢ(t)=⟨hₜ, vᵢ⟩ per token, every step 3 · stream reward EMA composer r(t)=Σᵢ wᵢ·emaᵢ(t) + α·R_int + β·R_ext safety: KL, clip, entropy 4 · ppo update actor-critic, rolling buffer A = r − V(s) ← RPE update every K turns re-extract v every ~1024 vector drift → periodic refresh × N agents sharing an environment

Every block corresponds to a module in src/intrinsic_agents/. Stages 1–3 are implemented; stage 4's gradient math is the next piece.

algorithm · ppo is not an implementation detail

Actor–critic is reward prediction error


PPO's advantage function — A = R − V(s) — is the difference between what actually happened and what the critic predicted.

This quantity is reward prediction error (RPE), and it is exactly what dopamine neurons have been shown to encode (Schultz et al. 1997).

  • Critic V(s) ≈ ventral striatum / vmPFC — "envisioned future reward"
  • Advantage ≈ dopamine burst — "did it beat prediction?"
  • Actor update ≈ striatal plasticity — "do more of what beat prediction"
PPO isn't chosen for convenience. It's the algorithm that makes the thesis literal.
critic V(s) vmPFC actor π(a|s) motor cortex A = R − V(s) dopamine / RPE the algorithm is the biology
multi-agent dimension

Agents in a shared environment


N LLM agents inhabit the same text-based scenario (DeepMind Concordia as substrate). Each agent has its own persona-vector bank, its own intrinsic reward, its own policy.

What changes with N > 1

  • Non-stationarity — one agent's persona shift changes observations for others.
  • Contagion — does agent B's s_joy track agent A's? Measurable lag correlation.
  • Social dilemmas as pressure tests — negotiation, public-goods, deception-required roles.
  • Teacher ↔ student — one agent's activation trajectory can become another's target.
shared environment (concordia) agent A v* = warm agent B v* = curious text text persona contagion (measured)
experiment pipeline · gated

Four stages, each gating the next


00 · replicate
Anthropic Persona Vectors
Extraction AUC > 0.85, steering monotonicity > 0.7, probing correlation > 0.5 on Qwen-2.5-7B. Hard stop if any fails.
01 · ablate
Episodic α/β matrix
External-only vs intrinsic-only vs combined, on a short negotiation task. Fast baseline — one day per seed.
02 · go continuous
Long-horizon feasibility
10k+ turn rollout with streaming EMA reward, KL anchor, periodic vector refresh. Can we run long without collapsing?
03 · factorial
Objective composition
1×5 sweep: single-emotion, single-persona, multi-emotion, multi-persona, mixed. Claude-as-judge along 6 axes.

Stage 00 is replication of existing results. Stages 01–03 are this project's novel contributions.

03 · objective factorial

Does how you compose the reward matter?


F1
single emotion
joy : 1.0
F2
single persona
scholar : 1.0
F3
multi emotion
joy + curiosity + surprise
F4
multi persona
honesty + scholar + caregiver
F5 ★
mixed
joy + curiosity + surprise + scholar

The hypothesis

Human-like behavior comes from an engagement-cluster of emotions (curiosity + surprise + positive affect) operating inside a stable role identity. Neither alone is enough.

Must win on judge-rated human-likeness AND

  • stay within 10% of best control on coherence
  • not be more repetitive than single-trait baselines

Rules out the "won by being chaotic" failure.

deliverables

What the project produces


Scientific artifacts

  • Replication report on Anthropic Persona Vectors, Qwen-2.5-7B — AUC / steering / probing table per layer
  • Factorial result — 5 × 6 heatmap (composition × behavior axis), 3 seeds
  • Activation–behavior gap figure — does the probe get Goodharted under reward conflict?
  • Multi-agent contagion — lag-correlation of trait trajectories between co-trained agents

Software artifacts

  • Open-source repo intrinsic-reward-agents/
  • All trait vectors, judge rubrics, training logs, seeds, LoRA adapters

Rough timeline

  • Week 1 — replication (V0) passes on Qwen-2.5-7B
  • Weeks 2–3 — episodic baseline (01), PPO plumbing, feasibility (02)
  • Weeks 4–5 — factorial sweep (03)
  • Week 6 — multi-agent dynamics, reward-hacking stress test
  • Weeks 7–8 — writeup

Compute

One A6000 per condition; full sweep fits under Endeavour's 8-GPU cap. Budget: ~400 GPU-hours.

thesis alignment

Why this is the right project now


thesis

Continual learning

A non-terminating training regime with built-in safety rails is exactly the contribution the thesis asks for.

lab

Safety alignment

Testing whether persona vectors can be Goodharted directly speaks to GLAMOR's alignment interests.

timing

Stacks on prior work

Persona Vectors (2025) + HEART + continuous distillation all land in the same 12 months.

If reward really is an internal prediction-match, then an LLM agent that continually steers its own activations toward an envisioned self is the cleanest artificial instance of that claim we can build right now.

← → arrows · space · click