HOLMES: Evaluating Higher-Order Logical Reasoning in LLMs

Yucheng Wu, Jundong Xu, Mingzhen Ju, Yue Yu, Chenpeng Wang +2 more
6/22/2026
cs.AI

Official code: wuyucheng2002/HOLMES (3 stars, MIT, last commit 2026-06-23).

Abstract

Logical reasoning is essential for reliable AI, yet existing benchmarks are largely first-order-logic-centric, focusing on object-level deduction over fixed predicates. This misses many realistic scenarios where models must reason over rules, predicates, functions, constraints, and decision procedures themselves. We introduce HOLMES (Higher-Order Logic Meets real-world Explainable Symbolic reasoning), the first real-world benchmark for higher-order symbolic reasoning in LLMs, containing 1379 instances. Built on higher-order logic, HOLMES pairs natural-language problems with HOL formalizations, ground-truth answers, verifiable reasoning traces, and fine-grained controllable reasoning factors across law and finance. Experiments show that current LLMs still struggle on HOLMES, with an average accuracy of only 50.64% and the best model reaching 59.54%. Our analyses further reveal that high final-answer accuracy can mask shortcut reasoning in conflict-resolution settings, while performance drops sharply under scope-conditioned and compositional reasoning. These findings identify higher-order symbolic reasoning as a key bottleneck for building reliable and verifiable LLMs. The project code and dataset are publicly available at https://github.com/wuyucheng2002/HOLMES.

View on arXivView PDF

Code Implementations(1)

MIT

HOLMES: Evaluating Higher-Order Logical Reasoning in LLMs

31PythonJun 15, 20264 months agoMIT

Similar Papers

Cite this paper

@article{wu2026holmes,
  title  = {HOLMES: Evaluating Higher-Order Logical Reasoning in LLMs},
  author = {Yucheng Wu and Jundong Xu and Mingzhen Ju and Yue Yu and Chenpeng Wang and Haoxuan Li and Liangming Pan},
  year   = {2026},
  eprint = {2606.23238},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.23238v2}
}

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/2606.23238.svg)](https://codeofpaper.com/paper/2606.23238)

Discussion