TabMosaic: Unified In-Context Diffusion for Tabular Generative Tasks

Jayoung Kim, Sanghyun Hong, Noseong ParkarXiv 2026

TL;DR

TabMosaic is a unified generative model for tabular data that performs row generation, missing value imputation, and class-conditional sampling on entirely unseen tables without any fine-tuning. By framing these tasks as a joint in-context diffusion problem, it outperforms specialized, per-dataset models across dozens of real-world benchmarks while being significantly faster for wide tables.

What Problem Does This Paper Address?

The world runs on tabular data, but generative modeling for tables has been stuck in a "one model per dataset" paradigm. If you want to synthesize new rows for a medical database or fill in missing values in a financial spreadsheet, you typically have to train or fine-tune a specific model for that exact table. This process is slow, computationally expensive, and requires a new training run every time the dataset changes.

While "in-context" models (like those based on Transformers) have started to emerge, they usually predict only one cell at a time. This makes complex tasks like generating a whole new row a tedious process of chaining individual predictions together, which often fails to capture the joint dependencies between multiple features. There hasn't been a single, pretrained model that can look at a few example rows of an unseen table and immediately model the joint distribution of any arbitrary set of target cells.

Methods

The authors introduce TabMosaic, which treats all tabular generative tasks—generation, imputation, and conditional generation—as a single problem: learning the joint conditional distribution of a "target" set of cells given some "observed" cells and a context of other rows.

Figure 1: Overview of our proposed framework. (a) A unified formulation expresses generation, imputation and class-conditional generation as the same conditional query, only differing in the target set S. (b) A shared-time diffusion objective jointly models mixed numerical and categorical targets. (c) Our TabMosaic applies directly to unseen tables without table-specific training.

Key technical components include:

  • In-Context Joint Diffusion: Instead of predicting cells one-by-one, TabMosaic uses a diffusion process. It starts with noise (or a "MASK" token) over all target cells and iteratively refines them all at once, allowing the model to capture complex inter-feature dependencies.
  • Mixed-Type Modeling: It handles numerical and categorical data simultaneously on a shared time axis using specialized diffusion kernels (EDM for numerical, GIDD for categorical).
  • Two-Axis Attention Backbone: The model uses a transformer architecture that alternates attention between cells in a row and rows in a column. It is permutation-equivariant in columns, meaning it doesn't rely on a fixed feature order.
  • Staged Pretraining: To handle long and messy real-world tables, the model is first trained on short, complete synthetic tables and then "warm-started" into a second stage involving long tables with various missingness patterns (MCAR, MAR, MNAR).

Datasets

  • Pretraining: The model is trained exclusively on synthetic tables drawn from a structural causal model (SCM) prior. This allows it to learn general data-generating mechanisms rather than memorizing specific datasets.
  • Evaluation: TabMosaic was rigorously tested on 48 real-world datasets from the TabArena benchmark, which includes a diverse range of table sizes and domains.

Key Insights and Ideas

  • Bayesian In-Context Learning: The paper provides a theoretical bridge, showing that their diffusion objective, when minimized, approximates the Bayesian posterior predictive distribution. This extends the understanding of in-context learning from simple single-value prediction to complex joint multi-cell generation.
  • Task Agnosticism: By framing everything as a conditional query on a set of cells $S$, the model doesn't need different procedures for different tasks. Generation, imputation, and class-conditioning are just different ways of choosing which cells are "observed" and which are "targets."
  • Efficiency through Joint Denoising: Because TabMosaic denoises all target cells in parallel, it avoids the repeated context re-encoding required by autoregressive models that predict column-by-column.

Key Results

TabMosaic was compared against 20 baseline approaches, including state-of-the-art per-dataset generators (like CTGAN and TabDDPM) and other in-context models (like TabPFN-3).

Figure 2: Elo ratings across 48 tables for generation, imputation, and class-conditional generation. TabMosaic consistently ranks first.
  • Ranked #1 Overall: It ranked first across all three evaluated tasks based on Elo ratings.
  • Superior Imputation: In the imputation task, it achieved an Elo of 1458, significantly higher than the next best model, TabICLv2 (1201).
  • Inference Speed: For a table with 10,240 rows and 32 columns, TabMosaic takes just 53 seconds to generate a synthetic table, whereas competitors like TabPFN-3 take 6–7 minutes.
  • High Fidelity: On synthetic tasks with known mathematical solutions, TabMosaic's predictions closely approached the exact theoretical Bayesian optimum.

Limitations and Future Work

  • Cell Budget: The computational cost grows with the total number of cells (rows $\times$ columns), necessitating a "cell budget" (250k cells) during training to keep memory usage manageable.
  • Synthetic Prior Dependence: The model's performance is tied to the diversity of the synthetic SCMs used for pretraining. If a real-world dataset has patterns completely unlike anything in the pretraining prior, performance might be limited.
  • Future Work: Promising directions include scaling to even larger context windows and exploring hybrid training regimes that incorporate real-world data alongside synthetic priors.

Summary updated

BibTeX
@misc{kim2026tabmosaic,
  author = {Jayoung Kim and Sanghyun Hong and Noseong Park},
  title = {{TabMosaic: Unified In-Context Diffusion for Tabular Generative Tasks}},
  year = {2026},
  eprint = {2610.15699},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.15699},
}
Figure