Beyond Autoregression: Diffusion Language Model is All Analog In-Memory Computing Need
Organizations: School of Integrated Circuit Science and Engineering, Beihang University, Beijing, China · Faculty of Engineering, The University of Hong Kong, Hong Kong · School of Integrated Circuits, Peking University, Beijing, China
Abstract
Analog in-memory computing (AIMC) enables energy-efficient language-model inference, but hardware non-idealities perturb matrix--vector multiplications and degrade generation quality. Autoregressive (AR) models are especially vulnerable: each token is committed to the causal context at birth, so perturbation-induced errors cascade. We study diffusion language models (DLMs), which iteratively refine a masked sequence, as an alternative paradigm. Across scale-matched model pairs and open checkpoints, DLMs degrade more gracefully than AR counterparts under persistent weight perturbations. Controlled analyses rule out cross-round noise averaging and support delayed token commitment and progressive context resolution as the mechanism. A larger denoising-step budget further shrinks the clean--noisy gap, a DLM-specific latency--robustness knob. We perform large-scale simulation tests across diverse datasets and models using a noise model calibrated from real silicon measurements. Furthermore, on a 16-chip 28nm eFlash AIMC cluster, hybrid on-board measurements show DLMs tolerate -- larger weight noise, making diffusion-based generation a promising paradigm for noise-resilient AIMC inference.
Figures & tables
| Scale | Model | Quality | Max | ||
|---|---|---|---|---|---|
| Digital | On-chip | ||||
| 45M | AR | 3.412 | 3.451 | 0.19 | |
| MDLM | 3.465 | 3.494 | 0.27 | ||
| 125M | AR | 3.183 | 3.207 | 0.28 | |
| MDLM | 3.236 | 3.242 | 0.58 | ||
| 8B (open) | Llama-3 | 0.748 | 0.512 | 0.03 | |
| Model | Steps | Quality | Cost / gen. | |||
|---|---|---|---|---|---|---|
| Digital | On-chip | Lat. (s) | Energy (mJ) | |||
| LLaDA-8B | 64 | 0.381 | 0.227 | 0.73 | 410 | |
| 128 | 0.642 | 0.503 | 1.42 | 801 | ||
| 256 | 0.702 | 0.628 | 2.81 | 1590 | ||
| 512 | 0.741 | 0.712 | 5.58 | 3150 | ||
| MDLM-125M | 32 | 3.251 | 3.297 | 0.06 | 28 | |
Diffusion Language Model Inference
Diffusion language model inference studies how to generate, guide, and serve text efficiently through iterative denoising and parallel token updates.
See all 207 papers