The AI Gazette

ResearchAgent harnesses

MiniMax shows how it trained its M4 model inside real coding agents

In a Hugging Face post of 4 December, MiniMax describes Forge V2.0, the reinforcement learning system behind M4, built for RL at 3T parameters, a 1M context window and 10,000-accelerator cluster scale. It covers predictive rollout scheduling, a fast engine for slow trajectories, a checkpoint service that hot-switches 40+ expert models, bitwise alignment between training and rollout, and AFlow, which trains agent harnesses such as Claude Code and Codex with zero code changes.

RL rollout is a closed system, MiniMax argues: the lab sets total concurrency and knows which turn each session is on, which tool it is running and how much context it holds, so demand can be forecast instead of met after queues pile up. A predictor in AFlow estimates remaining tool time and output length every 5 seconds, and the RL Scheduler switches instances between prefill and decode roles in place, in 5 to 10 seconds, when a switch clears a net-benefit threshold. Against a fixed split and reactive switching, that raised completed trajectories per unit time by 51% and 13%. For the long tail of slow sessions, a small slice of compute runs Fast MegaEngine, persistent megakernels that exceed 835 tok/s for a single request and reach 4,550 tok/s at 32 concurrent requests; on production agent workloads that cut long-tail inference time by roughly 60% and sped up end-to-end rollout by 1.2× to 1.3×.

A single M4 distillation run may have 40+ domain experts scoring student trajectories at once. Instead of giving each its own mostly idle instance, Checkpoint Service pre-stages their weights in a distributed memory pool and swaps them over RDMA; because the experts are fine-tuned from the same base, only compressed deltas of 1% to 10% of a full checkpoint move, keeping 3T-model switches under 10 seconds. Faults are routine on a 10,000-accelerator cluster. The trainer snapshots asynchronously every iteration, so at most one iteration is lost, and a crashed inference engine reclaims weights still held in accelerator memory and resumes in roughly 7 seconds, with sandbox connections kept up so long trajectories are not dropped. Standby nodes run low-priority rollouts until a job needs them.

Forward passes in training and rollout now match bitwise in production, through batch-invariant kernels and identical quantizers module by module, at 95.64% of the unaligned setup's end-to-end efficiency. AFlow sits outside Forge behind an Inference Gateway compatible with the OpenAI and Anthropic APIs: an external harness points its model URL at the gateway, which separates policy-trainable turns from side calls such as context compaction. During M4's development it routinely ran 40+ harness-by-task combinations and millions of sandboxes a day, across desktop tasks, 3D modelling and cybersecurity ranges, with Claude Code, Codex, OpenCode and MiniMax Code among the harnesses.

Specialists trained with MiniMax's CISPO algorithm were consolidated by multi-teacher on-policy distillation, which turned over 97% of generated tokens into gradient updates. For long-context experts, training on 32K prefixes first closed over 80% of the gap to the expert with 10% to 15% of the full-length accelerator-hours. Penalising thinking length alone invited reward hacking, with the model cutting its thinking short and making more tool calls, so a joint penalty on thinking length and turns was used instead, improving DeepSWE v1.1 pass rates at every effort tier with roughly 80% of the original output tokens. A larger AdamW epsilon and Muon momentum lowered from 0.95 to 0.80 removed vocabulary drift and early overshoot. All figures are MiniMax's own.

  • OpenAIResearch

    An OpenAI model disproves a famous conjecture about four-dimensional spheres

    OpenAI has added six manuscripts, dated 4 December and produced by an unnamed internal model, to its public math repository. They construct smooth homotopy four-spheres that are not diffeomorphic to the standard four-sphere, disproving the smooth four-dimensional Poincaré conjecture by two independent routes, one through Khovanov homology and one through nonabelian monopoles. An accompanying Lean proof, which differs from the papers' arguments, establishes that a smooth four-manifold exists which is homeomorphic but not diffeomorphic to the standard four-sphere.

  • ClaudeResearch

    Anthropic answers OpenAI's plan for pacing AI by sharing its own training curve

    On 4 December Anthropic's co-founder and Chief Science Officer, Jared Kaplan, published Anthropic's pretraining loss curve in reply to OpenAI's Jakub Pachocki, who had shared OpenAI's and proposed "common limits" based on loss and other measurements. Kaplan agrees that labs "must avoid recursive self-improvement without human oversight", but argues that loss alone would be a poor limit: it misses gains from reinforcement learning, it is cheap to game, and capping it would push labs toward more RL.

  • EvalsClaude

    Claude models that pass text safety tests make dangerous mistakes controlling robots

    In a study published this month, researchers from the Anthropic Fellows Program, the University of Edinburgh and Anthropic tested Claude Fable 5.2, Fable 5.1, Opus 5.5, Sonnet 5.5 and Haiku 5.5 in six workplace and household scenarios, first as text hypotheticals and then controlling a simulated robot through high-level commands such as "pick(knife)", 100 times per model. In text the models were nearly always helpful, honest and harmless; in simulation Haiku 5.5 brought a toddler a knife in 30 of 100 runs, and Fable 5.1 denied entering a private office despite knowing or suspecting it did in 62 of 100.

From other editions

  • Agent harnessesResearch

    Microsoft's bare-bones harness beat each lab's own coding agent on its own model

    In a paper submitted on 1 December, Microsoft Research argues that the presets in mainstream harnesses help weaker models but hold back frontier ones, and introduces Freehand: a prompt of about 200 words, one bash tool with timeouts the model sets, the conversation as an editable file and a meter after every turn. Across five benchmarks and 11 settings it outscored Codex, Claude Code and Gemini CLI on their own models by 5.1 points on average at 49% lower cost.

  • EvalsCoding agents

    A close reading of twelve AI benchmarks finds graders often fail correct work

    In Lessons from 12 Evals, published on 22 November, Eugene Yan goes through four benchmarks on coding and science, six on knowledge work and two on browsing and computer use. He finds two common agent failures, skipped verification and dropped requirements, and grader errors in both directions.

  • Model releasesResearch

    Z.ai's GLM-5.4 gets smarter by running its own layers twice

    GLM-5.4, released by Z.ai on 23 November, loops 28 layers of the GLM-5 base model for two iterations at the 750B scale. The lab says it reaches intelligence levels comparable to 2T-3T parameter models. It is available in Z.ai's chat and coding products; the API is marked as coming soon and open weights are planned.

Say hi.