Autoregressive, Yet Revisable: In Decoding Revision for Secure Code Generation
1 Feb · Chengran Yang, Zichao Wei, Heminghao Deng +6 · arXiv:2602.01187
Large Language Model (LLM) based code generation is predominantly formulated as a strictly monotonic process, appending tokens linearly to an immutable prefix. This formulation contrasts to the cognitive process of programming, which is inherently interleaved with forward generation and on-the-fly revision. While prior works attempt to introduce revision via post-hoc agents or external static tools, they either…