Model releases · Analysis

ZGCM-1 brings mathematical reasoning and search into one model

ZGCM-1 couples a compact language model with search. Its mathematical tasks illustrate the difference between storing a solution and spending computation to find one.

In this article
A three-dimensional network of branching trajectories.

A seven-billion-parameter dense model has a finite amount of information in its weights. ZGCM-1’s team asks how far a model of that size can go by combining internal reasoning with external search. At evaluation time, the result depends both on what the model has learned and on which tools and context the experiment allows it to use.

Why intermediate checkpoints make a scientific claim testable

The ZGCM-1 team describes releasing checkpoints from pretraining, mid-training and post-training, as well as training code, data recipes and logs. Intermediate artifacts make a different comparison possible from evaluating only the final model. If a capability appears between two checkpoints, an observer can narrow the interval in which it emerged. Establishing which part of a changed recipe caused it still requires a control, because several data or optimization choices may have changed over that interval. Access to the sequence improves the question an evaluator can ask.

Architecture for Thought and Tool Use

The core of ZGCM-1 lies in its hybrid attention architecture, which blends local and global context processing through a gated sliding-window mechanism. In 27 of the model’s 32 layers, a 128-token sliding window performs attention with a gate that controls how much global context is incorporated. This allows the model to maintain high efficiency while still accessing broader context when needed. Five specific layers use full global causal attention at positions 6, 12, 18, 24, and 30—each followed by five local layers—providing structured opportunities for long-range dependencies to emerge without overwhelming compute demands. The remaining two layers are local, ensuring the model remains lightweight and fast during inference. This design enables reasoning over up to 256K tokens while avoiding the memory and latency costs of full global attention across all layers.

To support complex reasoning, the model applies QK normalization with RMSNorm and uses partial rotary position embedding (RoPE) on 33% of its positional components. These techniques stabilize attention dynamics in long sequences and reduce gradient noise during training. The activation function is SwiGLU, known for its ability to produce rich, non-linear outputs without requiring excessive parameters. Together, these architectural choices allow ZGCM-1 to maintain a balance between computational efficiency and expressive power, making it suitable for tasks that require step-by-step reasoning or sequential tool use.

Training with Active Reasoning and Adaptive Systems

Rather than relying on passive memorization of vast datasets, the training process emphasizes deliberate internal thinking. The model is trained using a progressive curriculum that scales context length across 16K, 64K, and finally 256K tokens during mid-training. This staged expansion helps the model gradually build capacity to handle longer reasoning chains without collapsing into instability or overfitting. Each interaction trace—such as a user prompt followed by a series of tool calls and responses—is reformulated into a Markov Decision Process (MDP), allowing the training data to reflect real-world agency: decisions, actions, outcomes, and feedback loops.

A key innovation is the use of AI-driven system automation in the research workflow. During training, AI agents autonomously manage cluster operations, curate data, and diagnose performance bottlenecks. For instance, when a model fails to solve a math problem correctly, the system identifies whether the failure stems from reasoning errors, tool misuse, or missing context. It then restructures the training signal or adjusts the prompt difficulty accordingly. This loop enables rapid iteration without requiring constant human oversight.

The reward function is designed to encourage correct outcomes while discouraging irrelevant expansion. For mathematical problems, rewards are binary: correct answer = positive, incorrect or incomplete = zero. Code tasks use a pass rate metric based on executable tests, and general reasoning tasks follow instruction-following criteria. To stabilize long-horizon training, the team combines outcome-based rewards with KL divergence regularization from GRPO, which helps prevent policy drift during iterative refinement. A mild length penalty is also applied to reduce noise caused by overly long or truncated responses.

Training data is carefully curated: original problem traces are filtered for parsing validity, completeness, and potential leakage of source content. Questions that are too simple or already well-solved are removed, ensuring the model learns from challenges that require sustained reasoning. This process separates question value from upstream trace quality, allowing only high-fidelity problems to enter training.

The entire system operates under a design principle of atomicity—each capability is tested in narrow, isolated conditions so failures can be precisely diagnosed. Every evaluation includes a full trace: the prompt, the model’s response, the reference answer, and the scoring logic. This ensures transparency and enables reproducible analysis across different tasks and difficulty levels.

It matches or exceeds larger models—such as Qwen3-235B-A22B and GLM-5.1—in specific mathematical and agentic search tasks. This outcome does not rely on scale but instead on a deliberate architectural and training strategy that integrates internal thought with external action.

The Curriculum-Ordered Pretraining Schedule

