DFEE: Interactive DataFlow Execution and Evaluation Kit

He Han, Song Feng, Daniele Bonadiman, Yi Zhang, Saab MansourarXiv 2022 · DOI

Abstract

DataFlow has been emerging as a new paradigm for building task-oriented chatbots due to its expressive semantic representations of dialogue tasks. Despite the availability of a large dataset SMCalFlow and a simplified syntax, the development and evaluation of DataFlow-based chatbots remain challenging due to system complexity and the lack of downstream toolchains. In this paper, we present DFEE, an interactive DataFlow Execution and Evaluation toolkit that supports execution, visualization, and benchmarking of semantic parsers given dialogue input and a backend database. We demonstrate the system via a complex dialog task: event scheduling that involves temporal reasoning. It also supports diagnosing parsing results via a friendly interface that allows developers to examine dynamic DataFlow and the corresponding execution results. To illustrate how to benchmark state-of-the-art (SoTA) models, we propose a novel benchmark that covers more sophisticated event scheduling scenarios and a new metric on task success evaluation.

Introduction

Building task-oriented chatbots, such as virtual assistants for meeting scheduling, has increasingly shifted toward the DataFlow paradigm. In this approach, user requests are converted into computational graphs—essentially programs that can be executed, revised, and updated. However, developers face two major hurdles: a Tooling Gap (lack of end-to-end toolchains to execute and visualize these graphs) and an Evaluation Gap.

Most researchers currently use "Exact Match" (EM) to grade models, checking if the generated code is character-for-character identical to a reference. This is fundamentally flawed because multiple valid code snippets can produce the same correct result (e.g., "10:00 PM" vs "22:00"). EM punishes models for being functionally correct but syntactically different from the "gold" reference.

The DFEE Framework

The DFEE toolkit addresses these gaps by providing a modular environment for visualizing and debugging DataFlow graphs. The system consists of three decoupled components connected via HTTP: a Semantic Parser, an Execution Engine (built on OpenDF), and a User Interface.

The DFEE workflow illustrating the discrepancy between Exact Match (EM) and Execution Accuracy (EA) in a temporal reasoning task.

As shown in Figure 1, the toolkit allows developers to see the DataFlow graph update in real-time. In this example, the parser generates code that differs from the gold reference, resulting in an Exact Match score of 0%. However, because the execution leads to the correct calendar state and agent response, the system records an Execution Accuracy of 100%.

Evaluation Metrics and Benchmarks

Crucially, DFEE introduces Execution Accuracy (EA) as a more meaningful metric. A turn is considered "accurate" if the execution results in the correct agent response and the final state of the database matches the expected oracle state, regardless of whether the code itself matches the reference exactly.

To test the limits of current models, the authors introduced the "Our Tmp" benchmark. This dataset consists of 1,000 dialogues specifically targeting temporal reasoning (e.g., "Beer for 1 hour right after the final presentation"). This requires the model to understand complex relationships between different time-based events, a task where standard parsers frequently fail.

Experimental Results

The authors benchmarked several SoTA models, including T5, BART, and RoBERTa. Their proposed BART-Ours model, which utilizes a simplified syntax, achieved the highest overall EM accuracy (82.9%). However, the comparison between EM and EA reveals deeper insights into model performance.

Performance comparison between Exact Match (EM) and Execution Accuracy (EA) across various operations and datasets.

As detailed in Figure 3, Execution Accuracy (EA) is consistently higher than Exact Match (EM) across almost all categories. For standard non-temporal tasks (SM Non-Tmp), EA reached 84.5% compared to 80.5% EM. The gap is most dramatic in the new temporal benchmark ("Our Tmp"), where EM scores plummeted to near zero (3.7% overall), while EA scores remained significantly higher (28.4%), confirming that models are often functionally correct even when they fail syntactic matching.

Conclusion

While EA provides a more realistic measure of success, current models still perform significantly worse on temporal turns than on standard queries. The DFEE toolkit and the new temporal benchmark highlight a major bottleneck in AI research: the ability to handle the nuances of human temporal logic. By open-sourcing DFEE, the authors provide the community with the necessary tools to diagnose these failures and develop more robust, execution-aware semantic parsers.

Summary updated

Abstract

DataFlow has been emerging as a new paradigm for building task-oriented chatbots due to its expressive semantic representations of the dialogue tasks. Despite the availability of a large dataset SMCalFlow and a simplified syntax, the development and evaluation of DataFlow-based chatbots remain challenging due to the system complexity and the lack of downstream toolchains. In this demonstration, we present DFEE, an interactive DataFlow Execution and Evaluation toolkit that supports execution, visualization and benchmarking of semantic parsers given dialogue input and backend database. We demonstrate the system via a complex dialog task: event scheduling that involves temporal reasoning. It also supports diagnosing the parsing results via a friendly interface that allows developers to examine dynamic DataFlow and the corresponding execution results. To illustrate how to benchmark SoTA models, we propose a novel benchmark that covers more sophisticated event scheduling scenarios and a new metric on task success evaluation. The codes of DFEE have been released on https://github.com/amazonscience/dataflow-evaluation-toolkit.
BibTeX
@misc{han2022dfee,
  author = {He Han and Song Feng and Daniele Bonadiman and Yi Zhang and Saab Mansour},
  title = {{DFEE: Interactive DataFlow Execution and Evaluation Kit}},
  year = {2022},
  eprint = {2212.08099},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.08099},
}
Figure