The Evolution of Large Model Architecture and the Practice of General Coding Capabilities
This article examines a second growth curve for large models beyond parameter scaling: keeping the base model size fixed while using architectural changes and post-training reinforcement to gain more effective compute depth per unit of compute. It breaks down six interlocking engineering moves, explains how recurrent computation trades depth for width, how gating and normalization keep training stable, how inference infrastructure absorbs the extra cost, and how general coding extends from writing functions to operating professional software. It also proposes a four-dimension evaluation approach and practical recommendations for compute-constrained teams.
1. Introduction: The Second Growth Curve Beyond the Parameter Race
Over the past two years, gains in large model capability have relied heavily on expanding parameter counts and stacking pre-training data. As compute, data, and energy constraints tighten at the same time, the industry has begun shifting to another path: with the base model size unchanged, use architectural changes and post-training reinforcement to obtain higher effective compute depth per unit of compute. A recent version iteration of a domestic flagship model is a typical example of this approach — it did not pre-train a larger base from scratch, yet achieved a perceptible capability jump at the same model size. This article uses that route as a thread and abstracts a reusable engineering methodology from it.
It should be emphasized that this article does not evaluate or recommend any specific product. Instead, it breaks down the general technical problems behind this kind of iteration: how recurrent computation increases effective depth, how training stability is ensured, how inference overhead is controlled, and how general coding capability is obtained through data and training strategies.
2. Breaking Down the Technical Fundamentals: Six Key Moves
Six interlocking moves can be distilled from the public technical descriptions:
- Reuse the base model at its existing parameter scale, without introducing a larger-scale re-pre-training, to control training cost and iteration cycles.
- Introduce a recurrent computation structure, applying two rounds of recurrence to several layers in the middle of the network, so that the same set of parameters is reused twice, effectively increasing compute depth rather than parameter capacity.
- Solve the training stability problems caused by recurrence, using gating, normalization, and residual path design to suppress gradient anomalies and representation drift across multiple rounds.
- Shift the post-training focus to general coding, extending code capability to scenarios such as 3D modeling, video motion effects, game logic, and professional software operation.
- Co-optimize the architecture and inference infrastructure, using techniques such as key-value cache sharing and sparse attention index reuse to keep the extra memory and latency from recurrence in check.
- Return to the first tier repeatedly on a small-size base, showing that there is still considerable room in optimizing architecture and data efficiency.
3. Recurrent Computation Architecture: Trading Depth for Width
In a traditional Transformer, every layer has independent parameters, so increasing depth means linearly increasing parameters and memory. Recurrent computation turns several middle layers into a repeatedly callable module: the input iterates twice inside the module, and parameter sharing brings two direct benefits — the parameter count stays unchanged and memory usage remains controllable; meanwhile, the number of effective nonlinear transformations doubles, so the model first builds a coarse-grained representation and then refines it in the second round.
The following pseudocode is illustrative and only expresses the structural idea:
def loop_block(x, shared_layer, rounds=2):h = xfor r in range(rounds):h = shared_layer(h, step=r) # Shared parameters, with position injected per roundreturn x + h # Residual reconnect to preserve the gradient path
Three points need attention in engineering: position or step-order encoding must be distinguishable between rounds, otherwise the two rounds of computation degrade into repetition; residuals and normalization must be strictly preserved; the memory peak of the recurrent module occurs during backpropagation of the second round and needs to be evaluated together with the inference-side strategy.
4. Training Stability: Gating and Normalization Working Together
The most common failure mode of recurrent structures is activations amplifying round by round and gradients accumulating repeatedly across rounds, leading to loss spikes. Common industry practices include: inserting gating between rounds so the model can adaptively decide how much of the previous round’s result to keep; using more robust normalization and initialization strategies; applying scaling constraints to round outputs; and, when necessary, arranging the recurrent depth as a progressive curriculum — converge with a single round first, then open up the second round. Together these measures ensure that “multiple rounds of recurrence really bring gains” rather than merely adding noise.
5. The Inference Side: Caging the Extra Overhead
The doubling of compute from recurrence must be absorbed by the infrastructure, otherwise it is hard to put into production. There are four reusable general techniques:
- Key-value cache sharing: the two rounds reuse the same history cache, avoiding duplicate storage;
- Sparse attention index reuse: the second round reuses the index computed in the first round, reducing repeated retrieval;
- Operator fusion and batch scheduling: merge adjacent operators after unrolling the recurrence to reduce memory access;
- Quantization and memory tiering: compress the cache with low-bit precision and offload cold data to host memory.
For cloud deployment, it is common to combine a container platform to host inference services, object storage for models and assets, and logging, monitoring, and alerting services for observability, forming a closed loop.
6. General Coding: From Writing Functions to Operating Professional Software
General coding means the model does not only output executable code but also understands and operates professional environments with complex state: 3D scene graphs, timeline motion effects, game object lifecycles, and engineering files of design tools. It places three demands on the model: first, cross-modal semantic alignment, mapping natural language intent to scene hierarchy and attributes; second, long-context state tracking, remembering the coupling among materials, lighting, cameras, and interaction scripts; third, runnability constraints, so the output can be loaded directly by the target runtime.
The general practice in the post-training stage is to build “intent — engineering artifact” paired data covering three task types: building from scratch, local modification, and performance tuning, and to introduce an execution feedback loop: the model generates, the runtime renders or compiles, error messages are fed back, and the model corrects. Compared with only measuring text similarity, this kind of reward signal based on execution results better improves real usability.
7. Capability Evaluation: How to Tell Whether an Iteration Is Real Progress
It is advisable to replace a single leaderboard with four dimensions of evaluation: functional completeness (whether the main flow runs through), interaction completeness (whether details such as view control, parameter linkage, and day-night switching are all present), engineering quality (whether the structure is clear and resources are reusable), and cost efficiency (latency and memory under the same task). 3D interactive scenes are a good touchstone — for example, a tidal observation station demo: the mouse can freely orbit for observation, the scroll wheel controls distance, dragging the tide-level parameter raises and lowers the sea surface and makes objects in the water float accordingly, and night mode switching is supported. Such a task simultaneously tests spatial understanding, state linkage, and code organization.
8. Gap Awareness and Engineering Recommendations
Objectively speaking, domestic models still lag behind the international leading level in general coding, and the other side is also evolving quickly, so the gap will not close automatically. But the route of architectural optimization plus post-training proves that significant gains can be obtained without increasing parameters, which provides a viable paradigm for compute-constrained teams. The advice for developers is: first build an executable evaluation set in your own scenarios; account for the gains of recurrent architectures together with inference cost; drive post-training iteration with execution feedback rather than human perception; and on the cloud, use general capability components to build elastic inference and an observability system, so that model capability is steadily converted into business output.
