arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.05114cs.CLcs.AIcs.LG
收藏

$π^2$:结构起源的推理数据提升大语言模型的长上下文推理能力

$π^2$: Structure-Originated Reasoning Data Improves Long-Context Reasoning Ability of Large Language Models

Virginia Tech(弗吉尼亚理工大学)

Quyet V. Do, Thinh Pham, Nguyen Nguyen, Sha Li, Pratibha Zunjare, Tu Vu

AI总结:

本文提出$π^2$方法,通过结构化数据生成高质量推理数据,提升大语言模型的长上下文推理能力,在四个基准测试中取得显著改进。

摘要:

我们研究了一种从初始结构化数据中精选推理数据的管道,以提高大语言模型(LLMs)的长上下文推理能力。我们的方法$π^2$通过严格的问题解答筛选构建高质量推理数据:1)从维基百科提取并扩展表格;2)从收集的表格和相关上下文生成真实且多步分析推理问题,其答案通过双路径代码执行自动确定和验证;3)将逐步的结构化推理轨迹翻译成QA对的解决方案,给定现实的网络搜索上下文。使用\textsc{\small{gpt-oss-20b}}和\textsc{\small{Qwen3-4B-Instruct-2507}}对$π^2$进行监督微调,在四个长上下文推理基准和我们的类似$π^2$-Bench中取得一致改进,平均绝对准确率提升分别为+4.3%和+2.7%。值得注意的是,我们的数据集促进了自我蒸馏,其中\textsc{\small{gpt-oss-20b}}甚至通过自己的推理轨迹将平均性能提高+4.4%,展示了$π^2$的实用性。我们的代码、数据和模型在https://github.com/vt-pi-squared/pi-squared上开源。

英文摘要:

We study a QA curation pipeline for improving long-context complex reasoning in large language models (LLMs). Our approach, $π^2$, constructs high-quality reasoning data through rigorous QA curation: 1) extracting and expanding tables from Wikipedia, 2) from the collected tables together with relevant metadata, generating complex reasoning questions whose answers are automatically determined and validated through dual-path code execution, 3) finally, back-translating chain-of-thoughts solutions grounded in realistic context. Supervised fine-tuning with gpt-oss-20b and Qwen3-4B-Instruct-2507 on $π^2$ yields consistent improvements across four long-context reasoning benchmarks and our alike $π^2$-Bench, with average absolute accuracy gains of +6.25% and +3.37% respectively. Through deeper analyses, we observe that reasoning style contributes little, while faithful reasoning patterns discovered by back translation and grounded realistic long context, as $π^2$ is designed for, are crucial for the improvement. Our code, data, and models are fully open-source at https://github.com/vtpss/pi-squared.

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

↑