arXiv(opens in a new tab)cs.LGSep 2026Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2609.11042

T1: Terminal Agent Reinforcement Learning for Long-Horizon Tasks

Junyao Yang, Yucheng Shi, Zhongzhi Li, Ruhan Wang, Zongxia Li, Haitao Mi, Leowei Liang

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

Junyao Yang 1,2,∗,†^{1,2,*,\dagger}, Yucheng Shi 1,∗^{1,*}, Zhongzhi Li 1,3^{1,3}, Ruhan Wang 1,4^{1,4}, Zongxia Li 1,5^{1,5}, Haitao Mi 1^{1}, Leowei Liang 1^{1}

1^{1}Tencent Hy Foundation Model Frontier 2^{2}National University of Singapore 3^{3}University of Georgia 4^{4}Indiana University 5^{5}University of Maryland, College Park

*Equal Contribution, †Corresponding Author

junyaoyang@u.nus.edu, tberiusyang@global.tencent.com

Agent usage is shifting toward long-horizon tasks such as coding and scientific discovery, among which terminal tasks are especially important. We introduce T1, a Mixture-of-Experts model of 122B total trained with reinforcement learning, operating a real shell in a cloud sandbox for up to 300+ tool-call turns per task, rewarded by executing each task's own verifier. We provide a comprehensive recipe: First, an aggressively warm-started to stabilize actor-critic training, with a dense process reward scoring trajectories by the absolute number of passing verifiers. Second, stable optimization through TITO construction, training on the exact sampled token identifiers with drift repair at turn boundaries, and rollout routing replay, recording the sampler's per-token expert choices at every MoE layer and replaying them during training. Third, fully out-of-distribution training corpus: isolated seeds and synthesized tasks disjoint from Terminal-Bench 2.1 ensures gains reflect genuine capability transfer over benchmark overfitting. Together, TITO and R 3^{3} cut the training-to-inference log-probability difference from 0.021 to 0.013, with exactly aligned zero token drift in the loss region. On Terminal-Bench 2.1, our post-train pipeline raises initial base model from 43.8% to T1 with 64.0% resolved. On Long-Horizon Terminal Bench, T1 reaches 27.9% and surpasses GPT-5.4 and GLM-5.1.

Terminal-Bench 2.1 [%]

Figure

Figure 1 Performance vs. model size under the same agent harness (Terminal-Bench 2.1 resolved rate). At 122B, T1 achieves 64.0%, outperforming GPT-5.4 (54.8%), DeepSeek-V4-Flash (56.9%), and Claude Opus 4.6 (63.8%). It closely approaches Claude Opus 4.7 (66.1%), and is the best model in its size band.

Project Page

HuggingFace

Date: September 10, 2026

Contents

1 Introduction 4

2 Training framework 5
2.1 Recursive Synthesis Terminal Training Tasks 5
2.2 Stable MoE Reinforcement Learning 6
2.3 Dense Verification Reward Design 6
2.4 Performance on Long-Horizon and Challenge Terminal Tasks 6

3 Terminal Dataset 6
3.1 Overview 6
3.2 Dataset Construction 7

4 Stabilizing MoE RL training 8
4.1 Training-Inference Mismatch 8
4.2 TITO: token-in, token-out 9
4.3 R³: rollout routing replay 10
4.4 Measuring Training Stability of T1 11
4.5 Critic-side stability 12

5 Dense Verification Reward Design 13
5.1 From sparse outcomes to dense verification signals 13
5.2 Per-assertion verification and the test-count reward 14
5.3 Credit assignment 15
5.4 Preventing reward hacking 16

6 Results 16
6.1 Benchmark and Harness 16
6.2 Main results 17
6.3 Training dynamics 19
6.4 Case study: detailed evaluation across benchmarks 20

7 Infrastructure 22
7.1 A capacity model for co-resident actor-critic pairs 22
7.2 Context parallelism for the recurrent operator 23
7.3 Liveness under hour-scale steps 23
7.4 Environment concurrency and the straggler tail 24
7.5 The publication barrier and rollout/training balance 24

8 Related Work 25

9 Lessons learned and what did not work 25
9.1 Critic calibration does not guarantee policy improvement 26
9.2 Context management determines what the agent can learn 26
9.3 Rollout throughput changes the training distribution 26
9.4 Why PPO rather than a critic-free group baseline 27

10 Limitations and future work 27

A Notation 31

B Asynchrony, version skew, and routing alignment 33
B.1 The one-step-ahead loop 33

B.2 Three distinct gaps, one measured quantity ..... 33
B.3 Routing alignment across a version boundary ..... 34
B.4 Version bookkeeping in the critic path ..... 34
C Case Study ..... 35

References (35)