Are Language Models Efficient Reasoners? A Perspective from Logic Programming

Andreas Opedal, Yanick Zengaffinen, Haruki Shirakami, Clemente Pasti, Mrinmaya Sachan +3 more
10/29/2025
cs.CLcs.AIcs.LG

No official code found. Best implementation: rycolab/reasoning-efficiency (1 star, MIT, last commit 2026-01-15).

Abstract

Modern language models (LMs) exhibit strong deductive reasoning capabilities, yet standard evaluations emphasize correctness while overlooking a key aspect of human-like reasoning: efficiency. In real-world reasoning scenarios, much of the available information is irrelevant, and effective deductive inference requires identifying and ignoring such distractions. We propose a framework for assessing LM reasoning efficiency through the lens of logic programming, introducing a simple method to align proofs written in natural language -- as generated by an LM -- with shortest proofs found by executing the logic program. Efficiency is quantified by measuring how well a model avoids unnecessary inference. Empirically, we construct a dataset of math word problems injected with various number of irrelevant axioms that vary in semantic overlap with the goal theorem. We find that current LMs show marked accuracy declines under such conditions -- even with minimal, domain-consistent distractions -- and the proofs they generate frequently exhibit detours through irrelevant inferences.

View on arXivView PDF

Code Implementations(1)

MIT

Are Language Models Efficient Reasoners? A Perspective from Logic Programming. NeurIPS 2025.

10Python, Jupyter NotebookOct 23, 20259 months agoMIT

Similar Papers

Cite this paper

@article{opedal2025language,
  title  = {Are Language Models Efficient Reasoners? A Perspective from Logic Programming},
  author = {Andreas Opedal and Yanick Zengaffinen and Haruki Shirakami and Clemente Pasti and Mrinmaya Sachan and Abulhair Saparov and Ryan Cotterell and Bernhard Schölkopf},
  year   = {2025},
  eprint = {2510.25626},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.25626v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.25626.svg)](https://codeofpaper.com/paper/2510.25626)

Discussion