HARTS Accelerates Agentic RL for Hybrid-Attention Models

Boyuan Meng (Ant Group, China), Peihua Bao (Ant Group, China), Hong Liu (Ant Group, China), Xiaowei Zhu (Ant Group, China), Chao Wang (Ant Group, China), Gen Li (Ant Group, China), Zhenxuan Pan (Ant Group, China)· August 31, 2026 View original

Key takeaways

  • HARTS significantly accelerates agentic RL for hybrid-attention models.
  • It efficiently handles irregular rollout trees by compressing shared prefixes.
  • The system optimizes microbatching and data-parallel execution.
  • HARTS achieved nearly 5x speedup on agentic RL workloads.

Who benefits

AI/ML DevelopmentRoboticsSoftware EngineeringGaming

Summary

HARTS is a new system that significantly speeds up agentic reinforcement learning for hybrid-attention models by efficiently handling irregular rollout trees with shared histories. It achieves substantial speedups by optimizing microbatching, data-parallel assignments, and prefix compression.

Agentic reinforcement learning (RL) often generates complex, irregular rollout trees where different trajectories share common historical prefixes. Traditional training methods recompute these shared prefixes repeatedly, leading to inefficiencies, especially with hybrid-attention models that combine different attention mechanisms. Existing systems typically focus on full-attention models and lack the necessary dense, differentiable execution for hybrid-attention with activation recomputation. HARTS (Hybrid-Attention RL over Tree Structures) addresses these challenges by jointly planning microbatches, data-parallel replica assignments, and microbatch-slot schedules. It employs non-replay compact-token work after compressing shared prefixes. For chunkwise linear attention, HARTS uses a linear-time algorithm to coordinate state recovery and replay, minimizing sequential linear-attention calls. The system preserves chunkwise state partitioning, avoiding redundant computations and performing only bounded state replay for numerical alignment. HARTS batches all branches into a single packed call per round, propagates gradients through differentiable state handoffs, supports activation recomputation, and restores per-token log-probabilities. On SWE-bench tasks, HARTS demonstrated 4.81-4.87x speedup in forward/backward/gradient passes with activation recomputation, making it a significant advancement for efficient agentic RL.

Why it matters

For professionals developing or deploying agentic AI systems, HARTS offers a substantial performance boost, enabling faster training and iteration cycles for complex reinforcement learning models, especially those using hybrid attention.

How to implement this in your domain

  1. 1Evaluate HARTS for agentic RL workloads, particularly those involving hybrid-attention models.
  2. 2Integrate HARTS into existing RL training pipelines to leverage its prefix-sharing and microbatching optimizations.
  3. 3Benchmark HARTS performance against current RL systems on specific agentic tasks to quantify speedups.
  4. 4Explore adapting HARTS's principles to other complex sequential data processing tasks beyond RL.

Original post by Boyuan Meng (Ant Group, China), Peihua Bao (Ant Group, China), Hong Liu (Ant Group, China), Xiaowei Zhu (Ant Group, China), Chao Wang (Ant Group, China), Gen Li (Ant Group, China), Zhenxuan Pan (Ant Group, China)

"arXiv:2608.28158v1 Announce Type: new Abstract: Agentic reinforcement learning (RL) often produces irregular rollout trees with shared histories. Training root-to-leaf trajectories independently recomputes these shared prefixes. Existing systems primarily target full-attention mo…"

View on X

Originally posted by Boyuan Meng (Ant Group, China), Peihua Bao (Ant Group, China), Hong Liu (Ant Group, China), Xiaowei Zhu (Ant Group, China), Chao Wang (Ant Group, China), Gen Li (Ant Group, China), Zhenxuan Pan (Ant Group, China) on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses