AstraFlow: Dataflow-Oriented Reinforcement Learning for Agentic LLMs

Haizhong Zheng, Yizhuo Di, Jiahui Wang, Shuowei Jin, Xueshen Liu, Yongji Wu, Z. Morley Mao, Ion Stoica, Jiawei Zhao, Beidi Chen

TL;DR

AstraFlow is a novel, dataflow-oriented reinforcement learning (RL) system designed specifically for scaling complex, multi-policy LLM agents. By replacing traditional trainer-centric control loops with decoupled, autonomous abstractions for dataflow, rollouts, and training, AstraFlow natively supports elastic scaling and heterogeneous cross-region compute. It achieves up to a 2.7× training speedup over existing frameworks while maintaining or improving model accuracy.

What Problem Does This Paper Address?

Reinforcement learning is crucial for boosting the reasoning, coding, and tool-use capabilities of LLMs. However, applying RL to agentic workflows (e.g., multi-agent coding or search tasks) is prohibitively expensive and architecturally rigid.

Existing LLM RL frameworks are typically trainer-centered: a centralized trainer loop tightly orchestrates rollout scheduling, data movement, policy optimization, and weight synchronization. When developers want to introduce multi-policy collaborative training, elastic scaling, or heterogeneous hardware (like mixing local H100s with remote, cheaper GPUs), they must write complex, ad-hoc system patches. Compute decoupling alone (separating rollout and training pools) doesn't solve this control-loop rigidity.

Methods

AstraFlow introduces a dataflow-oriented coordination paradigm where rollout services, data management, and trainers operate as completely autonomous components interacting via minimal data and weight interfaces.

Overview of the AstraFlow architecture, showing decoupled dataflow layer, RaaS pools, and independent trainers.

The architecture is built on three core abstractions:

  1. Dataflow Layer: Acts as the coordination plane. Instead of a centralized controller, this layer uses shared data buffers to regulate interactions. It exposes a programmable interface for modular data algorithms (e.g., dynamic sampling, post-rollout filtering, and replay buffers).
  2. Rollout-as-a-Service (RaaS): Treats trajectory generation as a pure inference serving task. RaaS nodes pull tasks from the dataflow layer and push completed trajectories back. This makes rollout engines hot-swappable and elastically scalable.
  3. Trainers: Autonomous backends that pull training batches from the dataflow layer and publish updated weights back to a Weight Manager.

To handle cross-region or bandwidth-constrained deployments, AstraFlow implements a Fully Asynchronous Pull-based Sparse Weight Update mechanism. Recognizing that consecutive RL training iterations share over 98% identical parameters, the system calculates and transmits only the deltas (changes), drastically compressing the data transferred over the network without blocking the trainer's critical path.

Detailed view of the Trainer abstraction and the timeline for asynchronous delta weight transfers.

Datasets

The authors evaluated AstraFlow across several diverse domains:

  • Math Reasoning: Trained on the DAPO and DeepScaler RL math datasets; evaluated using AIME24, AIME25, MATH500, and Minerva.
  • Code Generation: Trained on the DeepCoder-Preview-Dataset; evaluated using LiveCodeBench v5, LiveCodeBench v6, and Codeforces.
  • Agentic Tasks: Evaluated using AlfWorld, WebShop, and a search-based QA workflow (ASearcher).

Key Insights and Ideas

  • Control Decoupling > Compute Decoupling: True system flexibility comes from breaking the trainer-centered control loop, not just running rollouts and training on separate GPU pools.
  • Extreme Weight Sparsity in RL: The finding that $\ge 98\%$ of weights remain bit-exactly identical between RL iterations means network communication constraints (like cross-region latency) can be effectively masked using delta-pull weight transfers.
  • No-Code Auto-Scaling via LLM Agents: Because the dataflow layer exposes clean metrics (like trainer wait time and throughput), the authors successfully used an external agentic maintainer (Claude Code) to dynamically scale the RaaS pool up or down using standard cluster commands, requiring zero internal scheduling code changes.

Key Results

  • 2.7× Speedup in Multi-Agent Training: In a math solver-verifier multi-policy workflow, AstraFlow cut iteration times from 212.64 seconds (using a verl-based Dr. MAS baseline) to 77.65 seconds, while achieving superior average accuracy (56.5% vs 54.4%).
  • 13% Reduction in GPU-Hours: The agent-driven auto-scaling policy successfully matched the wall-clock performance of an over-allocated fixed-GPU pool while cutting total GPU-hour costs by roughly 13%.
  • Robust Cross-Region Performance: In a simulated heterogeneous cross-region setup (4 Gbit/s bandwidth, 300 ms round-trip latency), AstraFlow's asynchronous delta weight updates prevented the slow network links from stalling the trainer loop, preserving high training quality.

Limitations and Future Work

While AstraFlow demonstrates excellent flexibility, the authors note that it has not yet been tested on exceptionally long-horizon web agents, robotics environments, or safety-critical interactive systems. Additionally, the real-world benefits of this architecture remain dependent on specific workload characteristics, such as baseline rollout latency and available network bandwidth. Future work includes extending the framework to handle these broader agentic environments.

Summary updated

BibTeX
@inproceedings{zheng2026astraflow,
  author = {Haizhong Zheng and Yizhuo Di and Jiahui Wang and Shuowei Jin and Xueshen Liu and Yongji Wu and Z. Morley Mao and Ion Stoica and Jiawei Zhao and Beidi Chen},
  title = {{AstraFlow: Dataflow-Oriented Reinforcement Learning for Agentic LLMs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=RpK5dbpUYw},
}
Figure