Copy That! Editing Sequences by Copying Spans
Sheena Panthaplackel, Miltiadis Allamanis, Marc Brockschmidt
摘要
Neural sequence-to-sequence models are finding increasing use in editing of documents, for example in correcting a text document or repairing source code. In this paper, we argue that common seq2seq models (with a facility to copy single tokens) are not a natural fit for such tasks, as they have to explicitly copy each unchanged token. We present an extension of seq2seq models capable of copying entire spans of the input to the output in one step, greatly reducing the number of decisions required during inference. This extension means that there are now many ways of generating the same output, which we handle by deriving a new objective for training and a variation of beam search for inference that explicitly handles this problem. In our experiments on a range of editing tasks of natural language and source code, we show that our new model consistently outperforms simpler baselines.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- A Deep Dive into Large Language Models for Automated Bug Localization and Repair 引用了 Learning Structural Edits via Incremental Tree Transformations
- CoditT5: Pretraining for Source Code and Natural Language Editing 引用了 Learning Structural Edits via Incremental Tree Transformations
引用它的顶会 Paper7
- SPT-Code: Sequence-to-Sequence Pre-Training for Learning Source Code RepresentationsChangan Niu, Chuanyi Li, Vincent Ng, Jidong Ge 等ICSE 2022 · 99 次引用
- CoditT5: Pretraining for Source Code and Natural Language EditingJiyang Zhang, Sheena Panthaplackel, Pengyu Nie, Junyi Jessy Li 等ASE 2022 · 81 次引用
- A Deep Dive into Large Language Models for Automated Bug Localization and RepairSoneya Binta Hossain, Nan Jiang, Qiang Zhou, Xiaopeng Li 等FSE 2024 · 60 次引用
- Sequence-to-Sequence Learning with Latent Neural GrammarsYoon KimNeurIPS 2021 · 44 次引用
- Learning Structural Edits via Incremental Tree TransformationsZiyu Yao, Frank F. Xu, Pengcheng Yin, Huan Sun 等ICLR 2021 · 32 次引用
相关 Paper
- Seq2Edits: Sequence Transduction Using Span-level Edit OperationsFelix Stahlberg, Shankar KumarEMNLP 2020 · 1 次引用
- Recurrent Inference in Text EditingNing Shi, Ziheng Zeng, Haotian Zhang, Yichen GongEMNLP Findings 2020 · 3 次引用
- Sequence-to-Action: Grammatical Error Correction with Action Guided Sequence GenerationJiquan Li, Junliang Guo, Yongxin Zhu, Xin Sheng 等AAAI 2022 · 29 次引用
- Improving Sequence-to-Sequence Pre-training via Sequence Span RewritingWangchunshu Zhou, Tao Ge, Canwen Xu, Ke Xu 等EMNLP 2021 · 9 次引用
- Learning to Model Editing ProcessesMachel Reid, Graham NeubigEMNLP Findings 2022 · 19 次引用
