The Whole Truth and Nothing But the Truth: Faithful and Controllable Dialogue Response Generation with Dataflow Transduction and Constrained Decoding

Hao Fang, Anusha Balakrishnan, Harsh Jhamtani, John Bufe, Jean Crawford +5 more
9/16/2022
cs.CL

Official code: microsoft/dataflow2text (10 stars, Python, MIT, last commit 2024-04-30).

Abstract

In a real-world dialogue system, generated text must be truthful and informative while remaining fluent and adhering to a prescribed style. Satisfying these constraints simultaneously is difficult for the two predominant paradigms in language generation: neural language modeling and rule-based generation.

Show full abstract

We describe a hybrid architecture for dialogue response generation that combines the strengths of both paradigms. The first component of this architecture is a rule-based content selection model defined using a new formal framework called dataflow transduction, which uses declarative rules to transduce a dialogue agent's actions and their results (represented as dataflow graphs) into context-free grammars representing the space of contextually acceptable responses. The second component is a constrained decoding procedure that uses these grammars to constrain the output of a neural language model, which selects fluent utterances. Our experiments show that this system outperforms both rule-based and learned approaches in human evaluations of fluency, relevance, and truthfulness.

View on arXivView PDF

Code Implementations(1)

MIT

Code for "The Whole Truth and Nothing But the Truth: Faithful and Controllable Dialogue Response Generation with Dataflow Transduction and Constrained Decoding" (Findings of ACL 2023).

105Python, ShellFeb 28, 20232 years agoMIT

Similar Papers

Cite this paper

@article{fang2022whole,
  title  = {The Whole Truth and Nothing But the Truth: Faithful and Controllable Dialogue Response Generation with Dataflow Transduction and Constrained Decoding},
  author = {Hao Fang and Anusha Balakrishnan and Harsh Jhamtani and John Bufe and Jean Crawford and Jayant Krishnamurthy and Adam Pauls and Jason Eisner and Jacob Andreas and Dan Klein},
  year   = {2022},
  eprint = {2209.07800},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.07800}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.07800.svg)](https://codeofpaper.com/paper/2209.07800)

Discussion