Post-Training Coding Gains: Why Model Scores Double While Frontend Skills Regress

    This article breaks down why a new post-trained model can nearly double its score on algorithmic coding tasks while regressing on frontend work such as UI replication and styling. It explains the role of verifiable rewards in reinforcement learning, how sampling and search amplify gains, and how distribution shift causes frontend regression. It also outlines a minimal evaluation design using a shared 2v2 soccer-style sandbox, along with engineering practices for reward design, capability guardrails, tiered collaboration, and decoupled training infrastructure.

    1. The Phenomenon: Gains and Regressions Happen Together

    A common pattern in the iteration of AI coding tools is that a new post-trained model can score nearly twice as high as the previous generation on algorithmic tasks, yet regress noticeably on frontend tasks such as UI replication and styling details. The comparison data in the original article shows a similar structure: for two post-trained versions of the same base model, the team match score rate rose from about 38.9% to 58.2%, and the individual match score jumped from a lower tier in the base model family to 66.0%. Even so, both versions still lag well behind the top tier (99.5% in team matches and 95.3% in individual matches).

    This shows that “coding ability” is not a scalar but a vector of multiple sub-abilities. Treating a doubled total score as the only goal makes it easy to sacrifice dimensions that are not being measured during optimization.

    2. Why Reinforcement Learning Can Deliver Multiplicative Gains

    1. Verifiable rewards are the key prerequisite

    Tasks such as algorithm problems, unit tests, and compilation pass rates come with signals that can be judged automatically: whether test cases pass is binary, repeatable, and requires no human annotation. In these environments, reinforcement learning can sample at high frequency and filter quickly, achieving far higher sample efficiency than human preference labeling.

    2. The benefits of sampling and search are amplified

    What improves in the post-training stage is often not only single-output accuracy, but also the model’s self-checking along its reasoning chain, enumeration of boundary conditions, and complexity trade-offs. These behaviors accumulate and amplify in long-chain tasks, so score curves often show nonlinear jumps.

    3. Distribution shift explains the frontend regression

    Reinforcement learning reshapes the output distribution. If the reward signal comes almost entirely from algorithmic correctness, the model converges toward a style of “think it through first, then write a small amount of code.” Frontend tasks, however, depend heavily on visual priors, component idioms, and styling fine-tuning experience. These abilities exist in the original corpus, but their probability is suppressed under the new distribution. The result is that the model “thinks more, yet the interface becomes plainer.”

    3. Evaluation Design: A Minimal Approach That Makes Conclusions Credible

    The testing approach in the original article is worth abstracting and reusing: use the same simplified 2v2 soccer-style adversarial environment as a unified sandbox, running both team matches (two models collaborating) and individual matches (a single model), with multiple control groups.

    • Control groups should cover “same base model, different post-trained versions” to isolate the gains introduced by post-training.
    • They should also cover “strong model + weak partner” and “strong model + strong partner” to measure the short-board effect in collaboration.
    • Metrics should not rely on win rate alone; score rate, the win/draw/loss distribution, and goal difference should be recorded as well, so a single metric is not skewed by extreme samples.

    An illustrative structure for evaluation records:

    1. @dataclass
    2. class MatchStat:
    3. score_rate: float # score rate
    4. win: int
    5. draw: int
    6. loss: int
    7. goal_for: int
    8. goal_against: int
    9. def summarize(matches: list[MatchStat]) -> dict:
    10. total = sum(m.win + m.draw + m.loss for m in matches)
    11. return {
    12. "score_rate": sum(m.score_rate for m in matches) / total,
    13. "goal_diff": sum(m.goal_for - m.goal_against for m in matches),
    14. "draw_ratio": sum(m.draw for m in matches) / total,
    15. }

    4. Engineering Recommendations

    1. Keep the reward function multi-dimensional: score correctness, maintainability, and visual fidelity separately to avoid single-point optimization.
    2. Maintain a capability guardrail set: turn frontend replication, styling details, accessibility, and similar tasks into a regression suite that must run on every iteration.
    3. Add cost tiers to the collaboration pipeline: the main model handles planning and complex reasoning, while a lightweight model takes on subtasks. This can significantly reduce cost, but its downward pull on the overall score rate must be evaluated.
    4. Decouple training and inference infrastructure: a container platform handles sandbox execution, object storage holds samples and checkpoints, and logging and monitoring/alerting services provide observability into sampling success rate and regression rate.

    5. Conclusion

    The multiplicative growth in coding benchmark scores essentially comes from the combination of verifiable rewards, reinforcement learning, and sampling amplification, while the frontend regression is an inevitable by-product of distribution shift. The more robust engineering approach is to break ability into multi-dimensional metrics that constrain one another, use a unified adversarial sandbox for controlled experiments, and build a reproducible training-evaluation loop on cloud infrastructure.