Post-Training and Long-Horizon Agent Practices for a 3-Trillion-Parameter Model

    This article examines how the center of gravity in large model development is shifting from parameter count and pretraining scaling toward post-training compute and long-horizon agent engineering. It covers the three-layer post-training stack (supervised fine-tuning, rejection sampling with trajectory filtering, and reinforcement learning), the verifiability requirement that decides which domains can scale RL, the infrastructure changes needed to extend RL across hundreds of downstream domains, and why the agent harness has become standalone infrastructure. It also outlines evaluation principles, practical deployment advice, and a cost view for developers building long-running agents.

    1. What the Release Signals: Parameter Scale Is No Longer the Only Story

    In late October, a major model team released a new flagship model with roughly three trillion parameters, support for million-token context, and companion low-latency and managed agent offerings. The notable part is not the parameter figure but the shift in technical focus: more post-training compute is going into environments where the model has to keep working, spanning coding, financial research, 3D content generation, and long-running task execution.

    This reflects an emerging industry consensus: the marginal returns of pretraining scaling are being partly diluted by post-training and inference-time compute. What actually determines product experience is how reliably a model can complete a chain of tasks under real constraints.

    2. Reallocating Post-Training Compute: From “Answering Correctly” to “Finishing the Job”

    Conventional post-training centers on preference alignment, aiming to make outputs match human expectations. Post-training for long-horizon tasks has to solve a different problem: credit assignment across multi-step decisions. A single task may involve dozens of tool calls, file reads and writes, and result verification, with success or failure only visible at the very end.

    The engineering approach typically has three layers:

    1. Supervised fine-tuning: establish baseline behavior patterns from high-quality trajectory data;
    2. Rejection sampling and trajectory filtering: sample multiple paths for the same task and filter by verifiable outcomes;
    3. Reinforcement learning: optimize the policy using reward signals that can be judged automatically.

    A schematic training loop (pseudocode, structure only):

    1. for task in verifiable_task_pool:
    2. trajectories = policy.sample(task, n=8)
    3. scored = [(t, verifier(task, t)) for t in trajectories]
    4. keep = [t for t, s in scored if s > threshold]
    5. policy.sft_update(keep)
    6. policy.rl_update(reward=verifier(task, t))

    The key constraint is verifiability. Any domain where outcomes can be judged automatically by unit tests, compilation results, numerical checks, or format constraints is a good candidate for scaling reinforcement learning. Domains that lack this need process reward models or human spot checks, and both cost and noise rise sharply.

    3. Infrastructure Changes for Multi-Domain Joint Training

    Scaling reinforcement learning to hundreds of downstream domains makes infrastructure, not model capability, the bottleneck. Several layers usually need systematic rework:

    • RL framework: large-scale asynchronous sampling, parameter synchronization, and fault-tolerant resume, so long-tail tasks do not drag down overall throughput;
    • Long-context inference: paged attention caching, prefix reuse, and prefix cache hit mechanisms to cut the compute cost of repeated context;
    • Sandbox infrastructure: isolated filesystem, process, and network boundaries for every tool call, guaranteeing replayability and rollback;
    • Scheduling: driven by task priority and resource quotas, balancing interactive requests against offline batch sampling;
    • Environment quality checks: consistency validation of task images, dependency versions, and initial state to prevent environment drift from contaminating reward signals.

    Environment quality checks are the most commonly underestimated. If the same task shows clearly different success rates across images, reinforcement learning will pick up environment shortcuts unrelated to the policy, and online behavior will diverge from offline metrics.

    4. Long-Horizon Agents: Why the Harness Became Standalone Infrastructure

    Once task duration stretches from seconds to hours or even days, the surrounding system that hosts the model’s execution (commonly called the harness) stops being an accessory and becomes a core component. It handles context compression and memory management, tool orchestration, failure retries, state persistence, and message routing for multi-agent collaboration.

    A minimal long-horizon task loop can be abstracted as:

    1. state = load_or_init_session(session_id)
    2. while not state.done and state.step < MAX_STEPS:
    3. action = model.plan(state.context, tools=tool_registry)
    4. result = sandbox.execute(action) # isolated execution, rollback supported
    5. state = memory.compress(state, result) # summary + key fact extraction
    6. checkpoint(state) # enables resume from checkpoint
    7. return state.report()

    Hosting this kind of runtime creates value in three ways: it separates the cost and stability of long-running execution from the business team; unified sandboxes and audit logs meet compliance requirements; and multi-agent collaboration gains shared state and permission boundaries.

    5. Evaluation: Don’t Look at a Single Leaderboard

    Terminal-style benchmarks typically assess an agent’s ability to complete complex engineering tasks in resource-constrained real environments, with dedicated tests determining outcomes; internal long-horizon code benchmarks focus on sustained delivery across files and steps. Three principles should hold during evaluation:

    • Prioritize task verifiability and avoid letting subjective scoring dominate;
    • Report success rate alongside average step count and token consumption, to prevent “trading verbosity for correctness”;
    • Separate cold-start from long-context scenarios, and measure the cost difference from cache hits on its own.

    Specialization and verbose output remain common problems: models perform strongly in well-trained domains but tend to probe repeatedly in long-tail domains, driving up latency and cost.

    6. Practical Recommendations and a Cost Perspective

    Recommendations for developers:

    1. Grade tasks by verifiability first, and route high-certainty domains to reinforcement learning optimization;
    2. Control long-context cost with prefix caching and layered context compression; on the input side there is usually a significant price gap between cache hits and misses;
    3. Set three limits for agents — step count, duration, and budget — and keep checkpoints to support recovery;
    4. The high-speed version suits interactive coding and real-time tool calls; the standard version suits offline batches and hard reasoning;
    5. If you self-host model weights or need on-premises deployment, watch the release timing and license terms of open weights.

    For cloud deployment, combine a container platform to host sandboxes, object storage for trajectories and checkpoints, a message queue to decouple long-running tasks, and logging plus monitoring and alerting services to observe success rate and cost curves, closing the loop. Baidu AI Cloud can provide the corresponding infrastructure support for these general capabilities, letting teams refocus on task design and evaluation systems.

    7. Conclusion

    The real signal in this generation of model upgrades is that competition is moving from parameters and leaderboards toward the systems engineering capability of working autonomously for long stretches. Whoever makes post-training compute, sandbox isolation, scheduling fault tolerance, and the evaluation loop solid can deliver reliably in high-value scenarios such as coding, research analysis, and content generation.