Real-Time Reasoning Agents in Evolving Environments

Yule Wen, Yixin Ye, Yanzhe Zhang, Diyi Yang, Hao Zhu · DOI

Real-Time Reasoning Agents in Evolving Environments

Introduction

Large Language Model (LLM) agents have demonstrated remarkable capabilities in turn-based, static environments. However, their performance often degrades in dynamic, "evolving" environments where the world continues to change while the agent computes its next move. This paper introduces AgileThinker, a dual-thread architecture designed to bridge the gap between slow, strategic reasoning and fast, reactive execution.

The Challenge: Reactive vs. Planning Agents

In real-time scenarios—such as driving or competitive gaming—agents face a fundamental trade-off. Reactive agents are fast and responsive but often lack the depth to avoid long-term pitfalls. Conversely, Planning agents (e.g., those using Chain-of-Thought or search) can devise sophisticated strategies but suffer from "obliviousness": by the time a complex plan is generated, the environment state it was based on is obsolete.

The AgileThinker Architecture

Inspired by human dual-process theory, AgileThinker employs two parallel threads:

  1. The Planning Thread ($P$): Utilizes a high-capacity "thinking" model (e.g., DeepSeek-R1) to perform deep reasoning over an environment snapshot.
  2. The Reactive Thread ($R$): A faster model (e.g., DeepSeek-V3) that operates under a strict time budget to ensure timely actions.

A key innovation of AgileThinker is the ability of the reactive thread to "peek" into the ongoing reasoning traces of the planning thread. Even if the planner hasn't finished, its intermediate thoughts provide valuable context that helps the reactive thread make more informed decisions than it could in isolation.

Experimental Setup: The Real-Time Reasoning Gym

To evaluate agents in dynamic settings, the authors developed the Real-Time Reasoning Gym, adapting three classic games:

  • Freeway: Requires navigating traffic to avoid hazards.
  • Snake: Demands seizing transient opportunities (food) before they disappear.
  • Overcooked: Necessitates real-time coordination with a partner.

The benchmark measures performance across varying levels of Cognitive Load (task complexity) and Time Pressure (measured in tokens per environment step).

Key Results and Discussion

AgileThinker consistently outperforms single-paradigm baselines, particularly as environmental demands increase.

AgileThinker performance across different cognitive loads and time pressures in the Real-Time Reasoning Gym.

As shown in the figure above, AgileThinker maintains high performance even under high cognitive load and extreme time pressure. In the "Hard" Freeway setting, it maintained a score of 0.50, significantly higher than the 0.05 score of the reactive-only baseline. Furthermore, the architecture's effectiveness was validated using wall-clock time with the DeepSeek API, where it reached a score of 0.88, far exceeding both purely reactive (0.24) and purely planning (0.12) approaches.

Conclusion

AgileThinker demonstrates that real-time intelligence requires a synergy between fast reaction and deep reasoning. By allowing a reactive system to leverage partial insights from a slower planning process, agents can remain both strategic and timely in rapidly changing worlds. Future work will explore training "urgency-aware" models and applying this architecture to complex domains like robotics.

Summary updated

BibTeX
@inproceedings{wen2026real,
  author = {Yule Wen and Yixin Ye and Yanzhe Zhang and Diyi Yang and Hao Zhu},
  title = {{Real-Time Reasoning Agents in Evolving Environments}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=n1AvXiU2lu},
}
Figure