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

Diffusion & Non-Autoregressive Language Models4 / 4

Chapter 224 / 4

Diffusion & Non-Autoregressive Language Models

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

Super-hard

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.

Target interface
target(L)

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

Hints0 / 2
Reference solution
Your own code stays in the editor.