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

ProTrix:构建用于带句子上下文的表格规划与推理的模型

ProTrix: Building Models for Planning and Reasoning over Tables with Sentence Context

Wangxuan Institute of Computer Technology, Peking University(北京大学王选计算机研究所)

Zirui Wu, Yansong Feng

AI总结:

提出Plan-then-Reason框架,先规划推理路径再分配程序或文本推理,用于带句子上下文的表格问答,构建TrixInstruct微调出ProTrix模型系列,仅用6k实例即可泛化并生成可解释答案。

摘要:

表格在传达各个领域的信息中扮演着至关重要的角色。我们提出了一个先规划后推理(Plan-then-Reason)框架,用于回答带有句子上下文的表格上的不同类型的用户查询。该框架首先规划上下文中的推理路径,然后将每一步分配给基于程序或基于文本的推理,以得出最终答案。该框架增强了上下文学习和微调方法的表格推理能力。遵循先规划后推理框架的GPT-3.5-Turbo在无需自一致性的情况下超越了其他提示基线,同时使用了更少的API调用和上下文演示。我们还构建了一个指令调整数据集TrixInstruct,以评估使用该框架进行微调的有效性。我们通过在TrixInstruct上微调模型,提出了ProTrix模型系列。我们的实验表明,ProTrix系列仅使用6k个训练实例就能泛化到各种未见过的表格任务。我们进一步证明,ProTrix能够生成准确且忠实的解释,以回答复杂的自由形式问题。我们的工作强调了规划和推理能力对于模型在表格任务上具有泛化性和可解释性的重要性。我们在https://github.com/WilliamZR/ProTrix开源了我们的数据集和模型。

英文摘要:

Tables play a crucial role in conveying information in various domains. We propose a Plan-then-Reason framework to answer different types of user queries over tables with sentence context. The framework first plans the reasoning paths over the context, then assigns each step to program-based or textual reasoning to reach the final answer. This framework enhances the table reasoning abilities for both in-context learning and fine-tuning methods. GPT-3.5-Turbo following Plan-then-Reason framework surpasses other prompting baselines without self-consistency while using less API calls and in-context demonstrations. We also construct an instruction tuning set TrixInstruct to evaluate the effectiveness of fine-tuning with this framework. We present ProTrix model family by finetuning models on TrixInstruct. Our experiments show that ProTrix family generalizes to diverse unseen tabular tasks with only 6k training instances. We further demonstrate that ProTrix can generate accurate and faithful explanations to answer complex free-form questions. Our work underscores the importance of the planning and reasoning abilities towards a model over tabular tasks with generalizability and interpretability. We open-source our dataset and models at https://github.com/WilliamZR/ProTrix.

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

↑