arXiv:2503.02161cs.LG2025-03被引 7

用大模型保持表格列间逻辑关系,生成更真实的数据。

LLM-TabLogic: Preserving Inter-Column Logical Relationships in Synthetic Tabular Data via Prompt-Guided Latent Diffusion

  • 用大模型分析列间逻辑并生成约束条件,指导扩散模型生成
  • 在未见表格上逻辑推理准确率超90%,生成数据关系完整
  • 无需领域知识,适合供应链等复杂系统的数据合成

合成表格数据正日益替代真实数据,既能保护隐私又缓解数据稀缺。但除了保留全局统计特性外,合成数据还需维持特定领域的逻辑一致性——尤其在供应链等复杂系统中,发货日期、地点、产品类别等字段必须逻辑自洽,才能用于实际场景。现有生成模型常忽略列间关系,导致合成数据不可靠。为此,我们提出 LLM-TabLogic,利用大语言模型捕捉并压缩表格列间的复杂逻辑关系,将这些条件约束传递至基于分数的扩散模型,在隐空间中生成数据。在多个工业真实数据集上的实验表明,该方法在逻辑推理上具有强泛化能力,对未见过的表格推理准确率超过90%;在数据生成方面全面优于包括 SMOTE 及先进生成模型在内的五种基线,充分保留列间关系,同时在数据保真度、实用性与隐私保护之间取得最佳平衡。本研究首次实现无需领域知识即可有效保持表格列间关系的合成方法,为生成符合现实逻辑的表格数据提供新思路。代码已开源:https://github.com/Yunbo-max/TabKG。

原文摘要 · Abstract (English)

Synthetic tabular data are increasingly being used to replace real data, serving as an effective solution that simultaneously protects privacy and addresses data scarcity. However, in addition to preserving global statistical properties, synthetic datasets must also maintain domain-specific logical consistency**-**especially in complex systems like supply chains, where fields such as shipment dates, locations, and product categories must remain logically consistent for real-world usability. Existing generative models often overlook these inter-column relationships, leading to unreliable synthetic tabular data in real-world applications. To address these challenges, we propose LLM-TabLogic, a novel approach that leverages Large Language Model reasoning to capture and compress the complex logical relationships among tabular columns, while these conditional constraints are passed into a Score-based Diffusion model for data generation in latent space. Through extensive experiments on real-world industrial datasets, we evaluate LLM-TabLogic for column reasoning and data generation, comparing it with five baselines including SMOTE and state-of-the-art generative models. Our results show that LLM-TabLogic demonstrates strong generalization in logical inference, achieving over 90% accuracy on unseen tables. Furthermore, our method outperforms all baselines in data generation by fully preserving inter-column relationships while maintaining the best balance between data fidelity, utility, and privacy. This study presents the first method to effectively preserve inter-column relationships in synthetic tabular data generation without requiring domain knowledge, offering new insights for creating logically consistent real-world tabular data. The code is available at https://github.com/Yunbo-max/TabKG.

表格生成大模型扩散模型逻辑一致

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