How Zhipu's New-Generation Model Boosts Long-Horizon Task Capability: A Deep Dive into Coding and Security Benchmarks

    Zhipu's new open-source model shows significant gains in coding and cybersecurity benchmarks despite using only half the parameters of larger flagship models. This article breaks down where those gains come from: an adaptive counterfactual credit-assignment technique that overcomes sparse-reward problems in long-horizon agent training, and a massive expansion of sandbox environments. It also offers practical guidance for developers building long-running agents and explores what this means for the future of reinforcement learning and model scaling.

    Recent model evaluations show that Zhipu’s new-generation open-source model has made a significant leap in coding ability and cybersecurity tasks, drawing wide attention from the technical community. Notably, the model improved by 50% on an internal, experience-based evaluation compared with its predecessor, with standout performance in terminal interaction and long-horizon agent scenarios. This article takes a technical look at the sources of these capabilities, analyzes the training strategy shifts behind the benchmark data, and discusses what this progress means for reinforcement learning and model scaling.

    1. What’s Behind the Benchmark Gains

    The latest evaluation data shows breakthrough progress on multiple long-horizon task benchmarks. On a code-repository problem-solving benchmark, the model’s score rose from 62.7 to 66.9. In a cybersecurity attack-and-defense simulation environment, the score climbed from 83.3 to 84.5. On a comprehensive test targeting professional agents, the score jumped from 25.7 to 28.5. Remarkably, these results were achieved with a model whose parameter count is only half that of a flagship comparison model (744B vs. 1.6T), and without adopting the newer architecture the industry speculated about — the model retains the previous-generation architecture, enhanced with deep post-training optimization.

    This result breaks the linear assumption that “more parameters always mean more capability.” The comparison model actually uses a newer architectural design, yet the new model surpassed it through extreme post-training optimization with less than half the parameters. This suggests that, at the current stage, the optimization headroom in training strategy may far exceed that of architectural choice. For developers, it means that within a fixed compute budget, improving the reinforcement learning pipeline and reward modeling can yield substantial capability gains.

    2. The Core Bottleneck in Long-Horizon Training: Sparse Rewards

    To understand the new model’s breakthrough, you must first recognize the fundamental training difference between long-horizon agent tasks and traditional short-horizon tasks. In a typical multi-turn interaction task, a complete run may require 30 to 80 environment interactions. In a code debugging task, for example, the model must go through multiple stages: locating the problem, understanding the code architecture, modifying source code, running unit tests, and fixing regression bugs.

    Suppose the model makes textbook-level decisions for the first 78 steps — pinpointing the bug, correctly inferring module dependencies, and designing a sensible patch — but on step 79 it accidentally misspells a variable name, causing the unit tests to fail. In traditional policy gradient algorithms (such as PPO or GRPO), the final reward for the entire trajectory is zero, so the gradient uniformly penalizes the token generation probabilities of every step. It’s like a Go game: even if one move is a stroke of genius, as long as the game is ultimately lost, every move is treated equally as a failure sample.

    This “outcome-only” reward mechanism causes two serious problems. First, the model tends toward conservative behavior, avoiding high-risk but potentially high-reward exploration, which lowers overall task success rates. Second, training gradually suppresses decision patterns that are “locally correct but globally failed,” causing the model to get worse at long-horizon tasks over time while token consumption keeps rising. Clearly, for complex tasks requiring dozens of reasoning steps, this gradient signal is far too coarse.

    3. Adaptive Optimization: A Monte Carlo-Style Solution to the “Scoring Paradox”

    Since sparse rewards are the core pain point, a natural idea is to score each step independently rather than relying on the final outcome. The problem, however, is that accurately evaluating the value of intermediate steps requires deep task understanding. In Go, a non-expert can hardly judge whether a move is good, and letting the model evaluate itself risks circular reasoning — if the model were already smart enough to assess its own steps, it probably wouldn’t need training in the first place. This is the “scoring paradox”: you can’t score without deeply understanding the task, the model can’t improve without scores, and without improvement the model can’t score more accurately — a deadlock.

    The adaptive optimization strategy adopted by the new model borrows counterfactual reasoning from Monte Carlo tree search, using a technique called “counterfactual branch valuation.” The core idea: don’t evaluate the absolute value of a step directly; instead, evaluate its causal contribution to the probability of subsequent success.

    Here’s how it works. Suppose the model generates action A at step 78 of a task. To evaluate this step, the system freezes the context of the first 77 steps (including all observations, past actions, and intermediate results) to build a “cloned environment.” Then, starting from step 78 on exactly the same prefix, it runs multiple independent explorations — simulating many different subsequent action paths. If the model’s downstream task success rate from that step is significantly higher than from a control group starting with alternative actions, step 78 is judged a “brilliant move”; if the success rate drops, it’s judged a “bad move.”

    The key point is that this method requires no human expert labels for each step. Instead, it statistically measures the step’s marginal effect on the final outcome through mass exploration. It resembles “variation tree search” in Go AI: even though the overall game was lost, by fixing the earlier board state and playing out a single move’s continuations, you can quantify its value. Even more importantly, the method is inherently causal — because the environment context is locked, the only variable is the action at that step, so any observed difference in success rate can be directly attributed to that step’s quality.

    4. Sandbox Scaling: A New “Scaling Law” Emerging

    Beyond restructuring the reward mechanism, the new model also dramatically expanded its infrastructure. The evaluation report notes that the number of sandbox environments increased by tens of times. “Sandboxes” here refer to high-fidelity environments where the model can experiment, execute code, and simulate attacks. Viewed through the lens of species evolution, this follows the same logic as AlphaZero expanding its game corpus through massive self-play — first compensate for quality with quantity, then distill high-value policies through reinforcement learning.

    This “sandbox scaling law” reveals another path to improving model capability: instead of relying solely on linear growth in parameter count, expand the scale of environment interaction so the model can explore a much broader action space. For long-horizon agent tasks, every task consumes substantial environment resources (spinning up containers, executing commands, collecting logs), and traditional single-machine, single-environment training is highly inefficient. A cloud-native elastic sandbox pool supports parallel exploration and asynchronous evaluation, so every gradient update can be based on hundreds of thousands of complete trajectories.

    Notably, “sandbox scaling” is not the same as simply scaling up data processing. It demands that the environments themselves be sufficiently realistic and rich, otherwise the model overfits to spurious patterns. The new model emphasizes making environments “virtually realistic” — simulating real-world terminal operations, network topologies, exploit chains, and more — so the training distribution closely matches the deployment distribution. This is one reason for its strong cybersecurity benchmark scores: the model has experienced high-fidelity attack-and-defense adversarial scenarios in sandboxes, rather than merely reading theoretical samples.

    5. Practical Guidance for Developers

    For developers training long-horizon agents — such as automated code repair tools, security penetration assistants, or complex system operations agents — the new model’s methodology offers direct reference value:

    1. Reshape the reward signal: If per-step labels are unavailable, adopt counterfactual branch valuation. In practice, you need to store full-trajectory state snapshots and design resettable environments. Set valuation nodes every N steps (e.g., 10), freeze the prefix, generate K branches (K should be at least 50), run each branch to task completion, and compute the difference between the branch success rate and the baseline success rate — that difference is the node’s advantage value.

    2. Progressive training from sparse to dense: Early on, use only the final outcome as a sparse reward, but apply temporal weight decay in the loss function — earlier steps should contribute less gradient than later ones. This can be done by multiplying each step’s policy gradient by a coefficient that increases with step count, mitigating the “one wrong step punishes everything” global penalty effect.

    3. Leverage elastic cloud sandboxes: When local environments can’t support large-scale parallel interaction, build an elastic scheduling layer using general cloud services (container instances, serverless computing, distributed task queues). Serialize environment state for storage, enabling branch restoration at any point in time. This requires an abstraction layer that uniformly manages snapshot saving, restoration, cloning, and termination.

    4. Closed-loop iteration of evaluation tasks: Model improvements should feed back into harder benchmarks. A new model should not just raise scores — it should drive the synthesis of more complex tasks. For example, in cybersecurity evaluation, dynamically generate hybrid attack chains (combining phishing, privilege escalation, and lateral movement) to force the model to learn higher-order strategies rather than memorizing fixed templates.

    6. Outlook: Reinforcement Learning Enters Its “Hunting Moment”

    The new model’s success sends a clear signal to the industry: in the post-training phase, the sophistication of reinforcement learning will define the final capability boundary of models. When parameter count and pretraining data are no longer the only moats, designing adaptive optimization algorithms, building meaningful reward decomposition, and reusing environment interactions at scale will become the key competitive factors.

    Just as Go AI evolved from rule-based systems to self-play, and then to the combination of Monte Carlo tree search and neural networks, language models’ long-horizon reasoning is undergoing a similar paradigm shift. Traditional reinforcement learning uses “win or lose” as the sole criterion, while adaptive optimization attempts to decompose the “contribution” of each step — essentially shifting from outcome-oriented to process-oriented training. While the process is compute-intensive — every branch requires fully executing the task — as cloud computing gets cheaper, this strategy’s cost-effectiveness is overtaking simply stacking parameters.

    It’s safe to predict that future AI training reports will no longer list only the three elements of “data volume, parameter count, and compute.” They will add new dimensions such as “environment interaction scale, branch valuation density, and reward modeling complexity.” For developers, understanding and practicing these new methods is an essential skill on the road from “usable” to “truly effective.”