Learning Structural Edits via Incremental Tree Transformations
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
- 2015Pointer Networkscited by 895
- 2015Gated Graph Sequence Neural Networkscited by 796
- 2017Learning to Represent Programs with Graphscited by 220
- 2019Levenshtein Transformercited by 199
- 2018Deterministic Non-Autoregressive Neural Sequence Modeling by Iterative Refinementcited by 195
- 2018SequenceR: Sequence-to-Sequence Learning for End-to-End Program Repaircited by 145
- 2019Insertion Transformer: Flexible Sequence Generation via Insertion Operationscited by 125
- 2019Encode, Tag, Realize: High-Precision Text Editingcited by 99
- 2020Graph-based, Self-Supervised Program Repair from Diagnostic Feedbackcited by 94
- 2017Abstract Syntax Networks for Code Generation and Semantic Parsingcited by 92
- 2017Generating Sentences by Editing Prototypescited by 88
- 2018TRANX: A Transition-based Neural Abstract Syntax Parser for Semantic Parsing and Code Generationcited by 88
19 more
- 2019Editing-Based SQL Query Generation for Cross-Domain Context-Dependent Questionscited by 80
- 2019EditNTS: An Neural Programmer-Interpreter Model for Sentence Simplification through Explicit Editingcited by 63
- 2018Generative Code Modeling with Graphscited by 60
- 2020Seq2Edits: Sequence Transduction Using Span-level Edit Operationscited by 58
- 2019Non-Monotonic Sequential Text Generationcited by 55
- 2020Speak to your Parser: Interactive Text-to-SQL with Natural Language Feedbackcited by 44
- 2019Insertion-based Decoding with automatically Inferred Generation Ordercited by 43
- 2018CODIT: Code Editing with Tree-Based Neural Modelscited by 40
- 2019Model-based Interactive Semantic Parsing: A Unified Framework and A Text-to-SQL Case Studycited by 40
- 2020CC2Vec: Distributed Representations of Code Changescited by 39
- 2018Learning to Represent Editscited by 34
- 2020Learning to Update Natural Language Comments Based on Code Changescited by 31
- 2019Learning to Fix Build Errors with Graph2Diff Neural Networkscited by 26
- 2018Learning to Map Context-Dependent Sentences to Executable Formal Queriescited by 23
- 2020An Imitation Game for Learning Semantic Parsers from User Interactioncited by 23
- 2020Fact-based Text Editingcited by 14
- 2020Copy that! Editing Sequences by Copying Spanscited by 13
- 2020Learning Non-Monotonic Automatic Post-Editing of Translations from Human Orderingscited by 6
- 2019Neural Networks for Modeling Source Code Editscited by 3
Built on by
Citing papers per year: 2021: 2; 2022: 6; 2023: 3; 2024: 3; 2025: 1; 2026: 1.
16 papers.
Sort:
By area:
- 2024Aligning LLM Agents by Learning Latent Preference from User Editscited by 69
- 2022CoditT5: Pretraining for Source Code and Natural Language Editingcited by 45
- 2022Learning to Model Editing Processescited by 30
- 2021On Multi-Modal Learning of Editing Source Codecited by 25
- 2021Beyond In-Place Corruption: Insertion and Deletion In Denoising Probabilistic Modelscited by 23
- 2022An Imitation Learning Curriculum for Text Editing with Non-Autoregressive Modelscited by 20
- 2023KNOD: Domain Knowledge Distilled Tree Decoder for Automated Program Repaircited by 13
- 2023Multilingual Code Co-Evolution Using Large Language Modelscited by 9
- 2022Fix Bugs with Transformer through a Neural-Symbolic Edit Grammarcited by 8
- 2024VulScribeR: Exploring RAG-based Vulnerability Augmentation with LLMscited by 7
- 2022Learning Program Representations with a Tree-Structured Transformercited by 6
- 2022Text Editing as Imitation Gamecited by 1
4 more
- 2023Towards Automatically Addressing Self-Admitted Technical Debt: How Far Are We?cited by 1
- 2024Just-In-Time Software Defect Prediction via Bi-modal Change Representation Learningcited by 1
- 2025AVIATOR: Towards AI-Agentic Vulnerability Injection Workflow for High-Fidelity, Large-Scale Code Security Datasetcited by 0
- 2026SPHERE: Adaptive VR Indoor Scene Generation via LLM-Enhanced Spatial Preference Learning and Human-in-the-Loop RLcited by 0
- 2026SPHERE: Adaptive VR Indoor Scene Generation via LLM-Enhanced Spatial Preference Learning and Human-in-the-Loop RL1 Oct 2026
- 2025AVIATOR: Towards AI-Agentic Vulnerability Injection Workflow for High-Fidelity, Large-Scale Code Security Dataset28 Aug 2025
- 2024Just-In-Time Software Defect Prediction via Bi-modal Change Representation Learning15 Oct 2024
- 2024VulScribeR: Exploring RAG-based Vulnerability Augmentation with LLMs7 Aug 2024
- 2024Aligning LLM Agents by Learning Latent Preference from User Edits23 Apr 2024
- 2023Towards Automatically Addressing Self-Admitted Technical Debt: How Far Are We?17 Aug 2023
- 2023Multilingual Code Co-Evolution Using Large Language Models27 Jul 2023
- 2023KNOD: Domain Knowledge Distilled Tree Decoder for Automated Program Repair3 Feb 2023
- 2022Text Editing as Imitation Game21 Oct 2022
- 2022Learning Program Representations with a Tree-Structured Transformer18 Aug 2022
- 2022CoditT5: Pretraining for Source Code and Natural Language Editing10 Aug 2022
- 2022Learning to Model Editing Processes24 May 2022
4 more
- 2022Fix Bugs with Transformer through a Neural-Symbolic Edit Grammar13 Apr 2022
- 2022An Imitation Learning Curriculum for Text Editing with Non-Autoregressive Models17 Mar 2022
- 2021On Multi-Modal Learning of Editing Source Code15 Aug 2021
- 2021Beyond In-Place Corruption: Insertion and Deletion In Denoising Probabilistic Models16 Jul 2021
- 2022CoditT5: Pretraining for Source Code and Natural Language Editingcited by 45
- 2022Learning to Model Editing Processescited by 30
- 2021On Multi-Modal Learning of Editing Source Codecited by 25
- 2022An Imitation Learning Curriculum for Text Editing with Non-Autoregressive Modelscited by 20
- 2023KNOD: Domain Knowledge Distilled Tree Decoder for Automated Program Repaircited by 13
- 2023Multilingual Code Co-Evolution Using Large Language Modelscited by 9
- 2022Fix Bugs with Transformer through a Neural-Symbolic Edit Grammarcited by 8
- 2024VulScribeR: Exploring RAG-based Vulnerability Augmentation with LLMscited by 7
- 2022Learning Program Representations with a Tree-Structured Transformercited by 6
- 2022Text Editing as Imitation Gamecited by 1
- 2023Towards Automatically Addressing Self-Admitted Technical Debt: How Far Are We?cited by 1
- 2024Just-In-Time Software Defect Prediction via Bi-modal Change Representation Learningcited by 1
12 most cited of 13 All 13 (JSON)
- 2026SPHERE: Adaptive VR Indoor Scene Generation via LLM-Enhanced Spatial Preference Learning and Human-in-the-Loop RL1 Oct 2026
- 2024Just-In-Time Software Defect Prediction via Bi-modal Change Representation Learning15 Oct 2024
- 2024VulScribeR: Exploring RAG-based Vulnerability Augmentation with LLMs7 Aug 2024
- 2023Towards Automatically Addressing Self-Admitted Technical Debt: How Far Are We?17 Aug 2023
- 2023Multilingual Code Co-Evolution Using Large Language Models27 Jul 2023
- 2023KNOD: Domain Knowledge Distilled Tree Decoder for Automated Program Repair3 Feb 2023
- 2022Text Editing as Imitation Game21 Oct 2022
- 2022Learning Program Representations with a Tree-Structured Transformer18 Aug 2022
- 2022CoditT5: Pretraining for Source Code and Natural Language Editing10 Aug 2022
- 2022Learning to Model Editing Processes24 May 2022
- 2022Fix Bugs with Transformer through a Neural-Symbolic Edit Grammar13 Apr 2022
- 2022An Imitation Learning Curriculum for Text Editing with Non-Autoregressive Models17 Mar 2022
12 newest of 13 All 13 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024Diffusion On Syntax Trees For Program Synthesis
- 2024Pattern Analogies: Learning to Perform Programmatic Image Edits by Analogy
- 2026The Labyrinth and the Thread: Rethinking Regularizations in Sequential Knowledge Editing for Large Language Models
- 2026Diff Diffusion: Predicting Edit Paths with Diffusion Models for Efficient Code Editing
- 2025X2Edit: Revisiting Arbitrary-Instruction Image Editing through Self-Constructed Data and Task-Aware Representation Learning
- 2023DUnE: Dataset for Unified Editing
- 2026How Should Diffusion Language Models Edit Code?
- 2025CoME: An Unlearning-based Approach to Conflict-free Model Editing