Few-Shot Natural Language Generation by Rewriting Templates

04/30/2020
by   Mihir Kale, et al.
0

Virtual assistants such as Google Assistant, Alexa and Siri enable users to interact with a large number of services and APIs on the web using natural language. The response generation module converts the actions generated by a policy module into a natural language utterance. Traditionally, template based approaches have been used for response generation in virtual assistants. However, such approaches are not feasible for commercial assistants, which need to support a large number of services. Defining templates for a large number of slot combinations for each of the services supported by large scale assistants becomes tedious. In this work, we propose a template rewriting method for Natural Language Generation (NLG), where the number of templates scales only linearly with the number of slots. A set of simple templates is used to convert actions into utterances, which are 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, while being much more sample efficient.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/23/2022

GenTUS: Simulating User Behaviour and Language in Task-oriented Dialogues with Generative Transformers

User simulators (USs) are commonly used to train task-oriented dialogue ...
research
06/10/2021

ImaginE: An Imagination-Based Automatic Evaluation Metric for Natural Language Generation

Automatic evaluations for natural language generation (NLG) conventional...
research
07/03/2023

Prompt Middleware: Mapping Prompts for Large Language Models to UI Affordances

To help users do complex work, researchers have developed techniques to ...
research
04/04/2019

Template-Based Automatic Search of Compact Semantic Segmentation Architectures

Automatic search of neural architectures for various vision and natural ...
research
06/07/2020

A Formal Definition of Stochastic Activity Networks Templates

Model-based evaluation has been extensively used to estimate performance...
research
09/19/2019

Generating Philosophical Statements using Interpolated Markov Models and Dynamic Templates

Automatically imitating input text is a common task in natural language ...
research
11/29/2020

Generative Pre-training for Paraphrase Generation by Representing and Predicting Spans in Exemplars

Paraphrase generation is a long-standing problem and serves an essential...

Please sign up or login with your details

Forgot password? Click here to reset