Saved in:
Bibliographic Details
Main Authors: Fang, Liancheng, Liu, Aiwei, Zhang, Hengrui, Zou, Henry Peng, Zhang, Weizhi, Yu, Philip S.
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2502.16414
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915167583862784
author Fang, Liancheng
Liu, Aiwei
Zhang, Hengrui
Zou, Henry Peng
Zhang, Weizhi
Yu, Philip S.
author_facet Fang, Liancheng
Liu, Aiwei
Zhang, Hengrui
Zou, Henry Peng
Zhang, Weizhi
Yu, Philip S.
contents 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}.
format Preprint
id arxiv_https___arxiv_org_abs_2502_16414
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle TabGen-ICL: Residual-Aware In-Context Example Selection for Tabular Data Generation
Fang, Liancheng
Liu, Aiwei
Zhang, Hengrui
Zou, Henry Peng
Zhang, Weizhi
Yu, Philip S.
Machine Learning
Artificial Intelligence
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}.
title TabGen-ICL: Residual-Aware In-Context Example Selection for Tabular Data Generation
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2502.16414