TL;DR
When generating synthetic tabular data from small datasets, existing models face a frustrating catch-22: getting high-quality data usually means memorizing the training set, which ruins privacy. This paper introduces DiffICL, a model that treats synthetic data generation as an in-context learning problem rather than fitting each table from scratch. By drawing on structural priors learned across hundreds of diverse tables, DiffICL simultaneously boosts data utility and privacy—and even works as an effective data augmentation tool.
What Problem Does This Paper Address?
Imagine you work at a hospital with a 300-row patient spreadsheet. You want to share this data with researchers, so you train a generative model (like a GAN, VAE, or Diffusion model) to create realistic fake patients.
Here is the catch: with only a few hundred rows, high-dimensional space is mostly empty. Standard generative models optimize directly on your specific dataset from scratch. Powerful diffusion models achieve high quality by essentially memorizing and regurgitating records overly close to real patients—destroying privacy. Conversely, heavily regularized models (like VAEs or GANs) protect privacy by limiting capacity, resulting in low-utility synthetic data. Furthermore, in these small-data regimes, memorization kicks in before quality peaks, meaning you cannot simply "early stop" your way out of trouble.
Methods
To break the memorization habit, the authors stop training dataset-specific models from scratch and instead formulate generation as In-Context Learning (ICL) via a two-stage framework called DiffICL:
- Stage 1: Conditional Latent Diffusion Pretraining. Because spreadsheets vary wildly in row counts, column counts, and data types, DiffICL first maps raw tables into a unified 3D latent space using a frozen tabular foundation model (LimiX). During pretraining, each dataset is split into two disjoint halves: a context set and a query set. A continuous-time diffusion model learns to denoise and generate the query latents conditioned on the context latents. Because the sets don't overlap, copying the context is useless; the model is forced to infer the underlying distribution. Under the hood, a novel dual-axis attention Transformer attends across features within a sample, and across context samples—while strictly masking query samples from seeing each other so generated rows remain conditionally independent.
- Stage 2: Inference and Feature Reconstruction. Given a brand-new target dataset, DiffICL splits it into context and query subsets. The pretrained diffusion network generates fresh synthetic latents conditioned on the context. To translate these latents back into raw numbers and categories, tiny dataset-specific MLP decoders are trained on the fly using the query subset—adding minimal computational overhead.
Datasets
- Pretraining Corpus: Over 800 real-world tabular datasets (up to 826 evaluated in ablations). To teach permutation invariance and expand diversity, the authors randomly shuffle rows and columns five times per table, creating a corpus 5× the original size.
- Evaluation Benchmarks: 14 real-world datasets (training sizes from 259 to 10,535 rows) spanning numeric, categorical, and mixed types. This includes 7 classification tasks (kc2, wdbc, ilpd, diabetes, vehicle, mfeat-zernike, kr-vs-kp) and 7 regression tasks (red wine, auction verification, abalone, white wine, wind, cpu activity, health insurance). No new benchmark datasets were introduced.
Key Insights and Ideas
- Distribution metrics don't predict utility: Popular statistical metrics that measure column shapes, pairwise correlations, or distribution coverage correlate poorly with actual downstream machine learning performance (Pearson $r < 0.6$, and just $0.48$ for column shape). If synthetic data looks statistically similar on the surface, it doesn't mean a classifier trained on it will generalize.
- Disjoint ICL removes the incentive to memorize: Standard models get rewarded with low loss for memorizing small datasets. By training a model to predict held-out query rows from context rows across ratusan of tables, the network learns generalizable structural priors ("what distributions look like given sparse clues") rather than memorizing individual data points.
- Synthetic data that actually helps real data: Usually, mixing synthetic tabular data with real data hurts downstream accuracy because scratch-trained generators are bottlenecked by the exact same finite dataset. Because DiffICL brings outside structural priors from 800+ datasets, its synthetic samples add genuinely useful signal.
Key Results
Evaluated across all 14 datasets using downstream learners (XGBoost, CatBoost, Random Forest, MLP) for quality and Distance to Closest Record Overfitting (DCROverfit, where higher means better privacy):
- Pushing the Pareto Frontier: DiffICL takes the top spot in both quality and privacy simultaneously. With XGBoost, DiffICL hits 74.0% utility (vs. 71.4% for the strongest baseline, TabSYN) while achieving a 76.1% privacy score (compared to TabSYN's 66.3% and tabDDPM's 61.9%).
- Effective Data Augmentation: Adding 2,500 synthetic rows to the real training data degraded performance for every single baseline tested. DiffICL was the only method to improve over training on real data alone across all four learners (e.g., nudging 9-dataset CatBoost performance from 74.2% to 75.0%, and 14-dataset performance from 76.9% to 77.1%).
- Priors Drive the Gains: When DiffICL is pretrained only on the single target dataset instead of the multi-dataset corpus, XGBoost replacement performance plunges from 74.0% to 57.0%, confirming that cross-dataset priors—not just the LimiX encoder—do the heavy lifting.
Limitations and Future Work
While the authors do not explicitly detail failure modes of DiffICL, they note that Stage 2 requires training lightweight per-feature MLP decoders on target query data at inference time, which introduces potential privacy exposure (though this was accounted for in their end-to-end privacy metrics).
For future work, the authors point toward attribute-aware privacy control. Because DiffICL generates feature-wise latents and uses independent decoders for each column, practitioners could selectively perturb the latent representations of sensitive columns (like income or diagnosis) before decoding, exploring fine-grained tradeoffs between attribute-specific privacy and cross-column utility.
Summary updated