Manuscript Offprint

arXiv:2610.12340

Ambient Discrete Diffusion: Using the Wrong Data at the Right Time for Data Efficient Learning

Julian Kleutgens, Mauricio Tec, Claudio Battiloro, Francesca Dominici, Giannis Daras

ABSTRACT

We introduce RefineMix, a framework for training discrete diffusion models under severe data scarcity, a common constraint in scientific applications. RefineMix uses out-of-distribution data at selected diffusion times to improve generalization without biasing the sampling distribution. Although this strategy has been explored in continuous diffusion, discrete diffusion presents a distinct challenge: unlike Gaussian noise, masking preserves domain information in surviving tokens, limiting the use of related data at high noise levels. At low noise levels, however, the domains' effectively disjoint supports become an advantage, allowing the model to learn from both in-domain and out-of-distribution data without biasing the sampler. We formalize these intuitions and provide a theoretical analysis for the proposed method. Experimentally, across five domain-shift settings, RefineMix matches or outperforms in-domain finetuning and data mixing. For protein sequence generation, finetuning with just 197 in-domain examples nearly doubles the fraction of generated proteins that are simultaneously novel, foldable, and in-family compared to standard finetuning.

1 INTRODUCTION

Discrete diffusion modeling has recently gained significant research traction due to its potential for faster sampling compared to the autoregressive paradigm (Song et al., 2025; Labs et al., 2025). It has already been successfully applied to language modeling (Austin et al., 2023; Lou et al., 2024; Sahoo et al., 2024; Shi et al., 2025; Ou et al., 2025; Sahoo et al., 2025a;b), molecules (Lee et al., 2025) and graphs (Liu et al., 2023) among other modalities. Beyond the potential for fast sampling, recent evidence (Ni et al., 2025; Gao et al., 2025; Prabhudesai et al., 2025) suggests that discrete diffusion models might be more data-efficient than their autoregressive counterparts. However, the performance and the generalization capabilities of the final model still depend on the amount of available training data points (Kaplan et al., 2020; Hoffmann et al., 2022). For certain application domains, data is scarce, which limits our ability to train effective models. The problem of developing techniques for training discrete diffusion models in data-challenging settings remains underexplored.

For continuous diffusion and autoregressive models, the standard solution in data-challenging settings is to augment the data pool by borrowing samples from related domains with wider sample availability. A common practice is to insert related data at a fixed, uniform rate during training, a technique known as data-mixing (Albalak et al., 2023). Data-mixing improves upon training on target data alone, but also biases the learned distribution. An alternative solution to data-mixing is to pre-train on all the available data and then finetune to the target domain. This finetuning approach is prone to overfitting issues that must be controlled by carefully tuning the learning rate, the number of parameters to be finetuned, and the duration of the finetuning. For continuous diffusion, more rigorous techniques for training generative models with limited and out-of-distribution samples have been developed (Daras et al., 2025b;a; 2023; Aali et al., 2025; Hosseintabar et al., 2025; Rodríguez-Muñoz et al., 2026; Lu et al., 2026; Kawar et al., 2023; Aali et al., 2023; Modi et al., 2025; Park et al., 2025; Matsuzaki et al., 2026; Lu et al., 2025; Rozet et al., 2024; Bai et al., 2025; Zhang et al., 2025; Tewari et al., 2023; Wei et al., 2026). One key idea, proposed in Ambient Diffusion Omni (Daras et al., 2025).

Figure

Figure 1: Noise-selective mixing. (a) Noising widens the target (green) and source (orange) distributions until both reach the prior π\pi at t=1t = 1. They overlap (purple) only at high noise, so RefineMix admits source data only below the cutoff tmaxt_{\text{max}} (blue). (b) How well a classifier tells the domains apart, against the noise level: for text (solid), it stays sharp until almost every token is masked and for images under Gaussian noise (dotted), it goes blind early. (c) Why text stays separable: masked sequences at decreasing noise (top to bottom), with the classifier's probability of the target. A single target-specific token (green) settles the domain, whereas shared tokens (white) add little.

et al., 2025b), is to use out-of-distribution samples only for certain diffusion times, leveraging the fact that noise contracts distributional differences and hence even out-of-distribution samples can be useful for learning in the high-noise regime, while images that agree with the target locally can also be used at low noise. These techniques have not been explored in the context of discrete diffusion.

In this paper, we rigorously study the problem of training discrete diffusion models in data-challenging regimes. Our central insight is that, contrary to continuous diffusion, in discrete diffusion for textual data, the noising mechanism is not an effective way to erase distribution shifts. Instead, two observations motivate our strategy. First, we observe that even under extreme token masking, different domains remain separable due to the existence of domain-specific tokens. Second, at low noise, different domains do not have any shared data distributional support, and hence, training on data from both domains does not hurt the denoising capabilities on the target domain. On the contrary, if the domains share some local structure, data-mixing at low noise can improve learning on the target domain without introducing sampling biases.

These insights lead to RefineMix, a simple framework for training discrete diffusion models in data-scarce domains by leveraging out-of-distribution data without biasing the sampling distribution. RefineMix uses data only from the target domain in the high-noise regime and data from both domains in the low-noise regime. Notably, unlike in continuous diffusion, where imperfect data can also be used at high noise (Daras et al., 2025b), in discrete diffusion the related data can only be used at low noise. We justify this design in two steps. First, we prove that sampling stays on target as long as a classifier can still tell the domains apart at the cutoff. Second, we characterize the best cutoff, which trades the structure that the domains share, and that the related data can therefore teach, against the bias it introduces.

Backing the theory with empirical results, we show that RefineMix matches or outperforms fine-tuning, data mixing, and conditional training on five domain pairs. We further use RefineMix to adapt pretrained diffusion language models of up to 7B parameters to scarce domains, outperforming fine-tuning approaches. Finally, we show that the method is not limited to text and we move our interest to modeling protein sequences. We use RefineMix to finetune a diffusion protein model to a family of 197 proteins and we nearly double the fraction of generated sequences that are new, fold, and belong to the family.

References (61)