Recombination without composition leads to systematic limits of meta-learned neural networks for compositionality

Hannah Willkomm, Tim Woydt, Antonia Wüst, Moritz Willig, Kristian Kersting, Constantin A. RothkopfarXiv 2026

TL;DR

Can neural networks genuinely learn abstract rules, or are they just world-class pattern matchers? While recent "meta-learning for compositionality" (MLC) models boasted human-like rule generalization, this paper peeks under the hood to show they actually rely on recombining familiar templates rather than true composition. Even within their training boundaries, these networks can solve parts of a problem individually yet completely fail when asked to chain those exact same parts together.

What Problem Does This Paper Address?

Back in 1988, cognitive scientists Fodor and Pylyshyn threw down a gauntlet: standard neural networks, relying purely on statistical associations, cannot guarantee systematic compositionality—the ability to understand and combine familiar elements into novel structures using abstract rules (like knowing what "blicket twice" means the instant you learn the word "blicket").

Recently, researchers proposed Meta-Learning for Compositionality (MLC)—training standard sequence-to-sequence networks across thousands of miniature, hidden-grammar tasks—and claimed its high test accuracy finally resolved this decades-old debate. The authors of this paper ask a crucial question: Does acing a benchmark actually prove a model has learned abstract rules? Separating surface performance from true underlying competence is notoriously tricky, and standard train-test splits often let models coast by on statistical shortcuts.

Methods

To rigorously test what meta-learned networks actually learn, the authors introduce a three-tiered hierarchy of evidence for compositional competence:

  1. Level 1 (Benchmark evidence): Standard accuracy on predefined train-test splits.
  2. Level 2 (Behavioural evidence): Controlled stress-tests that systematically shift sequence lengths, argument widths, and rule structures beyond the statistical habits of training.
  3. Level 3 (Grammar-level evidence): Extracting an explicit symbolic grammar directly from a model’s internal weights and states.
The few-shot grammar-learning task and the three-level hierarchy of evidence for compositional competence.

Focusing on Levels 1 and 2, the authors evaluate standard MLC-trained encoder-decoder Transformers and key-value memory LSTMs. What’s novel here is their procedural out-of-training (OOT) generator featuring rule and item injection. Instead of relying on random test splits, they surgically alter hidden grammars—moving an operator's position, mapping a word to two output tokens instead of one, or chaining specific rules together—to isolate whether models abstract rules from few-shot examples or merely slot new words into memorized shapes.

Datasets

  • MLC Grammar Datasets: 100,000 meta-training and 200 validation episodes from Lake & Baroni (2023), translating pseudowords (e.g., dax, lug) into colored circles via hidden rules. The authors also evaluate checkpoints trained with human-like heuristic biases.
  • SCAN: The classic instruction-following benchmark ("jump twice" $\rightarrow$ JUMP JUMP), used as a replication control for the LSTM.
  • Procedurally Generated OOT Suites: Newly generated, tightly controlled episodic test sets that systematically vary sequence bounds, rule structures, and rule compositions while holding other factors constant.

Key Insights and Ideas

  • The Benchmark Illusion: Why do models score >95% on standard validation? Because 178 of the 200 validation grammars reuse exact combinations of rule forms seen in training, and over 76% of queries apply at most a single function rule. Models mostly just swap new vocabulary into practiced templates.
Benchmark accuracy is high overall, but drops sharply on complex rule forms and operates within a very narrow window of sequence lengths and rule applications.
  • Parts-Correct, Whole-Wrong: The sharpest "aha" moment happens well inside the training distribution. When given two simple rules—a reversing function $f$ and an order-preserving function $g$—the Transformer solves both the inner step and outer step of an alternating chain ($fgf$) in isolation, yet completely faceplants when asked to compute the full $fgf$ expression at once, defaulting to repeating $fff$ instead.
  • Recombination, Not Abstraction: Models easily handle never-before-seen pairings of familiar rule pieces, yet fail when a single structural property is tweaked (like putting an operator at the start of a phrase instead of the middle), even when given the exact same number of helpful examples in context.
  • More Evidence Can Hurt: Because Transformers process few-shot examples in their context window, accuracy tracks how closely the prompt length matches meta-training—not how much information they get. Giving a model more helpful examples at test time can actually tank its accuracy!

Key Results

  • Aggregate vs. Granular Accuracy: On standard validation, the Transformer hits 95.2% and the LSTM hits 87.8%. However, on complex binary string rules ($x\,F\,x$), accuracy drops to 74.0% (Transformer) and 48.9% (LSTM).
  • Prompt Mismatch Penalty: For a Transformer trained on 15 support examples, increasing test-time support examples from 25 to 40 causes novel-query accuracy to plunge from 88% to 41%.
  • Within-Range Degradation: As input length grows from 2 to 8 tokens (still inside training bounds!), Transformer accuracy slides from 98.4% to 64.5%, and LSTM plunges from 98.5% to 10.5%. Beyond 8 tokens, models hit a learned wall, emitting an end-of-sequence token with $\ge$ 0.98 probability.
  • Rule Tweaks vs. Recombination: Unseen pairings of familiar 7-reference components achieve 95% Transformer accuracy, whereas changing operator positions, arity, or mapped token counts drops accuracy to 0%–45%.
  • Composition Collapse: On alternating 3-step compositions ($fgf$), the Transformer answers the isolated inner and outer sub-queries with 98.8% and 100% accuracy, respectively, yet scores 0% on the combined query.

Limitations and Future Work

  • No Level 3 Analysis: The authors stop at Level 2 (behavioural tests). While behavioral failures are enough to disprove systematic competence, peering inside the network (Level 3 mechanistic interpretability) is needed to see how the models pull off template recombination and why rule chaining breaks down.
  • Human Comparisons Remain Open: The study tests pure algebraic competence, not whether MLC models make the same mistakes humans do on these specific multi-step compositions—human data for these newly injected conditions doesn't exist yet.
  • Future Directions: Rather than relying purely on statistical scale or broader meta-training (which may just expand the pool of memorized templates), the authors point toward neurosymbolic architectures that bake in explicit structural scaffolding, alongside smarter benchmarks that untangle productivity, systematicity, and memorization.

Summary updated

BibTeX
@misc{willkomm2026recombination,
  author = {Hannah Willkomm and Tim Woydt and Antonia Wüst and Moritz Willig and Kristian Kersting and Constantin A. Rothkopf},
  title = {{Recombination without composition leads to systematic limits of meta-learned neural networks for compositionality}},
  year = {2026},
  eprint = {2611.37618},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.37618},
}
Figure