🤖 AI Summary
Autoregressive large language models (AR-LLMs) exhibit limitations in modeling code structure, suffer from high inference latency, and underperform on cross-file software engineering tasks. Method: This work presents the first systematic evaluation of diffusion large language models (DLLMs) across the full software engineering lifecycle—code generation, defect detection, and program repair—leveraging their global bidirectional encoding and decoupled generation mechanism to enhance syntactic and semantic understanding of code. Contribution/Results: Evaluated on a large-scale benchmark comprising 52,937 tasks, a 7B-parameter DLLM achieves a 30% average accuracy gain over AR-LLMs and improves cross-file repair performance by 113%, while reducing inference latency. This study establishes the first empirically grounded, comprehensive evaluation framework for DLLMs in software engineering, demonstrating their viability as a promising alternative paradigm to AR-LLMs.
📝 Abstract
Autoregressive Large Language Models (AR-LLMs) are widely used in software engineering (SE) but face limitations in processing code structure information and suffer from high inference latency. Diffusion LLMs (DLLMs) offer a promising alternative with global bidirectional encoding and decoupled generation steps. This work presents the first comprehensive evaluation of DLLMs across the software development lifecycle, including code generation, defect detection, and program repair. On a large-scale benchmark of 52,937 tasks, 7Bparameter DLLMs outperform AR-LLMs with a 30% average accuracy improvement achieving a 113% gain on cross-file repair, while maintaining superior efficiency and reduced latency. Our results establish DLLMs as a superior paradigm for SE tasks.