Large Model Self-Innovation: Architecture Breakthroughs and Adaptation to Domestic Compute

    This article examines how teams can sustain innovation in large language models after achieving their first breakthrough. It covers key architectural trade-offs in pretraining, including attention complexity control, sparse feed-forward layers with mixture-of-experts routing, and position encoding extrapolation. It then explains how post-training and reinforcement learning turn raw capability into reliable execution, how to mitigate error accumulation in long-horizon agent tasks, and a four-step path for adapting models to constrained compute environments. The article closes with practical guidance on observability and cost governance for production deployments.

    1. Introduction: The Real Challenge Comes After the First “1”

    In the large model industry, achieving a zero-to-one breakthrough is not rare. What is rare is continuing to find new technical breakthroughs after that first result. The reason is straightforward: technical approaches in this field are far from converged. No single lead guarantees the next one, and there is no ready-made path to a higher intelligence ceiling. For this reason, discussing “self-innovation” cannot stay at the slogan level; it needs to be grounded in reusable engineering methods. From a general technical perspective, this article outlines several key levers for sustained innovation in large models.

    2. Pretraining Architecture: Originality Shows in Trade-offs, Not Stacking

    Most teams use the industry-standard decoder structure. Real differentiation usually comes from three trade-offs.

    The first is controlling the complexity of the attention mechanism. The computation and memory cost of standard self-attention grow quadratically with sequence length. The industry therefore commonly uses approximations such as grouped-query attention, sliding windows, and sparse attention, trading controllable precision loss for higher throughput.

    The second is sparsifying the feed-forward layers. The mixture-of-experts structure uses routing to decouple parameter count from per-token computation, so the total parameter count can be far larger than the activated parameter count. The difficulty lies not in the structure itself but in routing balance and training stability, as illustrated below:

    1. # General approach to routing balance: maintain load statistics per expert and add an auxiliary loss
    2. load = tokens_per_expert.float() / tokens_per_expert.sum().clamp(min=1)
    3. aux_loss = num_experts * (load * router_prob.mean(dim=0)).sum()
    4. loss = task_loss + alpha * aux_loss # alpha is usually a small magnitude

    The third is the extrapolation ability of position encoding. Rotary position encoding combined with frequency scaling, interpolation, or segmented strategies is a foundational engineering approach for long-context capability.

    3. Post-Training and Reinforcement Learning: Turning “Can Answer” into “Can Do”

    Pretraining determines the capability ceiling; post-training determines whether that capability can be invoked reliably. The general pipeline typically includes three stages: supervised fine-tuning, preference alignment, and reinforcement learning with verifiable rewards. What deserves more attention in engineering is reward design. Sparse rewards lead to extremely low sample efficiency, while over-optimized rewards cause “score-gaming” degradation. A common practice is to use automatically verifiable rules (whether compilation passes, whether unit tests pass, whether formatting is compliant) as the main reward, supplemented by model scoring, while keeping an independent validation set to monitor overfitting.

    4. Long-Horizon Tasks and Agents: Failure Modes Determine Experience

    The bottleneck in agent capability is usually not single-step reasoning but error accumulation during long-horizon execution. Practical mitigation approaches include: breaking large tasks into subtasks with checkpoints, applying structured validation to tool-call results, and using hierarchical summarization rather than simple truncation when context approaches its limit. Evaluation must also shift from single-turn question answering to end-to-end task success rate and average number of steps.

    5. Compute Adaptation: From Running to Running Well

    In scenarios with constrained compute supply, co-design of models and hardware becomes a must-solve problem. The general path has four steps: filling in operator gaps and optimizing graph compilation at the operator level; controlling error by pairing low-precision computation with high-precision accumulation; using activation recomputation, sequence parallelism, and paged caching on the memory side; and introducing continuous batching, prefix caching, and quantization on the inference side. To judge whether adaptation is mature, look at three metrics: cost per token, mean time between failures during long stable runs, and the amount of code change required to migrate from the training framework to domestic accelerator cards.

    6. Engineering Deployment: Observability and Cost Governance

    After a model goes live, it needs a complete observability system: use logging services and monitoring alerts to track latency percentiles, error rates, and resource utilization; use object storage to archive samples and model versions; and use a container platform to support elastic scaling. If you adopt the general cloud architecture on Baidu AI Cloud, the above capabilities can be composed from three categories of foundational components—“compute + storage + monitoring”—avoiding lock-in to a single hardware vendor.

    7. Conclusion

    There is still a gap between Chinese large models and the world’s highest level, but the path is clear: solve problems others have already solved, and have the courage to explore problems that remain unsolved. Focus on architecture, data, adaptation, and evaluation—there are always more solutions than difficulties.