Abstract
Reinforcement learning (RL) agents often struggle with "data hunger," requiring vast amounts of experience to generalize across diverse natural language instructions. This paper introduces a framework that leverages compositionality and pretrained language models to address this bottleneck. By combining a T5 transformer with compositional value functions (Boolean Task Algebra), the proposed agent learns to follow new instructions with up to 98% fewer training steps than traditional end-to-end methods.
Introduction
Teaching agents to follow natural language instructions is a multifaceted challenge. An agent must simultaneously decode linguistic meaning, perceive its environment, and execute a sequence of actions to achieve a goal. Traditional "end-to-end" models often treat every new instruction as a novel problem; for instance, learning to "pick up a red ball" does not inherently help the agent "pick up a blue ball." This lack of generalization makes RL agents impractical for dynamic, real-world settings where data collection is expensive.
Methodology: Compositional Value Functions and Language Translation
The authors propose a modular system that decouples language understanding from task execution, mirroring human cognitive processes.
Boolean Task Algebra
Instead of a monolithic policy, the agent learns "atomic" value functions for fundamental concepts (e.g., colors like "red" or objects like "ball"). These functions are combined using Boolean Task Algebra, employing logical operators such as AND ($\wedge$), OR ($\vee$), and NOT ($\neg$). For example, the value function for "red ball" is derived as the intersection (minimum) of the "red" and "ball" atomic functions.
Language-to-Logic Mapping
A pretrained T5 (Text-to-Text Transfer Transformer) model serves as the translator. It maps natural language commands (e.g., "pick up the red ball") into logical expressions (e.g., pickup_red AND pickup_ball). This translation model is fine-tuned via RL feedback: successful task completion reinforces the chosen logical mapping.
Experimental Setup and Results
The framework was evaluated on the BabyAI PickUpObj environment, a grid world requiring navigation and object manipulation across 18 tasks involving various colors and object types.
Massive Sample Efficiency
The most significant finding was the dramatic reduction in training requirements. After mastering an initial task, the training steps needed for subsequent tasks dropped by 86%. By the 18th task, the required training was 98% lower than that of a randomly initialized model.
The Role of Pretraining
Using a T5 model pretrained on general web text (C4 dataset) allowed for near-instant generalization. The "rich" internal representations of the language model enabled it to map instructions to logic after seeing only a few examples, highlighting the power of transferring broad linguistic knowledge to specific RL domains.
Conclusion and Future Work
By separating the meaning of an instruction from its execution, the agent avoids re-learning basic motor skills for every new command. While highly efficient, the current system depends on predefined "atomic" tasks. Future research aims to scale this approach to complex 3D environments and develop fully differentiable pipelines that can learn new atomic concepts from raw pixels and rewards.
Summary updated