mlsanityData to 14 Oct 2026

Learning Structural Edits via Incremental Tree Transformations

arXiv 2101.12087 ↗First posted 28 Jan 2021cs.LG cs.SEcited by 16

Not on the map. Why?

Abstract (arXiv)

While most neural generative models generate outputs in a single pass, the human creative process is usually one of iterative building and refinement. Recent work has proposed models of editing processes, but these mostly focus on editing sequential data and/or only model a single editing pass. In this paper, we present a generic model for incremental editing of structured data (i.e., "structural edits"). Particularly, we focus on tree-structured data, taking abstract syntax trees of computer programs as our canonical example. Our editor learns to iteratively generate tree edits (e.g., deleting or adding a subtree) and applies them to the partially edited data, thereby the entire editing process can be formulated as consecutive, incremental tree transformations. To show the unique benefits of modeling tree edits directly, we further propose a novel edit encoder for learning to represent edits, as well as an imitation learning method that allows the editor to be more robust. We evaluate our proposed editor on two source code edit datasets, where results show that, with the proposed edit encoder, our editor significantly improves accuracy over previous approaches that generate the edited program directly in one pass. Finally, we demonstrate that training our editor to imitate experts and correct its mistakes dynamically can further improve its performance.

Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Builds on 31 of its 48 references that are in the map. First posted on arXiv 28 Jan 2021.

Builds on

31 of 48 references.

References · 31

  1. 2015Pointer Networkscited by 895
  2. 2015Gated Graph Sequence Neural Networkscited by 796
  3. 2017Learning to Represent Programs with Graphscited by 220
  4. 2019Levenshtein Transformercited by 199
  5. 2018Deterministic Non-Autoregressive Neural Sequence Modeling by Iterative Refinementcited by 195
  6. 2018SequenceR: Sequence-to-Sequence Learning for End-to-End Program Repaircited by 145
  7. 2019Insertion Transformer: Flexible Sequence Generation via Insertion Operationscited by 125
  8. 2019Encode, Tag, Realize: High-Precision Text Editingcited by 99
  9. 2020Graph-based, Self-Supervised Program Repair from Diagnostic Feedbackcited by 94
  10. 2017Abstract Syntax Networks for Code Generation and Semantic Parsingcited by 92
  11. 2017Generating Sentences by Editing Prototypescited by 88
  12. 2018TRANX: A Transition-based Neural Abstract Syntax Parser for Semantic Parsing and Code Generationcited by 88
19 more
  1. 2019Editing-Based SQL Query Generation for Cross-Domain Context-Dependent Questionscited by 80
  2. 2019EditNTS: An Neural Programmer-Interpreter Model for Sentence Simplification through Explicit Editingcited by 63
  3. 2018Generative Code Modeling with Graphscited by 60
  4. 2020Seq2Edits: Sequence Transduction Using Span-level Edit Operationscited by 58
  5. 2019Non-Monotonic Sequential Text Generationcited by 55
  6. 2020Speak to your Parser: Interactive Text-to-SQL with Natural Language Feedbackcited by 44
  7. 2019Insertion-based Decoding with automatically Inferred Generation Ordercited by 43
  8. 2018CODIT: Code Editing with Tree-Based Neural Modelscited by 40
  9. 2019Model-based Interactive Semantic Parsing: A Unified Framework and A Text-to-SQL Case Studycited by 40
  10. 2020CC2Vec: Distributed Representations of Code Changescited by 39
  11. 2018Learning to Represent Editscited by 34
  12. 2020Learning to Update Natural Language Comments Based on Code Changescited by 31
  13. 2019Learning to Fix Build Errors with Graph2Diff Neural Networkscited by 26
  14. 2018Learning to Map Context-Dependent Sentences to Executable Formal Queriescited by 23
  15. 2020An Imitation Game for Learning Semantic Parsers from User Interactioncited by 23
  16. 2020Fact-based Text Editingcited by 14
  17. 2020Copy that! Editing Sequences by Copying Spanscited by 13
  18. 2020Learning Non-Monotonic Automatic Post-Editing of Translations from Human Orderingscited by 6
  19. 2019Neural Networks for Modeling Source Code Editscited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 2; 2022: 6; 2023: 3; 2024: 3; 2025: 1; 2026: 1.

16 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2024Diffusion On Syntax Trees For Program Synthesis
  2. 2024Pattern Analogies: Learning to Perform Programmatic Image Edits by Analogy
  3. 2026The Labyrinth and the Thread: Rethinking Regularizations in Sequential Knowledge Editing for Large Language Models
  4. 2026Diff Diffusion: Predicting Edit Paths with Diffusion Models for Efficient Code Editing
  5. 2025X2Edit: Revisiting Arbitrary-Instruction Image Editing through Self-Constructed Data and Task-Aware Representation Learning
  6. 2023DUnE: Dataset for Unified Editing
  7. 2026How Should Diffusion Language Models Edit Code?
  8. 2025CoME: An Unlearning-based Approach to Conflict-free Model Editing