Large Language Diffusion Models

Shen Nie, Fengqi Zhu, Zebin You, Xiaolu Zhang, Jingyang Ou, Jun Hu, Jun Zhou, Yankai Lin, Jirong Wen, Chongxuan Li

arXiv:2502.09992 · 2026-08-15 공개 · arXiv · PDF

llm diffusion-models transformer code-generation in-context-learning language-modeling pre-training llama

Abstract

The capabilities of large language models (LLMs) are widely regarded as relying on autoregressive models (ARMs). We challenge this notion by introducing LLaDA, a diffusion model trained from scratch under the pre-training and supervised fine-tuning (SFT) paradigm. LLaDA employs a forward data masking process and a reverse generation process, parameterized by a Transformer to predict masked tokens. It provides a principled generative approach for probabilistic inference by optimizing a likelihood lower bound. Across extensive benchmarks on general tasks, math, code, and so on, LLaDA demonstrates strong scalability and performs comparably to our self-constructed ARM baselines. Remarkably, LLaDA 8B is competitive with strong LLMs like LLaMA3 8B in in-context learning and, after SFT, exhibits impressive instruction-following abilities in case studies such as multi-turn dialogue. Moreover, LLaDA addresses the reversal curse, surpassing GPT-4o in a reversal poem completion task. Our findings show the promise of diffusion models for language modeling at scale and challenge the common assumption that core LLM capabilities discussed above inherently depend on ARMs. Project page and codes: https://ml-gsai.github.io/LLaDA-demo/.

한국어 요약

한 줄 요약

LLaDA는 확률적 추론을 위한 확산 모델 기반 대규모 언어 모델로, 기존 자동회귀 모델과 유사한 성능을 보인다.

핵심 기여도

핵심 아이디어

LLaDA는 기존 자동회귀 모델(ARM)이 아닌 확산 모델 기반으로 대규모 언어 모델을 구축한 사례이다. 이는 언어 모델의 핵심 능력이 자동회귀 구조에 의존하지 않음을 시사한다. LLaDA는 forward masking 과정과 reverse generation 과정을 통해 토큰 분포를 모델링하며, Transformer 기반의 mask predictor를 사용해 마스킹된 토큰을 예측한다. 이는 확률적 추론을 위한 likelihood lower bound 최적화를 가능하게 한다. 기존 ARM은 토큰을 순차적으로 생성하는 방식으로 인해 계산 비용이 높고, 역추론 능력이 제한적이지만, LLaDA는 양방향 의존성을 활용해 이러한 문제를 완화한다.

기술적 접근법

주요 결과

의의 및 한계

LLaDA는 확산 모델이 대규모 언어 모델링에 효과적임을 입증하며, 기존 자동회귀 모델에 대한 의존성을 줄이는 새로운 접근법을 제시한다. 특히, 양방향 모델링과 역추론 능력 향상은 기존 LLM의 한계를 극복하는 데 기여한다. 그러나 LLaDA는 ARM 기반 모델과 동일한 규모로 확장되지 못했으며, 추론 시 하이퍼파라미터에 민감한 문제가 있다. 또한, 강화 학습 기반 정렬(alignment)이 적용되지 않았고, 멀티모달 데이터 처리 가능성은 아직 검증되지 않았다.

실용적 활용

LLaDA는 대규모 언어 생성, 코드 생성, 다중 턴 대화 시스템 등에서 활용 가능하다. 특히, 역추론이 필요한 창의적 작업(예: 시 창작, 논리적 역추론)에서 기존 모델보다 우수한 성능을 기대할 수 있다.