The GLM-5 technical report: DSA, asynchronous RL, and agent RL
- Source
- arxiv.org
- Publisher
- Z.ai
- Author
- Z.ai
- Date

Context
Z.ai's GLM-5 report explains how the lab kept reinforcement learning efficient when the training examples are agent runs that take very uneven amounts of time. In synchronous training, an update waits for the slowest attempt in the batch, and with agentic tasks the authors say this imbalance leaves substantial idle GPU time. GLM-5 is a 744B-parameter model, whose release is covered in the launch announcement, and its technical report lists this asynchronous infrastructure among its main contributions, alongside DSA sparse and new agent RL algorithms.
The fix is to split generation and training onto different GPUs. An engine keeps producing task attempts; once a set number have accumulated, the batch goes to a training engine, which updates the model and pushes the new weights back to the generator every K gradient updates, so generation stays close to the current policy. A central orchestrator runs each task's rollout and reward logic as an independent service, and the authors say it supports more than 1,000 concurrent rollouts. Z.ai's announcement thread describes the resulting post-training efficiency gain as drastic, which is the lab's own characterization.
The price is that attempts in a single batch can come from different versions of the model, which the authors call a severe off-policy problem, and most of the section is about containing it. The trainer consumes the exact tokens the generator produced instead of re-tokenizing finished text, because re-tokenization can misalign actions with their rewards. Each token is weighted using the probabilities recorded at generation time, and tokens whose probability under the current model has drifted outside a set band are masked out of the update. Samples whose oldest contributing model version is too stale are discarded, as are attempts that failed because a coding crashed rather than because of the model, and the optimizer is reset after each weight push.
- attention — The mechanism that lets a model weigh which earlier words matter for the word it's currently processing — the core operation of a transformer.
- Inference — Using a trained model to produce an output from a supplied input.
- Sandbox — An enforced restriction that confines a process to specified files, network destinations and other resources, applied by the operating system, a container or a virtual machine.
- Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
postWe’re sharing how GLM-5.3 helped build and optimize the inference infrastructure serving GLM-5.3-Flash.- postGLM-5 reaches Coding Plan Pro as Z.ai raises prices
postZ.ai ships GLM-5.3 with big exploit gains and staged weight release
articleGLM-5.3 ships with mandatory reasoning and big coding and cyber gains


