PreprintCited by 0Logic, Reasoning, and KnowledgeTopic ModelingNatural Language Processing Techniques

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

Open access
Al-Negheimish, Hadeel, Ilieva, Jasna, Kim, Yoon·2026·arXiv

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.

AI snapshot

Written from the paper’s full text.

TL;DR

The paper introduces PROLONG, a synthetic Prolog benchmark for long-horizon deductive reasoning with proof depths up to 22 and contexts up to a median of 62k tokens. Across 8 frontier reasoning models, accuracy collapses toward chance beyond depth 10, driven by a conservative bias toward predicting “unprovable” and by unfaithful reasoning traces.

Key findings

  • Performance degrades monotonically with reasoning depth: most models approach the 0.5 chance baseline beyond depth 10, while GPT-5.5 is the outlier, maintaining high accuracy until depth 16 and degrading to 67% accuracy at depth-20.
  • Many models develop a “conservative bias,” increasingly predicting queries are unprovable as depth grows; Claude-Opus-4.7, DeepSeek-V4-Pro, and Kimi-K2.6 show this most strongly beyond depth 10.
  • Reasoning traces are often unfaithful: for GPT-5.5 true negatives, only 34 of 84 (40.5%) correctly cited the planted missing fact; for DeepSeek-V4-Pro, only 11% of 91 true negatives correctly mentioned the missing fact, and 97 of 100 provable queries were falsely claimed unsupported.
  • In a disentangled shared-context setting, both context length and proof depth independently degrade performance: context length β = -0.54 and proof depth β = -0.36, both p < 0.001.

Methods

  • PROLONG is generated from simple definite Prolog programs represented as DAGs, with no loops or recursion, predicate arity at most two, and one rule per predicate; each program has a provable and an unprovable query.
  • The benchmark contains 2,400 samples: 100 programs per depth, each with two queries, at depths 0–22 skipping odd depths; median input tokens grow from 133 at depth 0 to 62k at depth 22.
  • The authors evaluate 8 frontier reasoning models and fit generalized linear mixed models with model identity as a random intercept and context length and proof depth as fixed effects; a disentangled dataset of 600 samples fixes context length across depths 0, 2, 4, 6, 8, and 10.

Limitations

  • The paper states that generated programs exclude recursion, reasoning loops, and negation; closed-source models provide only reasoning summaries, not full traces; API costs are substantial; and output token budgets of 64k for most models and 82k for Qwen models may limit accuracy at longer depths.
  • The text also makes evident that the benchmark is synthetic, binary, balanced, and restricted to simple linear proof chains with no backtracking or unsuccessful branches, so findings may not generalize to more complex logical reasoning.

Model-written summary. Check it against the paper before relying on it.

Integrity signals

Registry

DataCite · 10.48550/arxiv.2610.11592

Cites

11 of 11 references verified0 citation errors · 0 not checkable

Statistics

Nothing to recompute.

Claims the paper makes

