๐ค AI Summary
While mask diffusion language models (MDMs) enable parallel and controllable generation, they suffer from higher perplexity than autoregressive (AR) models and lack critical inference optimizations such as key-value (KV) caching. Method: We propose Eso-LMsโa novel architecture that seamlessly interpolates AR and MDM paradigmsโby introducing the first KV caching mechanism tailored for mask diffusion, jointly training with AR priors and diffusion objectives, and optimizing sampling scheduling. Contribution/Results: Eso-LMs unifies perplexity-controllable, parallel, controllable, and efficient inference within a single framework. Experiments demonstrate new state-of-the-art perplexity on standard language modeling benchmarks. Inference speed improves by 65ร over typical MDMs and 4ร over prior semi-autoregressive methods, while preserving strong controllability and parallelism.
๐ Abstract
Diffusion-based language models offer a compelling alternative to autoregressive (AR) models by enabling parallel and controllable generation. Among this family of models, Masked Diffusion Models (MDMs) achieve the strongest performance but still underperform AR models in perplexity and lack key inference-time efficiency features--most notably, KV caching. In this work, we introduce Eso-LMs, a new family of models that fuses AR and MDM paradigms, enabling smooth interpolation between their perplexities while overcoming their respective limitations. Eso-LMs set a new state of the art on standard language modeling benchmarks. Crucially, we are the **first to introduce KV caching for MDMs** while preserving parallel generation, significantly improving inference efficiency. Combined with an optimized sampling schedule, our method achieves up to **65x** faster inference than standard MDMs and **4x** faster inference than prior semi-autoregressive approaches. We provide the code and model checkpoints on the project page: [http://s-sahoo.github.io/Eso-LMs](http://s-sahoo.github.io/Eso-LMs)