Skip to content

Frontier-lab environment pipelines: DeepSeek-V3.2 and Kimi K2

optionalextendedfrontierblogrubric 9/122026 · ~15 min

Learning Stack (synthesis)

Read first: Synthetic RL environments for agent training: a map

Status

TL;DR. Two open frontier reports describe the environment factories behind their agents. DeepSeek-V3.2 (Dec 2025) has an agent write the database, tools, task, solution and verifier for each synthetic general-agent environment (4,417 tasks in 1,827 environments), alongside real code, code-interpreter and search environments. Kimi K2 (Jul 2025) pairs 3,000+ real MCP tools and 20,000+ synthetic ones with an LLM tool simulator and simulated users for SFT data, and uses real Kubernetes sandboxes for coding and SWE RL. The recipes, task counts and benchmark results live in the report pages (DeepSeek-V3.2, Kimi K2); this page compares only the environment designs.

Design choiceDeepSeek-V3.2 general agentKimi K2 tool use
Statesandbox database filled from the web by an agent with bash and searchcarried by the LLM tool simulator across calls
Transitiongenerated, task-specific Python tool functionsLLM simulation with controlled randomness (partial failures, edge cases); real sandboxes for code
Resetrestore the database; tasks are code tuplesstart a new simulated conversation
Task validationa Python solution that may only call tools must pass a separate verifier; then iterative hardeningeach task carries a rubric
Reward / filterverifier function; keep tasks with non-zero pass@100LLM judge keeps rubric-satisfying trajectories for SFT; tests for code RL
Used forRLmainly SFT data; RL in real sandboxes for SWE
Releasedmodel weights; the environments are not described as releasedmodel weights; the tools and simulator are not described as released

DeepSeek-V3.2: environments as verified code. For a category such as trip planning, the agent proposes a simple task with a solution function and a verification function, then hardens it step by step (more constraints, more tools when needed) while keeping solution and verifier in sync: “hard to solve, easy to verify”. The solution-only-through-tools rule guarantees solvability through the interface the policy will have. Search questions come from a separate multi-agent pipeline: sample long-tail entities, let a question-construction agent explore each with search at a chosen depth and breadth, collect answers from several differently configured answer agents, and keep a question only if a verifier agent confirms the gold answer and rejects every candidate.

Kimi K2: environments as simulation plus real sandboxes. Synthetic tools are evolved from a domain hierarchy, and thousands of “agents” pair system prompts with tool subsets. The report calls the stateful tool simulator “functionally equivalent to a world model”. Where simulation is not trusted (coding and SWE), more than 10,000 concurrent real sandboxes supply test-based rewards.

Evidence and gaps. DeepSeek’s kept tasks are hard even for frontier models (Table 5: pass@1 from 12% for DeepSeek-V3.2-Exp to 62% for GPT-5-Thinking on 50 sampled tasks). Kimi K2 reports no ablation of simulator versus real tools and cites “the inherent limitation of simulation fidelity” as the reason for its real-sandbox complement. Neither report describes releasing the environments, so neither design can be audited for verifier bugs or benchmark overlap.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Mechanism

    DeepSeek-V3.2's general-agent synthesis restricts the solution function to calling tools, requires a separate verification function to accept it, then iteratively hardens the task. Explain what each constraint guarantees about the resulting RL task, and why the final filter keeps only tasks with non-zero pass@100 for DeepSeek-V3.2.

    What a strong answer covers
    • Solution through tools only (no direct database access) guarantees the task is solvable through the interface the agent will have, not only by reading hidden state.
    • A separate verifier that must accept the reference solution makes the reward checkable by code; "hard to solve, easy to verify" (the trip-planning example) is the target shape.
    • Iterative hardening (more constraints, more tools when needed) pushes difficulty up while the solution and verifier are updated together, so tasks stay verifiable as they get harder.
    • Non-zero pass@100 removes tasks with no observed success in 100 selection runs, which would likely give all-zero GRPO groups and may be broken. It does not guarantee mixed outcomes later: at success rate 0.01 a 16-rollout group is all failures with probability 0.99^16 ≈ 85%, and always-solved tasks are not removed. It also selects tasks using the trained model, so they are not a fair evaluation set.
  2. Critique

    Figure 5 of DeepSeek-V3.2 compares RL only on synthetic general-agent tasks (from the SFT checkpoint, non-thinking mode) with DeepSeek-V3.2-Exp, which had RL only in search and code environments. Critique how strong this evidence is that synthetic environments transfer to Tau2, MCP-Mark and MCP-Universe.

    What a strong answer covers
    • Positive: RL on synthetic tasks alone improved all three real benchmarks over the SFT checkpoint, whose environments were never seen in training.
    • The comparison model differs in more than environment type (a different, earlier training run), so "code and search RL does not help" is not a controlled ablation.
    • Tau2 and MCP benchmarks are tool-calling over app-like APIs, which resembles the synthetic database-plus-tools environments more than code or search does; transfer is to a nearby distribution.
    • Missing: amount of RL compute per arm, variance across seeds, and a check that synthetic task categories do not mirror benchmark domains (as AgentScaler's τ-bench domains did).
  3. Design

    Kimi K2 uses an LLM tool simulator for breadth and real sandboxes where authenticity matters; DeepSeek-V3.2 uses synthesized code environments, real search and real code. For a search-agent lab with a fixed budget, decide which parts of your environment to simulate and which to run for real, and how to detect when the simulator is teaching the wrong thing.

    What a strong answer covers
    • Real: the retriever over a frozen corpus (cheap, deterministic, exact), code execution, and the final evaluation on a live search API.
    • Simulated: users (personas, clarification turns), rare or costly tools (paid APIs), and failure injection (timeouts, empty results), as Kimi K2 does with controlled stochasticity.
    • Verification: code checks where possible (exact answers, DeepSeek-style verifier functions), rubric judges only where needed, with the judge separate from the simulator.
    • Drift detection: compare behaviour of the same policy in simulator and real tool on a held-out slice (tool-call distributions, success rates, error handling); retrain or retire simulated tools whose rankings of policies disagree with the real ones.

Done with this page?

Status