Daily Tech Briefing
AI 科技速览

每天 5 分钟内学习 AI。获取最新的人工智能新闻,理解其重要性,并学习如何将其应用于您的工作。

AI 快讯
arXiv Machine Learning · 2026/7/30 04:00:00

From Interface to Inference: Eliciting Any-Order Inference from Any-Order Models

AI 中文解读
一项突破性研究揭示了AI模型的新能力:让机器写代码像人类一样“跳着写”,而不是只能从头到尾线性生成。 想象一下,程序员写代码时会先搭框架再填细节,甚至会临时修改中间某段代码——这种“想到哪写到哪”的灵活方式,被称为任意顺序推理。但现在的AI大模型(比如ChatGPT背后的技术)天生只能从左到右一个词一个词地生成,就像只能顺着读,不能突然跳到中间修改。科学家发现,虽然有些新模型(掩码扩散模型)表面上支持任意位置预测,但实际推理时仍会陷入“知道该写什么,却不知道放哪里”的尴尬,就像作文时想好了情节但找不到段落位置。为了破解这个难题,研究者提出了两种解决方案:一是让模型具备“插入”能力,允许在任意位置插入新内容;二是让模型先在大脑里规划好大致结构,再逐步细化。实验证明,这些方法让AI在Python编程和数学题解答上的表现显著提升。 这项技术一旦成熟,未来你用的AI编程助手将能更好地理解你中途修改的需求,甚至帮你补全代码时更符合人类的思维习惯。普通人使用AI写作文、做表格时,也能像和真人合作一样,随时调整段落顺序而不会打乱整体逻辑。
arXiv:2607.26504v1 Announce Type: new Abstract: Many discrete reasoning tasks, such as code generation, are inherently non-causal: programmers move between high-level structure and local details, a process we call any-order inference. For autoregressive language models, which lack a native any-order interface, non-causal abilities such as infilling and next-edit prediction require hand-designed mechanisms. Can we instead design models that natively support any-order inference? Masked diffusion models have recently emerged as compelling candidates, as their any-order training objective naturally offers an any-order prediction interface. This interface, however, does not automatically yield any-order inference. We demonstrate that this interface-inference gap stems from positional uncertainty: fixed-canvas, token-level models may know what semantic component should appear without knowing where to place it. In light of this, we propose two complementary approaches: (1) Insertion-based masked diffusion, building on FlexMDM (Kim et al, 2025), relaxes fixed-position commitments via insertions, enabling generation across non-contiguous regions. (2) Latent-space masked diffusion shifts prediction to coarser semantic segments, enabling search over latent generation orders. Empirically, we train a 7B FlexMDM for Python coding and a 125M LatentMDM for GSM8K and show that both approaches induce distinct any-order inference behaviors and improve downstream performance. We release our codebase at https://github.com/SeunggeunKimkr/genuine-any-order.
分享
阅读原文