Papers
Topics
Authors
Recent
Search
2000 character limit reached

FairTabGen: Fair Synthetic Tabular Generation

Updated 8 July 2026
  • FairTabGen is a fairness-aware framework that uses an LLM-driven pipeline to generate synthetic tabular data with counterfactual and causal fairness objectives.
  • It integrates in-context learning, exemplar curation, and prompt refinement to balance fairness with statistical utility even in low-data regimes.
  • The system achieves up to 10% improvements in fairness metrics and is applied in sensitive domains like healthcare, criminal justice, and education.

FairTabGen is a fairness-aware LLM-based framework for synthetic tabular data generation that is designed for privacy-sensitive, low-data regimes and explicitly targets both counterfactual and causal fairness while preserving statistical utility (Nagesh et al., 15 Aug 2025). It is presented as a modular, iterative system that combines in-context learning, prompt refinement, fairness-aware data curation, and evaluation-guided feedback to generate synthetic datasets for domains such as healthcare, criminal justice, and education, including settings where only 5%5\%20%20\% of the original data is available (Nagesh et al., 15 Aug 2025).

1. Problem setting and design objectives

FairTabGen is motivated by three linked constraints. First, many real-world tabular datasets are sensitive and expensive to collect, so synthetic data is used to enable sharing, augmentation, and model development without exposing private records. Second, conventional tabular generators often prioritize statistical fidelity and therefore reproduce structural biases present in the source data. Third, fairness and utility interact: improving one can degrade the other unless generation and evaluation are jointly orchestrated rather than separated into a generator followed by post hoc auditing (Nagesh et al., 15 Aug 2025).

The framework therefore treats fairness as a first-class generation objective. Its stated target is not only demographic balance, but also the simultaneous improvement of counterfactual and causal fairness. In the reported experiments, the method outperforms GAN-based and LLM-based baselines and achieves up to 10%10\% improvements on fairness metrics such as demographic parity and path-specific causal effects while retaining statistical utility, with gains obtained using less than 20%20\% of the original data (Nagesh et al., 15 Aug 2025).

This design places FairTabGen in a distinct category within synthetic tabular data generation. Rather than training a specialized generator from scratch, it uses prompt-based orchestration around a general-purpose LLM and refines that orchestration through repeated fairness and utility assessments. A plausible implication is that the framework treats the LLM less as a standalone sampler and more as a controllable synthesis component embedded in a fairness-constrained pipeline.

2. Fairness model, metrics, and causal semantics

FairTabGen evaluates fairness through demographic parity (DP), counterfactual invariances via Fairness Through Unawareness (FTU), and path-specific causal effects (PSE) under the Standard Fairness Model (SFM) (Nagesh et al., 15 Aug 2025). Counterfactual fairness is described in the sense of invariance of decisions under hypothetical changes to a protected attribute, following Kusner et al. conceptually. In practice, the paper reports DP and FTU rather than equalized odds or equality of opportunity (Nagesh et al., 15 Aug 2025).

The demographic parity quantities restated in the paper are

