Multimodal Training and Agent Orchestration: The Technical Evolution Behind AI Agents

    This article examines two technical shifts driving recent gains in AI agent performance: joint multimodal training that fuses vision and text from the early pretraining stage, and multi-agent architectures that pair a trainable orchestrator with frozen heterogeneous sub-agents. It covers controlled experiments on visual token timing and ratio, code-based execution for visual tasks, the rationale for concentrating trainable parameters in the orchestrator, and practical deployment considerations, closing with actionable recommendations for training, inference, and system design.

    1. Introduction: Two Threads Behind the Leap in Agent Capabilities

    Over the past year, the performance of large language models in agentic scenarios has become a central topic of technical discussion. Across benchmarks for tool calling, multi-step reasoning, and long-horizon task execution, a new generation of open-source models has shown a marked accuracy jump over the previous generation of general-purpose models, with relative gains reaching roughly 50% on some evaluation dimensions. This leap does not come from a single-point optimization. It is the combined result of two technical threads:

    1. A restructured approach to modality fusion during training: vision and text are no longer treated as two things bolted on one after the other, but are jointly optimized from the early stages of pretraining.
    2. An upgraded agent collaboration architecture at inference time: a shift from a single model executing tasks serially to a swarm-style paradigm of “central orchestration plus heterogeneous execution units.”

    Each thread is discussed below, along with engineering judgments that can be reused.

    2. Joint Multimodal Training: Overturning the “Bolt It On Later” Heuristic

    2.1 The Conventional Approach and Its Hidden Assumptions

    A practice long popular in the industry is to inject a high proportion of visual tokens in the later stages of training, once the language model is largely formed (a common figure cited is 50% or higher), so that multimodal capability can be “filled in” as quickly as possible. Two hidden assumptions sit behind this strategy: first, that multimodal capability is an add-on to language capability; second, that a short, high-concentration injection accelerates skill acquisition.

    2.2 A Controlled Experiment Points the Other Way

    With the total token budget (visual plus text) held completely fixed, only two variables were changed — the timing of visual token injection and the visual-to-text ratio — and text and vision capabilities were evaluated separately across all dimensions. The results run counter to intuition:

    • The ratio matters little: the share of visual tokens has far less impact on final multimodal performance than expected.
    • The timing matters a lot: early injection combined with a lower visual share yields better results on both the text and vision sides at the same time.
    • Mid-to-late injection carries a cost: text performance follows a curve that first drops and then recovers slowly. The underlying cause is that a sudden influx of visual tokens disrupts the already-formed language representation space, and the model needs extra training budget to realign.
    • Early fusion is more stable: with mixed training throughout, the text performance curve stays flat, with no jitter from modality domain shift.

    The engineering implication is direct: rather than “catching up” later, it is better to write visual data into the early corpus mix during budget planning and keep the visual share within a moderate range, spending the saved optimization budget on raising the capability ceiling instead of repairing representation drift.

    2.3 How Visual Tasks Are Executed: Code as an Intermediate Representation

    Another notable design choice: when handling visual problems, the model tends to first call a code execution environment to write a program, complete image parsing and judgment programmatically, and then output a conclusion. Compared with end-to-end “look at the image and describe it,” this “visual problem as code” path is more reliable for tasks requiring exact counting, measurement, coordinate localization, and structured extraction, for three reasons:

    • Verifiable: intermediate results can be printed, asserted, and recomputed.
    • Composable: image processing and logical judgment are decoupled, making them easy to reuse.
    • Correctable: when something goes wrong, the fault can be traced to a specific step rather than re-guessing the whole thing.

    The corresponding pseudocode looks roughly like this:

    1. # Visual problem as code: parse first, then decide
    2. img = load_image(path)
    3. gray = to_gray(img)
    4. mask = threshold(gray, 200)
    5. count = count_components(mask)
    6. answer = "yes" if count >= 3 else "no"
    7. print({"count": count, "answer": answer})

    At the same time, joint training does not happen only in the pretraining stage. Supervised fine-tuning and reinforcement learning stages also use mixed data ratios, ensuring that post-training does not “wash away” the cross-modal alignment established earlier.

    3. Multi-Agent Collaboration: A Trainable Orchestrator with Frozen Execution Units

    3.1 Division of Roles in the Architecture

    Swarm-style architectures split task execution into two layers:

    • The central orchestrator: the only trainable module. Through reinforcement learning it works out on its own “whether to parallelize, when to parallelize, and how to parallelize,” with no hand-coded scheduling rules. It handles dynamic task decomposition, sub-agent creation, subtask dispatch, result aggregation, and final output. Its optimization objective is to minimize critical path length and end-to-end latency without degrading quality.
    • Heterogeneous sub-agents: domain-specific execution units instantiated from fixed intermediate-policy checkpoints, frozen for the entire training run, with their trajectories excluded from the optimization objective. Each unit has its own system prompt, toolset, and local context, and they run in parallel without interfering with one another.

    3.2 Why It Is Designed This Way

    Concentrating trainable parameters in the orchestrator brings three direct benefits:

    1. Clearer credit assignment: gradients act only on scheduling decisions, avoiding contamination of policy learning by execution-layer noise.
    2. Controllable training cost: frozen execution units mean no optimizer state has to be maintained for each role.
    3. Pluggable capability: because execution units come from different checkpoints, they naturally form a heterogeneous capability pool, and the orchestrator gains new capabilities by composition rather than retraining.

    3.3 Connecting to Cloud Engineering Practice

    In deployment, the orchestrator and the execution units are typically split into separately deployed inference services, decoupled through a message queue, with elastic scaling handled by a container platform, and with call chains and latency metrics wired into logging and monitoring/alerting systems. The general-purpose capability categories Baidu AI Cloud offers for such scenarios (container platform, message queue, object storage, logging and monitoring) can serve as a reference baseline, though specific choices should still be driven by your own latency and cost constraints.

    4. Conclusions and Actionable Recommendations

    • Training side: when the budget is fixed, adjust the timing of modality injection first — fuse early, keep the ratio moderate, and avoid the text performance regression caused by high-concentration late injection.
    • Inference side: convert perceptual tasks such as vision into executable, verifiable programmatic flows wherever possible.
    • System side: adopt the layered architecture of “trainable orchestrator plus frozen heterogeneous execution units,” concentrate the optimization budget on the scheduling policy, and use monitoring and observability to bound end-to-end latency.

    Only the three combined give a complete explanation for accuracy and stability improving together in agent scenarios.