A Retrieve-and-Edit Framework for Predicting Structured Outputs

12/04/2018
by   Tatsunori B. Hashimoto, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/26/2023

EditSum: A Retrieve-and-Edit Framework for Source Code Summarization

Existing studies show that code summaries help developers understand and...
research
05/24/2022

Learning to Model Editing Processes

Most existing sequence generation models produce outputs in one pass, us...
research
10/31/2018

Learning to Represent Edits

We introduce the problem of learning distributed representations of edit...
research
06/08/2020

Copy that! Editing Sequences by Copying Spans

Neural sequence-to-sequence models are finding increasing use in editing...
research
09/29/2022

Generate-and-Retrieve: use your predictions to improve retrieval for semantic parsing

A common recent approach to semantic parsing augments sequence-to-sequen...
research
09/01/2020

VeRNAl: A Tool for Mining Fuzzy Network Motifs in RNA

Motivation: RNAs are ubiquitous molecules involved in many regulatory an...
research
08/11/2022

Draft, Command, and Edit: Controllable Text Editing in E-Commerce

Product description generation is a challenging and under-explored task....

Please sign up or login with your details

Forgot password? Click here to reset