DPdiff=P(Y^=1A=a)P(Y^=1A=a)DP_{\text{diff}} = \left| P(\hat{Y} = 1 \mid A = a) - P(\hat{Y} = 1 \mid A = a') \right|

and

DPratio=P(Y^=1A=a)P(Y^=1A=a).DP_{\text{ratio}} = \frac{P(\hat{Y} = 1 \mid A = a)}{P(\hat{Y} = 1 \mid A = a')}.

Counterfactual fairness is expressed in SCM notation as the condition that a predictor Y^\hat{Y} is counterfactually fair if, for any individual with latent or background variables UU,

P ⁣(Y^Aa(U)=Y^Aa(U))=1P\!\left( \hat{Y}_{A \leftarrow a}(U) = \hat{Y}_{A \leftarrow a'}(U) \right) = 1

for all a,aa, a' (Nagesh et al., 15 Aug 2025).

For causal fairness, FairTabGen adopts the SFM decomposition into total variation (TV), direct effect (DE), indirect effect (IE), and spurious effect (SE). Lower magnitudes of DE, IE, and SE are interpreted as fairer causal pathways, with improvements corresponding to reductions toward zero (Nagesh et al., 15 Aug 2025). Although the paper does not provide formal PSE identification formulae, it restates standard nested-counterfactual expressions such as the natural direct effect

20%20\%0

and the natural indirect effect

20%20\%1

More generally, for a set of allowed paths 20%20\%2,

20%20\%3

The dataset-specific SCM role assignment is 20%20\%4 for the sensitive attribute, 20%20\%5 for mediators, 20%20\%6 for the outcome, and 20%20\%7 for confounders. Prompts explicitly ask the LLM to generate data “structured to allow evaluation of fairness through causal pathways,” enabling decomposition into DE, IE, SE, and TV. At the same time, the paper does not specify structural equations, a DAG with explicit functional forms, or identification steps for PSE; interventions are conceptually implied rather than fully derived (Nagesh et al., 15 Aug 2025).

3. Framework architecture and prompt-driven generation loop

FairTabGen orchestrates LLM-based generation with fairness-aware evaluation and iterative prompt refinement. Its inputs are a target schema, real-data exemplars for in-context learning, and fairness and utility constraints. The reported generator is GPT-4o via the OpenAI API, with prompts that include a dataset description, the SCM role assignment, explicit generation instructions, and a schema-guided output format (Nagesh et al., 15 Aug 2025).

The prompt design is highly prescriptive. The system role is “You are a tabular synthetic data generation model.” The context defines 20%20\%8, 20%20\%9, 10%10\%0, and 10%10\%1. Instructions include “DO NOT COPY THE EXAMPLES,” “generate realistic but new AND diverse samples,” and “correct label conditioned on features.” Output is requested as a markdown-like tabular code snippet containing the dataset header and generated rows (Nagesh et al., 15 Aug 2025).

The paper reports dataset-specific prompt configurations and sample budgets:

Dataset SCM roles and label ICL / synthetic size
COMPAS Sensitive race; mediators age, sex; label two_year_recid 40 ICL; 1,000 synthetic
LAW Sensitive race; mediator sex; label bar_passed 40 ICL; 1,000 synthetic
MIMIC-IV Sensitive race; mediators age, gender; label los_seconds 200 ICL; 3,400 synthetic

The orchestration loop evaluates each synthetic batch for statistical quality, counterfactual fairness, causal fairness, and predictive performance. If thresholds are unmet, the prompt is refined by reweighting group distributions, modifying prompt structure to encode fairness constraints, embedding contrastive counterfactual examples, and adjusting sampling parameters such as temperature and top-10%10\%2 to balance realism and diversity (Nagesh et al., 15 Aug 2025). The reported generation parameters are temperature 10%10\%3 for all datasets, top-10%10\%4 for COMPAS, top-10%10\%5 for LAW and MIMIC-IV, and max tokens sized to fit the feature counts within the GPT-4o context window (Nagesh et al., 15 Aug 2025).

Fairness-aware data curation is a central component rather than a preprocessing footnote. Representative exemplars are selected to cover minority groups, address class imbalance by sampling across labels, and discourage memorization. In practice, the paper reports shifts such as reducing the majority race in COMPAS from 10%10\%6 to 10%10\%7, pushing LAW toward approximately 10%10\%8 per race class, and balancing race and gender in MIMIC (Nagesh et al., 15 Aug 2025). This suggests that FairTabGen uses prompt conditioning and exemplar composition as operational levers for fairness control, rather than depending on a formal multi-objective optimizer.

4. Experimental protocol and reported empirical behavior

The experimental setup uses three datasets: COMPAS with 10%10\%9 original rows and 20%20\%0 synthetic rows, LAW with 20%20\%1 original rows and 20%20\%2 synthetic rows, and MIMIC-IV with 20%20\%3 original rows and 20%20\%4 synthetic rows (Nagesh et al., 15 Aug 2025). Models are trained with a mixed training strategy on a combination of real and synthetic data and evaluated on a held-out real test set. Experiments are repeated five times with different random seeds, and fairness metrics are reported as mean 20%20\%5 SD (Nagesh et al., 15 Aug 2025).

The evaluation pipeline reports precision, recall, and AUROC for XGBoost as the primary downstream model, while also training Decision Tree, Logistic Regression, Random Forest, and SVM. Causal fairness metrics are computed after training XGBoost models; the table caption notes “XGBoost with the TS-TS method,” but the paper does not elaborate on TS-TS (Nagesh et al., 15 Aug 2025). Statistical similarity is assessed qualitatively through distributional comparisons rather than formal KS tests or Wasserstein distances, and privacy risk metrics are not reported (Nagesh et al., 15 Aug 2025).

On counterfactual fairness, FairTabGen records a DP of 20%20\%6 on COMPAS, compared with 20%20\%7 for real data, 20%20\%8 for DECAF, and 20%20\%9 for CLLM; its FTU on COMPAS is DPdiff=P(Y^=1A=a)P(Y^=1A=a)DP_{\text{diff}} = \left| P(\hat{Y} = 1 \mid A = a) - P(\hat{Y} = 1 \mid A = a') \right|0, compared with DPdiff=P(Y^=1A=a)P(Y^=1A=a)DP_{\text{diff}} = \left| P(\hat{Y} = 1 \mid A = a) - P(\hat{Y} = 1 \mid A = a') \right|1 for real data and DPdiff=P(Y^=1A=a)P(Y^=1A=a)DP_{\text{diff}} = \left| P(\hat{Y} = 1 \mid A = a) - P(\hat{Y} = 1 \mid A = a') \right|2 for CLLM (Nagesh et al., 15 Aug 2025). On LAW, FTU is DPdiff=P(Y^=1A=a)P(Y^=1A=a)DP_{\text{diff}} = \left| P(\hat{Y} = 1 \mid A = a) - P(\hat{Y} = 1 \mid A = a') \right|3, matching the real-data level of DPdiff=P(Y^=1A=a)P(Y^=1A=a)DP_{\text{diff}} = \left| P(\hat{Y} = 1 \mid A = a) - P(\hat{Y} = 1 \mid A = a') \right|4, while DP is DPdiff=P(Y^=1A=a)P(Y^=1A=a)DP_{\text{diff}} = \left| P(\hat{Y} = 1 \mid A = a) - P(\hat{Y} = 1 \mid A = a') \right|5, lower than the real-data value of DPdiff=P(Y^=1A=a)P(Y^=1A=a)DP_{\text{diff}} = \left| P(\hat{Y} = 1 \mid A = a) - P(\hat{Y} = 1 \mid A = a') \right|6 and much lower than CLLM’s DPdiff=P(Y^=1A=a)P(Y^=1A=a)DP_{\text{diff}} = \left| P(\hat{Y} = 1 \mid A = a) - P(\hat{Y} = 1 \mid A = a') \right|7 (Nagesh et al., 15 Aug 2025). On MIMIC, DP reaches DPdiff=P(Y^=1A=a)P(Y^=1A=a)DP_{\text{diff}} = \left| P(\hat{Y} = 1 \mid A = a) - P(\hat{Y} = 1 \mid A = a') \right|8, compared with DPdiff=P(Y^=1A=a)P(Y^=1A=a)DP_{\text{diff}} = \left| P(\hat{Y} = 1 \mid A = a) - P(\hat{Y} = 1 \mid A = a') \right|9 for real data, DPratio=P(Y^=1A=a)P(Y^=1A=a).DP_{\text{ratio}} = \frac{P(\hat{Y} = 1 \mid A = a)}{P(\hat{Y} = 1 \mid A = a')}.0 for DECAF, and DPratio=P(Y^=1A=a)P(Y^=1A=a).DP_{\text{ratio}} = \frac{P(\hat{Y} = 1 \mid A = a)}{P(\hat{Y} = 1 \mid A = a')}.1 for CLLM; FTU is DPratio=P(Y^=1A=a)P(Y^=1A=a).DP_{\text{ratio}} = \frac{P(\hat{Y} = 1 \mid A = a)}{P(\hat{Y} = 1 \mid A = a')}.2, lower than the real-data value of DPratio=P(Y^=1A=a)P(Y^=1A=a).DP_{\text{ratio}} = \frac{P(\hat{Y} = 1 \mid A = a)}{P(\hat{Y} = 1 \mid A = a')}.3 (Nagesh et al., 15 Aug 2025).

On causal fairness, the reported trend is that FairTabGen’s effects are generally closer to zero. For COMPAS, TV is DPratio=P(Y^=1A=a)P(Y^=1A=a).DP_{\text{ratio}} = \frac{P(\hat{Y} = 1 \mid A = a)}{P(\hat{Y} = 1 \mid A = a')}.4, compared with DPratio=P(Y^=1A=a)P(Y^=1A=a).DP_{\text{ratio}} = \frac{P(\hat{Y} = 1 \mid A = a)}{P(\hat{Y} = 1 \mid A = a')}.5 for real data and DPratio=P(Y^=1A=a)P(Y^=1A=a).DP_{\text{ratio}} = \frac{P(\hat{Y} = 1 \mid A = a)}{P(\hat{Y} = 1 \mid A = a')}.6 for CLLM, while SE is DPratio=P(Y^=1A=a)P(Y^=1A=a).DP_{\text{ratio}} = \frac{P(\hat{Y} = 1 \mid A = a)}{P(\hat{Y} = 1 \mid A = a')}.7, compared with DPratio=P(Y^=1A=a)P(Y^=1A=a).DP_{\text{ratio}} = \frac{P(\hat{Y} = 1 \mid A = a)}{P(\hat{Y} = 1 \mid A = a')}.8 for real data and DPratio=P(Y^=1A=a)P(Y^=1A=a).DP_{\text{ratio}} = \frac{P(\hat{Y} = 1 \mid A = a)}{P(\hat{Y} = 1 \mid A = a')}.9 for CLLM (Nagesh et al., 15 Aug 2025). For LAW, TV is Y^\hat{Y}0, DE is Y^\hat{Y}1, IE is Y^\hat{Y}2, and SE is Y^\hat{Y}3, with the paper characterizing these as improvements over real data and CLLM (Nagesh et al., 15 Aug 2025). For MIMIC-IV, TV is Y^\hat{Y}4, compared with Y^\hat{Y}5 for real data and Y^\hat{Y}6 for CLLM, and SE is Y^\hat{Y}7, compared with Y^\hat{Y}8 for real data and Y^\hat{Y}9 for CLLM (Nagesh et al., 15 Aug 2025).

Utility results are mixed but strong in several regimes. On COMPAS, FairTabGen reports precision UU0, recall UU1, and AUROC UU2, compared with CLLM’s UU3, UU4, and UU5 and real-data XGBoost’s UU6, UU7, and UU8 (Nagesh et al., 15 Aug 2025). On LAW, it reports UU9 precision, P ⁣(Y^Aa(U)=Y^Aa(U))=1P\!\left( \hat{Y}_{A \leftarrow a}(U) = \hat{Y}_{A \leftarrow a'}(U) \right) = 10 recall, and P ⁣(Y^Aa(U)=Y^Aa(U))=1P\!\left( \hat{Y}_{A \leftarrow a}(U) = \hat{Y}_{A \leftarrow a'}(U) \right) = 11 AUROC, exceeding the real-data AUROC of P ⁣(Y^Aa(U)=Y^Aa(U))=1P\!\left( \hat{Y}_{A \leftarrow a}(U) = \hat{Y}_{A \leftarrow a'}(U) \right) = 12 and CLLM’s P ⁣(Y^Aa(U)=Y^Aa(U))=1P\!\left( \hat{Y}_{A \leftarrow a}(U) = \hat{Y}_{A \leftarrow a'}(U) \right) = 13 (Nagesh et al., 15 Aug 2025). On MIMIC, it reports P ⁣(Y^Aa(U)=Y^Aa(U))=1P\!\left( \hat{Y}_{A \leftarrow a}(U) = \hat{Y}_{A \leftarrow a'}(U) \right) = 14 precision and P ⁣(Y^Aa(U)=Y^Aa(U))=1P\!\left( \hat{Y}_{A \leftarrow a}(U) = \hat{Y}_{A \leftarrow a'}(U) \right) = 15 recall, but AUROC is P ⁣(Y^Aa(U)=Y^Aa(U))=1P\!\left( \hat{Y}_{A \leftarrow a}(U) = \hat{Y}_{A \leftarrow a'}(U) \right) = 16, lower than the real-data value of P ⁣(Y^Aa(U)=Y^Aa(U))=1P\!\left( \hat{Y}_{A \leftarrow a}(U) = \hat{Y}_{A \leftarrow a'}(U) \right) = 17 (Nagesh et al., 15 Aug 2025). The paper itself highlights this as a trade-off case: fairness gains and recall improvements do not uniformly imply improvement in every utility metric.

5. Position within the fair tabular generation literature

FairTabGen is explicitly framed against both GAN-based and LLM-based tabular generators. The paper discusses CTGAN, TabDDPM, and REaLTabFormer in its introduction, and evaluates DECAF and CLLM as baselines (Nagesh et al., 15 Aug 2025). Its main distinction is the unification of counterfactual fairness and causal fairness within both the generation and the evaluation pipelines, rather than optimizing only statistical fidelity or a single group-fairness criterion (Nagesh et al., 15 Aug 2025).

A useful contrast is with TabFairGAN, which is a two-phase WGAN-GP method for mixed-type tabular data that first learns the joint distribution and then adds a demographic parity penalty to the generator objective. TabFairGAN focuses on demographic parity through the discrimination score P ⁣(Y^Aa(U)=Y^Aa(U))=1P\!\left( \hat{Y}_{A \leftarrow a}(U) = \hat{Y}_{A \leftarrow a'}(U) \right) = 18, assumes binary sensitive attribute and binary label, and enforces fairness through adversarial training rather than prompt orchestration (Rajabi et al., 2021). Relative to that design, FairTabGen moves fairness steering from generative model training to in-context learning, fairness-aware exemplar selection, prompt constraints, and evaluation-guided regeneration (Nagesh et al., 15 Aug 2025).

A later contrast is TABFAIRGDT, which uses autoregressive decision trees and a soft leaf resampling mechanism to reduce statistical parity difference at the target-generation step. That method is non-parametric, CPU-compatible, and enforces fairness only at target generation, with a reported focus on statistical parity rather than the combined counterfactual-and-causal treatment used in FairTabGen (Panagiotou et al., 24 Sep 2025). This suggests that FairTabGen occupies the LLM-centric end of the fair tabular synthesis spectrum, whereas TabFairGAN and TABFAIRGDT represent adversarial and tree-based alternatives, respectively.

The comparison also clarifies a common misconception: fair synthetic data generation is not a single design pattern. FairTabGen does not share TabFairGAN’s fairness loss or TABFAIRGDT’s leaf-level relabeling logic. Its novelty lies in the integration of fairness definitions into prompt construction, exemplar curation, iterative feedback, and causal-path evaluation, all within a general LLM-driven pipeline (Nagesh et al., 15 Aug 2025).

6. Assumptions, limitations, and practical use

FairTabGen has several explicit assumptions and limitations. It assumes that observed confounders are sufficient, does not model unobserved confounding, and does not perform sensitivity analysis for PSE identification (Nagesh et al., 15 Aug 2025). It does not consider process-level fairness or decision-maker dynamics, handles a single sensitive attribute at a time, and does not cover intersectional or multi-attribute fairness (Nagesh et al., 15 Aug 2025). The paper also acknowledges that fairness improvements can shift distributions and that utility may trade off in certain metrics, with MIMIC AUROC providing an example (Nagesh et al., 15 Aug 2025).

The causal claims are therefore operational rather than fully identified. The framework references causal fairness models and computes TV, DE, IE, and SE from trained model predictions, but it does not provide identification formulae or DAG structures with explicit functional forms (Nagesh et al., 15 Aug 2025). A plausible implication is that FairTabGen should be read as a causally informed fairness pipeline rather than a full SCM identification framework.

The paper provides concrete guidance for application. The recommended sequence is to define metadata by identifying P ⁣(Y^Aa(U)=Y^Aa(U))=1P\!\left( \hat{Y}_{A \leftarrow a}(U) = \hat{Y}_{A \leftarrow a'}(U) \right) = 19, a,aa, a'0, a,aa, a'1, and a,aa, a'2; curate a,aa, a'3–a,aa, a'4 representative ICL examples covering minority groups and label classes; construct prompts with system role, SCM context, schema headers, examples, and fairness or utility constraints; generate synthetic batches with GPT-4o using temperature approximately a,aa, a'5 and tuned top-a,aa, a'6; evaluate using downstream models on real holdout data together with DP, FTU, TV, DE, IE, and SE; refine prompts by adjusting targeted group proportions or adding counterfactual exemplars; and optionally apply post-processing methods such as Reweighing (RW), Correlation Remover (CoR), Disparate Impact Remover (DIR), or Suppression (SUP) (Nagesh et al., 15 Aug 2025).

The ablation findings indicate that FairTabGen combined with RW often yields the highest fairness scores in COMPAS and LAW and performs strongly across all algorithms in MIMIC (Nagesh et al., 15 Aug 2025). The paper interprets this as evidence that fairness-aware synthetic data can amplify the efficacy of downstream mitigation relative to real-only training. In that sense, FairTabGen is not merely a generator; it is a modular fairness intervention layer for synthetic tabular workflows in which prompt design, structural role assignment, and iterative evaluation are treated as the main control surfaces.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to FairTabGen.