Abstract
Achieving compositional generalization—the ability to follow novel instructions by recombining known concepts—remains a significant challenge in grounded language learning. This paper introduces a modular architecture that leverages induced model sparsity to decouple language understanding from navigation. By employing sparse factored attention and L1 regularization, the model learns atomic word-to-attribute mappings. Evaluated on the BabyAI environment, our approach demonstrates exceptional sample efficiency, reaching near-perfect success rates on out-of-distribution tasks with orders of magnitude less data than standard Transformer-based agents.
Introduction
In grounded language learning, agents are tasked with executing actions based on natural language instructions, such as "go to the red box." A persistent issue in this field is the tendency of neural networks to overfit to training distributions. For instance, if an agent is trained exclusively on "red balls" and "blue boxes," it may fail to generalize to a "red box" because it has conflated the color "red" with the object "ball." This failure highlights a lack of compositional generalization.
While large-scale models like Transformers can eventually learn these patterns, they are often sample-inefficient, requiring vast amounts of data to disentangle independent concepts. This research proposes that sparsity can serve as a powerful inductive bias, forcing models to learn robust, modular representations that generalize naturally to novel combinations.
Methodology: Sparsity and Decoupling
The proposed architecture decouples the problem into two distinct components: a goal-identification module (Language) and a pathfinding module (Planning).
Sparse Factored Attention
Instead of treating objects as monolithic entities, the model represents them through "factors" such as color and type. A specialized attention mechanism is employed to create a one-to-one mapping between instruction words and these factors. To ensure these mappings are clean and non-redundant, the researchers apply an L1 regularization penalty to the connections. This "induced sparsity" discourages the model from creating "blurry" associations, forcing it to identify the simplest relationship—for example, mapping the word "blue" strictly to the blue color channel.
Self-Supervised Learning and Planning
To train without exhaustive manual labeling, a self-supervised discriminator analyzes expert demonstrations. It learns to identify the goal cell by observing the agent's final state. Once the goal is identified, a Value Propagation Network (MVProp) handles navigation. Because the navigation logic is decoupled from language processing, the agent does not need to relearn how to move when encountering new linguistic combinations.
Experimental Results
The model was evaluated using the BabyAI GoToLocal task, a 2D grid world environment. To test compositional generalization, the researchers utilized an "Out-of-Distribution" (OOD) split, where certain attribute-object combinations (e.g., "red box") were withheld during training and used exclusively for testing.
Sample Efficiency and OOD Performance
The results demonstrate a stark contrast between the proposed "Factored/MVProp" model and standard baselines. Our model achieved near-perfect success rates with as few as 50 samples per goal. In comparison, standard Transformer-based architectures and GRU-Encoder/FiLM-Decoder models required thousands of samples to reach comparable performance, often failing to generalize to OOD tasks entirely.
Qualitative analysis of the internal weights confirmed that the sparse model developed a nearly perfect "internal dictionary," mapping words to attributes with minimal noise. This precision is the key to its robust OOD performance, maintaining a 95% success rate on novel combinations where baseline models often dropped to near zero.
Discussion and Future Work
The success of this approach underscores the value of sparsity as a reasoning tool rather than just a method for model compression. By limiting the "connection budget," the model is forced to learn atomic meanings that are inherently compositional.
However, limitations remain. The current study utilizes a fully observable 2D environment with pre-disentangled attributes. Future research should investigate whether these sparse mappings can be learned directly from raw pixels in partially observable 3D environments. Additionally, extending the architecture to handle complex, multi-step instructions (e.g., "go to the red box then the green key") is a vital next step for real-world robotics applications.
Conclusion
By inducing sparsity and decoupling language from planning, we can create agents that learn more like humans—identifying the building blocks of language and recombining them to solve new problems. This approach offers a path toward more sample-efficient and robust grounded language learning.
Summary updated