ZGCM-1’s pretraining begins with a curriculum phase where general-language documents are ordered by increasing lexical complexity. This ordering is applied only to non-code, non-mathematical data, as these domains do not consistently reflect intrinsic difficulty through complexity alone. High-complexity outliers—often corrupted or garbled text—are removed before the process proceeds. Code and mathematics are trained separately with interleaved exposure to maintain domain-specific coherence. During this phase, the model’s training efficiency improves significantly: for instance, coding BPB drops from 1.99 to 0.81, and mathematical BPB decreases slightly from 0.97 to 0.94. General-language benchmark performance also increases by a small margin, rising from a baseline BPB of 0.09 to 0.03. This schedule is not applied beyond Stage 1; later training stages use the full mixture without complexity ordering. The observed improvement in coding and math performance reflects better internalization of structured reasoning patterns under controlled difficulty progression, though the exact magnitude of this effect is limited by the lack of matched evaluation conditions for code.

Evaluation of Reasoning and Response Accuracy Across Checkpoints

A total of 54 base checkpoints were evaluated during general pretraining, spanning from 0.04T to 4.19T cumulative training tokens processed. Each checkpoint was assessed without any fine-tuning or post-training adaptation, using a fixed set of benchmarks covering knowledge, question answering, mathematics, reasoning, coding, and symbolic operations. The evaluation tracks the model’s capability evolution over time, independent of later instruction tuning or system modifications. These improvements are not uniform; while knowledge and question answering grow steadily, mathematics and coding show sharper inflection points, suggesting that structured reasoning patterns begin to stabilize earlier than general language understanding. The data indicate that the model’s ability to generate step-by-step reasoning chains develops in parallel with its capacity for direct response, supporting the design choice of interleaving think and no-think examples.

Interpreting Performance Gaps in Mathematical and Instructional Tasks

ZGCM-7B achieves 98.18% accuracy on mathematics benchmarks, outperforming many models of similar scale. This result is reinforced by comparisons with Qwen3-8B-256K, where ZGCM-7B shows a +20.74 percentage point advantage in arithmetic and a +14.45 point gain in planning tasks. These gains are attributed to the model’s explicit exposure to structured reasoning during training, particularly through think examples that contain end-to-end reasoning chains. However, performance drops are observed in instruction following (49.74%), truthfulness (68.91%), and code generation (72.24%). The gap between ZGCM-7B and the strongest reference models is concentrated in these specific domains rather than spread across all capabilities. This pattern suggests that while the model excels at internalized reasoning and long-context processing, it struggles with dynamic instruction interpretation and factual consistency—areas where real-world agent behavior demands more flexible response generation. The weakness in code and instruction tasks may stem from limited exposure to complex prompt structures during pretraining or insufficient modeling of context-dependent response strategies.

The Boundary Between Internal Reasoning and External Search in Mathematical Performance

The performance of ZGCM-1 on mathematical reasoning tasks reveals a critical boundary: the point at which internal symbolic computation becomes insufficient, and external search—such as retrieving definitions, formulas, or proofs from a knowledge base—becomes necessary. Evidence shows that ZGCM-1 performs competitively with much larger models on structured math problems when reasoning is fully internalized and well-calibrated. However, in cases involving rare or highly specialized mathematical concepts—such as advanced number theory or non-standard optimization techniques—the model’s performance drops significantly, not due to a failure of reasoning per se, but because it lacks access to external sources that contain precise, up-to-date definitions or derivations. This suggests that while internal reasoning is powerful, its effectiveness is bounded by the scope and depth of pre-training data. A key test has already been conducted: when external search tools are disabled during inference, ZGCM-1’s accuracy on complex math problems declines sharply compared to baseline performance with tool access. This confirms that retrieval is not a passive supplement but an active component in achieving high-level mathematical competence. Competing explanations would differ in how they interpret this gap: one might argue it reflects a limitation in the model’s internal symbolic representation, while another could claim it stems from insufficient coverage of niche domains during pre-training. The distinction lies in whether the model can generate correct intermediate steps independently or relies on external validation to complete its reasoning chain.

A Limitation in the Calibration of Reasoning Verbosity and Instruction Following

A notable boundary in ZGCM-1’s behavior emerges when comparing instruction adherence with reasoning depth. The data shows that strong supervision of internal reasoning leads to increased verbosity—longer, more detailed responses—even when the instruction demands a concise or surface-level answer. This creates a tension between fidelity to instructions and the model’s tendency to elaborate on intermediate steps. A controlled ablation study demonstrates that removing heavy reasoning supervision reduces verbosity but also degrades performance on tasks requiring multi-step logical derivation. This suggests that the system is not simply over-explaining, but rather that its reasoning architecture has been optimized for depth at the cost of precision in instruction compliance. The boundary here lies in whether verbosity is a byproduct of training design or a necessary feature of effective reasoning. Existing evaluations have tested this trade-off across multiple benchmarks like IFEval and surface-level constraint tasks, showing consistent degradation in strict adherence when reasoning is allowed to expand. A competing explanation would posit that the model’s verbosity stems from a failure to recognize instruction boundaries, rather than an inherent design choice. To distinguish between these, future work must isolate the role of supervision signals: for instance, by training with explicit constraints on response length or using reinforcement learning to penalize deviations from instruction format. Without such tests, it remains unclear whether the verbosity is a flaw in policy alignment or a feature of the reasoning mechanism.

