Getting Stronger Without More Parameters: A Record of Recurrent Architecture and Post-Training

    This article examines how to improve a large language model's capabilities without increasing its parameter count. It covers a six-part technical approach: reusing an existing base model, adding a recurrent structure to increase effective compute depth, using gating for training stability, extending coding ability through post-training into 3D modeling, motion effects, and game logic, co-designing architecture with inference infrastructure, and returning to top-tier performance at a non-maximum parameter scale. It includes code examples, an evaluation framework, inference optimization directions, and practical testing recommendations.

    1. The Starting Point: Parameters Are No Longer the Only Variable

    For the past few years, the industry has commonly used parameter count as the measure of a model’s capability ceiling. However, under compute and cost constraints, simply scaling up the base model is not always a viable path. Attention has gradually shifted to a different question: with a fixed parameter count, can capability still be improved through compute depth, training strategy, and inference engineering? This article discusses one such path, whose technical foundation can be summarized in six points.

    First, reuse the existing base model at its current parameter scale rather than pre-training a larger one. Second, introduce a recurrent structure so that some layers are called repeatedly, increasing effective compute depth. Third, use mechanisms such as gating to address the training instability caused by multiple recurrent rounds. Fourth, strengthen general coding ability during post-training and extend it to scenarios such as 3D modeling, motion effects, and game logic. Fifth, co-design the architecture and inference infrastructure to control the extra memory and latency overhead. Sixth, repeatedly return to top-tier performance at a non-maximum parameter scale in a highly competitive environment.

    2. Recurrent Deep Computation: Trading Depth for Width

    In a traditional dense network, compute roughly scales linearly with the number of layers, and adding layers raises memory usage, communication cost, and optimization difficulty at the same time. A recurrent structure takes a different approach: the same set of parameters is reused multiple times. For example, a group of intermediate layers can be executed for two recurrent rounds, so each sample passes through a longer transformation chain inside the network while the total parameter count stays essentially unchanged.

    The benefits are mainly twofold. First, effective compute depth increases, which helps with tasks that require multi-step reasoning, such as inferring cross-file dependencies in code completion. Second, parameter efficiency improves: with the same memory budget, you can support a longer context or a larger batch. The cost is equally direct: the number of forward and backward computations per sample increases, so both training and inference take more time, and gradients must propagate across recurrent rounds, which can easily cause numerical scale drift.

    A schematic representation of the structure can be written as:

    1. def loop_block(x, layers, rounds=2, gate=None):
    2. for r in range(rounds):
    3. for layer in layers:
    4. x = layer(x)
    5. if gate is not None:
    6. x = gate(x, r) # Per-round gating to control the strength of information writes
    7. return x

    3. Stability Is the Key Engineering Problem: Gating and Normalization

    The most typical failure mode of multiple recurrent rounds is that activations grow or decay round by round, causing loss oscillation or even divergence. Common practices in the field include: introducing per-round gating so the model itself decides how much new information to write at each round; applying normalization between rounds to constrain the activation distribution; scaling or truncating the gradients across recurrent rounds; and using a residual path to guarantee that at least one copy of the “original information” reaches the output directly.

    A gating implementation that is easy to understand is shown below:

    1. class GatedRound(nn.Module):
    2. def __init__(self, dim):
    3. super().__init__()
    4. self.g = nn.Linear(dim, 1)
    5. def forward(self, x, prev):
    6. alpha = torch.sigmoid(self.g(x)) # Write strength between 0 and 1
    7. return alpha * x + (1 - alpha) * prev

    One additional engineering detail matters: the number of recurrent rounds should stay consistent between training and inference, otherwise a train-inference distribution mismatch appears. If you want to select the number of rounds dynamically at inference time, you must introduce random rounds during training so the model sees different depths.

    4. Post-Training for General Coding: From Writing Code to Writing “Works”

    The focus of post-training is to extend coding ability from “function-level completion” to “work-level delivery.” This requires upgrading both data and evaluation at the same time. Building 3D scenes, controlling motion effect timelines, and implementing game loops and state management all essentially couple structured code with visual results, so the model must understand rendering pipelines, coordinate systems, lighting, and performance budgets.

    A reusable breakdown of evaluation dimensions:

    Dimension Focus Common Failures
    Runnability Whether it errors on the first run Missing dependencies, incorrect API usage
    Visual consistency Whether the result matches the description Wrong proportions, incorrect materials
    Interaction completeness Whether events and states form a closed loop Unbound events, state leakage
    Performance Frame rate and memory usage Overdraw, unreleased resources

    5. Inference-Side Coordination: Hiding the Extra Depth in the Cost

    A recurrent structure naturally adds computation, so the inference infrastructure must be optimized in parallel; otherwise, the capability gains will be consumed by latency and memory. General and mature directions include: reusing the key-value cache across recurrent rounds to avoid repeated projection; reusing sparse attention indices to reduce repeated scoring; quantizing or storing recurrent intermediate states at lower precision; and applying dynamic batching and operator fusion to merge repeated structures into fewer kernel launches.

    In terms of deployment, you can host inference services on a container platform, use object storage for models and assets, and use logging, monitoring, and alerting to track time to first token, throughput, and memory levels, forming a closed tuning loop.

    6. How to Objectively Evaluate a New Model

    Practical testing should cover at least two days and three task types: real repository-level refactoring, cross-file dependency repair, and visual work generation. Recording the first-run success rate, average number of repair rounds, manual intervention time, and resource usage is more convincing than a single score. Conclusions should also be drawn cautiously: compared with the most advanced closed-source models, general coding still lags, and those models iterate just as quickly. However, achieving significant improvement through architecture and post-training at an unchanged parameter count suggests that the domestic technical path has not yet hit an obvious ceiling.