Overlap-Aware Sheaf Repulsion in LLMs
- The paper introduces OASR which uncovers multiple distinct sheaves that maintain high task fidelity while challenging the Functional Anisotropy Hypothesis.
- The method uses gradient-based optimization with an explicit overlap penalty to extract sparse, low-overlap circuits underlying LLM functions.
- Empirical evaluations across benchmarks demonstrate OASR's ability to yield sheaves with overlaps as low as 4–11% while preserving near-perfect accuracy.
Overlap-Aware Sheaf Repulsion (OASR) is a method for systematically uncovering multiple, structurally distinct, yet functionally faithful and sparse mechanistic explanations—termed “sheaves”—for tasks performed by LLMs. OASR augments standard circuit and sheaf discovery (CSD) objectives with an explicit penalty on structural overlap between successively found sheaves, enabling the empirical extraction of numerous low-overlap, high-fidelity circuits. The resulting findings challenge the Functional Anisotropy Hypothesis: the long-standing, often implicit assumption that such tasks are implemented by unique or near-unique internal mechanisms within LLMs (Chen et al., 12 May 2026).
1. Foundations: Definitions and Notations
Within Transformer architectures, let the residual-stream computation graph be denoted as , where is the set of components—typically attention heads (), MLP blocks (), input, and output nodes—and are directed edges representing information flow.
- Circuit: A subgraph functions as a “circuit” for task if ablating all edges in causes only mild degradation in performance, i.e., the masked model’s fidelity .
- Sheaf: A sheaf is a circuit endowed with standalone faithfulness: when only edges in 0 are active, with all others set to zero, task performance remains high.
- Edge Scores/Masks: Each edge 1 has a continuous score 2 (obtained via a sigmoid of a learnable logit 3) and a binary mask 4, sampled via the straight-through Gumbel-Sigmoid estimator.
- Structural Overlap: For two edge sets 5, overlap is quantified as 6. Alternative measures include 7 and continuous-score-based 8.
2. Overlap-Aware Objective Formulation
The standard objective for sheaf discovery, inspired by DiscoGP, seeks to minimize:
9
where
- 0 evaluates the cross-entropy loss of the masked model on task labels.
- 1 enforces edge-level sparsity.
- 2 penalizes completeness, ensuring the complement does not solve the task.
OASR introduces an overlap penalty:
3
For the 4th discovery run, the new objective becomes
5
where 6 governs the strength of repulsion from prior sheaves 7.
3. Algorithmic Protocol
The OASR methodology operates by iteratively discovering distinct sheaves through gradient-based optimization:
- Initialization: For each run 8, initialize 9 and Gumbel sampling seeds randomly.
- Optimization: Minimize 0 using gradient descent (e.g., Adam), computing hard masks 1 via the straight-through Gumbel-Sigmoid.
- Extraction: At convergence, extract 2 as the discovered sheaf.
- Coordination: After run 3, append 4 to the set of prior sheaves for overlap penalization in subsequent runs.
In practice, overlap penalties are efficiently computed using stored binary masks 5; penalties take the form 6 or via score–mask cross-terms 7.
4. Theoretical Insights: Distributive Dense Circuit Hypothesis
Under assumed local linearity and high-dimensional superposition within the model, the class logit 8 can be locally linearized:
9
where 0 is the contribution of edge 1.
Due to the exponentially large number of edge subsets and only polynomially many distinguishable readout vectors (given a margin 2), a subset-sum pigeonhole argument guarantees the existence of many structurally distinct edge sets 3 such that
4
This result demonstrates that multiple low-overlap sheaves can achieve equivalently high fidelity for the same model and task, providing theoretical support for the empirical findings imposed by OASR.
5. Empirical Characterization
OASR has been extensively evaluated on a range of LLM circuit discovery benchmarks, including IOI (Indirect Object Identification), BLiMP (English grammaticality), AGA/ANA (agreement tasks), DNA variants (Dependency-Number Agreement), and Docstring (code completion).
Benchmark Results
| Task | Edge Densities (%) | Completeness (%) | 5 (%) |
|---|---|---|---|
| IOI | 3.5 vs 4.0 | 45 vs 46 | 4–11 |
Findings include:
- For each task, two sheaves 6, 7 can be discovered that both attain high accuracy (e.g., IOI: 100% vs 100%), with low edge overlap (8 in the 4–11% range).
- Increasing the number of OASR-driven runs (9) further shrinks the mutual intersection 0 to negligible values (tens of edges or less) while maintaining accuracy and sparsity.
Ultra-Sparse Sheaf Discovery
By intersecting 20 OASR runs on IOI, an 11-edge sheaf core retains 1 accuracy; exhaustive search within this core yields a 3-edge sheaf 2 achieving 3 IOI accuracy on its own, with the complement performing at chance.
Indispensability analysis further demonstrates that ablating any single edge 4 in 5 does not significantly impact total task accuracy (leaving IOI accuracy 6 99.9%), and alternative discovery runs excluding 7 still yield sparse, high-accuracy sheaves. This strongly undermines arguments for edge-level canonicity or uniqueness.
6. Implications and Reevaluation of Mechanistic Interpretability
The aggregate theoretical and experimental evidence provided by OASR demonstrates a “plethora” of alternative, low-overlap, causally effective sheaves underpinning LLM task performance. These results invalidate any strong or weak form of the Functional Anisotropy Hypothesis—the view that LLM functions are realized through unique or essential internal circuits. As different sheaves can be found that are both sparse and faithful, with little or no overlap and no indispensable components, mechanistic explanations in LLMs are inherently non-canonical.
A plausible implication is the need to fundamentally reconsider how circuit and sheaf discovery results are interpreted: rather than treating discovered explanations as unique or essential, future methodologies must acknowledge the inherent multiplicity and non-uniqueness illuminated by OASR (Chen et al., 12 May 2026).