Abstract
A common training technique for language models is teacher forcing (TF). TF attempts to match human language exactly, even though identical meanings can be expressed in different ways. This motivates use of sequence-level objectives for dialogue response generation. In this paper, we study the efficacy of various offline reinforcement learning (RL) methods to maximize such objectives. We present a comprehensive evaluation across multiple datasets, models, and metrics. Offline RL shows a clear performance improvement over teacher forcing while not inducing training instability or sacrificing practical training budgets.
Introduction
Most modern dialogue systems are trained using Teacher Forcing (TF), a supervised learning approach where the model is penalized for every token that deviates from a ground-truth human response. While effective for learning grammar and syntax, TF is a "needlessly challenging" objective for natural language. In conversation, there are often dozens of valid ways to convey the same information. For instance, if a human says "Your flight is booked" and the model responds with "The flight is confirmed," TF treats the response as an error despite the semantic equivalence.
While Online Reinforcement Learning (e.g., PPO) can optimize for semantic meaning rather than token-level matching, it faces significant hurdles in NLP. The action space—the model's vocabulary—is typically over 50,000 words, making exploration highly inefficient. Furthermore, online RL requires constant interaction with an environment or human-in-the-loop, which is computationally expensive and prone to training instability. This research explores whether Offline RL can provide the benefits of sequence-level optimization using only static, pre-collected datasets.
Methodology
The study evaluates three primary offline RL strategies against a standard Teacher Forcing baseline:
- TF-Top (Fine-tuning on Top Returns): A baseline where the model is fine-tuned exclusively on the highest-reward examples within the dataset.
- Decision Transformer (DT): An architecture that treats RL as a sequence-modeling problem. By conditioning generation on a "target return," the model can be prompted at inference time to generate responses that maximize the expected reward.
- Implicit Q-Learning (ILQL): An off-policy method that utilizes a "critic" to estimate the value of specific tokens. The authors utilize a regularized version of ILQL to ensure robustness against the base TF model.
The Reward Function
To move beyond literal token matching, the researchers utilized BERTClick as the reward signal. This is a binary reward based on whether the BERTScore—a metric for semantic similarity—between the generated response and the ground truth exceeds a 0.6 threshold. This encourages the model to prioritize meaning over exact phrasing.
Experimental Setup
The methods were tested across three task-oriented dialogue datasets representative of real-world virtual assistants:
- ABCD (Action Based Conversations Dataset): Retail-focused customer-agent interactions.
- MultiWoz 2.2: Multi-domain interactions covering travel, hospitality, and dining.
- TaskMaster-3: Conversations centered on movie ticketing.
Experiments were conducted using models ranging from DistilGPT2 (82M parameters) to GPT2-Medium (355M parameters) to ensure the findings were consistent across scales.
Key Insights and Results
Quantitative Performance
Offline RL methods consistently outperformed Teacher Forcing. Across all datasets, these methods improved the average reward (BERTClick) by 1.5% to 5%. Interestingly, optimizing for semantic similarity also improved traditional metrics; the models saw a 2-3% boost in METEOR and BLEU scores, suggesting that sequence-level objectives do not come at the cost of general language quality.
The "Low-Data" Edge
One of the most significant findings was the efficacy of the Decision Transformer (DT) in data-scarce scenarios. When training data was limited to just 20% of the full dataset, DT significantly outperformed all other methods. While the gap between DT and simpler baselines like TF-Top narrowed as more data became available, DT remained the most robust choice for small-scale datasets.
Human Evaluation
In head-to-head human studies, participants rated responses from the Decision Transformer as more aligned with human intent. DT achieved a score of 2.36/3, compared to 1.98/3 for Teacher Forcing. This confirms that the semantic improvements captured by BERTScore translate to a better user experience.
Stability and Efficiency
Unlike online RL, which often exhibits volatile reward curves, the offline RL methods demonstrated smooth convergence. This stability, combined with the ability to use static datasets, makes offline RL a practical and budget-friendly alternative for production-grade dialogue systems.
Discussion and Limitations
While the results are promising, the authors note several areas for future exploration. The study focused on small-to-medium models; whether these gains scale linearly to Large Language Models (LLMs) with billions of parameters remains to be seen. Additionally, the current reward is calculated on a single-turn basis. Future work could investigate multi-turn rewards—such as whether a user's problem was ultimately resolved—to better capture the long-term goals of dialogue.
Conclusion
Offline Reinforcement Learning offers a compelling path forward for training dialogue systems. By shifting the focus from literal token matching to sequence-level semantic relevance, methods like Decision Transformers and ILQL achieve superior performance and human alignment without the instability of online RL. For developers working with task-oriented datasets, offline RL represents a stable, effective, and scalable upgrade to traditional teacher forcing.
Summary updated