Inference-Time Refinement Closes the Synthetic-Real Gap in Tabular Diffusion

Eugenio Lomurno, Filippo Balzarini, Francesco Benelle, Francesca Pia Panaccione, Matteo Matteucci

TL;DR

When generating synthetic spreadsheets (tabular data) to protect sensitive records, downstream machine learning models trained on fake data almost always underperform models trained on real data. Instead of building yet another massive generator architecture to fix this at training time, the authors introduce TARDIS, a framework that steers and filters the outputs of an already-trained, frozen diffusion model at inference time. Remarkably, this post-training refinement doesn't just close the performance gap—it frequently produces synthetic datasets that train better downstream models than the original real data.

What Problem Does This Paper Address?

Despite all the hype around images and text, good old mixed-type spreadsheets remain the bread and butter of applied machine learning. When privacy or regulations restrict access to real records, practitioners turn to synthetic data generators—most recently, diffusion models.

There is a stubborn catch: the synthetic–real gap. If you train an XGBoost model on synthetic data and test it on real data, it rarely matches a model trained directly on real records. For years, the community assumed this was a training-time problem, pouring effort into complex new generator architectures for marginal gains. Meanwhile, image synthesis discovered inference-time guidance—steering a frozen model during generation without retraining. Bringing this to tabular data is tricky because spreadsheets mix numbers and categories (lacking a clean mathematical distance metric) and lack a universal representation space like CLIP. TARDIS bridges this divide.

Methods

TARDIS (Tabular generation through Refinement, Distillation, and Inference-time Sampling) wraps around a frozen, pre-trained tabular diffusion model (specifically TabDiff) and refines its outputs in three stages.

At its mathematical heart is a novel pattern called Bidirectional Chamfer Refinement (BCR). Think of the symmetric Chamfer functional as a two-way distance check between real and synthetic batches: one term ensures fidelity (every fake row looks close to a real row), and the other ensures coverage (every real row has a nearby fake representative, preventing mode collapse). To compute distances across messy numbers and categories, data is projected through either z-scored encodings or a lightweight, dataset-specific $\beta$-VAE encoder.

Figure 1: TARDIS pipeline. Stage I draws an oversampled noise pool Dnoise of cardinality M · Nr from the latent space Z. Stage II denoises Dnoise via reverse diffusion, perturbing the score εθ(xt, t) with the gradient of the bidirectional Chamfer functional C between the current candidate batch xt and the real reference set xr, projected through a representation map φ; this produces the candidate pool Dcand. Stage III selects Dsyn of cardinality K · Nr from Dcand via a Chamfer Sampler, optionally preceded by Generative Knowledge Distillation fGKD that relabels candidates with soft targets; the final variant is chosen by argmax over the validation utility U. The figure illustrates the BCR- headline configuration with β-VAE mapping in Stage II and the Chamfer Sampler. The full TARDIS framework generalizes Stage II to also support disabled-guidance and identity-mapping variants, and Stage III to a grid over four samplers (Section 3.3, Appendix D).

The pipeline operates in three stages:

  1. Stage I (Oversampling): Draw $M=50$ times more initial noise samples than the real dataset size ($N_r$).
  2. Stage II (Continuous Guidance): During reverse diffusion, nudge the denoising trajectory toward the real data manifold using the gradient of the Chamfer distance.
  3. Stage III (Discrete Selection): Optionally relabel candidates with soft targets from a teacher classifier (Generative Knowledge Distillation), then rank and prune the massive pool down to $K \cdot N_r$ rows using post-hoc selectors like a discrete Chamfer Sampler.

Per dataset, an automated hyperparameter search (Tree-structured Parzen Estimator + inner grid search) tunes guidance settings, sampler choices, and the output size multiplier $K$ to maximize validation utility.

Datasets

The authors evaluate TARDIS across 15 public benchmarks from UCI, Kaggle, and PhysioNet, using a 90/5/5 train/validation/test split (no new datasets are introduced). These span:

  • 5 Binary Classification: Diabetic Retinopathy, Adult, Default, Magic, Bank.
  • 4 Multiclass Classification: Student Performance, Contraceptive, Music, Diamonds.
  • 6 Regression: Solar Flare, Infrared Thermography, Abalone, Insurance, Beijing, News.

The corpus covers 666 to 53,940 rows and 8 to 46 features across healthcare, finance, and social sciences.

