arXiv:2502.16414cs.LGcs.AI2025-02ACL被引 10

用残差感知选例提升大模型生成表格数据质量

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

  • 迭代筛选与当前生成结果差异大的真实样本作为提示
  • 在5个数据集上使数据保真度误差降低3.5%至42.2%
  • 无需微调,适合快速生成高质量合成表格数据

大型语言模型(LLMs)在表格数据生成中表现良好,但现有方法多需微调,计算成本高。本文探索一种替代方案:使用上下文示例提示固定模型。我们发现随机选取示例会削弱模型性能,导致生成质量下降。为此,提出新框架TabGen-ICL,通过迭代检索与当前生成样本和真实分布之间残差相关的实际样本,提升每轮的上下文学习效果。该方法既局部优化提示样本,又全局缩小生成数据与真实数据的差距。在五个真实世界表格数据集上的实验表明,相较随机选择策略,TabGen-ICL在保真度指标上误差降低3.5%至42.2%。首次证明固定模型仅通过提示即可生成高质量合成表格数据。代码已开源。

原文摘要 · Abstract (English)

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}.

表格生成上下文学习大模型合成数据

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。