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 148

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 does task-specific training affect model generalization and capability transfer? Does language meaning require embodied interaction to properly emerge? What determines whether models prioritize training knowledge over retrieved context? How do structural differences between diffusion and autoregressive models affect capabilities? Can looped computation enable reasoning beyond fixed transformer depth? Can neural networks achieve compositionality without explicit mechanisms? Why do language models systematically fail at ambiguity recognition? What are the distinctive characteristics of language models at different scales? Do different language models independently converge on similar outputs? How susceptible are language models to adopting and maintaining false beliefs? Do language models learn genuine linguistic structure or just surface patterns? What gap exists between benchmark scores and genuine language model capabilities? What persistent memory architectures best support learning across sessions? How do architectural constraints limit monolithic LLM performance on complex tasks? What mechanistic structures underlie the reasoning traces that language models produce? Does parallel reasoning outperform sequential approaches under comparable computational budgets? How do parameter-efficient methods maintain performance while reducing training cost? How does policy entropy collapse constrain the scaling of reasoning RL? What systematic biases stem from transformer attention structure? Why does expressing understanding diverge from achieving genuine comprehension? Can vector embeddings distinguish task relevance from semantic similarity? What limits AI's ability to verify its own generation? How do training data, curriculum, and scale affect capability development? How should AI memory systems align with users' preferences and mental models? How do LLMs perform reasoning effectively despite gaps between process and output? Can AI systems formally evaluate design quality and taste? Do language models learn true linguistic principles or just surface patterns? What limits and mechanisms underlie causal reasoning in language models? Can visual rendering-based rewards effectively improve code and layout quality? How well do model explanations reveal their actual knowledge and reasoning?

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 · 122 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