Post-Training Scaling: Improving Model Capabilities Without Changing the Base Model
This article explains how one team reports gains in large language model capabilities by scaling long-horizon environments and reinforcement learning compute during post-training, while keeping the base model, architecture, and parameter count fixed. It covers the team's reported results, why those figures need independent verification, how automated verifiers provide reward signals, the infrastructure needed for large-scale RL, and a checklist for enterprises considering a similar approach.
1. Understanding the Experimental Setup
Competition among large language models has long centered on pretraining scale. The usual approach is to add more compute, data, and parameters. One development team has disclosed a different path. It kept the base model, architecture, and parameter count unchanged, and instead expanded the scale of long-horizon environments and the reinforcement learning (RL) compute used in post-training. The team calls this a controlled-variable experiment. Because only the post-training stage changes, the conclusions isolate the effect of post-training itself.
All figures in this article come from the team’s own statements and have not been independently reproduced. Readers should distinguish between what the team claims and what independent parties have verified, because the two carry different levels of credibility.
According to the team, the model uses a Mixture-of-Experts (MoE) architecture with about 753B total parameters, about 40B parameters activated per token, and 78 layers. It also uses efficiency mechanisms such as Multi-head Latent Attention (MLA). DSA typically refers to sparse attention, which reduces the computation cost of long contexts. IndexShare can be understood as reusing index computations across multiple layers. Specific implementations should be checked against the team’s public materials. Model size alone cannot explain post-training results. When comparing approaches, the base model must be the same.
2. Capability Changes Reported by the Team
The team reports that about one month of post-training scaling produced gains in three areas:
- Terminal control: On the team’s chosen benchmark, scores rose from single digits to close to 30.
- Real-world software engineering: On the related benchmark, scores rose by more than 20 points.
- Cybersecurity: On the team’s reported evaluation, accuracy exceeded 84%. The team considers this a leading position. It also states that security-related subtasks improved noticeably compared with the previous generation.
These numbers indicate a direction, but they are not enough to compare models directly. To interpret them, at least four pieces of information are needed: the benchmark name, the baseline used for comparison, the sample size, and the test date. Without these, claims such as “improved by dozens of times” or “ranked near the top” should be treated only as reference points. This article does not discuss how to exploit security-related capabilities.
3. Why Long-Horizon Environments Are Harder Than Single-Turn Tasks
A single-turn question-answering task requires the model to produce one response. A long-horizon environment requires the model to carry out many consecutive steps, such as a complete software development workflow or a multi-stage system test. The result of each step affects later decisions.
In long-horizon tasks, the model must keep its goal consistent, remember the steps it has already completed, and adjust its plan when errors occur. Reinforcement learning teaches these behaviors through repeated trial and error. The team argues that expanding the number and diversity of environments improves generalization more than simply increasing the number of training iterations. This claim still needs more public data to support it.
4. Automated Verifiers: Where the Reward Comes From
Reinforcement learning requires a reward signal. If humans score every step, the cost is high and the process is hard to scale. A verifier is an automated program that checks whether the result of the model’s actions meets the target.
In software engineering tasks, a verifier can be a set of unit tests. In terminal tasks, it can be a script that checks the state of the target system. When building a verifier, confirm each item in the following checklist:
- Inputs and outputs: Define the initial state of the environment, the operations the model can perform, and the expected final state.
- Pass criteria: A program must be able to judge each task’s pass condition accurately. Avoid subjective descriptions.
- Error handling: Record the rates of false positives (incorrect passes) and false negatives (correct results marked as failures), and analyze their causes.
- Human review: Set a sampling rate, for example by reviewing a fixed percentage of each batch of tasks. Pause training if the error rate rises.
The quality of the verifier directly determines the quality of the reward signal. If the reward signal is biased, the model learns incorrect behavior.
5. Reinforcement Learning Infrastructure
Large-scale reinforcement learning places heavy demands on compute scheduling and communication. Training typically involves two roles. Actors interact with the environment and generate trajectories. Learners update model parameters based on rewards. These roles have different load profiles, so each needs to scale independently.
Enterprises can use cloud-native container orchestration and elastic compute to build a similar pipeline. In practice, monitor the following metrics:
- Training throughput: Environment interaction steps completed per hour.
- GPU utilization: The share of idle time, which shows whether resources are wasted.
- Cost per task: The average cost to complete one effective training task.
- Failure and retry rate: The share of environment crashes or timeouts.
Looking at throughput alone can lead to poor decisions. Cost and stability must also be part of the evaluation.
6. Code Example: Set Boundaries First, Then Add Features
The example below shows how to add basic safety controls to tool calls. It is a minimal reference implementation and should not be used directly in production. In a real deployment, run the agent in an isolated container, with a dedicated account and read-only mounts.
import jsonimport loggingimport osimport shleximport subprocessimport requestsAPI_URL = os.environ.get("MODEL_API_URL", "https://api.example.com/v1/chat/completions")API_KEY = os.environ["MODEL_API_KEY"] # Read the key only from an environment variable. Never hard-code it.HEADERS = {"Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json"}MODEL_NAME = os.environ.get("MODEL_NAME", "your-model-name")SANDBOX_DIR = "/srv/agent-sandbox" # Authorized working directoryALLOWED_COMMANDS = {"ls", "pwd", "cat", "tail"} # Only read-only commands on the allowlist are permittedMAX_OUTPUT_CHARS = 4000audit = logging.getLogger("agent.audit")logging.basicConfig(level=logging.INFO)def run_allowed_command(command: str) -> str:try:args = shlex.split(command)except ValueError as exc:return f"Error: failed to parse command: {exc}"if not args or args[0] not in ALLOWED_COMMANDS:audit.warning("Rejected command: %r", command)return "Error: command is not on the allowlist"audit.info("Executing command: %r", command)try:result = subprocess.run(args,capture_output=True,text=True,timeout=10,cwd=SANDBOX_DIR,check=False,)except subprocess.TimeoutExpired:return "Error: command timed out"except OSError as exc:return f"Error: failed to start command: {exc}"return (result.stdout + result.stderr)[:MAX_OUTPUT_CHARS]def ask_model(messages: list, tools: list) -> dict:payload = {"model": MODEL_NAME, "messages": messages, "tools": tools}try:resp = requests.post(API_URL, json=payload, headers=HEADERS, timeout=60)resp.raise_for_status()except requests.RequestException as exc:logging.error("Model request failed: %s", exc)raisereturn resp.json()def run_agent(user_task: str, max_steps: int = 5) -> str:tools = [{"type": "function","function": {"name": "execute_terminal_command","description": "Run read-only shell commands in the authorized sandbox directory","parameters": {"type": "object","properties": {"command": {"type": "string", "description": "The command to run"}},"required": ["command"],},},}]messages = [{"role": "system", "content": "You are a software engineering assistant. Only use the provided tools, and read information only within the sandbox directory."},{"role": "user", "content": user_task},]for _ in range(max_steps):data = ask_model(messages, tools)message = data["choices"][0]["message"]messages.append(message)tool_calls = message.get("tool_calls")if not tool_calls:return message.get("content", "")for call in tool_calls:if call["function"]["name"] != "execute_terminal_command":result = "Error: unknown tool"else:try:args = json.loads(call["function"]["arguments"])result = run_allowed_command(args.get("command", ""))except json.JSONDecodeError:result = "Error: tool arguments are not valid JSON"messages.append({"role": "tool", "tool_call_id": call["id"], "content": result})return "Maximum number of steps reached. Task stopped."
The code reflects several principles. Keys are read from environment variables.
