Get Started
Home
Topics
Search
Library
6 min read · Agents · LLM Training · Added Sep 16 · Paper published Sep 11, 2026

ZGCM-1: A Fully Open and Extremely Efficient Foundation Model for Math and Agentic Search

Source: research paper via Hugging Face Daily Papers
Fully open 7B reasoning model claims ~4.2× time-to-loss over a BF16/AdamW baseline via hybrid SWA attention, FP8 matmuls, and Muon, plus an MDP reformulation of agent traces for denser supervision. Matches Kimi-K2 on WebWalkerQA at a fraction of the params, but MMLU and GPQA lag same-size peers.

TL;DR

ZGCM-1 is a fully open 7B dense model trained from scratch on academic-scale compute, built around the thesis that small models beat parametric limits by pairing long chain-of-thought with active tool use, reaching a ~4.2× time-to-loss speedup over a standard bfloat16/AdamW baseline through architecture and system co-design.

Why It Matters

If you want to reproduce or study a frontier-style reasoning model, you usually can’t. The strong open-weight releases (DeepSeek-R1, Kimi, GLM-5.1, Qwen3-235B) publish the checkpoint but not the mid-training curriculum, agent traces, filtering rules, or long-context schedule. And the compute to train a 200B+ model is out of reach for most academic labs. So the field ends up with two options: use someone else’s black box, or start from a much weaker base.
ZGCM-1 tries to close that gap at the 7B scale. The team from Zhongguancun Academy releases weights at every stage (pre-train, mid-train, post-train), intermediate checkpoints, data recipes, training code, and W&B logs. The scientific claim underneath the release is that a 7B model, if it’s taught to think longer and call tools, can compete with much larger closed systems on math and agentic search, without needing to memorize the web into its weights.

How It Works

The recipe has four load-bearing pieces. Start with the architecture. A standard 7B Transformer keeps a full KV cache for every layer, which dominates memory at long context. ZGCM-1 instead uses hybrid attention: 27 of 32 layers use gated Sliding Window Attention with a 128-token window, and only 5 layers do full global attention (a 5:1 ratio borrowed from Gemma 3). At 256K context this cuts KV cache from 32 GiB to 5 GiB and gives a 3.94× throughput speedup over full attention.
Second, the optimizer and precision. Matrix parameters use Muon optimizer instead of AdamW, matmuls run in hybrid FP8 (blockwise) (E4M3 forward, E5M2 backward) with delayed scaling, and TWEO suppresses activation outliers so FP8 stays stable. Combined with the attention change, the paper reports ~4.2× time-to-loss vs an OLMo 3-style BF16/AdamW baseline, decomposed as 1.4× (SWA) × 1.5× (FP8+systems) × 1.8× (Muon) × 1.1× (Pre-LN).
Third, curriculum with progressive context. Pre-training runs Stage 1 (~1T tokens, ordered by lexical complexity for general text only) then Stage 2 (~3.2T tokens, heavier code/math/reasoning). Mid-training then extends context in stages 16K → 64K → 256K over 600B tokens, each stage keeping shorter-context data so the model doesn’t forget how to handle normal inputs.
Fourth, and this is the interesting mid-training trick: agent interaction traces are reformulated as Markov Decision Process state-action pairs. Instead of only doing next-token prediction over full trajectories, the state (task + history + observation) predicts the next action directly, giving denser per-step supervision. Post-training then does SFT with mixed think/no-think examples (so one weight set toggles between deliberation and direct answers) followed by Group Relative Policy Optimization (GRPO) on math, code, and general tasks.
# Mid-training MDP reformulation, conceptually: for trajectory in agent_traces: # Full-trajectory objective (standard) yield causal_lm_loss(trajectory) # Plus dense per-step supervision for step in trajectory.decision_points: state = (task, history_up_to(step), observation(step)) action = step.next_action yield predict_action_given_state(state, action)

What They Found

