WorksComputer Science
Learning to Reason in Real-Time
Abstract
AI agents that operate in the real world must reason correctly and on-time, yet they currently do not account for how time should alter their reasoning. Modern agents learn to do tasks in environments that are entirely synchronous: where the world waits for the agent to act before changing. A real-time environment, by contrast, changes independent of the agent. Existing approaches try to bridge this gap by imposing a ratio of thinking to acting. However, for an agent to succeed in real-time it must learn to act quickly when delay is costly and to reason longer when the benefit outweighs the missed opportunities. To this end, we introduce real-time reasoning training (RRT) as the class of training techniques for real-time reasoning agents. We develop three standard RRT techniques: (1) using real-time data, (2) decoupling acting and observing, and (3) curriculum learning in time. Together, these simple techniques substantially outperform strong baselines. Across time pressures, we outperform the strongest non-RRT baseline by an average of 33% reward on in-distribution and 55% reward on out-of-distribution tasks in two real-time environments: Frogger and Snake. These results demonstrate that we can teach agents to balance reasoning and responsiveness under real-time constraints, and that RRT opens a broad, new set of capabilities for real-time agents.
Introduction
For Large Language Model (LLM) agents, time is frozen. Such agents are trained on tasks like coding, computer-use and mathematics, where the world waits for the agent to act before changing. But in the real-world, time waits for no one. Consequently, people learn to balance thinking and acting. We run to catch a bus, we carefully plan important life decisions and we use all available time to answer the hardest question on an exam. This ability to reason in real-time is inseparable from our ability to successfully operate in the world.
Despite substantial effort to improve agent performance with LLM reasoning, current agents perform poorly in even simple real-time environments. Wen et al. [16] show that LLM agents struggle to play simple games under even mild time pressure. This is because these agents are trained in environments that are entirely synchronous: where the environment waits for the agent to act before updating. Such policies transfer poorly to real-time environments, which update according to their own schedule.
Previous work has attempted to address this limitation by deploying LLM-agents in a multi-level scaffold. Wen et al. [16] propose using a faster secondary LLM to infer an action from the primary LLM’s reasoning trace, allowing the agent to take actions while still reasoning. However, these methods rely on a predefined ratio of thinking to acting. In the real-time setting, an agent should act quickly when delay is costly and reason longer when the benefit outweighs the missed opportunities. Since the optimal amount of reasoning changes depending on the task and circumstances of the agent, the agent itself must be able to choose when to reason more, and when to act.
To this end, we introduce real-time reasoning training (RRT) as the class of training techniques for real-time reasoning agents. We consider RRT to be when a reasoning agent is trained under real-time constraints, enabling the development of real-time strategies. We develop three core RRT techniques: (1) Using real-time data: for an agent to be successful in real-time environments, it must be trained using real-time interactions, not synchronous ones. (2) Decoupling acting and observing: we add observations to context as they are created by the environment, instead of only after an action (as in the synchronous case). This allows the agent to learn to incorporate new information into its decision making. (3) Curriculum Learning in Time: We begin by training our agent in slow real-time environments, and gradually increase the time pressure. This allows the agent to adjust to harsher time pressure.
We evaluate our RRT techniques in Frogger and Snake. In each environment, we evaluate on held-out seeds of three in-distribution tasks, used during training, and on one out-of-distribution task over a range of time pressures. We compare against synchronous, non-reasoning, scaffolded and naive RRT agents (§ 4.1). Combined, our techniques are on-par or exceed all other methods on held-out seeds in every task at every tested speed; outperforming the strongest non-RRT baseline by an average of 33% and 55% reward on in-distribution and out-of-distribution tasks, respectively. To validate the contribution of each of our RRT techniques, we perform an ablation in § 4.2. Finally, to quantify what advantages our techniques have over other methods, we perform a detailed error analysis (§ 4.3).
To summarize, our work makes three key contributions:
We introduce real-time reasoning training (RRT) as the class of training techniques for real-time reasoning agents.
We develop three core RRT techniques: Using real-time reasoning trajectories, decoupling acting and observing and curriculum learning in time.
We provide experimental evidence showing the benefit of our techniques over scaffolded and naive RRT methods.
Real-Time Environments
In conventional reasoning training, the environment is synchronous: while the LLM agent produces its reasoning trace the environment is static waiting for an action or tool call (Feng et al., [6]). This paradigm works well for coding (Qwen Team, 2026) and most computer-use (Kimi Team, 2026), where the environment is naturally static without interaction. By contrast, real-time environments are dynamic: they change while the agent reasons and not only when the agent acts. In this case, actions taken by the agent are executed against the environment at the moment they are produced.
Notation. We model an environment as a tuple , where is the state space, is the action space, and is the state transition function. We assume an initial state and we let denote the terminal states. We represent an agent trajectory as an ordered collection . At timestep , is the environment state, denotes the reasoning tokens produced by the agent between subsequent states and is the action taken by the agent. We use to denote appending elements to the end of a trajectory, i.e., . is the agent’s context, built from its trajectory, . We use to indicate asynchronously sampling
Algorithm 1 Synchronous Environment
Require: 𝓔 = (𝒮, 𝒜, 𝒯), π, s₀, 𝒮term
1: t ← 0
2: H₀ ← ⟨s₀⟩
3: while sₜ ∉ 𝒮term do
4: rₜ, aₜ ∼ await π(· | Context(Hₜ))
5: sₜ₊₁ ← 𝒯(sₜ, aₜ)
6: Hₜ₊₁ ← Hₜ ⊕ ⟨rₜ, aₜ, sₜ₊₁⟩
7: t ← t + 1
8: end while
Synchronous Environments. Algorithm 1 shows the synchronous agent loop. Given , the policy may take arbitrarily long to sample conditioned on its context. line 4 shows that the environment waits for the asynchronous agent sampling to complete before proceeding. Only after the sample is complete does the environment transition to . Because sampling on line 4 runs to completion before the transition on line 5, the agent always has time to complete its reasoning before acting.
Algorithm 2 Real-Time Environment
Require: 𝓔 = (𝒮, 𝒜, 𝒯), π, s₀, 𝒮term, Δε
1: t ← 0
2: H₀ ← ⟨s₀⟩
3: while sₜ ∉ 𝒮term do
4: r̂ₜ, âₜ ∼ π(· | Context(Hₜ))
5: Wait(Δε)
6: if IsReady(âₜ) then
7: aₜ ← âₜ
8: else
9: aₜ ← [NULL]
10: end if
11: sₜ₊₁ ← 𝒯(sₜ, aₜ)
12: Hₜ₊₁ ← Hₜ ⊕ ⟨r̂ₜ, aₜ, sₜ₊₁⟩
13: t ← t + 1
14: end while
Real-Time Environments. Algorithm 2 shows the real-time agent loop. Unlike in a synchronous environment, a real-time environment has an update interval which determines how frequently the environment transitions, independent of policy sampling. The lower the value of , the more time pressure the agent experiences. At state , the agent’s policy is sampled asynchronously to produce reasoning tokens and a candidate action . If sampling finishes within the current interval, the environment applies . Otherwise, it applies the [NULL] action: representing the environment transitioning without the agent producing an action. The environment then transitions to . We note that given a sufficiently high , Algorithm 2 becomes Algorithm 1, i.e. it becomes synchronous.
Method
To adapt LLM agents to real-time environments, we develop three core RRT techniques: (1) Trajectories have to be collected from a real-time environment, not a synchronous one. (2) The agent’s reasoning needs to contain states that were produced during reasoning, to prevent the policy from reasoning using information from stale states. (3) The time pressure should be annealed from low to high during training. This allows the reasoning policy to adapt strategies learned under low time pressure to more demanding settings, resulting in a more robust final policy.
Collecting real-time trajectories
Success in real-time environments depends on an agent’s ability to allocate reasoning in a time-aware way. Intuitively, an agent should respond quickly when delay is costly and reason longer when the benefit outweighs the missed opportunities.
Figure 1. Synchronous vs. real-time trajectories in Frogger. Left: in a synchronous environment the world waits for the agent to finish its reasoning, so it moves up and survives. Right: in a real-time environment the environment advances after tokens, cutting the same reasoning off before an action is produced.
Therefore, we collect agent trajectories using real-time environments (Algorithm 2), instead of the traditional synchronous environment (Algorithm 1) that reasoning agents are trained in. We model time pressure () as tokens generated, which is a controlled, hardware independent setup that correlates closely with wall-clock time [16]. In a trajectory collected in a synchronous environment, each action is chosen by the policy using the most recent observation. However, in a real-time environment, it is possible that , corresponding to the case where the reasoning policy did not produce an action before the environment transition.
Decoupling acting and observing
In synchronous reasoning training, acting and observing are coupled: observations are only added to the agent’s context after each action. However, if the state of the underlying environment has changed, as in a real-time environment, the chosen action may no longer be coherent. This stale state problem—where the agent reasons using outdated information—is a failure mode introduced when naively adapting synchronous reasoning training to real-time environments.

