SYNTHESIS NOTE
Topics›MechInterp›this note

Do neural networks naturally learn modular compositional structure?

Explores whether neural networks decompose compositional tasks into distinct subroutines without explicit symbolic design. This challenges the longstanding view that neural networks are fundamentally non-compositional.

Synthesis note · 2026-02-23 · sourced from MechInterp

Structural compositionality is the extent to which neural networks break down compositional tasks into subroutines and implement them in modular subnetworks. The alternative: matching inputs to learned templates without task decomposition.

The evidence supports compositionality. Using model pruning to isolate subnetworks:

The pretraining effect: models initialized with pretrained weights more reliably produce modular subnetworks than randomly initialized models. Self-supervised pretraining appears to create internal structure that is more amenable to compositional decomposition. This suggests that the representations learned during pretraining have a modular quality that fine-tuning can exploit.

This provides empirical support against the longstanding objection that neural networks are fundamentally non-compositional. The finding: "some simple pseudo-symbolic computations might be learned directly from data using standard gradient-based optimization techniques." Explicit symbolic mechanisms may be unnecessary — gradient-based optimization discovers compositional structure when the task demands it and pretraining provides a good initialization.

The result is not perfect: "most do not exhibit perfect task decomposition." Compositionality is partial and graded, not all-or-nothing. Some architecture-task combinations show stronger structural compositionality than others.

This connects to the weight-sparsity finding: Can sparse weight training make neural networks interpretable by design? shows that enforcing sparsity produces clean decomposition. The structural compositionality paper shows that decomposition also emerges naturally, albeit imperfectly, from standard training. Sparsity amplifies a tendency that already exists.

Inquiring lines that read this note 142

This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.

How do different post-training structures affect learning outcomes? What distinguishes genuine understanding from correct linguistic performance? Can scaling alone produce compositional generalization in neural networks? Do language models learn underlying linguistic structure or merely surface patterns? How do pretraining data composition and task diversity shape reasoning? How do transformer circuits and attention mechanisms enable or limit reasoning? What determines how neural networks organize their internal knowledge representations? Why do language models systematically fail at causal reasoning? Does architectural recurrence enable computational capabilities that fixed-depth models cannot achieve? How do mechanistic features and representations drive model behavior? How can parameter sparsity improve interpretability while maintaining model capability? Do AI explanations represent actual model reasoning or constructed post-hoc narratives? How can we distinguish genuine model self-knowledge from behavioral performance? What explains the gap between LLM semantic understanding and production? How do benchmark scores relate to real-world task completion? How does model scale affect fine-tuning and downstream task performance? How does explicit structure improve LLM reasoning on complex tasks? Does training data format shape reasoning more than domain content? Does reasoning architecture matter more than model scale? How does policy entropy collapse limit reasoning RL scaling? What are the trade-offs between memory capacity and continuous task learning? How does verifier integration affect the generation-verification gap? What training data structures and signals produce robust learning across distributions? Why does consolidated memory sometimes hurt continual learning more than no memory? Why does separating planning from execution enhance reasoning performance? Does learning articulatory physics explain speech communication superiority? What fundamental limitations prevent embeddings from solving task-relevant retrieval? When should retrieval be triggered to augment language model reasoning? How can outcome-only reporting obscure the true mechanisms of safety? Should GUI agents use structured UI perception instead of raw pixels?

Related concepts in this collection 3

This note in its neighbourhood — explore the map, then jump to a related concept in the list below.

Concept map
14 direct connections · 119 in 2-hop network ·medium cluster Open in graph ↗

Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph

your link semantically near linked from elsewhere

Related papers in this collection 8

Papers most semantically related to this note, ranked by cosine similarity in the embedding space.

Original note title

neural networks decompose compositional tasks into modular subnetworks without explicit symbolic mechanisms — pretraining encourages this