MDM-Prime-v2: Binary Encoding and Index Shuffling Enable Scaling of Diffusion Language Models
About
Masked diffusion models (MDM) exhibit superior generalization when learned using a Partial masking scheme (Prime). This approach converts tokens into sub-tokens and models the diffusion process at the sub-token level. We identify two limitations of the MDM-Prime framework. First, we find that the functional form of the subtokenizer significantly increases the cross-entropy loss in the objective when paired with commonly used Byte-Pair-Encoding (BPE) tokenizers. Second, we lack tools to guide the hyperparameter choice of the token granularity in the subtokenizer. To address these limitations, we analyze the optimal design of the subtokenizer that minimizes MDM-Prime training objective and develop MDM-Prime-v2, a masked diffusion language model which incorporates Binary Encoding and Index Shuffling. Our analysis characterizes how token granularity and sub-token entropy influence the training objective and downstream performance, providing principled criteria for subtokenizer design. When extending the model size to 1.1B parameters, MDM-Prime-v2 demonstrates superior average zero-shot accuracy across eight commonsense reasoning benchmarks, outperforming similar-sized baselines including GPT-Neo, OPT, Pythia, Bloom, SMDM, and TinyLLaMA.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Common Sense Reasoning | BoolQ | Accuracy62.05 | 240 | |
| Commonsense Reasoning | OBQA | Accuracy34 | 187 | |
| Commonsense Reasoning | SocialIQA | Accuracy42.02 | 158 | |
| Commonsense Reasoning | ARC-E | Accuracy47.81 | 152 | |
| Language Modeling | PTB (val) | Perplexity20.26 | 107 | |
| Language Modeling | LM1B (val) | Perplexity16.57 | 67 | |
| Language Modeling | WikiText (val) | Perplexity12.51 | 62 | |
| Language Modeling | OpenWebText (OWT) (val) | Perplexity7.77 | 42 | |
| Language Modeling | LAMBADA (val) | Perplexity12.37 | 39 | |
| Language Modeling | AG News (val) | Perplexity27.79 | 36 |