The Open Question of Static Knowledge Capacity in Long-Horizon Agentic Tasks

Despite its success in structured agentic environments like web deep research and binary analysis, ZGCM-1’s performance on broader engineering tasks—such as long-horizon repository-level software development (e.g., SWE-bench Verified) or unstructured terminal navigation (Terminal-Bench 2.0)—remains modest. This raises a fundamental open question: can a compact model with limited static memory truly support complex, evolving software workflows that require persistent state tracking and cross-file reasoning? The evidence indicates that while ZGCM-1 performs well in short-term, goal-oriented tasks, it struggles when the task requires maintaining context across multiple files or navigating unstructured command-line environments. This is not due to a failure of reasoning per se but rather to the model’s fixed memory capacity and lack of persistent state storage during inference. A key test has already been performed: when agents are required to maintain a long-term project state over several interactions, ZGCM-1’s completion rate drops significantly compared to larger models with more extensive memory or external state management. This suggests that the model’s architecture is optimized for short-term reasoning and immediate tool use rather than sustained, cross-session engineering. Competing explanations would differ in their interpretation of this limitation: one might argue it reflects a fundamental constraint of dense models on small scales, while another could claim it results from insufficient training on real-world software development dynamics. To resolve this, future experiments must compare the model’s performance under different state management strategies—such as external memory buffers or session-level context persistence—while keeping reasoning depth and tool use constant. Until such tests are conducted, the boundary between what is possible in a compact model and what requires larger architectures remains ambiguous.

A Worked Example of Capability Emergence in ZGCM-1 Training

An unrun editorial thought experiment illustrates how access to intermediate checkpoints enables precise tracking of when specific capabilities emerge during training. Suppose an evaluator is assessing whether ZGCM-1’s ability to solve multi-step algebraic equations—specifically, those requiring symbolic manipulation and variable substitution—develops during mid-training. The evaluation compares two distinct training phases: a pre-training checkpoint (Checkpoint 3), where the model has seen only general-language and basic math content, and a post-mid-training checkpoint (Checkpoint 12), after the curriculum shifts to include progressively harder mathematical problems in a Markov Decision Process (MDP) format.

This suggests that while basic algebraic fluency was present from the start, deeper symbolic manipulation emerged only after the curriculum introduced structured problem-solving sequences. This would imply that the capability developed during the mid-training phase, likely due to the MDP reformulation of math problems—where each step is treated as a discrete action with observable outcomes.

The presence of detailed data recipes—such as which types of math problems were introduced when—allows for a more nuanced analysis.

Still, establishing causality remains challenging. A rise in correct answers between checkpoints might stem from multiple factors: increased data exposure, changes in optimization (like FP8 Muon), or shifts in training order. Without a control condition—such as a parallel training run using the same data but without MDP reformulation—the observer cannot rule out that other elements of the recipe contributed to performance gains. Thus, even with access to intermediate artifacts, the inference depends on controlled comparisons.

Why Intermediate Artifacts Matter for Fair Evaluation

The release of checkpoints, training code, and logs transforms evaluation from a static snapshot into a dynamic process. What specific training change triggered it?* This shift allows for more precise diagnostics of learning dynamics. For example, if a model begins solving logic puzzles involving conditional statements only after a certain data mixture is introduced, that moment becomes a candidate for causal analysis.

Such granular observation is especially valuable in models like ZGCM-1, where mathematical reasoning and agentic search are tightly coupled. The training recipe includes staged context scaling—from 16K to 256K—and curriculum shifts that alter the structure of input problems. These changes create a sequence of opportunities for new behaviors to emerge.

Yet, this power comes with limitations. A model might show improved reasoning not because of one specific change but due to the cumulative effect of several modifications—such as increased context length, better data filtering, or a shift in reward shaping. Without control experiments, it’s impossible to isolate which factor drove improvement.

Ultimately, intermediate artifacts do not eliminate uncertainty—they refine it. They allow evaluators to narrow down when and under what conditions a capability appears, making it possible to ask more targeted questions about model development. The evidence supports that reasoning emerges in stages, but whether those stages are driven by data, architecture, or training design remains open.