Context-Aware Language Modeling for Goal-Oriented Dialogue Systems
Charlie Snell, Mengjiao Yang, Justin Fu, Yi Su, Sergey Levine
TL;DR
CALM reframes goal-oriented dialogue as a POMDP and trains end-to-end language models offline to maximize task reward. It introduces task relabeling, a task-aware auxiliary loss, task pretraining, and model-based dialogue rollouts to steer generation toward task success without sacrificing language quality. On AirDialogue’s flight-booking tasks, CALM outperforms prior state-of-the-art by about 7% and reaches human-level performance under standard evaluation, while maintaining strong language metrics. This end-to-end, context-aware approach reduces reliance on hand-designed dialogue management and enables scalable, offline training with planning capabilities for practical deployment.
Abstract
Goal-oriented dialogue systems face a trade-off between fluent language generation and task-specific control. While supervised learning with large language models is capable of producing realistic text, how to steer such responses towards completing a specific task without sacrificing language quality remains an open question. In this work, we formulate goal-oriented dialogue as a partially observed Markov decision process, interpreting the language model as a representation of both the dynamics and the policy. This view allows us to extend techniques from learning-based control, such as task relabeling, to derive a simple and effective method to finetune language models in a goal-aware way, leading to significantly improved task performance. We additionally introduce a number of training strategies that serve to better focus the model on the task at hand. We evaluate our method, Context-Aware Language Models (CALM), on a practical flight-booking task using AirDialogue. Empirically, CALM outperforms the state-of-the-art method by 7% in terms of task success, matching human-level task performance.
