A Retrieve-and-Edit Framework for Predicting Structured Outputs

By Tatsunori B. Hashimoto, Kelvin Guu, Yonatan Oren, Percy Liang. 2018

188 citations recorded by the source corpus.

For the task of generating complex outputs such as source code, editing existing outputs can be easier than generating complex outputs from scratch. With this motivation, we propose an approach that first retrieves a training example based on the input (e.g., natural language description) and then edits it to the desired output (e.g., code). Our contribution is a computationally efficient method for learning a retrieval model that embeds the input in a task-dependent way without relying on a hand-crafted metric or incurring the expense of jointly training the retriever with the editor. Our retrieve-and-edit framework can be applied on top of any base model. We show that on a new autocomplete task for GitHub Python code and the Hearthstone cards benchmark, retrieve-and-edit significantly boosts the performance of a vanilla sequence-to-sequence model on both tasks.

Subfields: Information Systems, Natural Language Processing, Signal Processing

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Information Systems

  1. Percy Liang
  2. Miltiadis Allamanis
  3. Graham Neubig
  4. Luke S. Zettlemoyer
  5. Marc Brockschmidt
  6. Michihiro Yasunaga
  7. Uri Alon
  8. Nan Duan

In Natural Language Processing

  1. Luke S. Zettlemoyer
  2. Percy Liang
  3. Mohit Bansal
  4. Graham Neubig
  5. Jianfeng Gao
  6. Yejin Choi
  7. Caiming Xiong
  8. Christopher D. Manning

In Signal Processing

  1. Graham Neubig
  2. Rada Mihalcea
  3. Dragomir R. Radev
  4. Marc Brockschmidt
  5. Tao Yu
  6. Jacob Andreas
  7. Luke S. Zettlemoyer
  8. Panupong Pasupat

Citations in the corpus