Large Model Architecture Evolution and the Rise of General Coding Capabilities
This article examines an alternative growth path for large models beyond scaling parameters: keeping the base model at roughly 700 billion parameters while introducing loop-based computation across selected layers, stabilizing multi-round execution with gating and normalization, and shifting post-training toward "general Coding" tasks such as 3D modeling, code-driven motion effects, game logic, and automation of professional software. It covers the mechanics and costs of looped computation, four approaches to preventing round collapse, evaluation practices that favor runnable artifacts over text similarity, and inference-side optimizations including KV cache sharing and sparse attention index reuse. The conclusion is that architecture optimization and post-training remain usable growth levers, while domestic models are still catching up in general Coding.
1. The Question: A Second Growth Curve Beyond the Parameter Race
Over the past two years, gains in large model capability have depended heavily on expanding parameter counts and pre-training data volume in lockstep. But when compute budgets, inference costs, and deployment density all tighten at once, the marginal return of simply “making the model bigger” starts to decline. An alternative path has emerged: keep the base parameter count fixed, restructure the computation inside the network, and reallocate capability focus during post-training.
The technical sample discussed here has a few clear characteristics. It reuses a base model on the order of roughly 700 billion parameters, with no larger model pre-trained from scratch. It introduces loop-style computation in several layers, so the same set of parameters is reused multiple times to increase effective computational depth. Gating and normalization designs address the training instability that multiple loops introduce. Post-training shifts the focus from pure code generation to “general Coding,” meaning 3D modeling, code-driven video motion effects, game logic development, and automated operation of various professional software tools. On the inference side, cache sharing and sparse attention index reuse suppress the extra memory and latency overhead.
One point deserves emphasis: this route does not claim to outperform leading closed-source models across the board. The objective assessment is that in general Coding, an emerging area, domestic models are still in a catching-up phase, with a perceptible gap to the leading approaches, and the leaders are iterating quickly as well. The value lies in validating a hypothesis: without adding parameters, architecture and post-training alone can deliver a significant capability gain.
2. Extending Computational Depth: How Looped Computation Works and What It Costs
In a conventional Transformer, “depth” is determined by the number of layers, each with its own independent parameters. Looped computation configures some of those layers (for example, 28 layers in the middle of the stack) as a shared block that can execute two or more rounds, so the input travels back and forth inside the block at least once before being passed downward.
There are three benefits. First, better parameter efficiency: the same parameter count carries more effective computation steps, effectively trading time for space. Second, an implicitly adjustable inference budget: multiple rounds naturally correspond to “thinking longer,” which makes it easy to add computation on hard samples. Third, finer-grained feature abstraction: repeatedly passing through the same transformation helps form more stable intermediate representations.
The costs are equally clear. Because shared weights are applied repeatedly, error and numerical scale amplify round by round, which can lead to activation explosion or vanishing gradients. The functional roles of different rounds also tend to converge, producing the outcome where “computing twice equals computing once.” Common engineering mitigations include introducing an independent gating coefficient for each round so the model decides how much information to retain; inserting normalization between rounds to constrain numerical scale; and applying scaled initialization to the residual path inside the loop block so gradients flow cleanly in early training.
A schematic description of the structure follows (pseudocode, expressing the idea only):
h = embed(tokens)for r in range(num_repeats): # e.g. num_repeats = 2g = gate(h) # per-channel gate controlling how much this round writesh = h + g * block_r(norm(h)) # normalization + residual to suppress numerical driftlogits = head(norm(h))
3. Training Stability: Making Multiple Rounds Actually Pay Off
The most common failure mode of a looped structure is “round collapse,” where the model learns to make the second round approximate an identity mapping. Four workable responses exist.
First, round-differentiated supervision: apply auxiliary losses with different weights to the intermediate output of each round, forcing each round to take on a distinct role. Second, gate sparsification: gently constrain gate outputs toward the 0/1 extremes to avoid signals being diluted by a long-term half-open state. Third, progressive enablement: turn on the loop only in the later stage of pre-training, letting the early stage complete basic representation learning with single-layer behavior, which reduces early instability. Fourth, numerical precision management: use higher precision for accumulation inside the loop block so that stacking multiple rounds does not amplify rounding error.
Evaluating these changes cannot rely on final benchmark scores alone. Three curves should be observed at the same time: inter-round output divergence (whether collapse is occurring), the slope of activation norm change across rounds (whether drift is occurring), and throughput plus peak memory under a fixed compute budget (whether it is deployable).
4. From Coding to General Coding: Redrawing the Capability Boundary
General Coding means the model no longer outputs only functions and scripts, but treats code as a language for operating real toolchains: generating 3D scenes and materials, writing scripts that drive keyframes and motion effects, implementing a runnable game loop with collision logic, and calling professional design or engineering software to complete parametric modeling.
These tasks place demands on the model that differ from traditional programming problems: spatial and geometric intuition, an understanding of state machines and event-driven timing, accurate knowledge of rendering pipelines and coordinate systems, and maintaining multi-file consistency under long context. The key post-training action is closed-loop validation using large numbers of “runnable, renderable, interactive” artifacts, rather than comparing text similarity alone.
A typical deliverable is an interactive 3D visualization page. Its technical focus concentrates on four parts: the render loop, camera control, parameter-driven geometry, and state updates.
// Structural sketch: render loop + orbit controls + parameter-driven geometryfunction animate(t) {const level = params.tide; // external slider input 0..1water.position.y = lerp(lowY, highY, level);floaters.forEach(o => o.position.y = water.position.y + o.offset);controls.update();renderer.render(scene, camera);requestAnimationFrame(animate);}
Evaluating general Coding output should hold to “executable first”: does it start in a browser or runtime without errors, is interaction continuous, do extreme parameter values cause geometric interpenetration or numerical jitter, and do the day and night lighting schemes share the same set of materials and state sources.
5. Inference-Side Coordination: Bringing Down the Cost of Extra Depth
Multiple rounds increase pressure on activations and cache, so the architecture must be co-designed with the inference infrastructure. Common industry practices include sharing the key-value cache across rounds to avoid repeated writes; reusing sparse attention indices to reduce per-round index construction overhead; applying operator fusion and better batch scheduling to the loop block; and on the cloud side, using container platforms for elastic scaling, object storage to distribute static artifacts, and logging services with monitoring and alerting to track time to first token and memory watermarks.
To reproduce load testing in your own environment, the following approach can record the key metrics:
metrics = {"ttft_ms": [], # time to first token"tps": [], # output tokens per second"kv_cache_mb": [], # cache peak"repeat_delta": [], # inter-round output divergence}
6. Conclusion and Action Items
The significance of this generation of models is not larger parameters, but the demonstration that architecture optimization and post-training remain usable growth levers, and that domestic models have not yet hit an obvious ceiling in their own technical evolution. For developers, the recommendations are: add general Coding to the standard evaluation set and score with runnable artifacts rather than text similarity; build stability monitoring alongside any adoption of looped-computation architectures; and control per-inference cost during deployment through cache reuse and elastic resources. Baidu AI Cloud can provide general-purpose container, storage, and monitoring capabilities for this class of workload, supporting the full path from validation to production.
