用真人写的推理链评估并提升大模型的逻辑推理能力。
P-FOLIO: Evaluating and Improving Logical Reasoning with Abundant Human-Written Reasoning Chains
- 构建包含0到20步的真人标注推理链数据集
- 通过多路径采样和pass@k指标评估模型推理质量
- 在多个数据集上提升10%以上,适合研究逻辑推理的学者
现有大模型逻辑推理能力评估方法依赖二元蕴含分类或合成推理链,难以全面反映模型真实水平。本文提出P-FOLIO,一个由真人撰写的复杂逻辑推理故事及对应自然语言证明组成的标注数据集,涵盖0至20步的推理过程。通过分步标注协议确保推理结构清晰。我们以细粒度单步推理规则分类评估模型能力,覆盖更多样、更复杂的推理规则。由于模型生成路径可能与人类不同,采用多路径采样并使用pass@k指标评估生成链质量。实验表明,真人推理链通过多示例提示和微调显著提升模型表现;在三个外部数据集上,对Llama3-7B进行微调后性能提升10%以上。详细分析揭示了当前最强模型在推理中的关键短板。数据集与代码将公开发布。
原文摘要 · Abstract (English)
Existing methods on understanding the capabilities of LLMs in logical reasoning rely on binary entailment classification or synthetically derived rationales, which are not sufficient for proper investigation of model's capabilities. We present P-FOLIO, a human-annotated dataset consisting of diverse and complex reasoning chains for a set of realistic logical reasoning stories also written by humans. P-FOLIO is collected with an annotation protocol that facilitates humans to annotate well-structured natural language proofs for first-order logic reasoning problems in a step-by-step manner. The number of reasoning steps in P-FOLIO span from 0 to 20. We further use P-FOLIO to evaluate and improve large-language-model (LLM) reasoning capabilities. We evaluate LLM reasoning capabilities at a fine granularity via single-step inference rule classification, with more diverse inference rules of more diverse and higher levels of complexities than previous works. Given that a single model-generated reasoning chain could take a completely different path than the human-annotated one, we sample multiple reasoning chains from a model and use pass@k metrics for evaluating the quality of model-generated reasoning chains. We show that human-written reasoning chains significantly boost the logical reasoning capabilities of LLMs via many-shot prompting and fine-tuning. Furthermore, fine-tuning Llama3-7B on P-FOLIO improves the model performance by 10% or more on three other out-of-domain logical reasoning datasets. We also conduct detailed analysis to show where most powerful LLMs fall short in reasoning. We will release the dataset and code publicly.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。