TabGen-ICL: Residual-Aware In-Context Example Selection for Tabular Data Generation

Liancheng Fang, Aiwei Liu, Hengrui Zhang, Henry Peng Zou, Weizhi Zhang +1 more
2/23/2025
cs.LGcs.AI

Official code: fangliancheng/TabGEN-ICL (4 stars, last commit 2025-02-23).

Abstract

Large Language models (LLMs) have achieved encouraging results in tabular data generation. However, existing approaches require fine-tuning, which is computationally expensive. This paper explores an alternative: prompting a fixed LLM with in-context examples. We observe that using randomly selected in-context examples hampers the LLM's performance, resulting in sub-optimal generation quality. To address this, we propose a novel in-context learning framework: TabGen-ICL, to enhance the in-context learning ability of LLMs for tabular data generation. TabGen-ICL operates iteratively, retrieving a subset of real samples that represent the residual between currently generated samples and true data distributions. This approach serves two purposes: locally, it provides more effective in-context learning examples for the LLM in each iteration; globally, it progressively narrows the gap between generated and real data. Extensive experiments on five real-world tabular datasets demonstrate that TabGen-ICL significantly outperforms the random selection strategy. Specifically, it reduces the error rate by a margin of $3.5\%-42.2\%$ on fidelity metrics. We demonstrate for the first time that prompting a fixed LLM can yield high-quality synthetic tabular data. The code is provided in the \href{https://github.com/fangliancheng/TabGEN-ICL}{link}.

View on arXivView PDF

Code Implementations(1)

Official Implementation of TabGen-ICL: Residual-Aware In-Context Example Selection for Tabular Data Generation.

40Shell, PythonSep 21, 20241 years ago

Similar Papers

Cite this paper

@article{fang2025tabgenicl,
  title  = {TabGen-ICL: Residual-Aware In-Context Example Selection for Tabular Data Generation},
  author = {Liancheng Fang and Aiwei Liu and Hengrui Zhang and Henry Peng Zou and Weizhi Zhang and Philip S. Yu},
  year   = {2025},
  eprint = {2502.16414},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.16414v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.16414.svg)](https://codeofpaper.com/paper/2502.16414)

Discussion