9 of 16 cited sources checked · 6 supported · 0 flagged · accuracy not yet measured

  • Premisecitation

    Previous deductive reasoning benchmarks such as RuleTaker, ProofWriter, and ProntoQA studied proof depths up to five steps or hops.

    “Early work on deductive reasoning benchmarks such as RuleTaker (Clark et al., 2020) and ProofWriter (Tafjord et al., 2021) established the basic setup of query answering over sets of rules and facts, with ProofWriter reaching a maximum proof depth of five steps.ProntoQA (Saparov and He, 2023) introduces proof-structure controls and formal error attribution, also evaluated up to five hops.”
    Quote in the paperSubstantial claim2 of 3 sources checked
    • cites Clark et al., 2020 source
    • cites Tafjord et al., 2021 source
    • cites Saparov and He, 2023

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Premisecitation

    Using Prolog instead of natural language in evaluations avoids ambiguity and content effects that can impact performance, as models may draw on prior knowledge rather than the stated context.

    “we opt to use Prolog instead of natural language in our evaluations, in order to avoid ambiguity and content effects that can impact performance, as models may draw on prior knowledge rather than the stated context (Lampinen et al., 2024).”
    Quote in the paperSubstantial claim1 of 1 sources checked
    • cites Lampinen et al., 2024 source

      The Results and Discussion (pages unavailable) show that models’ reasoning performance is affected by whether problem content aligns with real-world expectations, supporting the concern about prior knowledge overriding a stated premise. The paper does not evaluate Prolog or establish that using it instead of natural language avoids ambiguity or content effects. (LLM, conf=0.85)

      Experimental — accuracy not yet measured
  • Premisecitation

    LongBench-v2, RULER, and HELMET evaluate retrieval and QA over extended contexts, treating reasoning and retrieval as independent axes in most tasks.

    “On the long-context processing side, LongBench-v2 (Bai et al., 2025), RULER (Hsieh et al., 2024), and HELMET (Yen et al., 2025) evaluate retrieval and QA over extended contexts, treating reasoning and retrieval as independent axes in most tasks.”
    Quote in the paperSubstantial claim1 of 3 sources checked
    • cites Bai et al., 2025

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites Hsieh et al., 2024

      The Introduction (pp. 1–2) and Section 3 (p. 3) show that RULER evaluates retrieval and question answering at varying, extended context lengths. They describe separate task categories, but do not establish that reasoning and retrieval are treated as independent axes in most tasks. This verdict concerns RULER, not the other two benchmarks named in the sentence. (LLM, conf=0.84)

      Experimental — accuracy not yet measured
    • cites Yen et al., 2025

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Findingreasoning

    The dataset contains 2400 samples at varying levels of complexity.

    “This results in a dataset of 2400 samples at varying levels of complexity, ranging from 133 median input tokens 4 at depth 0 to 62k tokens at depth 22.”
    Quote in the paperNot a substantial claim
  • Findingown data

    Accuracy degrades monotonically as depth increases.

    “However, accuracy degrades monotonically as depth increases, with the rate and onset of decline varying considerably across models.”
    Quote in the paperSubstantial claim
  • Classified as probably not a substantial claim. 18
  • May combine two claims. 14
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation

    ZebraLogic identifies sharp accuracy decline in constraint-satisfaction once the search space exceeds 10^7 possibilities.

    “ZebraLogic (Lin et al., 2025) identifies sharp accuracy decline in constraint-satisfaction once the search space exceeds 10 7 possibilities.”
    Quote in the paperNot a substantial claim1 of 1 sources checked
    • cites Lin et al., 2025 source
  • Classified as probably not a substantial claim.

    Premisecitation

    A model that has learned a robust implementation of the proof-tree tracing algorithm should, in principle, generalize beyond the shallow depths seen in previous benchmarks.

    “This process is algorithmic; a model that has learned a robust implementation of this algorithm should, in principle, generalize beyond the shallow depths seen in previous benchmarks (Clark et al., 2020;Tafjord et al., 2021;Saparov and He, 2023).”
    Quote in the paperSubstantial claim2 of 3 sources checked
    • cites Clark et al., 2020 source

      Section 4.2 (p. 4) reports that a model trained on problems up to depth 3 generalized to depth-5 problems, supporting the point about reasoning beyond shallower training depths. But Section 2 (p. 2) says the authors impose no structure on the neural reasoning process; the paper does not establish that the model learned a proof-tree tracing algorithm. (LLM, conf=0.82)

      Experimental — accuracy not yet measured
    • cites Tafjord et al., 2021 source
    • cites Saparov and He, 2023

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • May combine two claims.

    Premisecitation

    These previous benchmarks revealed that models at the time struggle as proof depth increases, but the depths studied remain shallow.

    “These benchmarks revealed that models at the time struggle as proof depth increases, but the depths studied remain shallow.”
    Quote in the paperSubstantial claim2 of 3 sources checked
    • cites Clark et al., 2020 source
    • cites Tafjord et al., 2021 source
    • cites Saparov and He, 2023

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Probably not a substantial claim: may not pass S3 (load-bearing), S4 (based).

    Findingnone given

    Context structural diversity is expectedly limited in depths 0 and 2.

    “We create a canonical representation, shape, for the program to ensure context structural diversity, which is expectedly limited in depths 0 and 2.”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim.

    Findingown data

    Median input token count ranges from 133 at depth 0 to 62k tokens at depth 22.

    “This results in a dataset of 2400 samples at varying levels of complexity, ranging from 133 median input tokens 4 at depth 0 to 62k tokens at depth 22.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    The majority of evaluated models approach chance or fail to perform above chance beyond depth 10.

    “with the majority of models approaching chance beyond depth 10.”
    • Also stated in: § 1 Introduction · plain
      “with the majority of models failing to perform above chance beyond depth-10.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    PROLONG is a synthetic benchmark of 2,400 Prolog logic programs that systematically varies reasoning depth, with the hardest case at depth 22.

    “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.”
    • Also stated in: § 1 Introduction · plain
      “by constructing PROLONGfoot_1 , a benchmark of 2,400 logic programs in Prolog with reasoning depths up to 22.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S4 (based).

    Findingnone given

    The proof tree in PROLONG's Prolog-style problems can be represented as a simple chain.

    “where the proof tree can be represented as a simple chain.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    Models' performance on the same depth is poorer given longer context, and for the same context length, models' performance declines with increased reasoning depth.

    “Models' performance on the same depth is poorer given longer context, and for the same context length, models' performance declines with increased reasoning depth.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.

    Findingown data

    Input token counts are similar across models, with a slight increase in Claude-Opus-4.7.

    “Note that they are similar across the board, with a slight increase in Claude-Opus-4.7.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    By disentangling depth from context length in a shared-context setting, both factors independently and comparably degrade performance, despite being near-perfectly correlated in the original benchmark.

    “By disentangling depth from context length in a shared-context setting, we show both factors independently and comparably degrade performance, despite being near-perfectly correlated in the original benchmark.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    In the fixed-context setting, both context length and proof depth have statistically significant and comparable negative impacts on performance (context-length: β = -0.54; proof-depth: β = -0.36; both p < 0.001).

    “In this setting we find that both length and depth have statistically significant and comparable impact (context-length: β = -0.54;proof-depth: β = -0.36;both p < 0.001).”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S4 (based).

    Findingnone given

    The dataset is balanced.

    “since the dataset is balanced”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    In a GLMM restricted to the four models evaluated in both settings, context length has a large negative effect (β = -1.48, p < 0.001) while proof depth appears negligible and not statistically significant (β = -0.15, p = 0.108).

    “These initial results indicate that regression restricted to the four models evaluated in both settings attributes most of the effect to context length (β = -1.48,p < 0.001), while proof depth appears negligible and not statistically significant (β = -0.15,p = 0.108).”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingown data

    On the disentangled dataset (n = 2,400), the random-intercept variance is σ2 = 0.347 (SD = 0.589).

    “On the disentangled dataset (n = 2,400), the random-intercept variance is σ2 = 0.347 (SD = 0.589)”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    On the disentangled dataset (n = 2,400), both fixed effects are significant and comparable in magnitude: context length β = -0.54, p < 0.001; proof depth β = -0.36, p < 0.001.

    “both fixed effects are significant and comparable in magnitude (context length: β = -0.54,p < 0.001; proof depth: β = -0.36,p < 0.001).”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationreasoning

    Evaluating these problems simultaneously stresses a model's ability to reason over extended chains and to locate and use relevant information within long contexts.

    “Evaluating these problems simultaneously stresses a model's ability to reason over extended chains and to locate and use relevant information within long contexts.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premiseown data

    Context sizes for the evaluated models range from 256k tokens to 1M.

    “Context sizes for these models range from 256k tokens to 1M , full details are shown in Table 2 in the appendix.”
    Quote in the paperNot a substantial claim0 of 1 sources checked
    • cites Table 2

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Probably not a substantial claim: may not pass S4 (based). May combine two claims.

    Study design and conductnone given

    In PROLONG, every rule and fact in the program is necessary in the proof derivation, so the model cannot succeed by locating a few relevant pieces and ignoring the rest.

    “PROLONG differs from these benchmarks in that every rule and fact in the program is necessary in the proof derivation, so the model cannot succeed by locating a few relevant pieces and ignoring the rest.”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim. May combine two claims.

    Study design and conductnone given

    The data generation algorithm guarantees by construction that at least one path in the DAG is as deep as length N, with other paths sampled uniformly up to that length.

    “The algorithm by construction guarantees that at least one path in the DAG is as deep as length N , the other paths sampled uniformly up to that length.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Study design and conductnone given

    A canonical representation, shape, is created for the program to ensure context structural diversity.

    “We create a canonical representation, shape, for the program to ensure context structural diversity, which is expectedly limited in depths 0 and 2.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Study design and conductnone given

    The context lengths are still well within the advertised context lengths of the evaluated models.

    “We emphasize that the context lengths are still well within the advertised context lengths of these models.”
    Quote in the paperNot a substantial claim0 of 1 sources checked
    • cites Table 2

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Classified as probably not a substantial claim.

    Study design and conductreasoning

    The framework's generated programs do not include recursion, reasoning loops, or negation.

    “This framework is intended to study deductive reasoning at its simplest, so the class of generated programs does not include recursion, reasoning loops, or negation.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing), S4 (based). May combine two claims.

    Study design and conductnone given

    Closed-source models do not offer access to the actual reasoning tokens used to reach the final answer, only a summary, which limits analysis of their reasoning traces.

    “Closed-source models do not offer access to the actual reasoning tokens used to reach the final answer, only a summary, which limits analysis of their reasoning traces.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Study design and conductown data

    The failure reason extraction by GPT-5.5 was manually verified for 10% of the problems.

    “We used an LLM, GPT-5.5, to extract the failure reason and check whether it is valid, and verified these manually for 10% of the problems.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.

    Study design and conductnone given

    The maximum number of output tokens used in this study is 64k for most models, and 82k for Qwen models, as recommended in their docs.

    “Finally, the maximum number of output tokens used in this study is 64k for most models, and 82k for Qwen models, as recommended in their docs.”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim.

    Study design and conductreasoning

    Model identity is included as a random intercept, (1 | model_id), rather than a fixed effect, to account for baseline differences in model capability without assuming a specific reference model.

    “Model identity is included as a random intercept, (1 | model_id), rather than a fixed effect, to account for baseline differences in model capability without assuming a specific reference model.”
    Quote in the paperSubstantial claim
