NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Task-Oriented Dialogue as Dataflow Synthesis

Jacob Andreas, John Bufe, David Burkett, Charles Chen, Josh Clausman, Jean Crawford, Kate Crim, Jordan DeLoach, Leah Dorner, Jason Eisner, Hao Fang, Alan Guo, David Hall, Kristin Hayes, Kellie Hill, Diana Ho, Wendy Iwaszuk, Smriti Jha, Dan Klein, Jayant Krishnamurthy, Theo Lanman, Percy Liang, Christopher H. Lin, Ilya Lintsbakh, Andy McGovern, Aleksandr Nisnevich, Adam Pauls, Dmitrij Petters, Brent Read, Dan Roth, Subhro Roy, Jesse Rusak, Beth Short, Div Slomin, Ben Snyder, Stephon Striplin, Yu Su, Zachary Tellman, Sam Thomson, Andrei Vorobev, Izabela Witoszko, Jason Andrew Wolfe, Abby Wray, Yuchen Zhang, Alexander ZotovTrans. Assoc. Comput. Linguistics 2020 · DOI

Abstract

This paper introduces a novel approach to task-oriented dialogue where dialogue state is represented as a dynamic dataflow graph. Instead of traditional slot-filling, a dialogue agent maps user utterances to programs that extend this graph. These programs utilize explicit metacomputation operators for reference and revision, allowing the system to reuse dataflow fragments from previous turns. Experiments on a new complex dataset, SMCalFlow, and the standard MultiWOZ dataset demonstrate that this representation significantly improves the ability of models to handle complex, multi-turn conversational logic.

The Problem with Slot-Filling

Most modern virtual assistants rely on "slot-filling" models, which track state as a flat list of attribute-value pairs (e.g., time=2pm). While effective for simple requests, this paradigm struggles with the nuances of natural human conversation, such as anaphora ("What about the meeting before that?"), ellipsis ("And for Megan, too"), and revisions ("Actually, make that 3 PM"). Traditional systems often fail to represent the dependencies between these turns because their state representation lacks the necessary structure to "reach back" into the history of the computation.

Dialogue as Interactive Program Synthesis

The authors propose treating dialogue as a process of growing a dataflow graph. Each node in the graph represents an entity or a computation. When a user speaks, the agent predicts a program that adds new nodes to the graph, potentially referencing or modifying existing ones.

Metacomputation Operators

To handle the complexities of context, the system introduces two key operators:

  1. refer(): This operator searches the graph for a salient entity. For example, if a user refers to "that meeting," the model generates a refer call that points to the relevant node in the previous dialogue state.
  2. revise(): This allows the agent to modify a previous computation non-destructively. It creates a modified copy of a previous graph fragment, enabling the system to update specific parameters while keeping the rest of the context intact.
Figure 3: An example of multi-turn dialogue where the second turn uses a `refer()` operator to link the new meeting request to the start time of a previously discussed event.

By making these operations explicit, the learning task for the neural model becomes much simpler. Rather than needing to implicitly learn how to attend to the correct part of a long history, the model simply learns to output a refer or revise function call when appropriate.

Figure 2: A demonstration of the `revise()` operator. When the user provides a full name ("Megan Bowen") to clarify a previous turn, the system updates the `PersonSpec` node within the existing dataflow structure.

Evaluation and Results

The researchers evaluated their approach using two primary benchmarks:

  • SMCalFlow: A new, large-scale dataset of ~40,000 natural dialogues involving calendars, weather, and places. The dataflow approach with explicit metacomputation reduced error rates by 10.9% on turns involving cross-turn references compared to baselines.
  • MultiWOZ 2.1: By converting this standard slot-filling dataset into the dataflow format, the authors showed that a generic sequence-to-sequence model could match or exceed the performance of highly specialized, state-of-the-art tracking models like TRADE, achieving a Joint Goal Accuracy of 46.7%.

Conclusion

Representing dialogue state as a dataflow graph provides a powerful middle ground between rigid symbolic systems and purely neural end-to-end models. By treating the conversation as a trace of computations rather than just a set of final values, agents can more accurately track and manipulate complex user intents across multiple turns of interaction.

Summary updated

BibTeX
@article{andreas2020task,
  author = {Jacob Andreas and John Bufe and David Burkett and Charles Chen and Josh Clausman and Jean Crawford and Kate Crim and Jordan DeLoach and Leah Dorner and Jason Eisner and Hao Fang and Alan Guo and David Hall and Kristin Hayes and Kellie Hill and Diana Ho and Wendy Iwaszuk and Smriti Jha and Dan Klein and Jayant Krishnamurthy and Theo Lanman and Percy Liang and Christopher H. Lin and Ilya Lintsbakh and Andy McGovern and Aleksandr Nisnevich and Adam Pauls and Dmitrij Petters and Brent Read and Dan Roth and Subhro Roy and Jesse Rusak and Beth Short and Div Slomin and Ben Snyder and Stephon Striplin and Yu Su and Zachary Tellman and Sam Thomson and Andrei Vorobev and Izabela Witoszko and Jason Andrew Wolfe and Abby Wray and Yuchen Zhang and Alexander Zotov},
  title = {{Task-Oriented Dialogue as Dataflow Synthesis}},
  journal = {Trans. Assoc. Comput. Linguistics},
  year = {2020},
  doi = {10.1162/tacl\_a\_00333},
}
Figure