Probing for Long-Horizon Deductive Reasoning Capabilities in Language Models with Prolog

arXiv:2610.11592 · cs.CL · Submitted 2026-10-08 · Read on arXiv

cs.CL

Submitted: 2026-10-08

Updated: 2026-10-08

Comments: Findings of EMNLP 2026

Code: https://github.com/halnegheimish/ProloNg

License: http://creativecommons.org/licenses/by/4.0/

The gist: Current frontier LLMs can theoretically process long contexts with 1M tokens or more.

Terminology

Abstract

Current frontier LLMs can theoretically process long contexts with 1M tokens or more. But to what extent can they go beyond simple retrieval and perform deeper reasoning over such long contexts? We empirically investigate long-horizon reasoning capabilities of LLMs, focusing on deductive logic expressed in Prolog. We construct ProloNg, a synthetic testbed to probe Prolog Long Reasoning, which systematically varies the complexity (reasoning depth) of problems, where the hardest case has a reasoning depth of 22 and 62k context length. We study 8 reasoning models across 5 families of frontier LLMs, and find that performance degrades substantially as reasoning depth grows, with the majority of models approaching chance beyond depth 10.

Sources

Related papers