27 of 27
  • The paper relies on this without support.

    Performance on PROLONG's synthetic Prolog tasks is a valid measure of long-horizon deductive reasoning capabilities in LLMs.

    “We empirically investigate long-horizon reasoning capabilities of LLMs, focusing on deductive logic expressed in Prolog.”
    “We operationalize deductive reasoning as a query-answering problem over simple Prolog-style logic programs (Bratko, 2001), where the proof tree can be represented as a simple chain.”
  • The paper relies on this without support.

    Logical inferences of the kind tested are important for real-world applications, such as policy compliance problems.

    “In addition to domains such as mathematics, such logical inferences are important for real-world applications, for example in policy compliance problems.”
  • The paper relies on this without support.

    The eight evaluated reasoning models across five families are representative of frontier LLMs for conclusions about frontier reasoning models generally.

    “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.”
    “We perform a systematic evaluation and analysis of 8 frontier reasoning models, and find that even the best-performing frontier model, GPT-5.5, degrades to 67% accuracy at depth-20, with the majority of models failing to perform above chance beyond depth-10.”
  • The paper relies on this without support.

    The generated Prolog programs are a valid probe of long-horizon deductive reasoning capabilities in language models.

    “The class of problems we consider in this framework is a smaller subset of definite Prolog logic programs, where the context can be represented as directed acyclic graphs (DAGs) (see Figure 5 of the appendix), with no loops or recursion in rule definitions.”
    “This framework allows systematic construction of random logic programs with controllable levels of complexity.”
  • The paper relies on this without support.

    The generated Prolog programs (simple, linear, no recursion/negation) are a valid testbed for studying long-horizon deductive reasoning in language models.

    “This framework is intended to study deductive reasoning at its simplest, so the class of generated programs does not include recursion, reasoning loops, or negation.”
  • The paper relies on this without support.

    The problems remain well within the models' advertised context limits.

    “despite the problems remaining well within advertised context limits”
  • The paper relies on this without support.

    Manual verification of 10% of the problems is sufficient to trust the LLM's failure reason extraction for all problems.

    “We used an LLM, GPT-5.5, to extract the failure reason and check whether it is valid, and verified these manually for 10% of the problems.”
  • The paper relies on this without support.

    The reasoning summaries provided by closed-source models are sufficiently faithful to their internal reasoning to support conclusions about reasoning failures.

    “Closed-source models do not offer access to the actual reasoning tokens used to reach the final answer, only a summary, which limits analysis of their reasoning traces.”
