Abstract
For decades, cognitive scientists have debated whether neural networks can achieve human-like "systematic compositionality"—the ability to understand and produce novel combinations of known concepts. This paper introduces Meta-Learning for Compositionality (MLC), a technique that trains standard Transformer architectures over a dynamic stream of compositional tasks. Our results demonstrate that MLC not only achieves human-level systematic generalization but also captures the specific inductive biases and error patterns characteristic of human cognition. Furthermore, MLC dramatically improves performance on established machine learning benchmarks, suggesting that systematicity can be an emergent property of data-driven meta-learning rather than a requirement for hardcoded symbolic logic.
Introduction: The Challenge of Systematicity
In 1988, Jerry Fodor and Zenon Pylyshyn famously argued that artificial neural networks were fundamentally inadequate as models of the human mind because they lacked "systematicity." Humans possess an inherent algebraic capability: if a person understands the meaning of "skip" and "backwards," they can immediately understand the command "skip backwards," even if they have never encountered that specific combination before.
Despite the success of modern deep learning, standard neural networks often struggle with this type of out-of-distribution generalization. They frequently fail when presented with novel combinations of familiar elements, leading many to believe that symbolic, rule-based systems are necessary to achieve true compositionality. This paper challenges that notion by demonstrating that a standard neural network can be optimized for systematicity through meta-learning.
Meta-Learning for Compositionality (MLC)
The authors propose Meta-Learning for Compositionality (MLC), a method that utilizes a standard sequence-to-sequence Transformer without architectural modifications. The key innovation lies in the training regime. Instead of static supervised learning, the model is trained over a series of "episodes."
In each episode, the model is presented with a set of "study examples"—few-shot demonstrations of a hidden grammar—followed by a "query instruction." The model must infer the underlying rules from the study examples to produce the correct output for the query. To ensure the model aligns with human cognition, the authors also injected human-like inductive biases into the training data, such as "one-to-one" mapping (associating one word with one symbol) and "iconic concatenation" (maintaining the order of inputs in the output).
Experimental Evaluation
The MLC framework was evaluated against three primary datasets:
- Human Behavioral Data: A newly collected dataset where participants learned a pseudolanguage mapping nonsense words (e.g., "dax", "fep") to colored symbols in a few-shot setting.
- SCAN Benchmark: A standard test for translating natural language instructions into action sequences, specifically focusing on the difficult "add jump" split.
- COGS Benchmark: A dataset designed to test lexical and structural generalization in translating English sentences into semantic logical forms.
Results and Human-Like Biases
The results indicate that MLC successfully bridges the gap between flexible neural networks and rigid symbolic models. In the pseudolanguage task, humans achieved an 80.7% rate of exact algebraic matches. The MLC model achieved a comparable 82.4% match rate. Crucially, MLC did not just match the accuracy; it mirrored the distribution of human errors, favoring the same inductive biases that humans use when faced with ambiguous instructions.
On machine learning benchmarks, the performance was even more striking. On the SCAN "add jump" task, where standard models typically fail with near 100% error rates, MLC achieved a near-perfect error rate of 0.22%. Similarly, on the COGS lexical generalization task, MLC reduced the error rate to 0.87%, compared to 6.08% for standard sequence-to-sequence models.
Conclusion and Future Directions
The success of MLC suggests that systematicity is not necessarily an architectural requirement but can be induced through a proper meta-learning curriculum. This "Goldilocks" model captures both the rule-following behavior of symbolic systems and the nuanced, bias-driven flexibility of human thought.
However, limitations remain. While MLC excels at systematicity, it still struggles with "productivity"—generalizing to sequences significantly longer than those encountered during training. Future research may explore integrating MLC episodes into the training of Large Language Models (LLMs) to enhance their compositional reasoning and few-shot learning capabilities.
Summary updated