cs.SEApr 9, 2026

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

Authors: Kishan Maharaj, Ashita Saxena, Srikanth Tamilselvam

Organizations: IBM

Abstract

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.

Figures & tables

Explore similar work

CardsList
  1. Think Anywhere in Code Generation

    Mar 31, 2026Xue Jiang, Tianyu Zhang, Ge Li +8LLM Code GenerationEfficient Language Model Reasoning

  2. Distilled Continuous Diffusion Language Models Can Write Code in Few Steps---or One

    Sep 3, 2026Fred Zhangzhi Peng, Kaiwen Zheng, Anru R. ZhangDiffusion Model DistillationOne-Step Generative Modeling

  3. StepCodeReasoner: Aligning Code Reasoning with Stepwise Execution Traces via Reinforcement Learning

    May 12, 2026Hao Wang, Rui Li, Lei Sha +1RL for Language Model ReasoningExecution-Guided Code Generation