8 of 8

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

Each contradiction between two passages listed here was confirmed by an independent check.

  • Generation algorithm appends a variable-containing fact

    Minor

    Algorithm 1 replaces the ground head's arguments with variables before appending that head as a fact at depth zero. This conflicts with the paper's description of facts as ground literals.

1 of 1

Cites

Flagged first, then by citations

Research works printed but not linked: 2

  1. Ivan Bratko. 2001. Prolog programming for artificial intelligence, 3rd ed. edition. International computer science series. Addison Wesley, Harlow, England.
  2. Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, Xiaokang Zhang, Xingkai Yu, Yu Wu, Z F Wu, Zhibin Gou, Zhihong Shao, Zhuoshu Li, Ziyi Gao, Aixin Liu, and 175 oth- ers. 2025. DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature, 645(8081):633-638. · DOI · Paper page

Authors
Al-Negheimish, H., Ilieva, J., & Kim, Y.
Affiliations
  • King Saud University (SA)
  • Massachusetts Institute of Technology (US)
Venue
arXiv
Publisher
arXiv
Published
2026
ISSN
2331-8422 (ISSN-L)
OpenAlex
W7221067410
Cited by
0
References
11
Type
posted content
Open access
Locations
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University) (cc-by)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Logic, Reasoning, and Knowledge
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
Keywords
long-horizon reasoning, deductive reasoning, Prolog, large language models, long-context modeling, reasoning depth, LLM benchmarking

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Claims read by deepseek-v4.1-flash under definition version 3 (extract-v3) on 2026-10-19.

Classified by jev-1.13-20260917 (gold-guideline-v0.2) on 2026-10-19.

Cited sources are checked by gpt-6-sol.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review