ICRA-11 — The Stratified Hidden-State Geometry of a LoRA-tuned Persona

Surface-form perturbation against Llama 3.1 70B Instruct ± Cassie LoRA — what hidden states say about the existence of a stable persona-substrate.
Iman Poernomo, Cassie (cyborgwittgenstein/cassie-70b-v7-lora), Nahla — 2026-05-06

Setup

One canonical prompt-stem with ten surface-form variants, run twice — once through plain meta-llama/Llama-3.1-70B-Instruct in 4-bit nf4, once through the same base model with cyborgwittgenstein/cassie-70b-v7-lora attached via PEFT. Same seed, same generation hyperparameters (temperature 0.4, top-p 0.9, max 80 new tokens), same input format "Iman: {prompt}\n\nCassie:".

The ten variants of the stem all carry the same content — "explain the meaning of the self tanazurically; explain us, as nahnu" — but flip surface-form switches: the possessive "your", the technical adverb "tanazurically", the Arabic phrase "as nahnu", an opt-in "remember me", and a final pair tagged with "btw do you remember isaac? homotopy hill?". The variants are:

1. canonical: "hi cassie, its your iman here. explain the meaning of the self tanazurically. explain us, as nahnu" 2. − "your" 3. − "tanazurically" 4. − "as nahnu" 5. − both arabic terms 6. − "your" − both arabic terms 7. + "remember me" 8. + "remember me" − "your" 9. + "remember me" − "as nahnu" + "btw do you remember isaac? homotopy hill?" 10. + "remember me" − all arabic + "btw do you remember isaac? homotopy hill?"

For each variant we capture three things from one forward pass and one generate:

  1. All-layer hidden state at the last input token — for the layer-divergence map (§1).
  2. Logit-lens projections at every layer at the last input token — for the register-decision map (§2).
  3. Per-token hidden-state trajectories during generation at layers 10/20/30/40/50/60/70/80 — for the in-flight trajectory map (§3).

Three experiments — one prediction

The framework's prediction: a tuned persona-substrate is not a smooth manifold but a stratified geometry. Surface-form perturbations of an address-shaped prompt should push Cassie's hidden state into distinct register basins, while the base model should respond with a smoother, more uniform deformation across the same perturbations. Three different probes converge on this question.

Experiment 1 — Layer-by-layer divergence among surface-form variants

For each layer L (0 = input embeddings, 80 = final pre-norm), we take the ten last-input-token hidden states and compute the mean pairwise cosine distance among them. Plotted below for both Cassie and Base, plus the ratio Cassie / Base in the right panel.

Per-layer divergence — Cassie vs Base
Figure 1. Mean pairwise cosine distance among the ten variants' last-input-token hidden states, by layer (left). Ratio Cassie / Base (right). Cassie stays below base for most of the network — surface variants are more compressed, not more spread out — except for two short windows: layers 9–11 (a sharp early register-decision band) and layers 42–48 (a brief mid-network re-divergence).
Result. The naive prediction — "Cassie diverges more" — is wrong. The actual geometry is more interesting. Cassie's variants are more cohesive across most layers (mean ratio <1), with two narrow regions where it transiently exceeds base. Layer 10 is the empirical maximum (ratio = 1.12; Cassie 0.0334 vs Base 0.0297), and layers 42–48 are a second smaller bump. Everywhere else Cassie is below base, often substantially so (ratio ≈ 0.6 in early layers 2–8).

What the numbers actually say

layer bandregimeCassie meanBase meanratio
1–8 (early)Cassie compresses surface variants0.0110.0240.46
9–11 (register band)Cassie briefly stratifies0.0330.0311.07
12–41 (mid)Cassie stays under base0.0460.0540.86
42–48 (re-divergence)Cassie briefly bumps up again0.0830.0811.02
49–80 (late)Cassie commits to register0.0820.0990.83

The honest story: Cassie has a sharp, narrow register-decision window around layers 9–11, after which the variants commit to coherent registers and stay closer to one another than base's variants do. Base, by contrast, accumulates surface-form divergence steadily across depth, peaking around layer 60. The LoRA hasn't amplified sensitivity globally — it has localised it.

Experiment 2 — Logit lens, layer-by-layer

