Language Model Adaption for Reinforcement Learning with Natural Language Action Space

Jiangxing Wang, Jiachen Li, Xiao Han, Deheng Ye, Zongqing LuACL 2024

Abstract

Reinforcement Learning (RL) in environments with natural language action spaces faces significant challenges due to the vast, combinatorial nature of language. While Pretrained Language Models (PLMs) can provide useful priors, they often lack domain-specific logic. This paper introduces Mutual-Information Regularized Policy Optimization (MIPO), a framework that dynamically adapts a PLM's prior knowledge to specific RL environments during training. MIPO achieves state-of-the-art performance in complex text-based games and household simulations by treating the language model as an evolving guide.

Introduction

In natural language action spaces, such as text-adventure games or robotic instruction following, agents encounter a "curse of dimensionality." The set of possible actions is effectively infinite. To mitigate this, researchers use PLMs to provide a "prior" that suggests linguistically sensible actions. However, general-purpose PLMs often conflict with environment-specific logic. MIPO addresses this by adapting the LM during the RL process without requiring additional domain-specific datasets.

Methodology: Mutual-Information Regularized Policy Optimization (MIPO)

The core of MIPO is an alternating optimization loop that unifies policy improvement and prior adaptation within a mutual-information regularized framework.

The MIPO architecture integrates graph and text encoders with a cyclic optimization loop involving the Agent Policy, Value Function, and Prior Policy, supported by a Language Model.

The process consists of three main components:

  1. Policy Evaluation & Improvement: The agent learns a policy ($\pi$) to maximize environmental rewards while being regularized to stay close to a prior policy ($\pi^{prior}$). This KL-divergence regularization ensures actions remain linguistically coherent.
  2. Prior Adaptation: Unlike static methods, MIPO uses the agent's successful experiences to update the prior policy. The agent's policy, which has access to environmental state information (like knowledge graphs), acts as a teacher for the text-only prior.
  3. Mutual Information (MI) Objective: The framework minimizes the dependency of actions on environment-specific details that the general LM wouldn't naturally know, encouraging simpler, more generalizable policies.

The authors provide a theoretical proof that this alternating cycle leads to monotonic improvement, ensuring the agent's performance consistently advances or stabilizes.

Experimental Setup

MIPO was evaluated on two primary benchmarks:

  • TextWorld (Cooking Games): A challenging environment where agents must navigate a house, collect ingredients, and follow recipes. The setup was hardened by removing recipe hints and expanding the action space.
  • VirtualHome: A 3D household simulator where agents execute natural language instructions (e.g., "put the waterglass on the kitchen cabinet") using discrete language actions.

Results and Discussion

MIPO demonstrated significant performance gains over existing baselines like GATA across various difficulty levels.

Training curves across four difficulty levels show MIPO consistently outperforming baselines in terms of train game points over episodes.

Key findings include:

  • Performance Gains: In TextWorld, MIPO outperformed GATA by 7.3% to 29.1%. In VirtualHome, MIPO achieved a score of 18.52 in Difficulty 1, compared to 5.05 for the baseline.
  • Ablation Studies: Disabling "Prior Adaptation" led to a significant drop in performance, confirming that dynamic LM adaptation is the primary driver of success.
  • Efficiency: By distilling LM knowledge into the agent's policy, the final model is more computationally efficient during deployment than methods requiring real-time LM filtering.

Conclusion and Future Work

MIPO offers a robust framework for adapting language priors to specific RL environments. While it guarantees monotonic improvement, future work could address potential oscillations in complex reward landscapes and automate the tuning of the regularization coefficient ($\alpha$). Despite these challenges, MIPO represents a significant step toward more sample-efficient and domain-aware RL in language-based spaces.

Summary updated

BibTeX
@inproceedings{wang2024language,
  author = {Jiangxing Wang and Jiachen Li and Xiao Han and Deheng Ye and Zongqing Lu},
  title = {{Language Model Adaption for Reinforcement Learning with Natural Language Action Space}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.89},
}
Figure