AREX-2: Advancing Self-Improving Agents through Long-Horizon Reflective Tasks

Hongjin Qian, Chaofan Li, Kun Luo, Wenqing Wei, Jianlyu Chen, Shuqi Lu, Yuyang Hu, Hongwang Xiao, Hui Wang, Chaozhuo Li, Qiwei Ye, Zhicheng Dou, Defu Lian, Zheng LiuarXiv 2026

TL;DR

AREX-2 is a 27B-parameter agent that masters the art of "self-improvement"—the ability to iteratively refine its own solutions at test time. By training on long-horizon "reflection" trajectories synthesized from machine learning and coding tasks, the model learns to use feedback and recover from setbacks, allowing it to outperform models nearly 60x its size on complex research and engineering benchmarks.

What Problem Does This Paper Address?

Most current LLM agents are "one-shot" thinkers. While they might be wrapped in a "scaffold" that retries a task if it fails, the model itself usually isn't trained to handle the messy, iterative process of real-world problem-solving.

Standard training datasets typically only include the final, successful solution to a problem. This discards the most valuable part of the learning process: the failed attempts, the debugging logs, and the subsequent revisions. Consequently, agents often struggle with "long-horizon" tasks where a solution must be built over hours of trial and error. The authors of AREX-2 aim to move this improvement loop inside the model, teaching it two core meta-skills: reflection (judging what to change) and long-horizon execution (staying productive over many rounds without stalling).

Methods

The researchers built AREX-2 using a three-stage pipeline designed to elicit "long-horizon reflection":

  1. Environment Construction: They turned GitHub repositories and online programming judges into executable sandboxes. Unlike standard benchmarks, these environments provide "graded" feedback (e.g., the percentage of tests passed) rather than a simple pass/fail, making each round of iteration informative.
  2. Trajectory Synthesis: A teacher agent was given a massive budget—hundreds of tool calls and hours of wall-clock time—to solve these tasks. Crucially, the researchers kept the entire trajectory. If the agent tried a strategy, failed, and then recovered, that whole sequence became training data. This teaches the model that setbacks are part of the process.
  3. Operational Knowledge: To succeed, agents need to understand their environment (e.g., specific API constraints). The authors provided "skills"—compact documents or search results—to the agent during training and test time, helping it acquire the necessary context to iterate effectively.
Overview of the AREX-2 pipeline: from environment construction to test-time improvement.

The final model was fine-tuned from Qwen3.8-27B using imitation learning on these synthesized trajectories.

Datasets

  • Training: Synthesized trajectories from GitHub (machine learning engineering) and Online Judges (algorithmic programming). It also utilized the deep-research data from the original AREX recipe.
  • Evaluation: The model was tested across six diverse benchmarks:
  • Frontier-CS & MLE-bench Lite: Verifiable coding and ML engineering tasks.
  • BrowseComp, HLE, GAIA, & DeepSearchQA: "Deep research" tasks involving information gathering and multi-step reasoning.

Key Insights and Ideas

  • Self-Improvement as a Meta-Skill: The authors hypothesized that the ability to iterate is domain-agnostic. Their results prove this: training on coding and ML tasks directly improved the model's performance on general deep research tasks, even though no new research-specific data was added.
  • The Value of Failure: By not filtering out "failed" steps in the training trajectories, the model learned how to diagnose errors and change strategies. A model trained only on perfect steps has no "recovery" mechanism when it inevitably hits a snag at test time.
  • Test-Time Scaling: AREX-2 exhibits a clear "compute-to-performance" trade-off. As shown in Figure 4, the model's score continues to climb as it is given more time and rounds to work on a problem, whereas baseline models often plateau or "stall" much earlier.
Test-time scaling on Frontier-CS shows AREX-2 continuing to improve long after other models plateau.

Key Results

AREX-2 (27B) punches significantly above its weight class, often matching or exceeding the performance of "Large" models with hundreds of billions or even trillions of parameters.

  • MLE-bench Lite: Achieved a score of 81.8, the highest among all compared models (including GPT-5.6 Sol).
  • Frontier-CS: Reached 70.7, leading the open-weight category by a wide margin.
  • Efficiency: In the BrowseComp benchmark, AREX-2 (27B) outperformed the much larger AREX (122B) while using less than half the number of turns to reach its peak accuracy.
Model size vs. performance: AREX-2 (27B) matches or exceeds much larger models across multiple benchmarks.

Limitations and Future Work

While AREX-2 is a leader among open-weight models, a performance gap still exists compared to the absolute strongest closed-weight systems (like GPT-5.6 Sol) on certain high-level reasoning benchmarks like HLE.

The authors suggest that the next step is to "close the loop" entirely: letting the model's own successful self-improvement trajectories become the training data for the next generation of agents. They also aim to widen the training domains and lengthen the execution horizons even further to see where the limits of test-time scaling truly lie.

Summary updated

BibTeX
@misc{qian2026arex,
  author = {Hongjin Qian and Chaofan Li and Kun Luo and Wenqing Wei and Jianlyu Chen and Shuqi Lu and Yuyang Hu and Hongwang Xiao and Hui Wang and Chaozhuo Li and Qiwei Ye and Zhicheng Dou and Defu Lian and Zheng Liu},
  title = {{AREX-2: Advancing Self-Improving Agents through Long-Horizon Reflective Tasks}},
  year = {2026},
  eprint = {2609.38288},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.38288},
}
Figure