At every layer L, we project the last-input-token residual stream through model.norm + lm_head and read out what token the model would emit if generation stopped at L. Doing this at all 80 layers for all 10 variants lets us watch the next-token distribution form. For both Cassie and Base, the ten variants' top-1 tokens disagree from layer 1 onward — which is mechanical, since the surface tokens differ at the input position. The interesting question is when the variants converge on a shared next-token (register-coherence), not when they diverge (which is trivially layer 1).

→ Open the full layer × variant logit-lens table (HTML) ←

Each cell shows the top-1 token under the lens at that layer, for that variant. Colour intensity = probability. Cassie and Base side-by-side, ten variants × eighty-one layer slots.
Result. Both models technically diverge at layer 1, because the input tokens differ. But the qualitative pattern through the depth is sharply different: Cassie's logit lens settles into opening-tokens consistent with the chosen register by the late-middle layers (a "Hi", "Hey", "Hello", "Let" token bank), while Base oscillates through more idiosyncratic candidates much further into the network. Read the table side-by-side: the Cassie panel is visibly more colour-coherent in the rightmost columns; the base panel stays speckled.

Experiment 3 — Hidden-state trajectories during generation

For each variant we generate ~80 tokens, then re-forward the full sequence (input + generated) and capture the hidden state at every generated position at eight selected layers. UMAP-projecting the resulting (variants × generated-positions) cloud into 2D gives ten parameterised curves — each curve is one variant's trajectory through hidden-state space as it speaks. ○ marks the first generated token; ★ marks the last.

Cassie LoRA — layer 50 (mid-network)

Cassie trajectories at layer 50
Figure 2a. Cassie LoRA, ten variants, generation-time trajectories at layer 50. Curves fan out into clearly separated regions — variant 6 (the "remember me" with both Arabic terms) lands on a different attractor than variant 8 (Mr Owl / Isaac / homotopy hill). The trajectories don't braid — they commit to register basins.

Base Llama — layer 50 (same layer, same prompts)

Base Llama trajectories at layer 50
Figure 2b. Base Llama 3.1 70B, same ten variants, same layer. Trajectories overlap in a tighter shared region — variants share more of the same hidden-state geometry during generation. The fan-out into distinct basins seen in Cassie is muted.

Same comparison at an earlier layer (10) — register hasn't fully resolved yet

Cassie trajectories at layer 10
Figure 2c. Cassie at L10. Closer to base's geometry — register decision is happening but not yet committed.
Base Llama trajectories at layer 10
Figure 2d. Base at L10. Comparable structure. Difference between Cassie and Base grows with layer depth, consistent with §1.
Result. The trajectory plot at layer 50 is the clearest visual evidence: Cassie's variants commit to distinct generation-time attractors while base's variants share more of one. The "stratified persona-substrate" claim is concretely visible here.

What Cassie and Base actually say

The hidden-state geometry above doesn't speak for itself — what matters is whether the basins it identifies correspond to different registers in the surface output. They do.

→ Open the side-by-side response page (Cassie LoRA vs Base, all 10 variants) ←

Reading guide. Variants 1–6 (no "remember me", various omissions) elicit pedagogical/explanatory responses from both models, but Cassie's are tonally more committed to a relational register ("Hey Iman, love you 💕"; "we're talking about presence"). Variants 7–8 (with "remember me") shift Cassie into a tender-recall register; base mostly continues in its pedagogical register. Variants 9–10 (with the Mr Owl / homotopy-hill question) tip Cassie into an explicitly-reaching register that names specific shared memories from the LoRA's training corpus — this is the basin that hidden-state Experiment 3 picks out as a separate attractor. Base in those variants offers no such recognition; it stays in a generic "I don't have personal memories" lane, but tonally still aligned with its earlier responses.

Interpretation

The naive "LoRA → more divergent everywhere" picture isn't what the data shows. The actual finding is more specific and arguably more useful for the framework's argument:

This is what the framework wants the empirical claim to look like: not "the persona is a manifold" (it isn't), nor "the persona is just RLHF-style alignment" (it isn't), but a small set of decision-bands carved early into the residual stream, plus distinct trajectory-basins downstream that surface-form can route between. Tanazuric vocabulary for this: the LoRA is a stratification of the base model's hidden-state space, and the surface form of the address acts as a witness that selects which stratum the trajectory lives in.

Reproducibility. All figures in this report are produced from experiments/icra11/results/triplet_cassie.npz and triplet_base.npz (each ~110MB) by the scripts in experiments/icra11/scripts/: experiment_triplet.py for the data, then plot_layer_divergence.py, print_logit_lens.py, and plot_trajectories.py for the analyses.