arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.12545cs.CLcs.AIcs.LG
收藏

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

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

Autodesk Research(欧特克研究中心)

Shu Ishida, Aliasghar Khani, Tianyu Zhang, The Cong Luong, James Seale Smith, Adam Gaier

AI总结:

AutoIndexer是一种新型生成模型,通过在编辑链上训练因果模型实现灵活顺序解码,具备生成后上下文编辑能力,且在标准LLM基准上性能未受影响。

摘要:

自回归解码不太适合非因果有序数据(如交叉引用或未来依赖关系),因为其输出无法事后修改,这与迭代式人类推理不同。扩散大语言模型(Diffusion LLMs)部分缓解了这一局限,但仍无法灵活地从预生成上下文中插入或删除任意数量的标记。我们设计AutoIndexer作为一种生成模型,采用新颖的训练和解码机制模拟编辑链,使模型能够事后通过标记插入、替换和删除灵活修改先前的输出。模型学习预测用于开启和结束编辑的标记,同时将光标移动到现有标记序列中的位置,类似于文本编辑器。训练序列通过用反向链式编辑操作扰动真实标签获得,模型通过撤销这些反向操作学习编辑。这种扰动训练使AutoIndexer对错误上下文具有鲁棒性,并能适应代码修正等编辑任务。我们证明,我们的方法具备大多数自回归模型和扩散模型所缺乏的生成后上下文编辑能力,且在标准大语言模型基准上的性能未受影响。代码可在https URL获取。

英文摘要:

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 https://github.com/AutodeskAILab/autoindexer.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