Text-to-Decision Agent: Offline Meta-Reinforcement Learning from Natural Language Supervision
Shilin Zhang, Zican Hu, Wenhao Wu, Xinyi Xie, Jianxiang Tang, Chunlin Chen, Daoyi Dong, Yu Cheng, Zhenhong Sun, Zhi Wang
TL;DR
T2DA introduces a scalable framework for offline meta-RL that grounds natural language supervision in environment dynamics. It builds a dynamics-aware world model to encode multi-task data, then uses CLIP-style contrastive pre-training to align language descriptions with decision embeddings, enabling zero-shot text-to-decision generation. The approach supports two scalable policies—Text-to-Decision Diffuser and Text-to-Decision Transformer—achieving state-of-the-art zero-shot generalization on MuJoCo and Meta-World benchmarks with robustness to data quality and language-encoder choices. This work opens pathways for scalable, language-driven generalist offline RL agents and suggests directions for scaling to real-world embodied systems.
Abstract
Offline meta-RL usually tackles generalization by inferring task beliefs from high-quality samples or warmup explorations. The restricted form limits their generality and usability since these supervision signals are expensive and even infeasible to acquire in advance for unseen tasks. Learning directly from the raw text about decision tasks is a promising alternative to leverage a much broader source of supervision. In the paper, we propose \textbf{T}ext-to-\textbf{D}ecision \textbf{A}gent (\textbf{T2DA}), a simple and scalable framework that supervises offline meta-RL with natural language. We first introduce a generalized world model to encode multi-task decision data into a dynamics-aware embedding space. Then, inspired by CLIP, we predict which textual description goes with which decision embedding, effectively bridging their semantic gap via contrastive language-decision pre-training and aligning the text embeddings to comprehend the environment dynamics. After training the text-conditioned generalist policy, the agent can directly realize zero-shot text-to-decision generation in response to language instructions. Comprehensive experiments on MuJoCo and Meta-World benchmarks show that T2DA facilitates high-capacity zero-shot generalization and outperforms various types of baselines. Our code is available at \textcolor{magenta}{\href{https://github.com/NJU-RL/T2DA}{https://github.com/NJU-RL/T2DA}}.
