Super-hard

Implement a small end-to-end masked diffusion LM sampler with confidence-based remasking a

Diffusion & Non-Autoregressive Language Models · Problem 4 of 4

Chapter 15Diffusion & Non-Autoregressive Language Models

Implement a small end-to-end masked diffusion LM sampler with confidence-based remasking a

Super-hardProblem 4 / 4

Implement a small end-to-end masked diffusion LM sampler with confidence-based remasking and compare its output/latency to a greedy AR baseline on a toy vocabulary.

Implement the function/class skeleton in the editor. Any correct approach is accepted.

Hints