Abstract
In this work, we analyze the performance of general deep reinforcement learning algorithms for a task-oriented language grounding problem, where language input contains multiple sub-goals and their order of execution is non-linear. We generate a simple instructional language for the GridWorld environment, that is built around three language elements (order connectors) defining the order of execution: one linear - "comma" and two non-linear - "but first", "but before". We apply one of the deep reinforcement learning baselines - Double DQN with frame stacking and ablate several extensions such as Prioritized Experience Replay and Gated-Attention architecture. Our results show that the introduction of non-linear order connectors improves the success rate on instructions with a higher number of sub-goals in 2-3 times, but it still does not exceed 20%. Also, we observe that the usage of Gated-Attention provides no competitive advantage against concatenation in this setting.
Introduction
Task-oriented language grounding requires an AI agent to map natural language instructions to visual observations and actions. While most existing research focuses on linear instructions—where tasks are executed in the sequence they are spoken—natural human language is often non-linear. We frequently use connectors like "but first" or "but before" to reorder tasks on the fly. This paper investigates whether standard deep reinforcement learning (DRL) agents can learn to parse these non-linear order connectors directly from language input and generalize this understanding to longer, unseen instruction sequences.
Methods
The problem is framed as a Markov Decision Process solved using a single-actor Double DQN (DDQN) baseline. To facilitate learning, a potential-based reward shaping scheme provides hints based on the remaining steps for the current sub-goal.
The study explores two architectural and algorithmic variations:
- Feature Fusion: Comparing simple Concatenation (Cat) of visual and text features against a Gated-Attention (GA) mechanism. GA is often used for visual reasoning, but its utility for parsing logical order is tested here.
- Experience Replay: Comparing a standard replay buffer against Prioritized Experience Replay (PER), which may act as an implicit curriculum for mastering complex instruction logic.
To address partial observability, the agent utilizes frame stacking of the last four observations.
Experimental Setup
The authors developed a custom instructional language generator within a GridWorld environment. The agent must navigate to colored objects (Red, Blue, Green) in the exact order dictated by the text. Three connectors define the execution logic:
- Comma (Linear): Sequential execution (e.g., "Go to red, go to blue").
- But First (Non-linear, Absolute): Moves the last sub-goal to the front of the execution order.
- But Before (Non-linear, Relative): Swaps the order of two consecutive sub-goals.
The dataset is split to test generalization: models are trained exclusively on instructions with 1-3 sub-goals and tested on instructions with 4-6 sub-goals.
Results and Discussion
The best-performing agent configurations achieved near-perfect success rates on the training distribution (up to 100%). However, generalization to longer sequences remains a significant bottleneck.
The Impact of Architecture and PER
Prioritized Experience Replay (PER) proved essential for multi-task grounding, providing a 10-20% boost in success rates compared to standard buffers. Interestingly, simple concatenation consistently outperformed the more complex Gated-Attention mechanism in parsing logical connectors, suggesting that GA may not be a "silver bullet" for logic-heavy tasks.
Generalization Performance
Despite mastering training tasks, success rates on instructions with 4-6 sub-goals peaked at approximately 17.6% to 20.8%. Notably, exposure to non-linear connectors during training improved generalization on linear tasks by 2-3x compared to training on linear tasks alone, suggesting that complex grammar forces the agent to learn more robust sequence representations.
Conclusion
While DRL agents can learn to handle non-linear instructions within their training distribution, generalizing to increased complexity (more sub-goals) is difficult. Future work should explore recurrent architectures (RNNs/LSTMs) to better handle variable-length sequences or Hindsight Experience Replay (HER) to improve sample efficiency in more visually complex environments.
Summary updated