In the field of Reinforcement Learning (RL), agents often suffer from a "memorization trap." Much like a student who memorizes specific practice exam questions but fails when the wording changes slightly, RL agents frequently learn to associate language instructions with specific, pixel-level environment details. If an agent learns to "pick up the red ball" in a specific blue room, it often fails when the room color changes or the ball is moved. This research from Tsinghua University addresses this limitation by proposing a method to decouple language semantics from environmental state information.
The Challenge: Entangled Representations
Current language-conditional RL models struggle with generalization because they entangle the semantics of an instruction (the "what") with the state information of the environment (the "where" and "how it looks"). When an agent cannot separate the concept of a "ball" from the specific visual context of its training environment, its policy becomes fragile. The goal of this work is to extract "environment-agnostic" semantics—representations that remain invariant regardless of whether the agent is in a maze, a house, or a randomized grid-world.
Element Randomization: Forcing Invariance
To solve this, the authors introduce element randomization. This training strategy varies every attribute in the environment—such as topological structures, textures, and object positions—except for the specific element defined in the instruction (e.g., the "ball").
By introducing this noise, the agent is mathematically forced to identify the "invariant" features that actually matter for the task. The authors demonstrate that maximizing return under element randomization is equivalent to maximizing the probability of interacting with the correct goal element, effectively using environmental noise as a teacher for semantic clarity.
Hierarchical Architecture and Augmented Memory
The proposed system utilizes a hierarchical architecture to bridge the gap between high-level language and low-level actions:
- Subgoal Executor Network (SEN): This low-level network learns to execute basic, object-oriented tasks (like "pick up key"). It treats subgoals as one-hot vectors, creating a stable interface that doesn't break when visual details change.
- Language Comprehending Network (LCN): This high-level network maps complex language instructions and abstract observations into a sequence of subgoals for the SEN.
To handle complex, multi-step tasks, the system incorporates a Language Trajectories Memory. This external memory stores successful sequences of subgoals. When faced with a new, complex task, the agent can explore the low-dimensional subgoal space, find a solution, and then "replay" that trajectory to complete the task reliably in the future.
Experimental Results on BabyAI
The researchers evaluated their model using the BabyAI platform, a grid-world benchmark for grounded language learning. The model was tested on increasingly difficult tasks, including navigating through up to nine rooms with randomized layouts.
- Superior Generalization: In a 3-room navigation task, the proposed LCN-SEN model achieved a 79% success rate, while standard hierarchical methods like HIRO and Option-Critic failed to reach even 1%.
- Scaling to Complexity: In the massive search space of a 9-room task, the model maintained a 28% success rate, whereas traditional RL methods failed completely (0%) due to sparse rewards and environmental complexity.
- Semantic Clustering: T-SNE visualizations confirmed that the network successfully clustered objects by semantic meaning (e.g., grouping all "keys" together regardless of color) rather than visual similarity.
Conclusion and Future Work
By decoupling semantics from state through element randomization and hierarchical subgoals, this approach enables "one-shot" generalization in complex environments. While currently limited to a fixed subgoal space in 2D environments, the research paves the way for more robust robotics. Future work may involve integrating Large Language Models (LLMs) to allow agents to reason more fluidly between linguistic instructions and physical actions in 3D, real-world settings.
Summary updated