arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.23690cs.SEcs.AI
收藏

超越自回归视野:扩散模型、世界模型和状态空间模型在代码领域的综合综述

Beyond the Autoregressive Horizon: A Comprehensive Survey of Diffusion Models, World Modelling, and State Space Models for Code

IBM

Kishan Maharaj, Ashita Saxena, Srikanth Tamilselvam

AI总结:

综述扩散模型、代码世界模型和状态空间模型在代码生成中的潜力,以克服自回归模型在全局规划、长程依赖和执行语义方面的局限,并展望“系统2”代码生成智能体。

摘要:

自回归(AR)语言模型在自动化软件工程中取得了显著进展,实现了强大的代码生成和辅助系统。然而,下一个词预测范式引入了代码推理的结构性限制,包括受限的全局规划、维持长程依赖的挑战以及程序执行语义的有限基础。注意到现有文献对AR模型的严重偏向,我们讨论了可能通过解锁下一代代码智能架构能力来克服下一个词预测的逻辑和扩展瓶颈的新兴范式。具体来说,我们讨论了扩散模型的潜力,它通过整体去噪生成代码,捕获AR模型经常遗漏的长程句法约束。我们还讨论了代码世界模型(CWMs),它模拟执行状态以支持推理,以及状态空间模型(SSMs),它为大规模上下文提供线性时间效率。通过将这些发展与认知神经科学的发现联系起来,我们概述了开发“系统2”代码生成智能体的方向。

英文摘要:

Autoregressive (AR) language models have driven significant progress in automated software engineering, enabling powerful code generation and assistance systems. However, the next-token prediction paradigm introduces structural limitations for code reasoning, including restricted global planning, challenges in maintaining long-range dependencies, and limited grounding in program execution semantics. Noting the heavy skewness of existing literature towards AR models, we discuss emerging paradigms that could potentially overcome the logic and scaling bottlenecks of next-token prediction by unlocking next-generation architectural capabilities for code intelligence. Specifically, we discuss the potential of Diffusion Models, which generate code via holistic denoising that captures long-range syntactic constraints often missed by AR models. We also discuss Code World Models (CWMs), which simulate execution states to support reasoning, and State Space Models (SSMs), which provide linear-time efficiency for massive contexts. By connecting these developments with findings from cognitive neuroscience, we outline directions for developing "System 2" code generation agents.

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

↑