arXiv:2610.02478cs.AIOct 2026

Manuscript Offprint

arXiv:2610.02478

Tropical Reinforcement Learning

Arip Asadulaev, Aladin Djuhera, Karim Salta, Holger Boche, Fakhri Karray, Martin Takac

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Reinforcement learning for large language models typically maximizes expected return, adding up the probabilities of all successful trajectories. However, the classical sum formulation can only report how often the model policy succeeds, not which solution actually worked, and because probabilities sum to one, reinforcing one solution can make the model forget another that was never shown to be wrong. This makes expected return a poor fit for compositional reasoning, where a solution must be assembled from reasoning steps that the model produces in separate, often failed, attempts but rarely produces together. To address this, we propose Tropical Reinforcement Learning, which rests on a simple change of algebra: instead of adding the probabilities of alternative solutions, we take their maximum, which yields the tropical semiring. The value of a state then becomes the log-probability of its most likely verified solution, together with an explicit path that can be replayed and reused. This enables true composition, since the best prefix and the best suffix meeting at a shared state can be joined even when they come from different rollouts. To put this into practice, we introduce TROPIC, a training algorithm for deterministic, resettable environments with verifiable outcomes. On four agentic tasks (Sokoban, Countdown, FrozenLake, WebShop), TROPIC outperforms the strongest on-policy baselines by up to 16 percentage points. Changing the algebra of reinforcement learning, not just its estimators, can thus substantially improve compositional reasoning in language models.

1 INTRODUCTION

The best solution a language model can produce is often one it has never produced. A model may know how to formalize a problem, derive an intermediate result, invoke the right theorem, and check an answer, and may have done each of these in earlier attempts, yet never have chained them in the order a new problem requires (Press et al., 2023; Lake & Baroni, 2018). Reinforcement learning with verifiable rewards (RLVR) is the standard post-training tool for closing this gap by sampling many attempts and reinforcing the ones a verifier accepts (Kimi Team et al., 2025; DeepSeek-AI et al., 2026; GLM-5-Team et al., 2026; Yuan et al., 2026; Wen et al., 2026). However, the classical expected-return formulation learns only from what it samples, as a trajectory is credited only

Figure

Figure 1: Sokoban pass@k results

after the policy has generated it end-to-end. Recent works therefore focus on trajectory design, improving which rollouts are sampled and how they are credited (Wang et al., 2026; Feng et al., 2025; Li et al., 2026). Yet these methods keep the expected-return objective, and with it the requirement that a solution be sampled in one piece. For composition, this requirement is the bottleneck: a solution that chains d fragments, each found in a separate attempt, is sampled in one piece with probability exponentially small in d, even though the model has already produced every part of it.

Beyond failing to reward composition, expected return can also actively suppress the fragments it requires. Suppose the model produces outcomes A, B, their composition A∘BA \circ B, and a failure 0, with probabilities (pA,pB,pAB,p0)(p_A, p_B, p_{AB}, p_0). The first three receive reward one, so JER=pA+pB+pABJ_{\mathrm{ER}} = p_A + p_B + p_{AB}, but the composition has not yet been sampled. Moving from (0.30,0.30,0,0.40)(0.30, 0.30, 0, 0.40) to (0.90,0.05,0,0.05)(0.90, 0.05, 0, 0.05)

arip.asadulaev@mbzuai.ac.ae †MBZUAI ‡TUM raises expected reward from 0.60 to 0.95. Yet the probability that a batch of twenty rollouts contains B at least once drops from 1−0.7020≈0.9991 - 0.70^{20} \approx 0.999 to 1−0.9520≈0.6421 - 0.95^{20} \approx 0.642. The objective has improved, but one of the two fragments that A∘BA \circ B requires is now absent from about a third of all batches. In general, a high expected reward bounds the total probability of currently successful behavior, but places no lower bound on any individual fragment that a future composition requires. This is consistent with recent findings that loss of policy entropy and reasoning diversity limits what RL post-training can achieve (Cui et al., 2025; Jin et al., 2026).

Both problems stem from the same choice: expected return adds up the probabilities of alternative trajectories. A sum does not record which trajectory succeeded, so fragments from different rollouts cannot be combined, and, because probabilities sum to one, raising one term lowers another. Tropical RL changes this algebra. It still adds log-probabilities along each trajectory, but combines alternative trajectories by their maximum, which yields the max-plus, or tropical, semiring. The value of a state becomes the log-probability of its most likely verified path, and, because addition distributes over the maximum, it splits at any shared state into a best prefix and a best suffix, possibly from different rollouts. Compositions can thus be assembled without ever being sampled in one piece, and since the maximum ignores all but the best path, the value never loses a verified path once found. RL thus shifts from learning what the policy samples to learning what can be assembled from it.

We develop this shift from first principles to a practical algorithm. Our contributions are: (i) a DIAGNOSIS: we show that expected return, by adding probabilities over alternative trajectories, loses track of which solution succeeded and lets verified solutions be forgotten (Section 3); (ii) a FORCING RESULT: we prove that the maximum is the only aggregation whose value always names a verified path and never decreases as new paths are found (Theorem 2); and (iii) TROPIC: an algorithm of Tropical RL for agentic environments that joins fragments across rollouts and outperforms all baselines (Fig. 4, Fig. 1) on every task and model we test, by up to 16 points over the strongest one.