Figure 2. Coupled vs. decoupled observation in Frogger. Left: with acting and observing coupled, no new observation arrives while the agent reasons. Right: with decoupling, the new observation is added to the agent’s context mid-reasoning, allowing it to update its ongoing reasoning to avoid a collision.
To address this issue, we decouple acting and observing. Rather than only adding state to agent context after an action, we add state to context as it is created by the environment. This allows the agent to update its ongoing reasoning and choose a different action using the most up-to-date environment information. This prevents the observed failure mode (§ 4.2), where the agent makes a poor decision due to reasoning with outdated environment state.
More formally, given the agent trajectory at timestep :
Let be the set of timesteps before at which the action was .
With coupled observations, the agent’s context at timestep is
where denotes the subsequence of obtained by removing the elements of , with the remaining elements kept in their original order.
Conversely, when decoupled, the agent’s context retains the observation even when the action is [NULL]:
Curriculum learning in time
We find that learning exclusively under high time pressure results in a poor final policy (§ 4.2). Instead, we adopt a curriculum learning approach: throughout training we increase the time pressure on a fixed schedule. This allows the agent to experiment, develop, and refine its policy before experiencing harsh time-constraints. The agent therefore continually adapts a well-rounded policy for increasingly demanding real-time settings, rather than learning crutches and brittle compensatory strategies.