Key Insights and Ideas

  • The gap isn't a training problem: A frozen generator already knows enough about the data distribution; oversampling, steering, and curating at inference time suffices to match—and surpass—real data utility.
  • Discrete filtering + dataset scaling do the heavy lifting: In image diffusion, continuous score guidance is the star. Here, TARDIS inverts that wisdom. If you force TARDIS to output the exact same number of rows as the real dataset ($K=1$), it beats the base generator and reaches parity with real data, but exceeding real data requires generating larger, curated synthetic sets ($K > 1$).
  • Synthetic data shines brightest when real data is messy: As real-data performance approaches a ceiling, TARDIS's gains shrink. Its biggest wins happen on small, noisy, or imbalanced datasets (e.g., Solar Flare or Student Performance), effectively acting as manifold-aware data augmentation.
  • Emergent mathematical harmony: Without hard-coding the rule, the automated search naturally pairs continuous Chamfer guidance with discrete Chamfer selection on 9 of 15 datasets.

Key Results

Using XGBoost under the Train-on-Synthetic, Test-on-Real (TSTR) protocol:

  • Beats real data: TARDIS achieves a median +8.6% (mean +9.8%) improvement on downstream metrics (AUROC / RMSE) over models trained on real data, winning strictly on 12 of 15 datasets ($p = 0.008$).
  • Dominates the backbone: It improves over unrefined TabDiff on 15 out of 15 datasets (mean +13.1%, $p < 10^{-4}$).
  • No mode collapse or privacy blowups: Manifold Precision (0.949 vs. 0.947) and Recall (0.995 vs. 0.994), along with Nearest-Neighbor Distance Ratios, match the base generator. A membership-inference attack yields 0.542 AUC on TARDIS vs. 0.520 on TabDiff (far safer than 0.765 on real records).
  • Accessible compute: Excluding the one-time search, generating a refined dataset takes a median of 16.1 minutes on a 2017 consumer GPU (GTX 1080 Ti), dropping to 3.6 minutes on an NVIDIA L40S.

Limitations and Future Work

  • Single-backbone validation: The full pipeline is only tested on TabDiff. Stage II requires a continuous reverse diffusion process, meaning it cannot directly steer autoregressive or VAE generators, and post-hoc filtering alone failed to consistently boost weaker GAN/VAE pools.
  • No formal privacy guarantees: While empirical privacy proxies hold steady, accessing real data during guidance and selection lacks formal Differential Privacy (DP) bounds.
  • Fixed oversampling cost: Fixing $M=50$ drives most of the compute overhead without exploring joint $M$-and-$K$ optimization.

Future work aims to transfer BCR to other tabular diffusion models (like TabDDPM) and image diffusion, jointly optimize $M$ and $K$ under compute budgets, and build a differentially private variant of TARDIS.

Summary updated

Abstract

Diffusion-based generators set the current state of the art for synthetic tabular data, deployed downstream wherever direct access to real records is restricted. These methods approach but rarely exceed real-data utility on downstream tasks, and closing this synthetic–real performance gap has so far been pursued mostly at training time, via architectural advances, scaling, and retraining of monolithic generators. The inference-time alternative, i.e., refining the outputs of a pre-trained backbone with parameters left untouched, has remained largely unexplored for tabular synthesis. We introduce TARDIS (Tabular generation through Refinement, Distillation, and Inference-time Sampling), an inference-time search framework over a frozen pre-trained backbone: per dataset, a Tree-structured Parzen Estimator configures score-level guidance during reverse diffusion, with each trial's objective set by an inner grid search over post-hoc sample selectors and an optional soft-label distillation step. The search space encodes a mathematical pattern we name Bidirectional Chamfer Refinement (BCR): the symmetric Chamfer functional between synthetic and real samples is minimized both continuously, via a score-level gradient during reverse diffusion, and discretely, via batch-ranking post-generation. On 9 of 15 datasets the search selects BCR-aligned configurations over the alternatives encoded in the search space. Across 15 binary, multiclass, and regression benchmarks and at the cardinality selected by the search, TARDIS achieves a median $+8.6\%$ downstream-task improvement over models trained on real data (mean $+9.8\%$, 95% CI of the mean $[+3.8, +16.4]$, Wilcoxon $p=0.008$, 12/15 strict wins) and improves over the underlying TabDiff backbone on all 15 datasets (mean $+13.1\%$, $p<10^{-4}$), matching the backbone on manifold fidelity, diversity, and sample-level privacy proxies. At output size matched to the real data, it still improves over the backbone on 11 of 15 datasets while reaching parity with real data: cardinality selection is an integral part of the method. The synthetic–real gap is therefore not primarily a training-time problem: on the studied corpus, inference-time refinement of a pre-trained tabular diffusion backbone reaches and exceeds real-data utility, at an apply-time cost of 1 to 80 minutes on a single consumer-grade GPU after a one-time configuration search. Project page: https://github.com/eugeniolomurno/tardis
BibTeX
@inproceedings{lomurno2026inference,
  author = {Eugenio Lomurno and Filippo Balzarini and Francesco Benelle and Francesca Pia Panaccione and Matteo Matteucci},
  title = {{Inference-Time Refinement Closes the Synthetic-Real Gap in Tabular Diffusion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=b4cH8bQHbT},
}
Figure