Continuously-Augmented Hybrid Masked Diffusion Model for Data Imputation

Kijung Jeon, Molei TaoNeurIPS 2026

TL;DR

Filling in missing data with standard Gaussian diffusion is a bit like restoring a torn photograph by smearing static over the entire canvas and desperately trying to repaint the intact parts back in at every step. This paper flips the script by using masked diffusion, which naturally keeps observed data untouched while filling in the blanks. By pairing discrete masks with a hidden continuous "scratchpad," the authors build a fast, unified model that seamlessly imputes messy, mixed-type data—from spreadsheets to medical X-rays and clinical text—without expensive computational detours.

What Problem Does This Paper Address?

Real-world datasets are full of holes: sensors fail, survey respondents skip questions, and images get occluded. Imputation is the art of generating plausible guesses for these missing pieces while keeping the observed data strictly unchanged.

Recently, diffusion models have dominated this space, mostly using continuous Gaussian noise. However, forcing an unconditional Gaussian model to respect exact observations requires clunky inference-time Band-Aids—like clamping values, projecting gradients, or running expensive "repainting" inner loops to align the generated parts with the known context. Furthermore, training on datasets that are already incomplete often requires Expectation-Maximization (EM) loops, where the model repeatedly imputes its own training data.

Masked diffusion—where data is corrupted by hiding tokens behind a [MASK] symbol rather than adding static—mirrors the imputation task much more naturally. Once a value is known, it stays fixed. The catch? Masked diffusion was built for discrete text. If you use it on continuous numbers (like age or pixel intensity), unmasking forces the model to lock in a single point prediction in one shot, with zero room for iterative refinement.

Methods

Enter CAHMD (Continuously-Augmented Hybrid Masked Diffusion). CAHMD adapts masked diffusion to hybrid data (datasets mixing continuous numbers and discrete categories) through three clever mechanisms:

  • Continuous Latent Scratchpads: While CAHMD uses standard absorbing masks to hide missing entries, it attaches an auxiliary continuous latent vector ($z_t$) to every masked coordinate. During generation, before a [MASK] is ever popped open to reveal a final number or category, Gaussian noise in $z_t$ is progressively denoised. Think of $z_t$ as a continuous scratchpad where the model softly refines its intuition before committing to a hard decision.
  • Hybrid Path Matching: Because revealing a continuous number places an infinitely sharp probability spike (a Dirac mass) at the predicted value, standard KL-divergence training losses blow up to infinity. Instead, the authors train the predictor using a custom Wasserstein-based distance metric that smoothly scores mask states, continuous values, categorical probabilities, and latent vectors all at once.
  • Observed-Mask Gating & Grouped Masking: To train directly on incomplete data without slow EM self-imputation loops, CAHMD takes whatever entries are observed, artificially masks a subset of them, and uses those as reconstruction targets. It also supports grouped masking (like randomized pixel blocks or whole words) so the model learns spatial and semantic coherence rather than just isolated pixel-by-pixel guesses.
Figure 1: Qualitative comparison of multimodal data imputation on the IU-Xray dataset. CAHMD’s in-sample scores are FID 18.4, LPIPS 0.147, and text token-matching accuracy 70.5%. Red blocks mark masked image regions; green marks missing ground-truth text. Generated tokens are blue when correct and red otherwise; ‘xxxx’ denotes de-identified sensitive information.

Datasets

The authors put CAHMD through a cross-domain gauntlet (using existing benchmarks, without introducing new datasets):

  • Tabular Data: 9 standard benchmarks from the UCI Repository and California Housing (e.g., Adult, Default, Bean, News), plus the massive IEEE-CIS fraud detection dataset (432 hybrid features with 45.2% natural missingness).
  • Images: FMNIST, CIFAR-10, CelebA, and Tiny-ImageNet, tested under 30% block occlusions and Missing Not At Random (MNAR) settings.
  • Multimodal (Image + Text): IU X-Ray, which pairs frontal/lateral chest radiographs with clinical text reports.

