AutoIndexer: Flexible-Order Decoding by Training Causal Models on Chains of Edits

Shu Ishida, Aliasghar Khani, Tianyu Zhang, The Cong Luong, James Seale Smith +1 more
10/8/2026
cs.CLcs.AIcs.LG
diffusion-flow

Official code: AutodeskAILab/autoindexer (2 stars, Python, Apache-2.0, last commit 2026-10-05).

Abstract

Autoregressive decoding is less suited to non-causally ordered data, e.g., cross-references or future dependencies, since their outputs cannot be revised post hoc, unlike iterative human reasoning. Diffusion LLMs partially mitigate this limitation but still cannot flexibly insert or remove arbitrary numbers of tokens from a pre-generated context.

Show full abstract

We design AutoIndexer as a generative model with a novel training and decoding mechanism that simulates a Chain of Edits, allowing the model to flexibly modify its prior outputs in hindsight via token insertions, substitutions, and deletions. The model learns to predict marker tokens for opening and closing edits, simultaneously moving a cursor to positions in the existing token sequence, analogous to a text editor. Training sequences are obtained by perturbing ground-truth labels with inverse chained edit operations, and the model learns to edit by undoing those inverses. The perturbation training allows AutoIndexer to be robust to erroneous context and adaptable to editing tasks such as code correction. We demonstrate that our method exhibits post-generation context-editing capabilities that most autoregressive and diffusion models lack without compromising performance on standard LLM benchmarks. The code is available at https://github.com/AutodeskAILab/autoindexer.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

AutoIndexer trains causal language models on chains of edits so they can revise prior outputs in hindsight via insertions, substitutions, and deletions. The model predicts marker tokens that open and close edits and moves a cursor to start and end positions in the existing sequence, analogous to a text editor. Accepted to NeurIPS 2026 Workshop.

20Python, ShellSep 24, 20261 months agoApache-2.0

Similar Papers

Cite this paper

@article{ishida2026autoindexer,
  title  = {AutoIndexer: Flexible-Order Decoding by Training Causal Models on Chains of Edits},
  author = {Shu Ishida and Aliasghar Khani and Tianyu Zhang and The Cong Luong and James Seale Smith and Adam Gaier},
  year   = {2026},
  eprint = {2610.12545},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.12545v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.12545.svg)](https://codeofpaper.com/paper/2610.12545)

Discussion