On math the 7B model is competitive with or beats similarly-sized reasoning models: 97.1% on MATH-500, 75.0% on AIME 2026, 70.4% on HMMT 2025. It ranks first on average across 14 reasoning benchmarks at 7B–8B scale, though not on every individual one. Knowledge benchmarks are a weak spot: 73.9% on MMLU and 47.9% on GPQA-Diamond, both below Qwen3-8B and DeepSeek-R1-0528-Qwen3-8B. The authors attribute this to bounded parametric memory at 7B, consistent with their thesis.
On agentic tasks the story is more striking. On WebWalkerQA ZGCM-1 hits 63.1%, roughly matching Kimi-K2 (63.0%) and Claude 4 Sonnet (61.7%) while running orders of magnitude fewer parameters. On BrowseComp it scores 19.4%, well above open-weight peers though far below GPT-5’s 54.9%. On Binary Function Search, a benchmark the authors introduce for finding a target function in a stripped ELF binary through a Ghidra interface, it reaches 62%, close to GLM-5.1 (66%) and far above Qwen3-8B (12%).
Ablations worth flagging: quality-focused SFT filtering that drops ~45% of examples beats minimal processing on aggregate benchmark mean (68.83 vs 67.78), but individual benchmarks move in different directions. Mixed think/no-think SFT dramatically improves no-think math (AIME 2025: 10% → 43%) but hurts HumanEval+ (73.8% → 66.5%), so the transfer is real but task-dependent. On weaker agentic settings not featured in the headlines, SWE-bench Verified Mini50 gets only 2/50 and Terminal-Bench 2.0 gets 2/89, so “agentic” here really means the two showcased domains.
The AI-native R&D section reports contributor ratings across 11 task categories: experimentation/monitoring and deployment reach L4 autonomy (agents plan and iterate within human objectives), while architecture and learning algorithm design stay at L2 (agents execute predefined workflows). This is self-assessment by nine contributors, not a controlled measurement.

What’s Useful

If you’re training a small-to-medium dense model from scratch and you’re compute-constrained, the concrete artifacts here are unusually complete: staged checkpoints, data mixture percentages per stage, W&B logs, and the Agentic Context Engineering (ACE) diagnostic suite. That makes it plausible to reproduce individual design choices (say, the 5:1 SWA schedule or the Muon+FP8+TWEO stack) in isolation and measure their contribution on your own setup.
The multiplicative 4.2× decomposition is worth testing rather than believed. The paper multiplies four independently-estimated factors from different sources; if you care about the actual speedup, run one controlled comparison at your target scale.
If you’re building agents on top of an open model, the MDP reformulation of trajectories into state-action pairs is a portable idea. You can apply it to your own tool-use traces without training a new base model. Similarly, the mixed think/no-think SFT recipe (with an explicit warning that heavy reasoning data hurts strict instruction following on IFEval) is directly applicable to fine-tuning existing models.
For evaluation, ACE with 2,503 probes across 183 atomic capabilities is a fast diagnostic (2–3 minutes per run) meant to localize regressions during ablations. Worth trying if you’re currently only reading MMLU deltas between checkpoints.

Caveats

The headline efficiency number combines four factors estimated separately, some from “exploratory 7B evidence,” and multiplies them. It’s an estimate, not a measured end-to-end comparison.
Many strong agentic numbers come from benchmarks the paper introduces or evaluates under its own harness. Binary Function Search is a new benchmark released with the paper, and WebWalkerQA / BrowseComp numbers depend heavily on the search provider, page extractor, and judge model, all documented but not held constant across baselines pulled from public reports. Cross-model comparison should be read as directional.
The model has real weak spots the abstract underplays: MMLU and GPQA lag comparable-scale peers, IFEval strict-following is mid-pack, and broader agentic settings (SWE-bench Verified, Terminal-Bench 2.0) show single-digit completion rates. The “competitive with frontier models” claim holds specifically on math, WebWalkerQA-style search, and the authors’ Binary Function Search task, not universally.
The AI4AI autonomy ratings are contributor self-assessment by nine people on an ordinal scale, not measurements. Treat as qualitative team reflection.
Topics
Agents
LLM Training
Small Models
Agents
LLM Training
Small Models
Up next in Agents
Self-Evolving Coding Agents via Harness-Policy Optimization
Interlock: From Local Correctness to Task Completion in Long-Horizon Agents
Don't miss new content
Log in to follow topics and personalize your feed.
Related topics you might like
Agents310 episodes
Small Models12 episodes
LLM Training199 episodes