Abstract
Diffusion-based language models are emerging as a promising alternative to autoregressive LMs: they approach the competence of autoregressive LMs while offering nuanced controllability at inference time. While autoregressive LMs have benefited immensely from scaling and instruction-based learning, existing studies of diffusion LMs have been conducted on a smaller scale. Starting with a recently proposed diffusion model SSD-LM, in this work we first explore methods to scale it from 0.4B to 13B parameters, proposing techniques to improve its training and inference efficiency, and to finetune the model to follow instructions. Armed with a more powerful, general purpose diffusion LM, we introduce the primary contribution of this work -- SSD-2 -- an approach to easily ensemble at inference time a large general-purpose diffusion LM with smaller, but specialized and contextualized diffusion LMs. We show that SSD-2 facilitates novel ensembles with 100x smaller models that can be customized and deployed by individual users. We find that compared to autoregressive models, the collaboration between diffusion LMs is more effective, leading to higher-quality model responses due to their ability to dynamically incorporate bi-directional contexts.
Introduction
Large Language Models (LLMs) have revolutionized natural language processing, yet they remain difficult for individual users to customize, particularly when dealing with private or specialized data. Users often face a choice between expensive fine-tuning of massive models or using smaller models that lack general reasoning capabilities.
Traditional autoregressive (AR) models generate text token-by-token from left to right. In contrast, diffusion-based language models generate text by iteratively refining a block of tokens from noise. This work argues that this iterative refinement makes diffusion models superior "collaborators." While AR ensembling often leads to incoherence because the small model only sees past context, diffusion models allow a small specialized model to influence the entire block of text simultaneously through bi-directional context.
Methodology: SSD-2 and Inference-Time Collaboration
The authors introduce SSD-2, an evolution of the Semi-Autoregressive Simplex-based Diffusion Language Model (SSD-LM). The framework scales the architecture from 0.4B to 13B parameters, utilizing weights from the OPT family for faster convergence. Technical enhancements include self-conditioning—where the model uses its previous prediction as additional input—and a specialized attention mask that doubles training speed.
The core innovation is the "David and Goliath" setup: inference-time collaboration via logit-averaging. By combining the raw prediction scores (logits) of a large "Core" model and a small "User" model during each diffusion iteration, the smaller model can steer the larger one toward specific facts or styles.
Experimental Setup
The models were pretrained on a 38-billion-token subset of the C4 dataset and instruction-finetuned using the Databricks DOLLY dataset (15,000 pairs). Evaluation was conducted on the held-out DOLLY test set and the Vicuna test set to assess instruction-following and general chat capabilities.
Key Results
The SSD-2 collaboration (13B Core + 0.1B User) consistently outperformed standalone 13B models and autoregressive ensembles. Human evaluations showed a clear preference for SSD-2 collaboration (45.7% win rate) over OPT-based collaboration (26.6%).
Key findings include:
- Bi-directional Synergy: The small model provides global guidance, allowing specific facts to influence the entire sentence structure.
- Efficiency: The 2.7B SSD-2 model is faster than the original 0.4B SSD-LM, demonstrating significant architectural improvements.
- Zero-Shot Performance: The 13B SSD-2 model demonstrated competitive instruction-following abilities compared to Llama-13B.
Limitations and Future Work
Despite its advantages, SSD-2 faces challenges in decoding speed, currently taking approximately 48 seconds for 25 tokens on a V100 GPU. The models are also relatively undertrained compared to industry standards. Future research will explore dynamic schedules for the collaboration factor ($\lambda$) and "expert denoisers" specialized for different stages of the generation process.
Summary updated