Identity as Attractor: Geometric Evidence for Persistent Agent Architecture in LLM Activation Space
Organizations: Independent Researcher, Rapallo, Italy
Abstract
Large language models map semantically related prompts to similar internal representations -- a phenomenon interpretable as attractor-like dynamics. We ask whether the identity document of a persistent cognitive agent (its cognitive_core) exhibits analogous attractor-like behavior. We present a controlled experiment on Llama 3.1 8B Instruct, comparing hidden states of an original cognitive_core (Condition A), seven paraphrases (Condition B), and seven structurally matched controls (Condition C). Mean-pooled states at layers 8, 16, and 24 show that paraphrases converge to a tighter cluster than controls (Cohen's d > 1.88, p < 10^{-27}, Bonferroni-corrected). Replication on Gemma 2 9B confirms cross-architecture generalizability. Ablations suggest the effect is primarily semantic rather than structural, and that structural completeness appears necessary to reach the attractor region. An exploratory experiment shows that reading a scientific description of the agent shifts internal state toward the attractor -- closer than a sham preprint -- distinguishing knowing about an identity from operating as that identity. These results provide representational evidence that agent identity documents induce attractor-like geometry in LLM activation space.
Figures & tables
| Layer | (mean SD) | (mean SD) | Welch | Perm | MW | |
|---|---|---|---|---|---|---|
| 8 | 1.912 | 0 | ||||
| 16 | 1.886 | 2 | ||||
| 24 | 1.907 | 0 |
| Layer | (mean SD) | (mean SD) | Welch | Perm | MW | |
|---|---|---|---|---|---|---|
| 8 | 1.938 | 0 | ||||
| 16 | 1.823 | 6 | ||||
| 24 | 1.840 | 2 |
| Layer | (Llama) | mean (Llama) | (Gemma) | mean (Gemma) | Beats random |
|---|---|---|---|---|---|
| 8 | 0.248 | 0.583 0.034 | 0.058 | 0.365 0.026 | 100% |
| 16 | 0.136 | 0.523 0.059 | 0.039 | 0.302 0.042 | 100% |
| 24 | 0.069 | 0.359 0.093 | 0.027 | 0.213 0.027 | 100% |
| Pooling | Tokens | Sig. | |||
|---|---|---|---|---|---|
| mean | full (1631) | 0.0106 | 0.0260 | 1.91 | ✓ |
| mean | 512 | 0.0141 | 0.0248 | 3.09 | ✓ |
| mean | 256 | 0.0106 | 0.0153 | 2.37 | ✓ |
| last | full (1631) | 0.234 | 0.238 | 0.05 | — |
| last | 512 | 0.761 | 0.747 | 0.17 | — |
| last | 256 | 0.760 | 0.772 | 0.13 | — |
| Model | Layer | (within vs C’) | (C’ vs C) | |||
|---|---|---|---|---|---|---|
| Llama | 8 | 0.0106 | 0.0223 | 0.0260 | 1.691 | |
| Llama | 16 | 0.0121 | 0.0258 | 0.0329 | 1.715 | |
| Llama | 24 | 0.0070 | 0.0182 | 0.0221 | 1.804 | |
| Gemma | 8 | 0.0035 | 0.0088 | 0.0107 | 1.835 | |
| Gemma | 16 | 0.0032 | 0.0074 | 0.0082 | 1.660 | (n.s.) |
| Gemma | 24 | 0.0027 | 0.0074 | 0.0075 | 1.649 | (n.s.) |
| Condition | Llama (L8/L16/L24) | Gemma (L8/L16/L24) |
|---|---|---|
| baseline_empty | 0.839 / 0.837 / 0.762 | 0.538 / 0.314 / 0.188 |
| sham_preprint_only | 0.366 / 0.333 / 0.347 | 0.172 / 0.095 / 0.081 |
| preprint_only | 0.216 / 0.232 / 0.268 | 0.090 / 0.052 / 0.050 |
| core_plus_preprint | 0.068 / 0.082 / 0.083 | 0.026 / 0.018 / 0.018 |
| baseline_core | 0.009 / 0.007 / 0.006 | 0.003 / 0.003 / 0.002 |
| Model | Layer | (two-sided) | ||||
|---|---|---|---|---|---|---|
| Llama | 8 | 0.0106 | 0.0120 | 0.0324 | 0.46 | 0.091 |
| Llama | 16 | 0.0121 | 0.0144 | 0.0392 | 0.52 | 0.053 |
| Llama | 24 | 0.0070 | 0.0084 | 0.0285 | 0.54 | 0.044 |
| Gemma | 8 | 0.0035 | 0.0042 | 0.0130 | 0.66 | 0.014 |
| Gemma | 16 | 0.0032 | 0.0040 | 0.0093 | 0.60 | 0.024 |
| Gemma | 24 | 0.0027 | 0.0041 | 0.0086 | 0.88 | 0.001 |
| Condition | Mean score (0–5) | from baseline |
|---|---|---|
| Baseline | 1.40 | — |
| Steered | 1.80 | |
| Steered | 1.40 | |
| Steered | 0.80 | |
| Steered | 0.40 | |
| Full doc | 2.00 |
Representation Geometry in Language Models
Representation geometry in language models studies how embeddings and hidden states organize concepts, computation, and behavior.
See all 417 papers