Causal Edit Serialization
Louis Robinson
NeurIPS page · Open on the map
Category: LLM Reasoning, Memory & RAG › Masked Diffusion Generation · Type: new method · Keywords: causal editing, edit serialization, decoder-only models, text editing, compositional control
Summary
Causal Edit Serialization (CES) introduces a decoder-only transformer that generates explicit edit programs (insert, delete, replace, move, copy) while preserving causal masking, enabling compositional control over earlier tokens.
Explained to a 5-year-old
A computer program learns to edit text by writing down what changes to make, like insert, delete, move, copy. It remembers where the original words were and can make those edits while still reading the text normally. This helps the computer make better sentences and fix mistakes. It also helps the computer write better text on its own. The program can be trained on many examples of how people edit documents, so it gets good at making the right changes.
Explained to a 5-year-old, longer
A computer reads a story and sometimes wants to change it. Instead of just guessing the new words, it can write down a list of edits. The list says things like "put this word here", "take this word away", "swap these two", "copy this part", or "move this part". It also knows where the original words were, so it can find them later. This way it can fix mistakes or make the story better. The computer learns from many examples of how people edit documents. It sees both random changes and real edits made by humans. It also learns from repeated parts of text to understand copying. By practicing, it becomes good at making the right changes quickly. It can still read and write normally while doing these edits. This helps the computer produce clearer and more accurate text. The program can be used to improve existing writing or to generate new text with precise control.
For a technical reader
The system uses a transformer that outputs a serialized edit language describing operations like insert, delete, replace, move, and copy. A lightweight head localizes source tokens, and dual-index rotary embeddings separate generation order from token addressing. Training combines self-supervised corruption and a large human-derived edit corpus, plus copy examples from repeated spans. Evaluation shows better edit localization, higher human-target similarity, and higher valid-edit rates than a baseline that directly emits positions, with only modest impact on standard language modeling and improved generation quality across temperatures.
Problem
Existing decoder-only models lack explicit compositional control over earlier tokens, making it difficult to perform precise edits such as insertions, deletions, or replacements in a structured way.
Method
The approach uses a decoder-only transformer that outputs a serialized domain-specific language for edits, employs a lightweight localization head, and leverages dual-index rotary position embeddings to separate generation order from source token addressing. It is trained on self-supervised random corruptions and a large edit corpus derived from documents, with copy examples mined from repeated spans.
Results
CES achieves stronger source-position localization, higher human-target similarity on WikiAtomic/CoEdIT pairs, and higher valid-edit rates than the autoregressive DSL baseline, with only modest loss in standard language modeling, and edit-aware training also improves autoregressive generation quality across temperatures compared to a clean-data baseline.
Contributions
The paper introduces a way for decoder-only models to generate explicit edit programs via a serialized DSL, a localization head, and dual-index rotary embeddings, and demonstrates its effectiveness on edit localization, human-like revisions, and improved autoregressive generation.
Limitations and assumptions
The method shows a modest degradation in standard language modeling quality in some regimes.
Practical relevance
It enables more controllable and editable language models for applications requiring precise text modifications.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction