Skip to main content
QUICK REVIEW

[Paper Review] Template Guided Text Generation for Task-Oriented Dialogue

Mihir Kale, Abhinav Rastogi|arXiv (Cornell University)|Apr 30, 2020
Topic ModelingComputer Science33 references6 citations
TL;DR

This paper proposes a template-guided text generation method (T2G2) for task-oriented dialogue systems that uses simple templates to generate semantically correct but incoherent utterances, which are then refined by a pre-trained language model into fluent, natural responses. The approach achieves strong zero-shot and few-shot generalization across 45 APIs in 20 domains, outperforming baselines in robustness and sample efficiency on the large-scale Schema-Guided Dialogue dataset.

ABSTRACT

Virtual assistants such as Google Assistant, Amazon Alexa, and Apple Siri enable users to interact with a large number of services and APIs on the web using natural language. In this work, we investigate two methods for Natural Language Generation (NLG) using a single domain-independent model across a large number of APIs. First, we propose a schema-guided approach which conditions the generation on a schema describing the API in natural language. Our second method investigates the use of a small number of templates, growing linearly in number of slots, to convey the semantics of the API. To generate utterances for an arbitrary slot combination, a few simple templates are first concatenated to give a semantically correct, but possibly incoherent and ungrammatical utterance. A pre-trained language model is subsequently employed to rewrite it into coherent, natural sounding text. Through automatic metrics and human evaluation, we show that our method improves over strong baselines, is robust to out-of-domain inputs and shows improved sample efficiency.

Motivation & Objective

  • To address the challenge of scaling natural language generation (NLG) across hundreds of APIs and domains with minimal annotation effort.
  • To improve zero-shot and few-shot generalization in NLG for task-oriented dialogues without requiring extensive labeled data per API.
  • To reduce dependency on manual template engineering by using a unified, domain-independent NLG framework.
  • To enable robust, consistent, and fluent system responses across diverse domains using a single pre-trained model.
  • To provide a scalable, efficient, and transferable NLG solution suitable for real-world virtual assistants handling multi-domain interactions.

Proposed method

  • The method uses a small set of natural language templates, linear in the number of slots, to convert system actions into semantically correct but potentially incoherent utterances.
  • These template-generated utterances are concatenated and fed into a pre-trained T5 encoder-decoder model to rewrite them into fluent, natural-sounding responses.
  • The approach is evaluated using two input representations: naive slot-value pairs and schema-guided descriptions using natural language slot names.
  • Joint modeling across all 12 domains in the SGD dataset is used to improve parameter efficiency and consistency, reducing training and maintenance costs.
  • Context from previous dialogue turns is incorporated by concatenating up to k previous utterances to the input representation to improve coherence and reduce repetition.
  • The framework supports zero-shot inference on unseen APIs and enables few-shot fine-tuning with minimal labeled examples.

Experimental results

Research questions

  • RQ1Can a single, domain-independent NLG model generalize effectively to unseen APIs with minimal labeled examples?
  • RQ2How does template-based input representation compare to schema-guided or naive slot-value input in terms of fluency and robustness?
  • RQ3To what extent does incorporating dialogue history context improve response quality and reduce repetition?
  • RQ4Does joint modeling across multiple domains improve sample efficiency and performance compared to domain-specific models?
  • RQ5Can the template rewriting approach achieve strong performance on large-scale, multi-domain dialogue datasets like Schema-Guided Dialogue?

Key findings

  • Joint modeling across all 12 domains improved BLEU by 3.4 points (from 23.6 to 27.0) and reduced sentence error rate (SER) from 4.7% to 1.0%, demonstrating superior generalization and efficiency.
  • Including the previous user utterance (k=1) improved BLEU by nearly 3 points (from 26.2 to 29.0), showing the value of dialogue context for response coherence.
  • The template-guided approach achieved strong zero-shot performance on unseen APIs, outperforming state-of-the-art pre-training methods in out-of-domain generalization.
  • The method reduced annotation costs significantly by relying on simple templates instead of handcrafted templates per API, enabling scalable deployment.
  • The T2G2 framework achieved a BLEU score of 32.6 and SER of 0.7 when using five previous utterances as context, indicating strong performance with contextual modeling.
  • The approach demonstrated improved sample efficiency, making it suitable for low-resource and multilingual settings where annotated data is scarce.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.