Key Insights and Ideas

  • The latent scratchpad isn't just window dressing: When the authors ablated (removed) the auxiliary latent $z_t$, CIFAR-10 perceptual quality fell off a cliff—FID worsened from 9.3 to 85.7—even though pixel-level RMSE barely budged (0.040 vs. 0.041). Continuous refinement before unmasking is what makes generated completions actually look realistic rather than blurry averages.
  • Patience pays off (Delayed Unmasking): For images, forbidding the model from unmasking pixels during the early backward steps gives the $z_t$ channel time to denoise globally, noticeably boosting visual sharpness.
  • Block masking is a training lesson, not an inference trick: Training with larger spatial block masks dramatically improves image FID, whereas changing block sizes at inference time makes almost no difference. Grouping masks teaches the network spatial context during training.

Key Results

CAHMD strikes a rare balance between accuracy, perceptual realism, and raw speed:

  • Tabular: On out-of-sample 30% MNAR benchmarks, CAHMD cuts MAE by 17.6% (0.265 vs. 0.322) and RMSE by 11.5% over the strongest baseline (DiffPuter).
  • Massive Speedups: By ditching EM training loops and RePaint inference loops, CAHMD slashes IEEE-CIS training time from 360.8 minutes to 19.9 minutes (~18× faster) while simultaneously cutting MAE more than in half (0.212 to 0.083) and jumping categorical accuracy from 64.8% to 75.5%. On CelebA images, training is 5.8× faster than DiffPuter (20.6 hours vs. 119.4 hours).
  • Multimodal: On IU X-Ray, CAHMD beats an adapted TabDiff baseline across all five image and clinical text metrics (e.g., FID 33.0 vs. 49.8; clinical CheX-F1 0.697 vs. 0.659 under token masking) while completely eliminating up to 72.8 minutes of E-step repainting overhead.

Limitations and Future Work

CAHMD isn't a silver bullet for every isolated metric—for instance, pure pixel-averaging methods occasionally edge it out on raw image RMSE, whereas CAHMD trades tiny pixel errors for vastly superior perceptual sharpness (FID/LPIPS). More fundamentally, observed-mask gating trains on whatever data happens to be available; it does not mathematically cure arbitrary MNAR selection bias (when the reason data is missing depends on the unobserved value itself). For future work, the authors suggest adapting their grouped-partitioning framework to explicitly model and counteract MNAR patterns during training.

Summary updated

Abstract

Missing data is pervasive in real-world datasets, arising from sensor failures, image occlusions, and incomplete reporting. Completing such datasets requires generating plausible values for the missing entries conditioned on the observed ones, while preserving the observations exactly. Recent Gaussian diffusion imputers reconstruct missing values by progressively removing noise, with observed-value consistency handled through conditional training or sampling-time corrections such as clamping, projection, and repainting. Masked diffusion instead learns to fill masked entries from available context, directly reflecting the imputation task. To leverage this inductive bias for imputation, we introduce Continuously-Augmented Hybrid Masked Diffusion (CAHMD), a masked diffusion framework for hybrid data whose conditional sampler leaves observed coordinates unchanged by construction. CAHMD extends masked diffusion beyond purely discrete data by attaching coordinate-wise auxiliary continuous latents to masked entries, providing a denoising channel before values are revealed. When training data are partially observed, we also introduce observed-mask gating, an observed-data masked reconstruction principle that uses available entries as pseudo-missing targets and avoids repeated EM-style imputation steps. Across tabular, image, and image–caption benchmarks, CAHMD gives a strong reconstruction–perception–efficiency trade-off while reducing the training cost of EM-style self-imputation and the inference cost of repainting-style inner loops.
BibTeX
@inproceedings{jeon2026continuously,
  author = {Kijung Jeon and Molei Tao},
  title = {{Continuously-Augmented Hybrid Masked Diffusion Model for Data Imputation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=yXHFO8GA82},
}
Figure