Introduction
Interactive text environments, such as classic adventure games, present a formidable challenge for standard Reinforcement Learning (RL). Unlike environments with discrete, low-dimensional action spaces, text games require navigating compositional action spaces where billions of combinations are possible (e.g., "open the wooden chest with the rusty key"). Furthermore, these environments are characterized by sparse rewards and long-range dependencies. This work introduces Language Decision Transformers (LDTs), shifting the paradigm toward offline RL to leverage the pre-existing world knowledge in Large Language Models (LLMs).
Methodology
LDTs treat reinforcement learning as a sequence modeling problem. The architecture utilizes a LongT5 backbone to manage the extensive text histories typical of long-form games, which standard Transformers often struggle to process.
A core innovation is the Exponential Tilt mechanism. Traditional Decision Transformers require a manually specified target return. LDTs instead predict the distribution of future scores and apply an exponential tilt—weighting goal probabilities by $\exp(\alpha \cdot \text{goal})$. This allows the agent to "aim high" and bias its policy toward maximum rewards without prior knowledge of the game's ceiling. Additionally, the model is trained with an auxiliary loss to predict the next observation ($o_{t+1}$), effectively serving as a world model that understands environmental consequences.
Data Generation and Training
To facilitate offline learning, the authors developed a "noisy walkthrough" dataset using the Jericho benchmark. By taking expert human trajectories and injecting random actions at various breakpoints, they generated a diverse dataset of 1,005 trajectories per game. This variety ensures the model learns from both expert-level play and failures.
Key Results
LDTs achieved state-of-the-art performance on several challenging Jericho games, including Enchanter and Spellbreaker. Empirically, LDTs outperformed established online RL baselines like DRRN and KG-A2C by approximately 30% on average across all environments.
The effectiveness of the exponential tilt is particularly noteworthy. As shown in the performance metrics, increasing the tilt parameter $\alpha$ allows the model to match the performance of an agent provided with the "optimal" goal conditioning, proving the model can effectively navigate toward high rewards autonomously.
Discussion and Limitations
While LDTs represent a significant step forward, they remain dependent on the presence of at least one high-quality walkthrough in the training data to define the "golden path." Current models also struggle with zero-shot generalization to entirely new games. Future work will focus on scaling datasets and improving the handling of stochastic environments to enhance the robustness of language-based decision agents.
Summary updated