Fake Rows Need Real Checks
A synthetic table can look completely plausible and still be worthless. It can match the column means and quietly ruin the category balance. It can keep the categories and leak whole rows. Worst of all, it can break the label relationship that made the table worth copying in the first place.
tabflowmini fits a compact transport model over the continuous columns, samples the categorical marginals separately, generates a churn label for every synthetic row, and then actually checks all of it, instead of declaring victory after one histogram looks close enough.
Small Flow, No Neural Net Hiding Anywhere
The generator borrows its idea from flow matching but implements it as a readable Gaussian transport instead of a neural net. That keeps the repo dependency-free and puts every assumption where you can see it.
The benchmark reports KS distance for the continuous columns, the plan distribution gap, the churn rate gap, and the rounded duplicate rate. It's a small audit harness, not a magic anonymizer, and it tells you exactly which number to worry about.
The Number
Mean KS distance is 0.056 across the continuous columns. The plan gap is 0.040. The churn gap, the number the whole exercise exists to protect, is 0.026. The duplicate rate is 0.000, so not a single row leaked straight out of the training set. Metrics are written to artifacts/metrics.json on every run.
The Churn Label Was Copied, Not Learned
That 0.026 churn gap looked like proof that the model had learned the churn relationship. It hadn't. The sampler's churn formula was -1.0 + 0.08 * visits - 0.015 * (income - 70) + plan_bonus, and nothing fitted it. It's a byte-for-byte copy of the coefficients the real-data generator uses to produce churn in the first place. The model already knew the answer. fit_synth even computes a churn_rate from the real table, and the sampler never reads it.
To find out whether that mattered, I built tables with the same structure but a different true churn relationship on every seed. On those, the copied formula's churn gap jumps from 0.03 to 0.17 on 20 tuning seeds and 0.21 on 15 held-out seeds. It only ever knew one table's answer key.
sample_synth_v2 fits an actual standardized logistic regression to each real table's visits, income, and plan columns instead. Its churn gap holds at 0.012 on the tuning seeds and 0.010 on the held-out ones, including tables whose true relationship it has never seen. The original generator is untouched, so the published 0.056 / 0.040 / 0.026 / 0.000 still reproduce exactly, and the fix ships as an explicit opt-in. 13 tests pass on GitHub Actions across Python 3.9 through 3.13.
Try It
git clone https://github.com/ahmeddoghri/tabflowmini && cd tabflowmini
pip install -e .
python -m tabflowmini.benchmark # the published audit: KS, plan gap, churn gap, duplicates
python -m tabflowmini.eval_v2 # new churn relationships: copied formula 0.17-0.21, fitted 0.01
Before you trust any synthetic-data tool, yours included, change the true relationship in the source table and see whether the synthetic labels follow it.