Token-level defect feedback and alternating optimization for coupled code generation and defect detection with large language models
Abstract Large language models write code fluently, yet the programs they produce carry defect rates that ordinary functional evaluation seldom exposes, and detection systems that could catch these faults act too late to shape the generation that created them. This paper argues that generation and detection should be o...