Inductive Biases for Zero-shot Systematic Generalization in Language-informed Reinforcement Learning

Negin Hashemi Dijujin, Seyed Roozbeh Razavi Rohani, Mohammad Mahdi Samiei, Mahdieh Soleymani BaghshaharXiv 2025

TL;DR

Reinforcement learning (RL) agents often fail when encountering novel combinations of familiar instructions. This paper introduces ICMO (Instruction Conditioned MOdular network), an architecture that combines Neural Production Systems with a language-grounded memory feedback loop. By routing high-level memory and instruction data back into low-level attention mechanisms, ICMO achieves near-zero generalization gaps and superior sample efficiency on compositional tasks.

What Problem Does This Paper Address?

Consider an RL agent trained to "pick up the red ball" and "open the blue door." If you suddenly ask it to "pick up the blue ball," a standard agent will often fail completely. This ability to recombine known abstract units into novel variations is called systematic (or compositional) generalization.

While natural language provides an excellent framework for compositionality, grounding language instructions into an agent's visual and decision-making pipeline is notoriously difficult. Current language-informed RL methods typically rely on simple fusion techniques—like concatenating language vectors to image features or using feature modulation (e.g., FiLM). However, these approaches lack the structural inductive biases required to keep representations modular and sparse, causing the agent to memorize specific training combinations rather than learning underlying rules.

Methods

The authors propose ICMO (Instruction Conditioned MOdular network), which introduces architecture-level inductive biases for modularity and sparsity.

The core components of ICMO include:

  1. Neural Production Systems (NPS): Instead of processing scenes with standard monolithic neural networks, ICMO uses NPS to factorize knowledge into a set of independent, differentiable condition-action rules. These rules are applied sparsely to specific input "slots" (representing distinct entities or objects in the environment) via a competitive attention bottleneck.
  2. Language Entrance via Memory: Rather than fusing the language instruction early with raw visual inputs, the instruction is processed by a GRU encoder and fed directly into a central recurrent memory module (an LSTM). This memory module acts as a high-level information aggregator.
  3. Memory Feedback (MF): Crucially, the hidden state of the memory module—which contains both the historical context of the episode and the language goal—is fed back into the NPS attention mechanisms. This feedback modifies the queries used for rule and context selection.

This design directly mirrors neurocognitive findings: the human Prefrontal Cortex (PFC) handles working memory and language instructions, sending top-down attentional feedback to mid-level visual processing regions to modulate selective attention.

Overall architecture of ICMO

Datasets

The architecture was evaluated using the BabyAI framework, a grid-world environment designed to test instruction-following agents with sparse rewards. The authors utilized six distinct levels: ActionObjDoor, GoToSeq, PutNextLocal, PickupLoc, OpenDoorsOrder, and Synth.

To rigorously test systematic generalization, the authors implemented a strict compositional train/test split ($G_{train}$ and $G_{test}$). For example, if the test split held out the combination "red box," the agent would see "red balls" and "blue boxes" during training, but never a "red box" until test time.

Key Insights and Ideas

  • Late Fusion + Feedback > Early Fusion: One of the most striking findings is that early language fusion (like FiLM) severely degrades an agent's ability to generalize systematically. Processing observations through modular rules before aligning them with language yields significantly more robust representations.
  • Memory-Guided Attention: Giving the attention mechanism access to the agent's memory history allows it to solve partial observability challenges. If an object required for a sub-goal disappears from the current field of view, the memory feedback loop ensures the agent's attention remains properly guided by past experiences.
  • Closing the Generalization Gap: By enforcing modularity through NPS and top-down guidance via memory feedback, the agent learns structural rules that apply universally, effectively closing the performance gap between training and unseen testing environments.

Key Results

ICMO was compared against strong baselines, including CNN-GRU, FiLM-BabyAI, and AttentionFusion:

  • Success Rate (SR): ICMO achieved an outstanding average test success rate of 0.97 across all tasks, significantly outperforming the next best baseline, AttentionFusion, which averaged 0.76. FiLM-BabyAI struggled heavily, averaging just 0.09.
  • Generalization Gap (GG): ICMO demonstrated a near-zero average generalization gap of 0.01, meaning its performance on completely unseen instruction combinations was virtually identical to its training performance. Baselines suffered from generalization gaps ranging from 0.10 to 0.39.
  • Sample Efficiency (SE): ICMO converged much faster than other models. On the challenging GoToSeq task, ICMO required only 3.53M frames to reach a 0.9 success rate, compared to 10.89M frames for CNN-GRU and 17.61M for the Raw baseline.

Limitations and Future Work

While highly effective, ICMO was evaluated on BabyAI's factorized, symbolic 7×7×3 representations. In real-world applications or complex 3D environments, raw pixel inputs do not come pre-packaged into clean entity "slots."

To scale this approach to complex visual domains, the authors note that ICMO would need to be paired with an upstream object-centric encoder, such as Slot-Attention or DINOSAUR, to extract entity slots from raw pixels before passing them to the NPS layer. Future work will also explore incorporating information bottlenecks and leveraging richer language modalities, such as descriptive text or wikis, rather than simple command instructions.

Summary updated

BibTeX
@misc{dijujin2025inductive,
  author = {Negin Hashemi Dijujin and Seyed Roozbeh Razavi Rohani and Mohammad Mahdi Samiei and Mahdieh Soleymani Baghshah},
  title = {{Inductive Biases for Zero-shot Systematic Generalization in Language-informed Reinforcement Learning}},
  year = {2025},
  eprint = {2501.15270},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.15270},
}
Figure