Causal Edit Serialization
Abstract
Standard autoregressive language models generate text sequentially, but revision requires referring back to tokens in the input context or those already generated. Causal Edit Serialization (CES) is introduced as a framework for expressing such revisions within the same causal token stream. Special pointer tokens are paired with predicted source addresses, allowing insertion, deletion, replacement, copying and movement to be localized explicitly. A lightweight localization head and dual-index rotary position encoding support both address prediction and conditioning on previously emitted pointers, while retaining a standard causal attention mask. A pretraining procedure combines ordinary language modeling with serialized repairs derived from random corruptions, model-generated edits and repeated text. Across model scales and editing baselines, CES models demonstrate complete applied edits with modestly higher clean-text bits per byte than clean autoregressive models. Supervised and reinforcement-learning post-training provide a grammatical-error-correction proof of concept, producing more beneficial than harmful changes under reference-blind model judging. Correct repair programs also improve subsequent text prediction while the original context and its cached states are retained. CES provides a common interface for generation and localized revision, with potential extensions to iterative refinement and additional pointer-addressed transformations.
Create a lesson
Metadata
- Categories
- cs.CL, cs.LG
- Comments
- 37 pages, including appendices and checklist. Code: https://github.com/Louiii/CES ; data and checkpoints: https://huggingface.co/datasets/lorob/CES
Related papers
Serialization and the Character-System: Measuring Narrative Concentration in French Fiction (1800--1940)
Shared title terminologycs.CLJean Barré, Antoine Bourgois, Thierry Poibeau
FisherEdit: Fisher Information Guided Knowledge Editing for Large Language Models
Shared title terminologycs.CLYizhou Yang, Jiahong Fu, Zhiwu Wang et al.
Dual-Slot: From Serial Loops to Parallel Slots in Language Models
Shared title terminologycs.CLYiqin Hao, Zitong Wang, Boyi Zeng et al.
Table Serialization Determines Which Relations Language Models Preserve
Shared title terminologycs.CLJunwei Ma, Arun Kumar Chithanar, Palash Goyal et al.
ECHO: Efficient Causal Self-Recursion Beyond Auxiliary Multi-Token Prediction
Shared title terminologycs.CLYuxuan Zhou, Junyuan Shang, Tianyu Wang et al.
GLOSS-MT: Controllable Low-Resource Machine Translation with an Editable Dictionary
Shared title terminologycs.CLMich-Seth Owusu, Stephen E. Moore, Akwasi Asare et al.