Can RL Teach Long-Horizon Reasoning to LLMs? Expressiveness Is Key
Tianle Wang1 Zhaoyang Wang2 Guangchen Lan1 Xinpeng Wei3 Sipeng Zhang4 Guanwen Qiu1 Abulhair Saparov1
arXiv:2605.06638v1 [cs.AI] 7 May 2026
1
Purdue University
2
UNC Chapel Hill 3 Georgia Tech [email protected]
4
UC San Diego
Abstract Reinforcement learning (RL) has been applied to improve large language model (LLM) reasoning, yet the systematic study of how training scales with task difficulty has been hampered by the lack of controlled, scalable environments. We introduce S CALE L OGIC, a synthetic logical reasoning framework that offers independent control over two axes of difficulty: the depth of the required proof planning (i.e., the horizon) and the expressiveness of the underlying logic. Our proposed framework supports a wide range of logics: from simple implication-only logic (“if-then”) towards more expressive first-order reasoning with conjunction (“and”), disjunction (“or”), negation (“not”), and universal quantification (“for all”). Using this framework, we show that the RL training compute T follows a power law with respect to reasoning depth D—T ∝ Dγ , R2 > 0.99—and that the scaling exponent γ increases monotonically with logical expressiveness, from 1.04 to 2.60. On downstream mathematics and general reasoning benchmarks, more expressive training settings yield both larger performance gains (up to +10.66 points) and more compute-efficient transfer compared to less expressive settings, demonstrating that what a model is trained on, not just how much it is trained, shapes downstream transfer. We further show that the power-law relationship holds across multiple RL methods, and curriculum-based training substantially improves scaling efficiency.
1
Introduction
Recent advances in reinforcement learning (RL) for large language model (LLM) reasoning have shown that training on verifiable domains such as mathematics and coding can elicit enhanced reasoning behavior and improve benchmark performance [Guo et al., 2025a, Jaech et al., 2024]. However, these gains do not yet translate into robust long-horizon reasoning, as the same model’s performance can degrade sharply once tasks require many sequential reasoning steps, even when the corresponding subproblems are individually manageable [Rameshkumar et al., 2025, Motwani et al., 2025, Lu et al., 2025, Zhou et al., 2025]. A key limitation is that scalable long-horizon reasoning training requires three properties simultaneously: exact verifiability, fine-grained control over reasoning difficulty, and data available at scale that supports systematic analysis. The domains currently driving RL progress, such as mathematics and coding, often satisfy the first property but not the latter two: high-quality problems are expensive to curate and offer only limited control over horizon and difficulty [Hendrycks et al., 2021, Jain et al., 2024]. Existing alternatives, including synthetic tasks [Xie et al., 2025, Liu et al., 2025a] and selfevolving pipelines [Zhao et al., 2025, Huang et al., 2025], reduce the cost of data collection through automatic generation and verification, but often do not provide a sufficiently clean and interpretable set of control axes for analyzing scaling behavior. As a result, we still lack a controlled training setting for studying how RL scales with increasingly difficult long-horizon reasoning problems. Table 1 summarizes how existing data sources fall short on at least one of these axes. Preprint.
Table 1: Comparison of training data sources for RL post-training of LLM reasoning. Here, ✓ denotes direct support, ◦ denotes coarse or indirect control, and × denotes no direct control; e.g., SAT can vary the number of variables and clauses, but only indirectly controls the reasoning horizon. Controllable Controllable Data Source Verifiable Scalable Horizon Expressiveness Math / Code [e.g., Hendrycks et al., 2021] Game-based [e.g., Wu et al., 2024] Self-Evolving [e.g., Zhao et al., 2025] Knights and Knaves [Xie et al., 2025] SAT [Liu et al., 2025a] G1 [Guo et al., 2025b] Puzzle Suites [e.g., Liu et al., 2025b]
✓ ◦ ✓ ✓ ✓ ✓ ✓
✗ ✓ ✓ ✓ ✓ ✓ ✓
✗ ✗ ✗ ◦ ◦ ◦ ◦
✗ ✗ ✗ ✗ ✗ ✗ ✗
S CALE L OGIC
✓
✓
✓
✓
To address this gap, we propose S CALE L OGIC, a synthetic logical reasoning environment with explicit control over two key dimensions of difficulty: the depth of the required proof planning (i.e., the horizon) and the logical expressiveness of the reasoning problems. As illustrated in Figure 1, in each example, the model is given a set of facts and a handful of candidate conclusions. The model is then asked to identify which candidate conclusion is logically derivable from those facts, yielding an exact and easily verifiable multiple-choice objective. To find the correct multiple-choice option, the model must search for a proof of each candidate conclusion. Our environment requires it to expend comparable reasoning effort to determine the provability of each candidate, which substantially limits the model’s ability to exploit simple heuristics or shortcuts during reasoning. Beyond scaling the depth of the proof tree, our environment allows us to vary the expressive structure of the underlying logic, including the logical operators and structural properties involved in each example. Combined with automatic low-cost generation and verification, this provides a controlled testbed for systematically studying RL scaling in long-horizon reasoning. Experiments in this controlled environment show that over the observed depth range, the RL training steps T required to reach 90% validation accuracy follow a power law in the proof-tree depth D (T ∝ Dγ , R2 > 0.99), where the scaling exponent γ increases monotonically with logical expressiveness, from 1.04 to 2.60. This indicates that more logically expressive settings require disproportionately more training to solve problems of the same depth. We also find that the power-law relationship holds across different RL methods, and these dynamics depend strongly on the training distribution: a carefully designed curriculum improves training efficiency and stability. We also demonstrate that training a model in our synthetic reasoning environment improves performance on downstream real-world mathematics and general reasoning benchmarks, with the most expressive setting improving the mean accuracy across eight benchmarks by up to +10.66 percentage points over the base model. Critically, training on highly expressive data yields a monotonically increasing downstream performance curve, while less expressive settings plateau early. This indicates that what the model is trained on, not just how much it is trained, shapes downstream transfer. Taken together, these results suggest that the logical expressiveness of the training data influences not only how RL scales on synthetic reasoning tasks, but also the extent to which such training can provide transferable improvement in reasoning performance for real-world applications. In summary, we introduce a scalable synthetic reasoning framework for studying and improving long-horizon reasoning in RL post-training. Our main contributions are as follows: • We propose S CALE L OGIC, a controlled and scalable synthetic logical reasoning testbed for RL post-training, with exact verifiability, low-cost automatic generation, and explicit control over reasoning horizon and logical expressiveness. • We show that RL training effort follows a power law with respect to proof tree depth, with the scaling exponent γ increasing monotonically with logical expressiveness, from 1.04 to 2.60. The power-law relationship holds across multiple RL methods, and we further show that curriculum training improves scaling efficiency. • We show that synthetic reasoning training improves downstream reasoning performance by up to +10.66 points, and these gains depend strongly on the logical expressiveness of the training environment, with more expressive settings yielding larger and more compute-efficient transfer. 2
Figure 1: Overview of S CALE L OGIC. Each problem has B candidate proof trees, exactly one of which has a provable conclusion; the others are made unprovable by corrupting one axiom. The depth D controls proof depth. Left: Implication-only reasoning. Right: The most expressive logic setting (referred to as + Quantification in Section 3.2) combines conjunction, disjunction, negation, and universal quantification.
2
Related Work
Long-horizon Reasoning Limitations. Recent work reveals that LLMs often exhibit sharp performance degradation as the reasoning horizon increases. Rameshkumar et al. [2025] show that reasoning models can perform well on graph-based reasoning tasks within a limited complexity regime, but their performance drops abruptly once the reasoning horizon is sufficiently large. SeqBench [Ramezanali et al., 2025] and GSM-Infinite [Zhou et al., 2025] also report steep performance degradation with exponential and sigmoid-like decay patterns. Further studies, such as R-Horizon [Lu et al., 2025] and h1 [Motwani et al., 2025], compose individually solvable mathematical problems into multi-step dependency chains and investigate whether RL training can mitigate long-horizon failures. Building on this line of work, we characterize how RL training behaves as reasoning structures are systematically scaled, and how these scaling dynamics shape downstream transfer. Scaling in LLMs. Early scaling-law studies found regular power laws relating pre-training performance to model scale, data volume, and training compute [Kaplan et al., 2020, Henighan et al., 2020, Hoffmann et al., 2022]. Later, test-time scaling emerged to improve reasoning by allocating additional computation during decoding [Wei et al., 2022, Wang et al., 2023, Yao et al., 2023, Muennighoff et al., 2025]. Recent work has extended scaling-law analysis to RL post-training, showing regular scaling behavior with model scale, data, and compute [Khatri et al., 2025, Tan et al., 2025]. However, existing RL scaling studies primarily vary the volume of training data, while providing limited control over the reasoning complexity of individual problems. In contrast, our work enables a cleaner analysis through explicit and interpretable control of reasoning complexity. RL for LLM Reasoning. RL with verifiable rewards (RLVR) has become a promising paradigm for reasoning-oriented post-training [Luong et al., 2024, Guo et al., 2025a]. With practical optimizers such as GRPO [Shao et al., 2024] and later variants [Yu et al., 2025, Zheng et al., 2025], it has enabled large-scale RL training and long chain-of-thought reasoning [Jaech et al., 2024, Guo et al., 2025a]. However, most existing RL reasoning work centers on mathematics and programming, where high-quality training problems are limited, often depend on human-curated solutions or test cases, and offer only coarse difficulty control [Liu et al., 2025a]. As a result, RL performance is limited by the collected data, making sustained improvement difficult as training scales. In contrast, S CALE L OGIC offers explicit complexity control, verifiable solutions, and unlimited low-cost data generation, enabling a cleaner and more scalable framework for reasoning-oriented RL. Synthetic Data for Post-training. Synthetic data is a natural fit for RLVR, motivating recent work on automatically generated reasoning problems with verifiable rewards. Early efforts studied taskspecific synthetic settings for logical reasoning, such as Knights and Knaves [Xie et al., 2025, Lin et al., 2025]. More recent work shifted toward task families with difficulty control such as SAT [Liu et al., 2025a], graph reasoning tasks such as G1 [Guo et al., 2025b], and benchmark-style synthetic reasoning suites [Liu et al., 2025b, Chen et al., 2025, Stojanovski et al., 2025, He et al., 2026]. While these studies show the promise of synthetic data for post-training, their tasks are typically worst-case NP-hard search problems (e.g., SAT and Hamiltonian path in G1) with limited control over underlying expressiveness, making it difficult to isolate how task complexity affects RL training compute and downstream reasoning. In contrast, S CALE L OGIC independently controls proof depth and logical expressiveness with each instance oracle-solvable in time linear in the proof size. 3
3
Method
We present S CALE L OGIC, a framework for generating synthetic logical reasoning problems with finegrained control over task difficulty. Section 3.1 describes how reasoning problems are constructed, Section 3.2 explains how the difficulty of the generated problems is systematically controlled through logical expressiveness, and Section 3.3 describes the reinforcement learning setup for post-training. 3.1
Generation of Logical Reasoning Problems
Our training environment is built on a pipeline for generating synthetic logical reasoning problems. We refer to a grounded predicate applied to a specific entity, possibly negated, such as “Alice is a cat” (written in logic as cat(Alice)) or “Alice is not a cat” (¬cat(Alice)), as a literal. Each instance consists of a collection of axioms, which include literals such as “Alice is a cat” (cat(Alice)) and rules such as “If Alice is a cat, then Alice is a mammal” (cat(Alice) → mammal(Alice)), which together determine the set of conclusions that can be logically derived, such as “Alice is a mammal” (mammal(Alice)). The underlying task is to identify, among a set of candidate conclusions (each a single literal), which one is logically derivable from the given axioms. Each instance is presented as a single-answer multiple-choice problem. To construct it, we first sample B literals, each serving as the root of a proof tree. Starting from each root, we recursively expand the tree by adding child literals to its leaves. Each parent node, along with its set of children, defines a proof step: the children serve as the premises, while the parent is the conclusion. The conclusion of one proof step may in turn serve as a premise for another step higher in the tree. Thus, expanding a leaf amounts to generating its supporting premises, which become new leaves of the proof tree. We repeat this process until a target proof depth D is reached, at which point the leaves are treated as the literal axioms from which the proof begins (see Algorithm 1). This procedure generates proofs “backwards”: it starts from the conclusion and progressively constructs the premises needed to derive it. To avoid introducing alternative derivations, each expansion adds premise literals with fresh predicates that do not appear elsewhere in any proof trees. This ensures that every node has a unique derivation from the axioms, corresponding to the subtree rooted at that node.1 Applying the procedure to the B roots yields one proof tree for each candidate conclusion. We keep one proof tree intact so that its root conclusion remains derivable. For each of the remaining B − 1 candidates, we uniformly sample one axiom from the proof and corrupt it in one of two ways: (i) removing the axiom, or (ii) flipping the polarity of one literal within the axiom, e.g., changing “Alice is a cat” (cat(Alice)) to “Alice is not a cat” (¬cat(Alice)). Note that option (ii) is available only when negation is included in the underlying logic; it is disabled in less expressive settings that do not support negation (see Appendix D). The uniform sampling process prevents the model from exploiting positional shortcuts. Since our backward construction yields a unique proof for each candidate, corrupting a single axiom severs the proof path to the root and makes the corresponding conclusion non-derivable. We additionally insert a small number of distracting rules to increase local ambiguity without enabling any new valid derivations; their construction is detailed in Appendix C.2. This construction yields two interpretable structural variables, B and D, that directly govern instance complexity. Increasing B introduces more plausible candidate conclusions that the model must distinguish, while increasing D requires reasoning over longer proof chains. At the same time, the formulation allows exact verification of the final answer without supervising the entire proof, making it a natural fit for reinforcement learning with verifiable rewards. After construction, we convert the axioms and candidate conclusions into natural language via predefined templates, instantiated with randomly sampled entity names and fake predicate words (see Appendix C.3). An illustrative example is provided below and algorithms are given in Appendix C. Example: Natural Language Instance Suppose we have the following facts: Alice has fur. Alice is a vertebrate. If Alice has fur and is a vertebrate, then Alice is a mammal. If anyone is a mammal, then they are not a bird. ... Here are some candidate statements: (A) Alice is not a bird. (B) Alice is cold-blooded. (C) ... Which one of the above statements can be logically derived from the given facts? Answer: Alice is not a bird. 1 Similar to the generation procedure in Opedal et al. [2025] which also guarantees the uniqueness of generated proofs.
4
3.2
Control of Logical Expressiveness
Beyond depth and candidate count, we vary the expressive power of the underlying logic while preserving the same task format. We consider a hierarchy of five settings, each a strict superset of the previous, so that any increment in reasoning difficulty can be cleanly attributed to the newly introduced logical features. We describe each level in turn, starting with the simplest. Implication-only. We start with a simple logic that contains only the implication operator (i.e., “if-then”, written →). Each axiom is either a grounded literal, such as “Alice is a cat” (cat(Alice)), or a simple implication rule such as “If Alice is a cat, then Alice is a mammal” (cat(Alice) → mammal(Alice)).2 A statement is considered valid if it can be derived from the grounded literals by repeatedly applying rules whose antecedents are satisfied. + Conjunction. We extend the simplest logic with the conjunction operator (i.e., “and”, written ∧), which allows a rule to depend on multiple premises simultaneously.3 Under this logic, a rule may take the form of a conjunction of grounded literals entailing a single conclusion, such as “If Alice is a vertebrate and has fur, then Alice is a mammal” (vertebrate(Alice) ∧ has_fur(Alice) → mammal(Alice)). During inference, the model must coordinate multiple satisfied supporting literals before applying each rule, rather than relying on single-premise inference. + Negation. We further extend the logic with the negation operator (i.e., “not”, written ¬), which allows premises and conclusions to involve negated literals. Under this logic, rules may condition on the absence of a property or derive such an absence as a consequence of other literals, such as “If Alice is a mammal, then Alice is not a bird” (mammal(Alice) → ¬bird(Alice)). With negation available, each literal in a proof tree has a well-defined negated counterpart, so the model must track not only whether a predicate has been established but also its polarity. + Disjunction. We further extend the logic with the disjunction operator (i.e., “or”, written ∨), which allows a rule to produce multiple possible consequents from the same premises. Under this logic, a rule may take the form of the antecedent entailing a disjunction of grounded literals, such as “If Alice is a pet, then Alice is a cat or a dog” (pet(Alice) → cat(Alice) ∨ dog(Alice)). With disjunction, the model must reason over multiple possible conclusions, determining which alternatives are eliminated and which support the target statement. + Quantification. The most expressive logic we consider extends the earlier logic from purely propositional reasoning towards first-order reasoning, through universal quantification (i.e., “for all”, written ∀), which enables the definition of rules that apply to any entity rather than a specific one. For example, “Anyone who is a cat is a mammal” (∀X(cat(X) → mammal(X))). At inference time, applying such quantified rules requires the model to instantiate them with a concrete entity in the current context, and to verify that the instantiated antecedents hold before deriving the consequents. We provide further details on the construction and use of these logical features in Appendix D. 3.3
Reinforcement Learning Framework
Our primary RL algorithm is DAPO [Yu et al., 2025], an extension of Group Relative Policy Optimization (GRPO) [Shao et al., 2024]. We first describe the GRPO objective on which our recipe is built. For each prompt q, we sample a group of G completions {oi }G i=1 from the policy model. The GRPO objective is |oi | G X X 1 1 LGRPO (θ) = Eq,{oi }G min ri,t (θ) Âi , clip(ri,t (θ), 1 − ϵ, 1 + ϵ) Âi , i=1 ∼πθold G i=1 |oi | t=1 Ri − mean({Rj }G πθ (oi,t | q, oi,<t ) j=1 ) , Âi = . πθold (oi,t | q, oi,<t ) std({Rj }G ) j=1 Here, ri,t (θ) is the token-level policy ratio, and Âi is the group-normalized advantage computed from the scalar completion rewards {Ri }G i=1 . On top of this objective, our DAPO recipe employs the dynamic sampling and clip-higher strategies from Yu et al. [2025] to improve training efficiency. where
ri,t (θ) =
2 This logic is also known as implicational propositional logic or implicational propositional calculus. 3We only permit conjunctions in the antecedent of if-then statements, since A
A → C. Similarly, we only permit disjunctions in the consequent.
5
→ B ∧ C is equivalent to A → B and