Grafy News
Try Grafy free

New training method helps AI agents reason in real-time

Researchers have introduced Real-Time Reasoning Training (RRT) to help AI agents balance thinking and acting in dynamic, changing environments.

Illustration for the news story: New training method helps AI agents reason in real-timeSource: Grafy Research Lab

AI agents currently struggle to function in worlds that do not pause for their deliberation. Researchers have developed a new class of training techniques called Real-Time Reasoning Training (RRT) to enable agents to balance the need for deep thought with the necessity of rapid action in dynamic environments.

Why do current AI agents struggle with time?

Most modern Large Language Model (LLM) agents are trained in synchronous environments. According to the research paper by Xavier Schneider et al., these environments are static; the world essentially waits for the agent to complete its reasoning and provide an action before anything changes. This setup is effective for tasks like coding or mathematical problem-solving where the state of the system remains frozen during the agent's "thinking" phase.

However, the real world is asynchronous. In a real-time environment, the state of the world changes independently of the agent's actions. The authors note that current agents perform poorly under even mild time pressure because they lack the ability to account for how time should influence their decision-making process. An agent in a real-world scenario must learn to act immediately when a delay would be costly, while also knowing when it is beneficial to reason longer to achieve a better outcome.

What is Real-Time Reasoning Training (RRT)?

To bridge the gap between synchronous training and real-time application, the researchers introduced RRT. This approach moves away from predefined ratios of thinking to acting—a method used in previous scaffolding attempts—and instead teaches the agent to manage its own cognitive load based on the situation.

The researchers developed three core techniques within the RRT framework:

  1. Using real-time data: Rather than training on static snapshots, agents are trained using trajectories from actual real-time interactions.
  2. Decoupling acting and observing: In traditional training, an agent only receives new information after it has acted. The RRT method allows observations to be added to the agent's context as they occur in the environment, even while the agent is still in the middle of its reasoning process.
  3. Curriculum learning in time: To help agents adapt to increasing difficulty, the training begins in slow-moving environments and gradually introduces higher levels of time pressure.

How effective is this new approach?

way The effectiveness of RRT was tested in two classic dynamic environments: Frogger and Snake. The researchers compared their RRT-trained agents against several baselines, including non-reasoning agents and scaffolded agents that use a secondary LLM to speed up responses.

According to the study, the RRT techniques significantly outperformed the strongest non-RRT baselines. On tasks that were part of the initial training distribution (in-distribution), the RRT agents achieved an average reward increase of 33%. When tested on tasks they had not seen before (out-of-distribution), the performance gap was even wider, with an average reward increase of 55%. These results suggest that teaching agents to manage the trade-off between reasoning depth and responsiveness creates more robust and capable autonomous systems.

What are the mathematical implications for agent modeling?

To formalize these environments, the authors model an environment as a tuple E=(S,A,mathcalT)\mathcal{E}=(\mathcal{S},\mathcal{A},\\mathcal{T}), where S\mathcal{S} represents the state space, A\mathcal{A} is the action space, and T:S×A→S\mathcal{T}:\mathcal{S}\times\mathcal{A}\rightarrow\mathcal{S} is the state transition function.

In a synchronous model, the environment only transitions once the agent's policy π\pi has finished sampling reasoning tokens rtr_{t} and an action ata_{t}. In contrast, the real-time model introduces an update interval ΔE>0\Delta_{\mathcal{E}} > 0. This interval determines how frequently the environment transitions, regardless of whether the agent has finished its reasoning. This allows the agent to experience a state st+1s_{t+1} that may be significantly different from the state sts_{t} it began reasoning about, forcing the agent to incorporate new, mid-thought observations into its final decision.

How can researchers apply these findings?

For developers working on autonomous agents, this research highlights that the data used for fine-tuning is just as critical as the model architecture itself. If an agent is intended for robotics, live gaming, or real-time web navigation, training it in a "frozen" environment may lead to catastrophic failures when deployed in the wild. The transition from synchronous to asynchronous observation is a key architectural shift for building agents that can handle the unpredictability of real-world timing.

If you are interested in exploring the latest research papers on agentic workflows and machine learning architectures, you can use Reader to upload and query academic PDFs, or use Grafy Chat to discuss these complex concepts with various high-reasoning models.

Frequently asked questions

What is the main difference between synchronous and real-time environments?

In synchronous environments, the world waits for the AI agent to finish its reasoning and provide an action before the environment updates. In real-time environments, the state of the world changes at regular intervals or according to its own schedule, regardless of whether the agent has finished thinking or acting.

How does curriculum learning in time work?

Curriculum learning in time involves training an AI agent in environments where time pressure is very low, meaning the environment moves slowly. As the agent becomes more proficient at balancing reasoning and action, the researchers gradually increase the speed of the environment, forcing the agent to adapt to harsher and more demanding time constraints.

Does RRT improve performance on new tasks?

Yes, the research demonstrates that RRT provides significant benefits for out-of-distribution tasks. While in-distribution tasks saw a 33% average reward improvement, tasks that were outside the original training set saw a 55% average reward improvement compared to the strongest non-RRT baselines.

Source: Xavier Schneider, Benjamin Schneider, Sun Sun, Olga Vechtomova, and Victor Zhong, "Learning to Reason in Real-Time" (arXiv:2611.33513)


Source: Grafy Research Lab — Learning to Reason in Real-Time