Looking Inside LLMs: Small-World Connectivity as a Signature of Reasoning Performance

Zheng Huang, Sansheng Cao, Enpei Zhang, Weikang Qiu, Elynn Chen, Xiang Zhang, Yaoqing Yang, Rex Ying, Dawei Zhou, Yujun YanarXiv 2026

TL;DR

This paper reveals that Large Language Models (LLMs) with superior reasoning abilities exhibit "small-world" functional connectivity among their attention heads—a structural pattern also linked to higher intelligence in human brains. By leveraging this insight, the authors developed Small-World Allocation (SWA), a pruning strategy that preserves these critical internal networks, outperforming existing methods by up to 20% in language modeling performance at high sparsity.

What Problem Does This Paper Address?

While we have plenty of benchmarks to measure what an LLM can do (behavioral performance), we lack a deep understanding of how reasoning is organized internally. Traditional structural analyses often focus on static architecture or weight statistics, which don't necessarily capture the dynamic "functional wiring" shaped by training.

Furthermore, when we compress these models through pruning, we often use heuristics that might inadvertently destroy the very internal structures responsible for complex reasoning. The authors ask: Can we identify a measurable internal signature of reasoning, and can we use it to build better, more efficient models?

Methods

The researchers turned to neuroscience for inspiration, specifically the concept of small-world networks—systems that balance high local clustering (specialized processing) with short global paths (efficient integration).

  1. Functional Graph Construction: They treated attention heads as nodes and defined edges based on "activation similarity." To measure this, they used a variant of SVCCA (Singular Vector Canonical Correlation Analysis) with a Fisher z-transform to quantify how similarly different heads respond to the same inputs.
  2. Small-World Index (SWI): They calculated the SWI for these graphs, comparing them against randomized versions to see how much the model deviates from a "random" organization toward a "small-world" one.
  3. Core and Bridge Scores: They identified two types of important heads:
  4. Core heads: Those with strong connections within their own functional "communities."
    • Bridge heads: Those that connect different communities.
  5. Small-World Allocation (SWA): They developed a hierarchical pruning method. Instead of pruning heads uniformly, SWA assigns a "priority score" based on core and bridge metrics, ensuring that the structural backbone of the model's reasoning capability is preserved even as weights are removed.
Figure 1: We extract activations from attention heads across Transformer layers and compute pairwise similarity to construct a head-level functional graph. The resulting graph exhibits small-world structure, characterized by high clustering and efficient short-path communication. We show that this structural property correlates with model capability on fluid intelligence benchmarks.

Datasets

  • DRE-Bench: A benchmark for fluid reasoning and abstract rule induction, used for the primary SWI analysis and graph construction.
  • WikiText: Used to evaluate language modeling perplexity after pruning.
  • GSM8K, ARC-C, and MMLU: Used to test the sensitivity of the method to the specific dataset used for graph construction.
  • Zero-shot Benchmarks: BoolQ, RTE, HellaSwag, WinoGrande, ARC-Easy/Challenge, and OpenBookQA were used for downstream evaluation.
  • ARAOC: A specialized corpus for abstract reasoning on atomic grid transformations.

Key Insights and Ideas

  • The Intelligence Signature: The Small-World Index (SWI) consistently correlates with reasoning performance. This holds true both across different model families (e.g., Llama vs. Qwen) and across different training checkpoints of the same model. As a model learns to reason better, its internal functional graph becomes more "small-world."
  • Local vs. Global Roles: The study found that "important" heads (determined by gradient-based importance) are significantly more likely to have high core scores and low bridge scores. In other words, reasoning relies more on heads that are deeply integrated into specialized local clusters rather than heads that spread their influence thinly across the entire network.
  • Preservation is Key: Pruning naturally degrades a model's small-world organization. The success of SWA suggests that maintaining this specific topology is crucial for retaining "fluid intelligence" in compressed models.

Key Results

  • Correlation: A higher SWI consistently mapped to lower negative log-likelihood (better performance) on reasoning tasks across all tested models (Qwen3, Llama 3, Llama 3.2).
  • Pruning Performance: When applied to state-of-the-art pruning methods like SparseGPT and Wanda, SWA reduced WikiText perplexity by up to 20% at high sparsity levels (50-70%).
  • Downstream Accuracy: On Llama-3-8B at 70% sparsity, SWA improved average zero-shot accuracy by nearly 2 percentage points over the strongest competing allocation baseline (ATP).
  • Robustness: The benefits of SWA were consistent regardless of whether the functional graph was built using GSM8K, ARC-C, or MMLU, suggesting the small-world signature is a general property of the model rather than a dataset-specific artifact.

Limitations and Future Work

  • Computational Overhead: Constructing functional graphs requires running the model on calibration data and performing SVD/CCA on activations, which is more computationally intensive than simple weight-based pruning.
  • Scope of Components: The current work focuses exclusively on attention heads. The role of Feed-Forward Networks (FFNs), which constitute a large portion of LLM parameters, in the small-world topology remains an open question.
  • Dynamic Connectivity: The graphs are currently "static" snapshots based on specific calibration sets. Future work could explore how these functional relationships shift dynamically during different stages of a multi-step reasoning process.

Summary updated

BibTeX
@misc{huang2026looking,
  author = {Zheng Huang and Sansheng Cao and Enpei Zhang and Weikang Qiu and Elynn Chen and Xiang Zhang and Yaoqing Yang and Rex Ying and Dawei Zhou and Yujun Yan},
  title = {{Looking Inside LLMs: Small-World Connectivity as a Signature of Reasoning Performance}},
  year = {2026},
  eprint = {2610.12304},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.12304},
}
Figure