Large Model Capability Convergence: The Engineering Logic Behind Going Deep First and Multimodal Fusion Later

    This article examines why leading engineering teams prioritized verifiable depth—particularly code generation and software engineering—over broad modality coverage, and how that choice later enabled multimodal fusion. It breaks down the three reasons code became the first wedge (machine-checkable feedback, dense structured corpora, and capability transferability), the protocol–environment–orchestration stack that actually differentiates agent performance, the three scaling constraints on the training, inference, and data sides, and the alternative path to multimodal capability in which environmental state and actions are translated into a unified context-and-action representation instead of requiring a natively multimodal model. It also covers the engineering cost of safety alignment through an explicit risk-tiering matrix and declarative policy configuration, and closes with role-specific practices, evaluation metrics, and anti-patterns for individual developers, technical leads, and platform teams.

    In the evolution of general-purpose large models, a widely circulated view held that multimodal capability would develop in every direction at once: only by connecting text, image, audio, and video within a single architecture could the field claim a path toward artificial general intelligence. Another group of researchers chose the opposite approach. Instead of pursuing complete modality coverage, they pushed one capability line to its limit. Code generation and software engineering became the most typical entry point for that route.

    The debate over whether to build breadth first or depth first is still unsettled. In hindsight, its substance is not a contest between modalities but a contest between two ways capability grows—and the engineering judgments embedded in it are worth dissecting one by one.

    1. Why Code Was the First Target for a Point-to-Surface Breakthrough

    Choosing code as the primary direction was no accident. Three reinforcing reasons explain it.

    (1) Feedback can be judged automatically. Whether compilation succeeds, whether all unit tests pass, whether boundary conditions are handled correctly—all of these yield objective, repeatable conclusions from a machine. By contrast, the aesthetic quality of a generated image or the physical plausibility of a generated video has long resisted quantification, with evaluation standards drifting according to each reviewer’s subjective preferences. That difference means every model output can be collected, labeled, and converted into a training signal. The resulting generate–execute–verify loop lets the model keep improving with almost no human intervention, which is a key foundation for the faster self-improvement cycles that followed.

    (2) High corpus density and clear structure. Open source repositories contain vast amounts of source code, comments, test cases, and change history. Tests and real commits naturally form a triple structure of input–expected behavior–actual behavior: ready-made supervision data. High-dimensional continuous signals such as images and video cost more to store, transmit, and align. For architectures built around self-attention, the training cost-efficiency of high-quality text corpora is a pronounced advantage.

    (3) The capability is general. Solving an engineering problem typically requires the model to read large amounts of context, decompose requirements, design module boundaries, consider error paths, and revise repeatedly—capabilities that overlap heavily with complex logical reasoning and long-document understanding. Code, in other words, is a projection surface of capability rather than the capability itself. Breaching one direction that is verifiable, accumulative, and reusable first, then transferring the planning and reasoning ability that settles out of it to other tasks, is the lower-risk choice.

    The following illustrative code shows how an execute–verify–reward loop drives model improvement. In a real system, the sandbox, timeout control, and resource limits are provided uniformly by the infrastructure.

    1. import json
    2. import subprocess
    3. from dataclasses import dataclass
    4. from typing import Callable, Optional
    5. @dataclass
    6. class EvalCase:
    7. """A verifiable evaluation case: input -> expected result"""
    8. task_id: str
    9. stdin: str
    10. expected_stdout: str
    11. def evaluate(
    12. candidate: str,
    13. cases: list[EvalCase],
    14. run_in_sandbox: Callable[[str], subprocess.CompletedProcess],
    15. ) -> dict:
    16. """
    17. Returns an objective score for the candidate solution, used as the reward signal for the next training round.
    18. The execution layer must run inside an isolated sandbox with CPU, memory, and timeout limits.
    19. """
    20. passed = 0
    21. for case in cases:
    22. result = run_in_sandbox(candidate)
    23. ok = (
    24. result.returncode == 0
    25. and result.stdout.strip() == case.expected_stdout.strip()
    26. )
    27. if ok:
    28. passed += 1
    29. total = len(cases)
    30. return {
    31. "task_id": cases[0].task_id,
    32. "pass_rate": passed / total if total else 0.0,
    33. "reward": passed / total if total else 0.0,
    34. "latency_ms": getattr(result, "elapsed_ms", None),
    35. }

    Three engineering points show up in this snippet:

    • Comparable signals: Using pass rate as the reward lets different candidates for the same task be ranked fairly, unaffected by reviewer preference.
    • Isolation is a prerequisite: Any generated code might read sensitive files or make network requests, so it must run in a sandbox with limited resources.
    • Failures must be attributable: Recording compile errors, timeouts, and error output is what allows you to determine whether the problem lies in the prompt or in the environment.

    2. What Really Separates the Field Is the Protocol and the Execution Environment

    Early outside impressions of these models usually stopped at “can it write code?” What actually separates them is a whole body of infrastructure outside the model. It falls into three layers:

    • Protocol layer (context and tool-calling protocols): Describing external capabilities—filesystem, terminal commands, web retrieval, database queries—to the model in a structured way. Call parameters need type constraints, and returned results should be truncated to a suitable length and carry status codes, so the model knows whether a call succeeded or failed and how to retry.
    • Environment layer (agent execution framework): Responsible for which directory code runs in, how dependencies are installed, how to roll back on failure, and the maximum number of tool calls and budget allowed per task. This layer determines whether the model can complete long-horizon tasks spanning dozens of steps and several minutes.
    • Orchestration layer (skills and workflows): Turning stable multi-step practices into reusable skills, for example “read the configuration before changing code,” “always run tests after a change,” and “check for sensitive information before committing.” The essence of a skill is converting human engineers’ experience into constraints the model can execute.

    The example below uses a generic JSON Schema to describe a file-write tool, where the point is to expose risk explicitly to the model:

    1. {
    2. "name": "write_file",
    3. "description": "Write or overwrite a text file within the task working directory. Returns the number of bytes written and a summary.",
    4. "parameters": {
    5. "type": "object",
    6. "properties": {
    7. "path": { "type": "string", "description": "Path relative to the working directory" },
    8. "content": { "type": "string" },
    9. "overwrite": { "type": "boolean", "default": false }
    10. },
    11. "required": ["path", "content"]
    12. },
    13. "metadata": {
    14. "side_effect": "filesystem_write",
    15. "risk_level": "medium",
    16. "idempotent": false,
    17. "requires_confirmation": true
    18. }
    19. }

    The key point: a tool declaration is not documentation but an execution contract. Omitting a single field (for example, the permitted overwrite scope) can make the model perform a write operation no one intended. Tool design therefore needs to be reviewed together with the business permission model. For ordinary users, “what can be written, what can be changed, and whether a failure can be undone” should be immediately clear. For enterprise developers, the call path needs fine-grained permission control and auditability.

    3. Scaling Further: Three Constraints on the Engineering Side

    Outside observers often use parameter count as the yardstick for progress, from hundreds of billions to trillions and beyond. From an engineering perspective, however, parameter scale is only the surface. What determines whether progress can continue steadily is whether the following three constraints can be broken through at the same time.

    Training side: stability outranks peak performance. As parameter counts grow, a common approach is to introduce sparsification schemes such as Mixture of Experts on top of a dense structure, using conditional computation to expand total parameters while controlling the amount activated per pass, combined with multi-dimensional combinations of data, pipeline, tensor, and even expert parallelism. The challenges include:

    • The communication wall: Collective communication overhead across devices can consume most of the compute gains, requiring parallel strategies tightly coupled to the network topology.
    • Fault recovery: In clusters of more than ten thousand accelerators, hardware failure is the norm rather than the exception, requiring frequent checkpointing, automatic isolation of faulty nodes, and fast, verifiable rollback.
    • Numerical stability: Loss spikes and abnormal gradient norms call for monitoring and intervention designed in advance, rather than remediation after training has already diverged.

    Inference side: long context changes the cost structure. Self-attention computation grows quadratically with sequence length, and the cost of long-context inference comes mainly from the GPU memory and memory bandwidth consumed by the KV Cache. Common engineering responses include:

    • Adopting structures that shrink the KV Cache, such as Grouped Query Attention (GQA) and Multi-head Latent Attention (MLA);
    • Using paged KV Cache management to improve memory utilization;
    • Applying sparsification or chunking strategies to attention computation to reduce long-sequence overhead;
    • Combining request scheduling with batching strategies to balance throughput and latency.

    Data side: from piling up volume to refining quality. Once the available supply of high-quality corpora approaches its ceiling, the field has broadly shifted to data quality engineering:

    • Strict deduplication, filtering out low-quality and noisy samples;
    • Using models to score data for difficulty and quality;
    • Distilling synthetic data from the model’s successful trajectories;
    • Redacting text containing sensitive information.

    It is worth noting that all of this is often described from the outside as “the model iterating on itself.” In essence it remains a data–training–evaluation engineering loop, only with a shorter cycle and a higher degree of automation.

    4. From Text Spilling into Three-Dimensional Space: A New Path to Multimodal Fusion

    When discussing whether to build multimodality, it is easy to fall into an implicit assumption: that multimodal capability requires retraining a natively unified model that handles several signal types at once. A number of recent application practices point to another path:

    • Computer operation: The model receives screen captures and interface structure information and outputs action sequences such as mouse clicks and keystrokes, completing tasks like filling forms in a browser or moving data across systems.
    • Media processing: In workflows such as video editing, visual effects compositing, and 3D rendering, the model no longer generates the picture directly. Instead it generates project files, render configurations, and scripts that drive mature professional tools to produce the output.
    • Physical-world interaction: Robotic arms, mobile robots, and lab equipment such as microscopes expose their state and actions through a unified protocol; the model plans action sequences and retries when something goes wrong.

    This path shares one clear structure:

    1. Environmental state is encoded as context the model can understand;
    2. Available actions are abstracted into structured instructions;
    3. Execution results are returned to the model as both natural language and structured state, closing the loop.

    In other words, multimodal capability does not necessarily require the model to “natively understand” every signal type. It only requires translating each kind of signal into a unified context-and-action representation and handing it to the same model for unified scheduling. This also explains why starting narrow and broadening later ultimately works: once the base model is strong enough and the execution chain is complete enough, expanding capability shifts from being a model-architecture problem to being an interface-and-protocol problem.

    There are limits to this route. Real-time control with stringent latency requirements, physical actions under strong safety constraints, and fine-grained operations requiring pixel-level precision still need specialized models working together with classical control algorithms. General-purpose models are better suited to the planning and coordination role.

    5. Capability and Boundaries: The Engineering Cost of Safety Alignment

    Beyond technical capability, compliance and safety design at the service layer also determine the actual developer experience. Ideally, the boundary of a capability should be public, consistent, and explainable. In practice, some users report overly strict restrictions beyond their authority and frequent false positives. The causes usually fall into three categories:

    • Missing risk classification. Treating every operation as the highest risk level, so that low-risk behavior such as read-only queries or ordinary code writing also gets blocked.
    • Unexplainable policies. Blocks and restrictions return only vague messages, leaving developers unable to tell whether a content policy was triggered or whether a quota or rate limit was hit.
    • Fragmented context. Session state, account state, and permission state live in separate systems, and validation across stages lacks consistency.

    The safer engineering approach is to establish an explicit risk classification matrix and make every block auditable:

    Risk level Typical operations Default policy Controls
    Low Read-only queries, document summarization, code completion Execute directly Rate limits, audit logs
    Medium Writing files, running builds and tests, committing code Execute inside a sandbox Resource caps, timeouts, working-directory isolation
    High Deployment changes, data deletion, external releases, physical device actions Execute after human confirmation Dual review, rollback capability, operation trails
    Denied Bypassing safety mechanisms, unauthorized access, generating malicious payloads Refuse and alert Full-chain auditing, incident reporting

    The corresponding policy can be expressed with declarative configuration like the following:

    1. # Declarative security policy example (field names are illustrative)
    2. policies:
    3. - id: fs-read
    4. action: file.read
    5. risk: low
    6. decision: allow
    7. audit: true
    8. - id: fs-write
    9. action: file.write
    10. risk: medium
    11. decision: allow
    12. conditions:
    13. - path.must_be_within: "/workspace"
    14. - overwrite.requires: "explicit_flag"
    15. - id: deploy-prod
    16. action: deployment.production
    17. risk: high
    18. decision: manual_approval
    19. conditions:
    20. - approval.count_gte: 2
    21. - change.must_have: "rollback_plan"
    22. - retention.days: 180

    To judge whether a service is reliable, users should confirm at least three things:

    1. Whether error messages pinpoint a specific cause;
    2. Whether restrictions are disclosed in advance and whether the rules stay consistent;
    3. Whether a usable self-service recovery path is available (an appeal channel, a quota increase process).

    The answers to these questions often say more about a service’s real maturity than benchmark leaderboards do.

    6. Practical Recommendations for Practitioners

    Building on the analysis above, different roles can take different approaches:

    • Individual developers: Start with scenarios where feedback can be verified automatically, such as unit test completion, code refactoring, and script automation. The payoff for these tasks is immediately visible, and they make it easier to accumulate experience with prompts and toolchains.
    • Technical leads: Do not treat the model merely as a completion tool. Invest in “protocol–environment–orchestration” as a single integrated solution. The quality of tool declarations, sandbox isolation, and audit logs directly determines the complexity of the tasks an agent can complete.
    • Platform and operations staff: Build an observability system that brings summaries of model call inputs, tool call chains, execution latency, and failure reasons into the logging service, and configure threshold-based monitoring and alerting. Common practice includes monitoring timeout rates, retry counts, and per-task cost. For services involving model inference, resource pools can be divided by task type on a container platform, with object storage used to retain session archives and evaluation datasets.

    One practical evaluation approach is to first build a small, repeatable internal task set covering four dimensions—functional correctness, boundary handling, safety compliance, and operating cost—and then decide which technical route to take. Metrics can include:

    1. Task pass rate = number of passed cases / total number of cases
    2. First-attempt success rate = number of cases passed on the first round / total number of cases
    3. Average interaction rounds = total interaction rounds / total number of cases
    4. Cost per task = cumulative token and compute cost / number of tasks completed
    5. Regression rate = number of newly failing cases / number of previously passing cases

    It is also worth watching out for these anti-patterns:

    1. Swapping in a bigger model without improving the environment or protocol. Most failures on long-horizon tasks come from missing context and executable feedback, not from insufficient model capability.
    2. Opening write permissions without a rollback mechanism. Once an irreversible side effect occurs, the repair cost usually far exceeds the benefit.
    3. Treating evaluation as one-time work. After tools and prompts iterate, the original baseline quickly becomes invalid and the evaluation set needs ongoing maintenance.

    7. Conclusion: Reconciling Breadth and Depth

    The lesson from this route debate is not complicated. In a phase when large model capabilities expand rapidly, what measures a team’s level is not only the model’s own capability but the completeness of the entire engineering system—protocol, environment, safety, and evaluation. The breadth of modality coverage is the result; the depth of a verifiable closed loop is the precondition. When protocols are general enough, the environment reliable enough, and policies transparent enough, breadth grows naturally. Conversely, pursuing only surface-level capability coverage tends to expose weaknesses quickly in real engineering scenarios. For practitioners, rather than arguing over which route is more correct, the better move is to identify the entry point in your own business that is automatically verifiable and quickly feedback-rich, then expand the capability boundary outward from there.