CORE: Context-Robust Remasking for Diffusion Language Models
Abstract
Lay Summary
Problem: Traditional AI writes text left-to-right, but newer diffusion models write by guessing words across an entire document simultaneously. While fast, this parallel approach has a major flaw: the AI commits to an incorrect early guess before the surrounding sentence is finished. Because the AI operates with high confidence in this mistake, it builds the rest of the computer code or text around that flawed foundation, causing a cascade of errors. Solution: We developed Context-Robust Remasking (CORE) to fix these errors during generation. CORE acts as an active stress test. Instead of trusting the AI's initial confidence, CORE temporarily hides the surrounding text to check the stability of a specific word. If the AI changes its prediction when the surrounding context is hidden, CORE flags the original word as unstable and forces the model to revise it using the most recent information. Impact: By targeting words that are vulnerable to changing context, CORE stops structural errors before they propagate. This self-correction boosted the accuracy of AI-generated computer code by over 9%, ensuring these parallel models produce reliable outputs.