P-FOLIO: Evaluating and Improving Logical Reasoning with Abundant Human-Written Reasoning Chains

Simeng Han, Aaron Yu, Rui Shen, Zhenting Qi, Martin Riddell, Wenfei Zhou, Yujie Qiao, Yilun Zhao, Semih Yavuz, Ye Liu, Shafiq Joty, Yingbo Zhou, Caiming Xiong, Dragomir Radev, Rex Ying, Arman Cohan

Abstract

Evaluating whether Large Language Models (LLMs) truly reason or merely perform pattern matching remains a significant challenge in AI. P-FOLIO addresses this by providing a new dataset of 1,430 expert-written, step-by-step natural language proofs for realistic logical reasoning problems. Our research reveals a "reasoning gap": while state-of-the-art models like GPT-4 excel at short reasoning tasks, their performance collapses on chains exceeding 10 steps. However, we demonstrate that fine-tuning on high-quality human rationales provides a substantial boost to out-of-domain generalization, suggesting that human-like logical structure is a critical training signal for robust reasoning.

Introduction

Most current logical reasoning benchmarks rely on binary classification (True/False/Uncertain), which allows models to arrive at correct answers through heuristic guessing rather than valid derivation. While some datasets include reasoning chains, these are often synthetically generated, lacking the linguistic diversity and complex logical patterns inherent in human thought. P-FOLIO was developed to bridge this gap, requiring models to not only provide an answer but to demonstrate their work through valid, human-like inference steps.

Methodology and Dataset Construction

P-FOLIO is built upon the FOLIO dataset, which consists of realistic stories written by human experts. To transform these into a rigorous reasoning benchmark, the authors employed a structured annotation protocol involving college students with formal logic backgrounds.

Comparison of P-FOLIO against synthetic datasets, highlighting its increased complexity in reasoning steps and inference rules.

Each proof in P-FOLIO includes the indices of premises used, a natural language derivation, and the specific inference rule applied. The dataset utilizes 32 distinct rule types, including 20 "complex" rules that require higher-order logical operations. This granularity allows for a multi-faceted evaluation of LLMs, covering single-step rule classification, next-step derivation, and full proof generation.

The "10-Step Wall" and Model Performance

A primary finding of this research is the precipitous drop in model accuracy as reasoning complexity increases. While GPT-4 is highly proficient at reasoning chains of 1–5 steps, it struggles significantly as the chain lengthens.

The "10-Step Wall": Accuracy drops significantly as the number of required reasoning steps increases.

As shown in the performance data, for tasks requiring 16 or more reasoning steps, GPT-4 failed to provide a single correct answer. This "10-step wall" highlights a fundamental limitation in current LLM architectures regarding long-range logical coherence. Furthermore, models struggle disproportionately with "complex" inference rules compared to standard ones like Modus Ponens, identifying these specific logical junctions as primary bottlenecks for future development.

Improving Generalization through Human Logic

One of the most significant contributions of P-FOLIO is demonstrating the value of high-quality human rationales for model training. Fine-tuning Llama3-8B on P-FOLIO proofs yielded several key improvements:

  • Internalizing Structure: Models learned the underlying structure of logic rather than just pattern-matching labels, leading to a FOLIO accuracy increase from 70.2% to 76.3%.
  • Out-of-Domain (OOD) Success: Fine-tuning on P-FOLIO improved performance on unrelated OOD datasets (such as BirdElectricity) by over 10%. On the ProntoQA benchmark, the P-FOLIO-enhanced model achieved 80.6% accuracy, significantly outperforming versions trained without proofs.
  • Prompting Efficiency: Many-shot prompting (using 60 examples) further boosted GPT-4's accuracy from 65.2% to 80.6%, indicating that models can effectively leverage these complex examples in-context.

Conclusion and Future Directions

P-FOLIO demonstrates that high-quality, human-written reasoning chains are a superior teacher for logical reasoning than binary labels or synthetic data. While current models face a significant barrier at the 10-step mark, the generalization gains from fine-tuning on P-FOLIO suggest a path forward. Future work will focus on scaling these high-quality annotations and developing more robust automated metrics for evaluating logical equivalence in natural language derivations.

Summary updated

BibTeX
@inproceedings{han2024p,
  author = {Simeng Han and Aaron Yu and Rui Shen and Zhenting Qi and Martin Riddell and Wenfei Zhou and Yujie Qiao and Yilun Zhao and Semih Yavuz and Ye Liu and Shafiq Joty and Yingbo Zhou and Caiming Xiong and Dragomir Radev and Rex Ying and Arman Cohan},
  title = {{P-FOLIO: Evaluating and Improving Logical Reasoning with Abundant Human-Written Reasoning Chains}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.966},
}
Figure