All models

CoDi

Two diffusion models, one for continuous and one for discrete columns, that jointly synthesize tabular data.

Diffusion and generative · 108 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (9 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
1.1M
Operations
108
Framework
PyTorch
Recurrent
No
Published
ICML 2023
Cited by
10 (as of 26 October 2026)
Authors
Chaejeong Lee, Jayoung Kim, Noseong Park
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m15334
Graph hash
a3fe268c9cd704e733e36cd22dcf70112a42098b954b1d28ab4164f44e4f68bc
Skeleton hash
74ff5a4a88ff028a06dec603e7f70fb1779fc82cb0791c9fc93e1683979fc91c
Architecture hash
a64a464d22073d2f3e911118bc2d145934dbd90cd0c33b49749734ff1fc1534f
Diagram SHA-256
ff842d68c20c42a99c30fe9709560646462d85dde1f6cd41a2aeb032476efe70
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

CoDi generates synthetic tables whose columns mix continuous and discrete values, using two diffusion models that process the two kinds of variable separately while each is conditioned on the other. The paper's starting point is that discrete variables, meaning columns, remain difficult to model in tabular data.

During training the two diffusion models are co-evolved by reading conditions from each other. To bind the two models further, the authors add a contrastive learning method with a negative sampling method.

The paper reports experiments with 11 real-world tabular datasets and 8 baseline methods. The evaluation example in the authors' code reproduces the paper's binary classification result for CoDi on the Heart dataset.

Key idea. CoDi handles continuous and discrete table columns with two separate diffusion models that are conditioned on each other and co-evolved during training.

  • CoDi
  • co-evolving contrastive diffusion
  • tabular data synthesis
  • mixed-type tabular data
  • tabular diffusion model
  • synthetic tabular data
  • contrastive learning

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{lee2023codicoevolvingcontrastivediffusion,
      title={CoDi: Co-evolving Contrastive Diffusion Models for Mixed-type Tabular Synthesis}, 
      author={Chaejeong Lee and Jayoung Kim and Noseong Park},
      year={2023},
      eprint={2304.12654},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2304.12654}, 
}