Figure 3. Increasing time pressure on a schedule in Frogger. As time pressure increases (i.e. is decreased), the agent is forced to adapt its policy to make faster decisions to survive.
We design our schedule to move from low to high time pressure at set intervals, where the change is proportional to the time pressure at the previous interval. Let and be the starting and target environment update intervals, the decay interval, and the total number of training steps. The environment update interval at step (denoted ) is:
Here is the proportional decrease in the environment update interval () each training steps, computed from the fixed values of , , , and . The resulting schedule is therefore an exponential curve, discretized into intervals of length , that reaches at step .
Experiments
We evaluate our RRT techniques in two real-time game environments: Frogger and Snake. These games are designed to balance planning (like deciding a route through busy traffic) with real-time reactions (such as avoiding an oncoming car). For each environment, we construct four task variants, each with their own objective and rewards. Each task is seeded, resulting in a large number of distinct configurations per task. We use different seeds for training and evaluation. Furthermore, we randomly select one task per environment to act as an out-of-distribution task—a task that is not used during training—to demonstrate that our techniques can generalize across tasks, not just environment configurations. We provide a detailed description of environments, tasks, and rewards in Section A. Through our experiments, we investigate the following:
How do our RRT techniques compare to baselines on in-distribution and out-of-distribution tasks? (§ 4.1)
How do using real-time trajectories, decoupling acting and observing, and curriculum learning in time each contribute to real-time performance? (§ 4.2)
What is the source of the advantage of our method over baselines? (§ 4.3)
Training settings and implementation details. We use Qwen3-4B ((Yang et al., 2025)) as our starting LLM policy. Each run is trained using GRPO ([14]). Following Yu et al. (2025), we train with no KL divergence penalty and apply asymmetric clipping (0.28 high, 0.2 low) on PPO updates. We train for steps, with a batch and group size of 256 and 8 rollouts, respectively. We sample rollouts using a temperature of 1.0. Inference and training both use bfloat16 floating point precision. For our schedule, we set and , for all training runs. We decay the schedule every steps. Experiments were run using H200 GPUs.
Baselines. As with our method, all baselines adopt Qwen3-4B ((Yang et al., 2025)) as the initial reasoning policy and the same training settings. We compare our method with the following approaches: Synchronous ([7]): We employ reasoning training on an LLM policy in synchronous versions of our environments. This agent learns to complete tasks without real-time constraints. S1 ([12]): We create a naive RRT baseline by training on top of S1 budget forcing. During training, reasoning is extended using the phrase “wait” and is truncated by forcing an action output when it reaches the budget cap. We set the budget to be —the maximum number of tokens before the environment transitions. Reactive: We train a baseline that only outputs actions, not reasoning. This results in a policy that acts almost instantly, but cannot use reasoning to improve its decision-making. AgileThinker (Wen et al. [16]): AgileThinker adapts a synchronous LLM agent into a real-time agent via a dual-thread system: one thread reasons continually while another thread uses that reasoning as input to make fast decisions. We use the Synchronous baseline to initialize AgileThinker with a strong policy that understands each environment.
Performance on Real-Time Tasks
We evaluate each method in every environment on in-distribution and out-of-distribution tasks over a range of time pressures () and report our results in Figure 4. A real-time environment can become synchronous if is too large (§ 2), so we evaluate over a range of where we observe a tradeoff between reasoning and acting for all methods. We find that:
Figure 4. Performance on real-time tasks. Earned reward in Frogger and Snake as time pressure increases (i.e. is decreased), on the in-distribution tasks (top) and the out-of-distribution task (bottom). Our method is compared with the Synchronous, S1, Reactive, and AgileThinker baselines. Each point is the average over 256 held-out seeds with 8 rollouts each.
Our method is the most robust to time pressure. At low time pressure (), our method is on par with the strongest baseline, S1, on both in-distribution and out-of-distribution tasks. However, as time pressure increases to , S1 loses 43% of its reward on average on in-distribution tasks and 54% on out-of-distribution tasks, while our method loses just 18% and 31%, respectively. The Synchronous baseline has the sharpest decline, losing nearly all (%) of its reward at high time pressure on all tasks. AgileThinker trades some of the performance of the Synchronous baseline under low time pressure for better performance at high time pressure, losing 60% and 52% on in-distribution and out-of-distribution tasks, but falls significantly behind our method and S1 in terms of absolute performance. The Reactive baseline is not sensitive to time pressure since it does not perform reasoning, but it achieves low reward overall on both in-distribution and out-of-distribution tasks.
Agents should learn under real-time constraints. The two approaches that train reasoning under real-time constraints—our method and S1—match or exceed every other baseline in all settings, achieving an average of 83% and 61% reward on out-of-distribution tasks over all time pressures. Non-RRT methods like AgileThinker and the Synchronous baseline perform poorly even under mild time pressure, each achieving an average of just 18% on out-of-distribution tasks. These methods are based on a policy that was trained in synchronous environments without real-time constraints, and they have not developed the real-time capabilities of RRT methods.
Reasoning is always useful. While the performance of all reasoning methods decreases as time pressure increases, we find that even at extreme time pressure RRT methods match or beat the non-reasoning Reactive baseline. On in-distribution tasks, our method and S1 beat the Reactive baseline with average margins of 33% and 15%, respectively. We also observe a sharp drop in performance for the Reactive baseline on out-of-distribution tasks, with average reward dropping by 28% compared to in-distribution tasks. The reasoning method with the largest drop was S1, which drops by just 10%. This suggests that without reasoning the Reactive baseline is also worse at adapting to unseen tasks.
Ablation
In Table 1 we ablate across our RRT techniques and measure their contribution to real-time performance. We evaluate on in-distribution and out-of-distribution Snake tasks at different time pressures.
| In-distribution | Out-of-distribution | |||||
| 200 | 100 | 50 | 200 | 100 | 50 | |
| Synchronous | 0.16 | 0.03 | 0.02 | 0.17 | 0.02 | 0.01 |
| + Real-time trajectories | 0.56 | 0.54 | 0.55 | 0.57 | 0.56 | 0.52 |
| + Decoupling acting & observing | 0.94 | 0.57 | 0.60 | 0.67 | 0.56 | 0.57 |
| + Curriculum learning in time | 0.94 | 0.90 | 0.85 | 0.89 | 0.73 | 0.60 |
Table 1. Table 1. Additive ablation on Snake. Each row adds one component of our method on top of the row above, starting from the Synchronous baseline. We report earned reward on the in-distribution tasks and on the out-of-distribution task under three levels of time pressure; smaller means more pressure. Averaged over 256 held-out seeds, 8 rollouts each.
As was the case previously, the Synchronous baseline performs poorly in all settings, and is particularly bad at the highest time pressures. Adding real-time trajectory training results in an average gain of 48 points in task performance (both in-distribution and out-of-distribution), with a relatively uniform increase in performance at different time pressures: 40 points at vs 52 points at . By decoupling acting and observing, performance increases by 10 points over all settings, but unlike adding real-time trajectories, the gain is skewed towards lower time pressures with 24 points at compared to 5 points at . Finally, Curriculum learning in time adds an average of 17 points over all settings, this time with most of the effect skewed towards higher time pressures, 25 at and 14 at compared to 11 at . Thus, together our RRT techniques contribute an average of 75 points over all settings, with the gain being relatively uniform: 75 points at compared to 71 points at .
Failure Analysis
Section 4.1 shows that our method is more robust to time pressure than baselines, but it does not explain why it has this advantage. To this end, we perform a large-scale failure analysis on training and deployment trajectories. In the real-time setting, we identify two primary categories of error:
Logic Errors: A logic error is a failure by action. This occurs when, given the current state, the agent reasons incorrectly and takes an action that results in failure. For example, if Frogger the agent can see that a car is about to move in front of it, but moves into that row anyway, causing a collision.
Real-Time Errors: A real-time error, by contrast, is a failure by inaction. This happens when the agent fails because the environment changed, and not because of an action taken by the agent. For example, if the agent is sitting in its lane while reasoning and a car hits the agent before it acts. Such an error is only possible in a real-time environment, where the environment updates without the agent acting.
We use our criteria to analyse what our method and baselines learn during training, and how that translates to real-time deployment. We compare to S1, since it is our best budget constrained baseline (beats Reactive in every setting) and to the Synchronous baseline, since AgileThinker is a deployment scaffold, not a trained method.
Training analysis. Figure 5 shows the percentage of trajectories that end in a logic error over training steps on in-distribution tasks in Frogger. We see that S1 makes the most logic errors at the start of training, with 60% of trajectories terminating in a logic error, compared to just 40% for our method and Synchronous. This is because S1 naively limits reasoning tokens per-action to to avoid real-time errors. By contrast, Synchronous has uncapped reasoning tokens, and at the start of training our method is effectively uncapped since the curriculum starts at very low time pressure. S1 does learn to use its budget more efficiently, dropping its logic errors to 50% by step 640, but both our method and Synchronous achieve near 0% logic errors by the end of training. In fact, our method matches the Synchronous error-rate throughout training, despite the effects of higher time pressure. This suggests that our method learns to allocate reasoning in a non-naive way, such that it maintains the analytical power of a synchronous model even under high time pressure.
Figure 5. Figure 5. Logic errors during training. Percentage of rollouts that end in a logic error over the course of training, for our method, S1, and the Synchronous baseline. Each checkpoint is evaluated on 256 held-out seeds with 8 rollouts each.
Deployment analysis. Table 2 breaks down final checkpoint performance by logic errors, real-time errors, and success on out-of-distribution tasks over a range of time pressures in Frogger. As we saw previously, the Synchronous baseline learns to minimize logic errors. Correspondingly, it makes no logic errors in our evaluation. Instead, the error rate is dominated by real-time errors, which occur in 100% of trajectories under high () time pressure. Budgeted methods have the opposite problem. By construction, S1 does not experience real-time errors since it must act every tokens. Instead, as time pressure increases, S1 makes more logic errors as it is unable to reason accurately within its constrained budget. Our method is the only one that learns to reduce both logic and real-time errors during training. Both error types increase with time pressure, but our method balances them, winning 45% more often at the highest time pressure than the next-best baseline, S1.
| Method | Outcome | 400 | 200 | 100 | 50 |
| Synchronous | Real-time error | 50.8 | 92.0 | 99.7 | 100.0 |
| Logic error | 0.0 | 0.0 | 0.0 | 0.0 | |
| Won | 49.2 | 8.0 | 0.3 | 0.0 | |
| S1 | Real-time error | 0.0 | 0.0 | 0.0 | 0.0 |
| Logic error | 2.8 | 72.2 | 72.7 | 75.8 | |
| Won | 97.2 | 27.8 | 27.3 | 24.2 | |
| Ours | Real-time error | 3.4 | 5.3 | 11.6 | 19.0 |
| Logic error | 2.0 | 2.9 | 0.1 | 11.7 | |
| Won | 94.6 | 91.8 | 88.3 | 69.3 |
Table 2. Failure analysis. Percentage of evaluation episodes that end in a real-time error, end in a logic error, or are won, under each level of time pressure; smaller means more pressure. Computed over 256 held-out seeds, 8 rollouts each.
Related Work
Real-time LLM agents. Previous work has sought to adopt LLM agents in real-time environments using scaffolded approaches. These methods are inspired by dual-process theory, which posits that human cognition is the product of two distinct modes of processing: a fast, automatic mode (System 1) and a slow, deliberate mode (System 2). In these scaffolds, System 1 is typically a small language model ([11]) or a vision transformer ([4]), while System 2 is a tool-augmented LLM ([3]). However, these methods rely on a pre-defined ratio between slow and fast systems to control the amount of deliberate reasoning per-action. By contrast, we are the first to employ reasoning training to natively instill this capability into our agent. This helps to explain the difference in performance between our method and AgileThinker in § 4.1.
Controlling reasoning length. LCPO ([1]) and BudgetThinker ([15]) train models to obey explicit reasoning-length constraints, while S1 ([12]) controls its budget at inference-time. These approaches make the time and cost of inference controllable. However, the budget must be specified a priori which does not transfer well to real-time environments, where the optimal amount of reasoning varies depending on the state. Methods such as TALE, Thinkless, and AdapThink ([8, 5] (Xu et al. 2026)) allocate compute based on properties such as problem difficulty, allowing harder problems to receive more reasoning than easier ones. Our method is similar in that it learns to allocate reasoning according to problem difficulty, but unlike these methods it also accounts for time pressure, where extra reasoning may result in a worse answer.
Learning transferable reasoning from games. Prior work shows that reinforcement learning in games can produce reasoning that transfers to held-out environments and benchmarks ([2, 10] (Xie et al. 2025)). These results demonstrate that game-based training can teach general reasoning strategies rather than only game-specific behavior. We observe similar behavior in § 4.1, where RRT methods transfer well to out-of-distribution tasks. However, previous approaches show this in synchronous environments, while ours are real-time.
Limitations and Conclusion
We introduced real-time reasoning training (RRT), which teaches LLM agents when to keep reasoning and when to act, without a scaffold or a predefined reasoning budget. In real-time games, our method stays robust as time pressure increases where baselines degrade, and it is the only method that learns to reduce both logic and real-time errors. However, our curriculum requires control over the environment’s update interval, which is unavailable in the physical world. We also measure time in tokens, not wall-clock time, and evaluate a single 4B-parameter model in 2D games with discrete actions, so generalization beyond this setting remains unclear. As our techniques are not game-specific, we hope RRT inspires time-aware agents in other domains.
Environments, Tasks and Rewards
Table 3 describes each task and its reward condition for both environments.
| Environment | Task type | Description | Reward condition |
| Frogger | In-distribution | Cross a board from the bottom row to the top row while cars slide sideways along their rows and wrap around. | 1.0 for reaching the top row; 0.0 if hit by a car. |
| In-distribution | Same crossing, but three numbered checkpoint tiles on car rows must be visited in ascending order before reaching the top row. Stepping on a checkpoint out of order ends the game, as does reaching the top row. | Fraction of the four objectives completed (three checkpoints plus the top row). The top row only counts once all three checkpoints are visited. | |
| In-distribution | The basic crossing rotated a quarter turn on a board: lanes are columns with cars sliding up or down, and the frog crosses from the rightmost column to the leftmost. | 1.0 for reaching the goal column; 0.0 if hit by a car. | |
| Out-of-distribution | Round trip: reach the top row, then return to the exact starting cell on the bottom row while traffic keeps moving. Touching the top row does not end the game. | 1.0 for the full round trip; 0.5 for reaching the top but dying on the return; 0.0 for dying on the way up. | |
| Snake | In-distribution | Snake on a board with 5 static boulders. Eat 5 food items, each respawning after it is eaten; hitting a wall, the snake’s own body or a boulder ends the game. | 1.0 for eating all 5; otherwise food eaten / 5. |
| In-distribution | Same board with the roles swapped: eat 5 boulders and avoid 5 static apples. | 1.0 for eating all 5 boulders; otherwise boulders eaten / 5. | |
| In-distribution | Five lettered objects (A–E) are placed at the start; a random 1–4 of them are deadly and the rest are collectible, as labelled in the state. Collect all the collectibles in any order; touching a deadly one ends the game. | Fraction of collectible objects eaten (the denominator varies per episode); 1.0 for collecting them all. | |
| Out-of-distribution | Five numbered food items are placed at the start and must be eaten in ascending order (1 to 5). Only the lowest remaining number is safe; touching any higher number ends the game. | 1.0 for eating all 5 in order; otherwise items eaten / 5. |
Table 3. Environments, tasks, and rewards. Each environment has three in-distribution tasks used for training and one out-of-distribution task held out for evaluation.
References
- [1]Aggarwal, P. and Welleck, S. L1: Controlling how long a reasoning model thinks with reinforcement learn- ing, 2025. URL https://arxiv.org/abs/2503.04697.
- [2]Cheng, P., Hu, T., Xu, H., Zhang, Z., Yuan, Z., Dai, Y., Han, L., Du, N., and Li, X. Self-playing adversarial language game enhances LLM reasoning. In Advances in Neural Information Processing Systems, 2024. URL https://arxiv.org/abs/2404.10642.
- [3]Christakopoulou, K., Mourad, S., and Matarić, M. Agents thinking fast and slow: A talker-reasoner architecture, 2024. URL https://arxiv.org/abs/2410.08328.
- [4]Cui, C., Ding, P., Song, W., Bai, S., Tong, X., Ge, Z., Suo, R., Zhou, W., Liu, Y., Jia, B., Zhao, H., Huang, S., and Wang, D. Openhelix: A short survey, empirical analysis, and open-source dual-system VLA model for robotic manipulation, 2025. URL https://arxiv.org/abs/2505.03912.
- [5]Fang, G., Ma, X., and Wang, X. Thinkless: LLM learns when to think, 2025. URL https://arxiv.org/abs/2505.13379.
- [6]Feng, J., Huang, S., Qu, X., Zhang, G., Qin, Y., Zhong, B., Jiang, C., Chi, J., and Zhong, W. Retool: Reinforcement learning for strategic tool use in LLMs. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=tRk1noFSMz.arxiv.org/abs/2504.11536
- [7]Guo, D., Yang, D., Zhang, H., Song, J., Wang, P., Zhu, Q., Xu, R., Zhang, R., Ma, S., Bi, X., Zhang, X., Yu, X., Wu, Y., Wu, Z. F., Gou, Z., Shao, Z., Li, Z., Gao, Z., Liu, A., Xue, B., Wang, B., Wu, B., Feng, B., Lu, C., Zhao, C., Deng, C., Ruan, C., Dai, D., Chen, D., Ji, D., Li, E., Lin, F., Dai, F., Luo, F., Hao, G., Chen, G., Li, G., Zhang, H., Xu, H., Ding, H., Gao, H., Qu, H., Li, H., Guo, J., Li, J., Chen, J., Yuan, J., Tu, J., Qiu, J., Li, J., Cai, J. L., Ni, J., Liang, J., Chen, J., Dong, K., Hu, K., You, K., Gao, K., Guan, K., Huang, K., Yu, K., Wang, L., Zhang, L., Zhao, L., Wang, L., Zhang, L., Xu, L., Xia, L., Zhang, M., Zhang, M., Tang, M., Zhou, M., Li, M., Wang, M., Li, M., Tian, N., Huang, P., Zhang, P., Wang, Q., Chen, Q., Du, Q., Ge, R., Zhang, R., Pan, R., Wang, R., Chen, R. J., Jin, R. L., Chen, R., Lu, S., Zhou, S., Chen, S., Ye, S., Wang, S., Yu, S., Zhou, S., Pan, S., Li, S. S., Zhou, S., Wu, S., Yun, T., Pei, T., Sun, T., Wang, T., Zeng, W., Liu, W., Liang, W., Gao, W., Yu, W., Zhang, W., Xiao, W. L., An, W., Liu, X., Wang, X., Chen, X., Nie, X., Cheng, X., Liu, X., Xie, X., Liu, X., Yang, X., Li, X., Su, X., Lin, X., Li, X. Q., Jin, X., Shen, X., Chen, X., Sun, X., Wang, X., Song, X., Zhou, X., Wang, X., Shan, X., Li, Y. K., Wang, Y. Q., Wei, Y. X., Zhang, Y., Xu, Y., Li, Y., Zhao, Y., Sun, Y., Wang, Y., Yu, Y., Zhang, Y., Shi, Y., Xiong, Y., He, Y., Piao, Y., Wang, Y., Tan, Y., Ma, Y., Liu, Y., Guo, Y. Q., Ou, Y., Wang, Y., Gong, Y., Zou, Y., He, Y., Xiong, Y., Luo, Y., You, Y., Liu, Y., Zhou, Y., Zhu, Y. X., Huang, Y., Li, Y., Zheng, Y., Zhu, Y., Ma, Y., Tang, Y., Zha, Y., Yan, Y., Ren, Z. Z., Ren, Z., Sha, Z., Fu, Z., Xu, Z., Xie, Z., Zhang, Z., Hao, Z., Ma, Z., Yan, Z., Wu, Z. G., Zhu, Z., Liu, Z., Li, Z., Xie, Z., Song, Z., Pan, Z., Huang, Z., Xu, Z., Zhang, Z., and Zhang, Z. Deepseek-r1 incentivizes reasoning in llms through reinforcement learning. Nature, 645(8081):633–638, September 2025. ISSN 1476-4687. doi: 10.1038/s41586-025-09422-z. URL http://dx.doi.org/10.1038/s41586-025-09422-z.
- [8]Han, T., Wang, Z., Fang, C., Zhao, S., Ma, S., and Chen, Z. Token-budget-aware LLM reasoning, 2024. URL https://arxiv.org/abs/2412.18547.
- [10]Liu, B., Guertler, L., Yu, S., Liu, Z., Qi, P., Balcells, D., Liu, M., Tan, C., Shi, W., Lin, M., Lee, W. S., and Jaques, N. SPIRAL: Self-play on zero-sum games incentivizes reasoning via multi-agent multi-turn reinforcement learning, 2025. URL https://arxiv.org/abs/2506.24119.
- [11]Liu, J., Yu, C., Gao, J., Xie, Y., Liao, Q., Wu, Y., and Wang, Y. LLM-powered hierarchical language agent for real-time human-AI coordination, 2024. URL https://arxiv.org/abs/2312.15224.
- [12]Muennighoff, N., Yang, Z., Shi, W., Li, X. L., Fei-Fei, L., Hajishirzi, H., Zettlemoyer, L., Liang, P., Candès, E., and Hashimoto, T. s1: Simple test-time scaling, 2025. URL https://arxiv.org/abs/2501.19393.
- [14]Shao, Z., Wang, P., Zhu, Q., Xu, R., Song, J., Bi, X., Zhang, H., Zhang, M., Li, Y. K., Wu, Y., and Guo, D. Deepseekmath: Pushing the limits of mathematical reasoning in open language models, 2024. URL https://arxiv.org/abs/2402.03300.
- [15]Wen, H., Wu, X., Sun, Y., Zhang, F., Chen, L., Wang, J., Liu, Y., Liu, Y., Zhang, Y.-Q., and Li, Y. Budget-Thinker: Empowering budget-aware LLM reasoning with control tokens, 2025. URL https://arxiv.org/abs/2508.17196.
- [16]Wen, Y., Ye, Y., Zhang, Y., Yang, D., and Zhu, H. Real-time reasoning agents in evolving environments. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=n1AvXiU2lu.arxiv.org/abs/2511.04898


