[Paper Review] Rearranging the Familiar: Testing Compositional Generalization in Recurrent Networks
This paper tests compositional generalization in recurrent neural networks (RNNs) using the SCAN dataset, focusing on the ability to recombine familiar functional words like 'around' and 'right' in novel contexts. Despite strong performance on seen patterns, RNNs fail to generalize systematically when required to apply compositional rules to new combinations, instead relying on extensive exposure to specific examples rather than learning abstract rules.
Systematic compositionality is the ability to recombine meaningful units with regular and predictable outcomes, and it's seen as key to humans' capacity for generalization in language. Recent work has studied systematic compositionality in modern seq2seq models using generalization to novel navigation instructions in a grounded environment as a probing tool, requiring models to quickly bootstrap the meaning of new words. We extend this framework here to settings where the model needs only to recombine well-trained functional words (such as "around" and "right") in novel contexts. Our findings confirm and strengthen the earlier ones: seq2seq models can be impressively good at generalizing to novel combinations of previously-seen input, but only when they receive extensive training on the specific pattern to be generalized (e.g., generalizing from many examples of "X around right" to "jump around right"), while failing when generalization requires novel application of compositional rules (e.g., inferring the meaning of "around right" from those of "right" and "around").
Motivation & Objective
- To investigate whether recurrent neural networks can generalize systematically when recombining well-trained functional words in novel contexts.
- To extend prior work on compositional generalization in seq2seq models by focusing on functional terms rather than novel verb learning.
- To assess the role of training data quantity and structure in enabling or preventing systematic generalization.
- To determine whether RNNs can infer the meaning of novel word combinations based on known components alone, without prior exposure to the specific combination.
Proposed method
- The study uses the SCAN dataset, a language-driven navigation environment with a phrase-structure grammar generating commands from templates.
- Experiments isolate the generalization of 'around right' as a functional template applied to new primitives (e.g., 'jump around right') after training on other primitives like 'look around right'.
- Three controlled experiments vary the number of training examples with the target template, measuring zero-shot generalization performance on held-out commands.
- Performance is evaluated on accuracy in mapping novel commands to correct action sequences, with bootstrapped 95% confidence intervals for error estimation.
- The model is trained on 100k total training presentations, with distinct example counts varying across conditions to isolate sample complexity effects.
- The framework tests generalization under conditions where the meaning of individual words is already known, isolating the challenge to compositional rule application.
Experimental results
Research questions
- RQ1Can RNNs generalize the meaning of novel combinations of familiar functional words (e.g., 'jump around right') when they have never seen that exact combination during training?
- RQ2Does the model's performance improve with increasing exposure to the specific template (e.g., 'Primitive around right') across multiple primitives, or is it limited by the absence of explicit examples?
- RQ3Is the model’s generalization based on systematic compositionality, or does it rely on memorization of specific training examples?
- RQ4How does the number of distinct training examples of a complex template affect the model’s ability to generalize to new primitives?
Key findings
- The model achieves near-perfect generalization to new primitives (e.g., 'jump around right') after being trained on just one example of the 'around right' template, indicating some analogical generalization capacity.
- Performance remains low when generalizing from known components ('around' and 'right') to novel combinations without prior exposure to the specific combination, indicating a failure of systematic compositionality.
- Generalization accuracy increases gradually with the number of training examples of the target template, peaking at 512 examples, suggesting reliance on statistical evidence rather than rule learning.
- Even after extensive exposure to individual components, the model fails to generalize when the target combination is absent from training, demonstrating a lack of compositional generalization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.