# Gluing Local Contexts into Global Meaning: A Sheaf-Theoretic Decomposition of Transformer Representations

DevFeed: [Gluing Local Contexts into Global Meaning: A Sheaf-Theoretic Decomposition of Transformer Representations](<https://devfeed.tech/articles/gluing-local-contexts-into-global-meaning-a-sheaf-theoretic-decomposition-of-transformer-representations-111456.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.17117>)

Author: Bryce Grant, Peng Wang

Published: 2026-11-02T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Neural Network](<https://devfeed.tech/topics/neural-network.md>), [vector embeddings in AI](<https://devfeed.tech/topics/vector-embeddings-in-ai.md>)

Tags: [cellular](<https://devfeed.tech/tags/cellular.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cycles](<https://devfeed.tech/tags/cycles.md>), [graph](<https://devfeed.tech/tags/graph.md>), [interpretability](<https://devfeed.tech/tags/interpretability.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [layers](<https://devfeed.tech/tags/layers.md>), [models](<https://devfeed.tech/tags/models.md>), [steering](<https://devfeed.tech/tags/steering.md>), [transformer](<https://devfeed.tech/tags/transformer.md>)

## AI overview

The paper uses paraphrase pairs as local consistency witnesses to construct a cellular sheaf over a paraphrase graph, then analyzes its Laplacian without training the frozen model. Its kernel defines a content subspace that, at 20 dimensions, exceeds the full-dimensional LEACE-retained subspace on held-out CounterFact retrieval by an average 17.1 percentage points across eight models; jointly constraining a fact's paraphrases adds 6.5 points. The spectral complement identifies coordinates linked to causal influence: ablating the most paraphrase-variable coordinates changes outputs 5.6-26.5 times more than ablating coordinates matched for per-coordinate variability, across nine models from 124M to 13B parameters. A layer-stacked grid yields harmonic mass that varies by nearly three orders of magnitude across six architectures and correlates with steering fragility (Spearman's ρ=0.90, one-sided permutation p=0.014). These are abstract-reported results; the supplied text does not include further methodological detail.

## Source excerpt

arXiv:2610.17117v2 Announce Type: replace-cross Abstract: Prior research into interpretability does not test whether a representation stays consistent under paraphrasing. Each pair of paraphrases can be thought of as a local witness that two activations should be the same. From these local witnesses we can build a cellular sheaf on the paraphrase graph. The question of what is consistent under paraphrasing can be answered by the Laplacian $L_\mathcal{F}$ given a frozen model. No training required. Our kernel $H^0$ gives us a content subspace. We show that with only 20 dims the kernel outperforms the subspace that LEACE retains with all dims on held-out CounterFact fact retrieval by $+17.1$\,pp on average across 8 models. By constraining all paraphrases of a fact together we see an additional increase of $+6.5$\,pp. Our spectral complement shows us where the causal influence is concentrated. Ablating the coordinates that vary the most when paraphrased (which approximates ablating the spectral complement at the coordinate level) leads to $5.6$ to $26.5\times$ larger changes in model outputs compared to ablating coordinates with matched per-coordinate variability. We find this across 9 models from 124M to 13B params. By stacking layers we can create a grid which has $b_1 = N(L-1)$ algebraic 1-cycles. The harmonic mass derived from the model varies by nearly 3 orders of magnitude between the 6 architectures. It also tracks the order of steering fragility (Spearman's $\rho = 0.90$, exact one-sided permutation $p = 0.014$). The kernel, its spectral complement and the harmonic mass all come from the same paraphrase graph. Project page: https://cwru-aism.github.io/gluing-lc-page/.