Papers › On The Specialization of Neural Modules

On The Specialization of Neural Modules

23 Sep 2024arXiv:2409.14981archive 2025-07-28

Devon Jarvis, Richard Klein, Benjamin Rosman, Andrew M. Saxe

A number of machine learning models have been proposed with the goal of achieving systematic generalization: the ability to reason about new situations by combining aspects of previous experiences. These models leverage compositional architectures which aim to learn specialized modules dedicated to structures in a task that can be composed to solve novel problems with similar structures. While the compositionality of these architectures is guaranteed by design, the modules specializing is not. Here we theoretically study the ability of network modules to specialize to useful structures in a dataset and achieve systematic generalization. To this end we introduce a minimal space of datasets motivated by practical systematic generalization benchmarks. From this space of datasets we present a mathematical definition of systematicity and study the learning dynamics of linear neural modules when solving components of the task. Our results shed light on the difficulty of module specialization, what is required for modules to successfully specialize, and the necessity of modular architectures to achieve systematicity. Finally, we confirm that the theoretical results in our tractable setting generalize to more complex datasets and non-linear architectures.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2409.14981")

Code

Syntology Ran 4 of 11 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 4 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 4 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran
7unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from raillab/specialization_of_neural_modules. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

gen_binary_patterns raillab/specialization_of_neural_modules/dense_network/dense.py official repository ran fingerprinted MIT (permissive) · 936d1270c91e37e7 · report
init_random_params raillab/specialization_of_neural_modules/empirical_motivation/dense.py official repository ran MIT (permissive) · ac5f0bbeb403c696 · report
predict raillab/specialization_of_neural_modules/empirical_motivation/dense.py official repository ran MIT (permissive) · 23ffd7275ed2fef4 · report
svs raillab/specialization_of_neural_modules/dense_network/dense.py official repository ran MIT (permissive) · 97721d936bc84f7b · report
composed_mnist raillab/specialization_of_neural_modules/cmnist/dense/datasets.py official repository unverified MIT (permissive) · b5531a977fa948a9 · report
dynamic_formula raillab/specialization_of_neural_modules/dense_network/dense.py official repository unverified MIT (permissive) · 552f4fb9b7f58553 · report
loss raillab/specialization_of_neural_modules/cmnist/dense/cmnist_dense.py official repository unverified MIT (permissive) · a663197acfc463d3 · report
loss_display raillab/specialization_of_neural_modules/cmnist/dense/cmnist_dense.py official repository unverified MIT (permissive) · f15a177227d04e15 · report
loss_display_left raillab/specialization_of_neural_modules/cmnist/split/cmnist_split.py official repository unverified MIT (permissive) · 3e3f359054a45eca · report
loss_left raillab/specialization_of_neural_modules/cmnist/split/cmnist_split.py official repository unverified MIT (permissive) · 9047676b2c7a10f9 · report
loss_right raillab/specialization_of_neural_modules/cmnist/split/cmnist_split.py official repository unverified MIT (permissive) · c37b8f26096be47b · report

Tasks

Systematic Generalization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections