跳到正文
arXiv:cs.CL· Shu Ishida, Aliasghar Khani, Tianyu Zhang, The Cong Luong, James Seale Smith, Adam Gaier·· 11 小时前

AutoIndexer:在编辑链上训练因果模型实现灵活顺序解码

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

AI 导读

AutoIndexer 通过模拟 Chain of Edits 的训练与解码机制,让模型能用 token 插入、替换和删除灵活修改已生成的输出,并学会预测编辑开关的标记 token、像文本编辑器一样移动光标。

正文

View PDF HTML (experimental)

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. 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 this https URL.
Subjects: Computation and Language (cs.CL); Artificial Intelligence (cs.AI); Machine Learning (cs.LG)
Cite as: arXiv:2610.12545 [cs.CL]
  (or arXiv:2610.12545v1 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2610.12545

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Shu Ishida [view email]
[v1] Thu, 8 Oct 2026 17:59:52 UTC (646 KB)

来源:arXiv:cs.CL · arxiv.org