arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.02170cs.CL
收藏

CRAFTQA: 一种用于复杂结构化数据推理的代码驱动自适应框架

CRAFTQA: A Code-Driven Adaptive Framework for Complex Structured Data Reasoning

Zhejiang University(浙江大学);Ant Group(蚂蚁集团);JIUTIAN Research(中移九天);ZJU-Ant Group Joint Lab of Knowledge Graph(浙江大学-蚂蚁集团知识图谱联合实验室)

Chengtao Gan, Zhiqiang Liu, Long Jin, Yushan Zhu, Lei Liang, Wen Zhang

AI总结:

提出CRAFTQA框架,通过CodeSTEP模块生成逐步代码推理序列,并利用CRAFT模块动态生成自定义代码函数,以突破预定义函数集的限制,在复杂结构化数据推理任务中显著优于现有统一方法。

摘要:

现实场景涉及大量异构结构化数据(例如表格、知识图谱),因此对这些多样化数据进行有效推理变得越来越重要。统一结构化数据问答已成为一个突出的研究趋势,旨在单一框架内回答跨不同结构化数据类型的自然语言问题。然而,现有的统一方法有一个共同的局限性:它们依赖于一组预定义函数,这限制了它们在超出这些预定义操作之外执行复杂推理的能力。为了克服这一根本性限制,我们提出了CRAFTQA,一种新颖的自适应代码驱动框架,包含两个核心模块:CodeSTEP和CRAFT。CodeSTEP模块是一种范式,它生成一个完整的可执行Python代码序列,其中包含基于问题的逐步代码推理操作。CRAFT模块为超出预定义函数集的操作动态生成自定义代码函数,并与CodeSTEP无缝集成,显著增强了处理复杂推理的灵活性。在多个结构化数据集上的综合实验表明,与现有的统一方法相比,CRAFTQA在复杂推理场景中取得了显著的改进。

英文摘要:

Real-world scenarios involve massive heterogeneous structured data (e.g., tables, knowledge graphs), making effective reasoning over such diverse data increasingly important. Unified structured data question answering has emerged as a prominent research trend, aiming to answer natural language questions across different structured data types within a single framework. However, existing unified methods share a common limitation: they rely on a set of predefined functions, which restricts their ability to perform complex reasoning beyond these predefined operations. To overcome this fundamental limitation, we propose CRAFTQA, a novel adaptive code-driven framework comprising two core modules, CodeSTEP and CRAFT. The CodeSTEP module is a paradigm that generates a complete executable Python code sequence, which contains step-by-step code-based reasoning operations based on the question. The CRAFT module dynamically generates custom code functions for operations beyond the predefined function set, and seamlessly integrates with CodeSTEP to significantly enhance flexibility in handling complex reasoning. Comprehensive experiments on multiple structured datasets demonstrate that CRAFTQA achieves remarkable improvements in complex reasoning scenarios compared to existing unified methods.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