Compositional Learning of Visually-Grounded Concepts Using Reinforcement

Zijun Lin, Haidi Azaman, M Ganesh Kumar, Cheston Tan

TL;DR

Reinforcement learning (RL) agents typically struggle to compose multimodal concepts and generalize to out-of-distribution instructions. By training agents on invariant visual concepts (e.g., learning "red" across many shapes) before teaching them attribute combinations, this paper demonstrates a 20× speedup on held-out compositional tasks and unlocks zero-shot navigation in complex, multi-shape 3D environments.

What Problem Does This Paper Address?

Humans, especially young children, seamlessly learn basic conceptual primitives (like colors and shapes) and recompose them to interpret novel instructions on the fly. In contrast, standard deep reinforcement learning agents require millions of interactions and typically fail when faced with out-of-distribution (OOD) visual-language tasks.

Existing vision-language navigation agents often treat compound instructions as monolithic tokens or struggle to decompose visual scenes into reusable primitives. The authors set out to investigate whether RL agents can learn to decompose multimodal instructions, how concept-level pretraining affects compositional learning speed, and what role pretrained language representations play in compositional generalization.

Methods

The authors build a visually grounded navigation agent using standard RL building blocks:

  • Architecture: A Convolutional Neural Network (CNN) visual backbone, an LSTM module for temporal memory, an Advantage Actor-Critic (A2C) learning algorithm, and a modular text encoder.
  • Curriculum Regimes:
  • Compositional Learning ($C\&S$): Agents are trained to navigate to combined targets (e.g., "red sphere") using 20 training combinations and evaluated on 5 held-out combinations.
  • Concept Learning ($C|S$): Agents are trained on isolated single-attribute instructions (e.g., just "black" or "prism"). To succeed, the agent must learn visual invariance (e.g., identifying "black" regardless of object geometry).
  • Sequential Curriculum ($C|S \rightarrow C\&S$): Agents first learn individual concepts, then proceed to compositional combinations.
  • Text Representation Comparison: The authors contrast standard one-hot representations against a scratch-trained embedding baseline, a frozen language-only encoder (BERT), and a frozen vision-language encoder (CLIP).

Success is measured against a strict Performance Criterion: maintaining an average episode reward $\ge +9$ (out of a theoretical maximum of $+10$) over 100 consecutive episodes.

Datasets

The authors created synthetic 3D room environments to maintain strict control over train-test balance:

  • $C\&S$ / $C|S$ Environments: 5 distinct shapes (capsule, cube, cylinder, prism, sphere) and 5 colors (red, green, blue, yellow, black). 20 pairs are used for training, with 5 held-out diagonal pairs for testing.
  • $C\&S\&S$ Environment: A complex, test-only benchmark featuring composite objects made of two fused shapes with a color instruction (e.g., "red sphere cylinder"). Divided into Familiar and Unseen combinations.
  • $C^*\&S$ Environment: An evaluation benchmark featuring 5 novel, out-of-vocabulary colors (cyan, magenta/pink, orange, purple, white) to evaluate zero-shot lexical transfer.

Key Insights and Ideas

  • Invariance is harder than composition, but provides the right inductive bias: Navigating to "black" requires ignoring 5 possible shapes, whereas "black cube" defines an exact visual appearance. While individual concept learning requires learning invariance across confounding features, this foundational schema drastically accelerates downstream compositional learning.
  • Concepts prevent catastrophic overfitting: Agents trained solely on pairwise combinations completely collapsed when evaluated on compound, multi-shape objects ($C\&S\&S$). Only agents trained on invariant concepts first ($C|S \rightarrow C\&S$) maintained their foundational representations and generalized in zero-shot to higher-order compositions.
  • Vision-grounded embeddings beat pure-language pretraining: BERT embeddings failed to achieve the performance criterion on held-out combinations within 200,000 episodes. Conversely, CLIP's multimodal pretraining aligned with visual features, speeding up convergence and enabling zero-shot comprehension of unseen colors.

Key Results

  • 20× Faster Compositional Generalization: Naive agents required 67.4k training episodes (train combinations) and 94.8k episodes (held-out test combinations) to reach the performance criterion. Agents pretrained on invariant concepts ($C|S \rightarrow C\&S$) achieved the criterion in just 0.6k train episodes ($~100\times$ faster) and 5.5k test episodes ($~17–20\times$ faster).
  • Zero-Shot Transfer to Complex Shapes ($C\&S\&S$): The sequential $C|S \rightarrow C\&S$ agents attained positive evaluation rewards (5.49 on familiar, 5.55 on unseen combinations). All other training regimes failed (rewards ranging from -5.10 to -23.2).
  • Text Encoder Comparison: CLIP text embeddings reached the criterion faster than one-hot encoders (56.2k train / 72.6k test episodes vs. 67.4k / 94.8k).
  • Zero-Shot Color Generalization: When evaluated on 5 completely unseen colors in $C^*\&S$, CLIP-equipped agents achieved a zero-shot average reward of 6.9, proving they could ground novel linguistic terms without environment retraining.

Limitations and Future Work

  • Simplified Visual Complexity: Experiments were conducted in synthetic, uncluttered rectangular rooms with primitive geometric solids; performance in visually rich, realistic household environments remains to be established.
  • Mechanistic Opacity: It remains unclear precisely how the CNN-LSTM representations bind novel visual primitives to linguistic tokens at a mechanistic level.
  • Future Work: The authors propose using this parametric synthetic framework to systematically vary environment differences and benchmark transfer learning regimes for embodied AI agents.

Summary updated

BibTeX
@inproceedings{lin2024compositional,
  author = {Zijun Lin and Haidi Azaman and M Ganesh Kumar and Cheston Tan},
  title = {{Compositional Learning of Visually-Grounded Concepts Using Reinforcement}},
  booktitle = {SynData4CV @ CVPR},
  year = {2024},
  url = {https://openreview.net/forum?id=XusBKwfVxX},
}
Figure