Multitasking Inhibits Semantic Drift

Athul Paul Jacob, Mike Lewis, Jacob Andreas

Abstract

Latent Language Policies (LLPs) enable hierarchical agents to communicate using natural language to solve complex tasks. However, joint reinforcement learning (RL) often results in "semantic drift," where the agents' communication evolves away from human-understandable meanings to maximize rewards. This paper investigates this phenomenon through theoretical modeling and experiments in a real-time strategy game. We demonstrate that training a shared executor across multiple tasks with diverse instructors effectively stabilizes language semantics, improves learning efficiency, and enhances agent interpretability.

Introduction

In hierarchical reinforcement learning, Latent Language Policies (LLPs) utilize natural language as an intermediate bridge between a high-level instructor, responsible for planning, and a low-level executor, responsible for action. While these models are typically initialized with human data to ensure linguistic grounding, subsequent RL training often leads to semantic drift. This occurs when the instructor and executor co-adapt, using messages in ways that no longer align with their original natural language meanings—for instance, an instructor might say "build a dragon" to signal the executor to "scout with a peasant." This drift undermines the interpretability and controllability that make LLPs valuable.

Theoretical Framework: The Lewis Signaling Game

To understand the dynamics of semantic drift, the authors model LLP training as an iterated Lewis Signaling Game. In this setup, an instructor observes a state and sends a message to an executor, who then performs an action. The goal is to maximize a shared reward.

The theoretical setup models the instructor-executor relationship as a signaling game with varying reward structures (R and R') across tasks.

By treating the learning process as a dynamical system (gradient flow), the authors prove that in a simple two-task setup, multitask training eliminates the mathematical conditions that typically lead to semantic drift. When an executor must respond to different instructors with varying goals, the "natural" human-meaningful equilibrium becomes the most stable state for the system.

Empirical Evaluation in MiniRTS

The authors implemented a neural LLP within MiniRTS, a complex real-time strategy game. The architecture consists of an instructor generating high-level commands from a set of 500 human-provided strings, and an executor mapping these strings and the game state to low-level unit actions.

Comparison between standard single-task training and the proposed multitask training regime. In multitask training, a shared executor learns from a population of task-specific instructors.

To create a multitask environment, the authors designed 10 variants of MiniRTS by modifying unit attributes (e.g., attack multipliers). This forces instructors to develop distinct high-level strategies. The training pipeline involves initial Behavior Cloning on a crowdsourced dataset of 5,392 human games, followed by fine-tuning using Proximal Policy Optimization (PPO).

Key Insights: Diversity as a Stabilizer

The core finding is that semantic drift is often a form of over-specialization. Language acts as a bottleneck; by forcing this bottleneck to serve diverse needs across multiple tasks, the executor cannot afford to let a specific message drift into a niche, "secret" meaning. It must maintain the general, grounded meaning of the command to remain useful across the entire task distribution.

The authors measured drift using agent interoperability. If an RL-trained executor can still follow instructions from a "clean" instructor (trained only on supervised human data), it indicates that the executor's understanding hasn't drifted. Multitask executors significantly outperformed single-task ones in these tests.

Results and Performance

  • Win Rate: In the original MiniRTS environment, the multitask RL model achieved a 76.5% win rate, outperforming the single-task RL model (65.7%) and the supervised baseline (30.3%).
  • Drift Reduction: Quantitative analysis of message-action correspondence showed that multitask training resulted in a much clearer alignment between instructions and actions. The total "drift score" was significantly lower for multitask training (1.98) compared to single-task training (2.98).
  • Efficiency: Multitask training allowed the model to reach higher performance levels with fewer total episodes per environment.

Conclusion

This work demonstrates that multitasking is a powerful tool for stabilizing the semantics of latent language in hierarchical RL. By preventing agents from over-specializing their communication for a single task, we can maintain the interpretability and human-alignment of LLPs. Future work may explore larger agent populations and the dynamics of syntactic drift in more open-ended language generation tasks.

Summary updated

BibTeX
@inproceedings{jacob2021multitasking,
  author = {Athul Paul Jacob and Mike Lewis and Jacob Andreas},
  title = {{Multitasking Inhibits Semantic Drift}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.naacl-main.421},
}
Figure