Manuscript Offprint

arXiv:2610.12304

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 Yan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Understanding large language model (LLM) reasoning requires looking beyond behavioral performance to examine how reasoning ability is reflected in internal organization. Inspired by neuroscience findings linking higher intelligence to stronger small-world organization in functional brain networks, we investigate small-world connectivity as a structural signature of LLM reasoning. We construct functional graphs from attention-head activation similarities and find that a higher small-world index (SWI), capturing local clustering and short global paths, consistently correlates with better fluid reasoning performance across models and training checkpoints. Since local clustering is central to small-world organization, we further examine how heads important for model performance connect within and across communities. We find that these heads tend to have a larger share of connection weight within their own communities (high core scores) and a more concentrated weight distribution across communities (low bridge scores). These observations motivate the hypothesis that high core and low bridge scores serve as structural indicators of head importance for reasoning capability. We validate this hypothesis through pruning, introducing Small-World Allocation (SWA), a hierarchical sparsity allocation method guided by these scores. Across six LLMs, SWA better preserves small-world organization and model performance than competing allocation strategies, reducing WikiText perplexity by up to 20%. Together, these findings identify small-world functional connectivity as a measurable signature of LLM reasoning performance, offering a structural perspective that complements behavioral evaluation.

1 INTRODUCTION

Large language models (LLMs) demonstrate increasingly strong performance on reasoning tasks, including mathematical problem solving, logical inference, and reasoning about code (Leon, 2025; Liu et al., 2025a; Wang et al., 2024). Behavioral benchmarks quantify success on these tasks, but understanding these capabilities also calls for examining how differences in reasoning performance are reflected inside the model. This motivates a central question: Can we identify measurable patterns of internal organization associated with stronger LLM reasoning performance?

Neuroscience offers a precedent for relating intelligence to internal network organization. In functional brain networks, defined by statistical dependencies between regional activities, stronger small-world organization has been associated with higher intelligence (Langer et al., 2012; Barbey, 2018). Such organization features high local clustering while maintaining short network paths (Latora & Marchiori, 2001; Bassett & Bullmore, 2017). This association motivates us to ask whether analogous functional organization in LLMs provides a structural signature of reasoning performance.

Examining this possibility requires representing relationships expressed through model activity. Existing structural analyses provide complementary but distinct perspectives. Architecture-level graphs relate prescribed connectivity to generalization in vision models (You et al., 2020), but primarily reflect model design rather than functional relationships shaped by training. Learned weight

∗^{*}Correspondence to zheng.huang.gr@dartmouth.edu.

spectra capture training-dependent properties associated with generalization and pruning sensitivity (Martin et al., 2021; Hu et al., 2025; Lu et al., 2024), but characterize weight statistics rather than relationships among component activities. We therefore construct functional graphs with attention heads as nodes and activation similarities as edge weights, capturing relationships expressed in a trained model's responses to inputs. Using this representation, we first examine whether small-world organization is associated with reasoning performance at the network level. Across models and training checkpoints, we find that a higher small-world index (SWI) consistently correlates with better fluid reasoning performance (Figure 2 & Figure 3).

To better understand this network-level association, we examine whether attention heads important for model performance exhibit distinctive connectivity patterns within and across communities, motivated by the local clustering characteristic of small-world organization. We estimate head importance following (Michel et al., 2019) and find that more important heads tend to have a larger share of connection weight within their own communities (high core scores) and a more concentrated distribution of weight across communities (low bridge scores; Section 4.1). These observations motivate the hypothesis that high core and low bridge scores serve as structural indicators of head importance for the reasoning ability of LLMs. We validate this hypothesis through pruning: if these scores are informative about head importance, sparsity allocation guided by them should better retain models' reasoning performance. We examine this prediction through Small-World Allocation (SWA), a hierarchical sparsity allocation method guided by core and bridge scores. Across six LLMs, SWA better retains model performance than competing allocation strategies, reducing WikiText perplexity by up to 20%, while also better preserving small-world organization. These results provide additional evidence that the identified head-level patterns are informative about model performance. Together, our findings characterize small-world functional connectivity as a measurable signature of LLM reasoning and offer a structural perspective that complements behavioral evaluation. Our contributions are summarized as follows:

• New Observation: To our knowledge, we are the first to show that LLMs’ attention head activations exhibit a small-world functional organization. We further show that SWI is correlated with performance on fluid intelligence benchmarks and remains consistent across different LLM architectures.

• Novel Findings: Through head importance analysis, we find that heads with low bridge scores and high core scores are significantly more prevalent among heads with greater importance for model performance. This links local connectivity patterns to head importance and motivates the hypothesis that preferentially preserving heads with these structural properties can better retain reasoning performance.

• New Method: We propose Small-World Allocation (SWA), a hierarchical sparsity allocation method that uses core and bridge scores to guide pruning across layers and attention heads. Experiments show that SWA better preserves small-world organization under pruning and improves language modeling performance by up to 20% over state-of-the-art baselines.

References (49)