The Next Leap for Large Language Models: From Post-Training to Architecture Evolution

    This article examines how large language models improve through two complementary paths: post-training and architecture changes. Using three releases from an open-source model series over roughly 100 days as a case study, it breaks down sparse expert routing, hybrid sparse-linear attention, native multimodality, and agentic terminal capabilities. It also offers practical guidance for developers on model selection, realistic evaluation, cost observability, and common pitfalls to avoid.

    1. Introduction: Two Paths to Capability Gains

    As intelligent coding tools and AI agents become more widely adopted, developers’ expectations have shifted from “can it answer correctly?” to “can it finish the task in a real engineering environment?” This has led the industry to pursue two complementary paths for improving model capabilities. The first is post-training-driven: without changing the base model, existing capabilities are drawn out through environment construction, reinforcement learning, and task data refinement. The second is architecture-driven: while keeping parameter scale in the same range, attention structures, sparsification strategies, and modality fusion methods are adjusted to make room for a higher capability ceiling.

    Three stages of an open-source large model series over roughly the past 100 days form a clear evolution curve, making it a useful technical case study.

    2. Stage Review: Three Versions, Three Shifts in Focus

    2.1 Stage One: The “Environment Dividend” of Pure Post-Training

    The official description of this stage is straightforward: all capability gains came from post-training, with a base model identical to the previous generation—a sparse expert structure with roughly 744B total parameters and about 40B activated parameters, trained on about 28.5T tokens. The most striking result was a jump in a terminal-oriented agent benchmark from 4.6 to 28.3.

    The engineering meaning behind this number is worth unpacking. Terminal tasks test not knowledge recall but multi-step planning, command construction, error recovery, and use of environmental feedback. Such capabilities are hard to emerge naturally from pre-training data; the model must repeatedly trial-and-error in executable, rollback-capable, and verifiable sandbox environments. So the real investment in this stage was not in the “model” but in the “environment factory”: task generation, container orchestration, state snapshots, result verification, and reward design.

    2.2 Stage Two: Smaller Size and Native Multimodality

    About two weeks later, a lightweight version reduced total parameters to 320B and activated parameters to 18B, using 45 layers of mixed sparse and linear attention, and became the series’ first native multimodal model.

    “Native multimodality” is fundamentally different from a “bolt-on vision encoder”: the former unifies the representation space of text and vision during pre-training, so cross-modal alignment needs no extra adapter layers. Screenshots, interface images, log captures, and code can be reasoned over jointly in the same context. For coding scenarios, this means “modify the UI from an image” and “read an error screenshot to locate a problem” move from demos to practical use.

    2.3 Stage Three: The First Architecture Change

    By the third stage, parameters remained in the same range, but the focus shifted: the previous two generations relied almost entirely on post-training to build environments and reinforcement learning, while this stage modified the architecture for the first time. This is a clear signal—when the marginal returns of post-training begin to diminish, structural optimization becomes the way to keep raising the ceiling.

    3. Technical Highlights

    3.1 Sparse Expert Structure: Decoupling Compute from Capacity

    The significant gap between total and activated parameters is a hallmark of the sparse expert structure. It decouples “model capacity” from “per-inference compute”: capacity determines breadth of knowledge, while activation determines latency and cost. The engineering cost involves routing balance, expert-parallel communication, and load-skew management. Common practices include capacity-factor constraints, auxiliary load-balancing loss, and expert sharding and scheduling.

    Illustrative routing and capacity-constraint logic:

    1. # Pseudocode: expert routing and capacity constraints
    2. logits = router(hidden) # [tokens, num_experts]
    3. probs = softmax(logits, dim=-1)
    4. topk_idx, topk_w = topk(probs, k=2) # sparse activation
    5. capacity = int(tokens * capacity_factor * k / num_experts)
    6. assign = enforce_capacity(topk_idx, capacity) # drop or fall back on overflow
    7. aux_loss = load_balance_loss(probs, assign) # suppress routing collapse

    3.2 Hybrid Sparse and Linear Attention: The Cost Curve of Long Contexts

    As context length grows, the cost of standard attention scales quadratically with sequence length. The core idea of a hybrid scheme is to use linear or low-rank approximations in most layers for linear complexity, while keeping full attention in a few layers to preserve precise retrieval. The engineering benefit shows up directly in memory and throughput for long-repository, multi-file, and long-conversation scenarios; the cost is that you must verify on evaluation sets whether “long-range precise recall” degrades, especially for tasks like cross-file symbol references.

    3.3 Native Multimodality: Alignment Gains from a Unified Representation

    A unified representation space removes the cross-modal adapter layer, eliminating one source of error and shortening the training and inference path for mixed image-text contexts. In practice, the key is still data: the pairing quality of interface screenshots and code, image resolution and tiling strategy, and the vision token budget all significantly affect real-world results.

    3.4 Agent Capabilities: From “Writing Code” to “Running Commands”

    The leap in terminal tasks shows the training focus shifted to tool calling and state management. A reliable minimal loop has four parts: an executable sandbox, structured observations, clear termination conditions, and verifiable rewards. Missing any of these, reinforcement learning easily degrades into overfitting the reward.

    1. Observation(files/command output) -> Plan(next action) -> Execute(restricted sandbox)
    2. ^ |
    3. +----------- Verify and rollback <-----+

    4. Practical Advice for Developers and Enterprises

    1. Select by task tier: interactive completion cares about first-token latency, so favor the smaller-activation version; long-chain refactoring and terminal automation care about planning and recovery, so favor the larger version.
    2. Keep evaluation realistic: build task sets from your own repositories, with metrics covering at least first-pass rate, average interaction rounds, rollback rate, and cost per task.
    3. Turn architecture features into configuration: context budget, vision token limits, and expert-parallelism should be adjustable rather than hard-coded.
    4. Make cost observable: connect call logs, latency, and failure reasons to logging services and monitoring alerts to form a data loop for continuous optimization.
    5. Scale elastically: batch evaluation and offline tasks suit the elastic scaling of container platforms, paired with object storage for saving artifacts and snapshots.

    5. Common Pitfalls

    • Treating benchmark scores as production performance, ignoring data contamination and task-distribution differences;
    • Assuming “native multimodality” means strength at any visual task, overlooking resolution and tiling strategy;
    • Looking only at total parameters while ignoring activation and routing efficiency, leading to flawed capacity planning;
    • Rough reward design in the reinforcement learning stage, so the model learns to “please the verifier” rather than solve the problem.

    6. Conclusion

    From pure post-training to architecture evolution, the methodology this curve points to is actually simple: first squeeze existing capabilities dry with environments and data, then raise the ceiling structurally. For adopters, what really needs to be built is not faith in a particular version, but an evaluation and tuning system aligned with your own task distribution. To quickly validate these ideas, you can build a minimal loop on general-purpose capabilities from Baidu AI Cloud (such as container platforms, object storage, logging services, and monitoring alerts), using data to drive version selection.