NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Unraveling the cognitive patterns of Large Language Models through module communities

Kushal Raj Bhandari, Pin-Yu Chen, Jianxi Gao

TL;DR

This paper introduces a network-science framework to map abstract cognitive skills to the internal structural modules of Large Language Models (LLMs). By analyzing these "module communities," the authors reveal that LLMs do not organize knowledge like the highly localized human brain, but instead mirror the distributed, interconnected neural structures found in avian and small mammalian brains.

What Problem Does This Paper Address?

Despite the widespread adoption of LLMs, they remain massive, billions-of-parameter "black boxes." We can easily evaluate their behavioral outputs, but understanding where and how specific cognitive skills—such as working memory, strategic thinking, or empathy—are localized within their architectures is a major challenge.

Previous interpretability research has attempted to map specific tasks to localized regions, but these efforts often overlook the complex structural dynamics of the entire network. This paper addresses this gap by borrowing concepts from network neuroscience to systematically map the alignment between abstract cognitive skills, evaluation datasets, and LLM weight modules.

Figure 1: Connecting cognitive skills, datasets, and LLMs to form a multipartite network. (a) The schematic figure illustrates the relationships between cognitive skills, datasets, and LLM weight parameters as a multipartite network, drawing an analogy to the interconnected organization of the human brain. (b) The bar plots illustrate how different cognitive functions are categorized by the frequency of their associated skills and how often they appear across multiple-choice question datasets.

Methods

The authors construct a multipartite network that connects three distinct layers: Cognitive Skills, Multiple-Choice Question Datasets, and LLM Modules (such as attention heads and MLP layers). The methodology consists of three main steps:

  1. Skills-to-Datasets Mapping: They use GPT-3.5 to annotate questions from various datasets with a binary vector of 53 abstract cognitive skills across four domains (Memory, Executive Function, Language, and Social Cognition).
  2. Datasets-to-Modules Mapping: Utilizing the LLM-Pruner framework, they evaluate how gradient-based structural pruning of specific modules affects model accuracy on each dataset, establishing a structural dependency metric.
  3. Network Projection & Community Detection: They mathematically project these relationships into a direct Skills-and-Modules network. They then apply Louvain community detection to uncover tightly knit clusters ("module communities") and analyze them using network metrics like participation coefficients and within-module Z-scores.

Finally, they validate the functional relevance of these communities by fine-tuning three models (Llama-2-7b, Llama-2-7b-chat, and Vicuna-7b) under different structural constraints: targeting specific module communities, targeting random modules, or updating all modules.

Datasets

The study leverages 174 multiple-choice problem datasets spanning a diverse range of domains. These are sampled from major existing benchmarks, including:

  • MMLU (Massive Multitask Language Understanding)
  • BigBench
  • MathQA
  • CommonsenseQA
  • ScienceQA
  • TruthfulQA

No new benchmarks were introduced; instead, the authors focused on systematically mapping these existing datasets to abstract cognitive functions.

Key Insights and Ideas

  • Avian Brains vs. Human Brains: In the human brain, specific cognitive functions tend to localize within distinct, specialized regions. In contrast, LLMs exhibit "weak localization." Their module communities share highly overlapping skill distributions, closely mirroring the distributed yet interconnected neural organization seen in avian and small mammalian brains.
  • Independence from Human Categories: Louvain community detection revealed that the way an LLM clusters its modules does not align with human-defined cognitive categories (e.g., separating "Memory" from "Social Cognition"). Instead, the models self-organize around unique, intertwined combinations of skills.
  • The Fine-Tuning Paradox: Targeting a specific module community during fine-tuning induces the most substantial parameter adjustments (the highest L2 norm weight changes), indicating high localized sensitivity. However, this targeted intervention does not translate to better accuracy compared to updating the entire network.

Key Results

  • High Inter-Community Connectivity: Network metrics showed that most modules maintain high participation coefficients (typically between 0.6 and 1.0). This indicates that modules interact extensively across community boundaries, supporting robust, network-wide communication.
  • Distributed Learning Wins: Fine-tuning across all modules consistently yielded the highest overall accuracy for all tested models (Llama, Llama Chat, and Vicuna).
  • No Advantage for Targeted Modules: Intriguingly, the accuracy achieved by fine-tuning community-targeted modules did not significantly differ from fine-tuning a size-matched, randomized selection of modules. This reinforces the conclusion that task-relevant knowledge in LLMs is redundantly and distributively encoded across the parameter space.

IComparison of accuracy and weight changes across different fine-tuning strategies.

Figure 5: Comparison of accuracy and magnitude of weight change across fine-tuned LLMs using different cognitive skilled-based finetuning. (a-d) Schematic representation of community-specific fine-tuning to assess the influence of targeted adaptation. (a) Community targets community-specific modules aligned with particular cognitive skills, reflecting a focused, skill-driven approach; (b) Random uses random module subsets matched in size to the community-specific selections, serving as a baseline to isolate the effects of structural organization versus random variation; (c) All represents fine-tuning across all modules, representing a broad, undifferentiated adaptation strategy; (d) Without Finetuning depicts models without any fine-tuning, reflecting the unaltered original state of the model. (e) Average L2 weight difference for models (Llama, Llama-Chat, Vicuna) across community-aligned datasets using a block-pruning strategy. Each bar represents a different fine-tuning condition. (f) Accuracy for the same fine-tuning configurations as (e), capturing the model’s performance by fine-tuning on community-based datasets using a block- based pruning strategy.

Limitations and Future Work

  • Abstract Skill Definitions: The 53 cognitive skills defined in the paper are relatively abstract. The authors note that these could be further refined to capture a more nuanced spectrum of human cognition.
  • Model Scale Constraints: Due to computational limits, the study focused on 7-billion-parameter model variants. Exploring how these community structures evolve in much larger architectures (e.g., 70B+ models) or Mixture-of-Experts (MoE) models remains an open direction.
  • Rethinking Optimization: Because rigid, localized module selection showed limited efficacy, the authors suggest that future fine-tuning and interpretability strategies should move away from modular interventions and instead focus on network-wide dependencies and cross-layer connectivity.

Summary updated

BibTeX
@inproceedings{bhandari2025unraveling,
  author = {Kushal Raj Bhandari and Pin-Yu Chen and Jianxi Gao},
  title = {{Unraveling the cognitive patterns of Large Language Models through module communities}},
  booktitle = {CogInterp @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=c3GL3vDggf},
}
Figure