Reproduce “CARVE: Verified Expansion for Variable-Length Generation in Diffusion Language Models” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Wail Bouhedja, Amr Mohamed, Guokan Shang

CARVE, a training-free algorithm, enables variable-length text generation for masked diffusion language models by dynamically expanding the response canvas. It conditionally inserts new masks, accepting expansions only if they do not significantly perturb existing token predictions, often improving generation accuracy while reducing computational costs.

Key insights

  • Length expansion for masked diffusion models can be framed as a 'verified stability decision,' where new masks are added only if they do not destabilize existing token predictions.
  • Combining verified expansion with an adaptive reveal schedule and EOS-triggered cropping can simultaneously enhance generation quality and improve computational efficiency.
  • The precise location for inserting new masks, particularly in areas of high predictive uncertainty, influences the overall effectiveness of variable-length generation.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.