TL;DR
By studying how neural networks encode family trees and knowledge graphs, this paper finds evidence of representational universality across models spanning seven orders of magnitude ($10^2$ to $10^9$ parameters). Using model stitching and almost-affine transformations, the authors show that toy MLPs, in-context learning prompts, and massive LLMs converge on identical geometric motifs—a phenomenon they attribute to "intelligence from starvation," where resource competition forces models to discover optimal, highly generalizable representations.
What Problem Does This Paper Address?
Mechanistic interpretability has largely focused on reverse-engineering learned algorithms (such as modular arithmetic circuits or induction heads). Far less is understood about how Large Language Models (LLMs) store and organize factual knowledge—especially structured facts such as knowledge graphs (KGs).
The authors investigate:
- Do different neural networks—regardless of architecture, scale, or initialization—converge to equivalent geometric structures when learning relational facts?
- Why do neural models discover representations that cleanly generalize relational logic (like transitivity and symmetry) instead of simply memorizing training tuples?
Methods
- Knowledge Graph (KG) Representation Framework: Rather than embedding both entities and relations, the authors embed only entity nodes in $\mathbb{R}^d$ and let a decoder network learn relation predictions ($p(E_i, E_j)$), aligning with how LLM hidden states represent concepts.
- Almost Affine Transformation Equivalence Score (AAT-ES): To test whether two models share the same internal representation, the authors train an almost-affine transformation (affine plus a weak quadratic term, $\epsilon \ll 1$) to map activations from one model's encoder into another model's decoder.
- Model Stitching Across Scales:
- LLM-to-LLM Stitching: Splicing the first $k$ layers of Model A to the last $l$ layers of Model B via a linear stitching layer trained on cross-entropy next-token loss.
- LLM-to-MLP / Reference Decoder Stitching: Extracting LLM residual stream activations for entities in family trees and evaluating if they can drive decoders trained on toy multi-layer perceptrons (MLPs).
- Subtree Pruning for Ground-Truth Probing: To fairly compare LLM representations with toy models, the authors prune family trees via breadth-first search queries, isolating only the subgraphs the LLM genuinely "knows" (>80% accuracy, 100% on positive relations).
- Centered Kernel Alignment (CKA): Used to compare layer-wise representation similarities across architectures.
Datasets
- Pre-training and Language Modeling Corpora: Subsets of
monology/pile-uncopyrightedandmonology/pile-test-val(2,000 samples truncated at 2,048 tokens) to benchmark stitched LLM perplexity and test loss. - Genealogical Knowledge Graphs:
- Real-world family trees: Kennedy, Rothschild, and Nehru-Gandhi family trees.
- Synthetic family trees: Used to evaluate LLMs performing in-context learning.
- Evaluated over 18 explicit relations (e.g., father, mother, spouse, son, daughter, ancestor, descendant, brother-in-law).
Key Insights and Ideas
- Geometric Attractor States (Cone Embeddings): When trained on hierarchical/transitive relations like "descendant-of," MLPs across different random initializations consistently converge to a universal 2D cone geometry: person $j$ is a descendant of person $i$ if and only if $E_j$ falls within a fixed cone emanating from $E_i$.
- Universal Coordinate Axes: When trained on all 18 family relations, the principal components of learned embeddings consistently align with semantically interpretable factors: the first principal components isolate gender and generation depth, followed by sibling and couple clusters.
- Two-Stage Processing in Transformers: Layer-wise stitching and CKA reveal two distinct operational blocks in LLMs:
- Early layers rapidly convert token IDs into abstract semantic concepts.
- Mid-layers maintain stable semantic representations that can be stitched across vastly different models (e.g., between OPT, Pythia, Mistral, and LLaMA).
- Late layers diverge as they specialize in token-level vocabulary projection.
- The Starvation Hypothesis ("Intelligence from Starvation"): Why don't models just overfit? The authors identify a Goldilocks zone in decoder capacity. If decoders are overpowered, they memorize arbitrary embeddings; if too weak, they fail to learn. When capacity is constrained—or when internal residual stream capacity is "starved" by competition with thousands of other tasks—the network is forced to learn the most compact, symmetry-respecting, and decodable representation possible.
Key Results
- LLM Stitching Works Across Model Families: Models from different lineages and tokenizers (such as Mistral-7B to LLaMA-3.1-8B, or Pythia-410M to Pythia-1.4B) stitch successfully with test loss only slightly above baseline, particularly around mid-depth (30%–60% depth).
- High Reference Decoder Alignment: In descendant-only tasks, MLPs achieved 100% training accuracy across hundreds of random seeds; when evaluated against a zero-parameter reference cone decoder via an affine transformation, 57/123 (Kennedy), 171/199 (Gandhi), and 124/190 (Rothschild) runs reached $\ge 99\%$ accuracy.
- LLM-to-MLP Universality: LLaMA-3.1-70B representations (evaluated on both parametric knowledge and in-context synthetic family trees) mapped directly onto MLP-derived decoders with F1 scores between 0.65 and 0.70, significantly higher than random embedding baselines ($\sim 0.45 - 0.52$).
Limitations and Future Work
- Failure on Multi-Hop / Complex Relations: Without Chain-of-Thought (CoT) prompting, both LLMs and toy networks struggle to encode and decode multi-hop relations such as brother-in-law or uncle.
- Dynamic Reasoning Unexplored: The current framework analyzes static representations extracted at the final entity token. How relational representations evolve dynamically during intermediate reasoning steps (e.g., during CoT) remains an open question.
- Embedding Incompatibility: The earliest token embedding layers remain virtually impossible to stitch across different architectures due to tokenization mismatches and rapid non-linear concept formation in early layers.
Summary updated