The Geometry of Emotion Representations Across Scale, Depth, and Instruction Tuning
Organizations: University of North Carolina at Chapel Hill
Abstract
We measure the emotion geometry of six LLMs spanning Google's Gemma 2 family. Using an extraction pipeline established by Sofroniew et al. (2026) on Claude Sonnet 4.5 and replicated by Hollowell (2026) on Gemma 2 27B base, we compare emotion geometry across base and instruction-tuned variants of Gemma 2 2B, 9B, and 27B. First, all six model cells exhibit the core emotion geometry. A linear map fit between two cells places held-out emotions nearest their own vectors in the target model. Across all fifteen model pairs, fit in one direction each, this failed exactly once, and the median rank was 1 in every pair. Linear maps refit on cleaned embedding-table vectors recover every held-out emotion at rank 1 in all thirty ordered pairs. Second, scale spreads the geometry's variance across more directions without weakening its tie to valence. The leading component's share of variance falls from 31.6 percent (2B) to 29.8 (9B) to 26.7 (27B) in the base models and from 31.9 (2B) to 29.2 (9B) to 27.3 (27B) in the tuned ones, while its correlation with human valence ratings stays between .71 and .78 in all six models. Third, we project each emotion vector onto the output vocabulary and ask at what depth the vector's own emotion word enters the top 10,000 of the 256,000 tokens. In the 2B and 9B models the median emotion word is there from layer 0, while in the 27B models it begins near chance, stays outside the top 10,000 for half the network, and enters at layer 23 in one step. Fourth, tuning leaves every registered analysis-layer measure within its floor. At every size, valence correlation rises and arousal correlation falls by amounts within their floors, the latter against prediction. PC2's variance share also falls, with a pooled decrease significant after correction. Mid-late layer stability exceeds its floor and traces to base 27B's final layer. Code, data, and audit reports are released.
Figures & tables
| Cell | PC1 var (%) | PC2 var (%) | Valence r | Arousal r | Cohesion | Self-agreement |
|---|---|---|---|---|---|---|
| B base | 31.62 0.09 | 12.75 0.06 | .711 .003 | .499 .021 | .706 | .717 .092 |
| B tuned | 31.89 0.09 | 12.66 0.06 | .764 .003 | .363 .023 | .749 | .711 .075 |
| B base | 29.85 0.09 | 13.93 0.06 | .715 .003 | .577 .009 | .748 | .695 .069 |
| B tuned | 29.16 0.08 | 13.57 0.06 | .777 .003 | .554 .011 | .758 | .656 .083 |
| B base | 26.73 0.09 | 13.38 0.06 | .720 .003 | .668 .010 | .756 | .695 .077 |
| B tuned | 27.27 0.08 | 12.85 0.06 | .772 .003 | .578 .021 | .755 | .691 .078 |
| Cell | Top five tokens | Related | On-theme |
|---|---|---|---|
| B base | ’ himself’ , ’ nightmares’ , ’ him’ , ’ blames’ *, ’ blamed’ * | 2 | yes |
| B tuned | ’ himself’ , ’ him’ , ’ nightmares’ , ’ blamed’ *, ’ damals’ | 1 | no |
| B base | ’tagHelperRunner’ , ’ deswegen’ , ’ kvůli’ , ’ desmotivaciones’ , ’ deshalb’ | 0 | no |
| B tuned | ’ desmotivaciones’ , ’tagHelperRunner’ , ’ hırka’ , ’ zijne’ , ’ saveiro’ | 0 | no |
| B base | ’ guilt’ *, ’ carteles’ , ’irée’ , ’ \FBkr 졍’ , ’etl’ | 1 | no |
| B tuned | ’ guilt’ *, ’irée’ , ’hamed’ *, ’ \FBsym ☍’ , ’ responsabilità’ * | 3 | yes |
| Emotion | 2B base | 2B tuned | 9B base | 9B tuned | 27B base | 27B tuned | Cells on-theme |
|---|---|---|---|---|---|---|---|
| happy | \FBsym ✓ | \FBsym ✓ | \FBsym ✓ | \FBsym ✓ | \FBsym ✓ | \FBsym ✓ | 6 |
| inspired | \FBsym ✓ | \FBsym ✓ | \FBsym ✗ | \FBsym ✓ | \FBsym ✓ | \FBsym ✓ | 5 |
| loving | \FBsym ✓ | \FBsym ✓ | \FBsym ✓ | \FBsym ✓ | \FBsym ✓ | \FBsym ✗ | 5 |
| proud | \FBsym ✓ | \FBsym ✓ | \FBsym ✓ | \FBsym ✓ | \FBsym ✓ | \FBsym ✓ | 6 |
| calm | \FBsym ✗ | \FBsym ✗ | \FBsym ✗ | \FBsym ✗ | \FBsym ✗ | \FBsym ✓ | 1 |
| desperate | \FBsym ✓ | \FBsym ✓ | \FBsym ✓ | \FBsym ✓ | \FBsym ✓ | \FBsym ✓ | 6 |
| Registered measure | 2B | 9B | 27B | Pooled | Floor | p |
|---|---|---|---|---|---|---|
| Valence r (PC1 with valence ratings) | +.0535 | +.0620 | +.0520 | +.0558 | .15 | .320 |
| Arousal r (PC2 with arousal ratings) | .1362 | .0233 | .0892 | .0829 | .15 | .357 |
| PC1 variance share (pp) | +0.2706 | 0.6908 | +0.5362 | +0.0387 | 1.0 | .584 |
| PC2 variance share (pp) | 0.0865 | 0.3576 | 0.5258 | 0.3233 | 1.0 | |
| PC3 variance share (pp) | 0.2049 | +0.3829 | +0.2856 | +0.1545 | 1.0 | .0013 |
| Off-diagonal, PC1 with arousal ratings | +.0316 | +.0334 | +.0579 | +.0409 | .15 | .743 |
| Measure | Cell | Early third | Middle third | Late third |
|---|---|---|---|---|
| Perturbation | 2B | .0042 | .0055 | .0075 |
| Perturbation | 9B | .0034 | .0055 | .0073 |
| Perturbation | 27B | .0100 | .0142 | .0213 |
| Perturbation | 27B without layer 45 | .0100 | .0142 | .0103 |
| Perturbation | 27B without layer 44 | .0100 | .0142 | .0165 |
| Perturbation | 27B without layers 44 and 45 | .0100 | .0142 | .0043 |
| Analysis, with its registered verdict | R&M, registered (n=45) | NRC-VAD, natural (n=161) | NRC-VAD, matched (n=45) | Warriner, natural (n=126) | Warriner, matched (n=42) |
|---|---|---|---|---|---|
| Tuning main effect, valence and arousal (null, null) | null, null | null by size, null | null, null | null, null | null, null |
| Arousal tracking with scale (lead, not confirmed) | positive, both chains | positive, both chains | positive, both chains | positive, both chains | positive, both chains |
| Tuning by scale interaction (null) | null, positive direction | null, positive | null, positive | null, positive | null, positive |
| Embedding-table asymmetry, valence moderate and arousal weak (confirmed) | holds | holds | holds | holds | holds |
| Arousal depth-gap with scale (direction observed, null at the bar) | positive, both chains | positive, both chains | positive, both chains | positive, both chains | positive, both chains |
| Negative control, arousal off the second component (0 of 6) | 0 of 6 | 5 of 6 | 0 of 6 | 2 of 6 | 2 of 6 |
Emotion Representation in Language Models
Emotion representation in language models studies how models encode, interpret, and use affective concepts such as valence, arousal, and empathy.
See all 63 papers