Building Native Multimodal Agents: Architecture and Training Lessons

    Native multimodal agents treat vision as a first-class capability rather than a bolt-on module. This article explains why adapter-style visual pipelines hit a ceiling, shares three lessons from production training—perception as a full-lifecycle constraint, the real cost of end-to-end agent training, and the need to explicitly protect text-only abilities—and outlines the four-stage closed-loop architecture, supporting infrastructure, and per-dimension evaluation practices needed to move from prototype to usable system.

    1. Why “Bolt-On” Vision Approaches Hit a Ceiling

    Mainstream text-only LLMs are already mature at logical reasoning, code generation, and knowledge Q&A. But in real business scenarios, information carriers go far beyond text: web interfaces, mobile screenshots, design mockups, PDF documents, and monitoring video streams. A large amount of semantics exists only in pixels.

    A common industry approach is to chain a vision encoder in front of the text model, converting images into vectors before passing them to the language model. This “bolt-on” design is convenient from an engineering standpoint, but it has structural flaws.

    The root cause is that perception and reasoning are split into two separate pipelines. The vision module is only responsible for “turning an image into words” and does not understand what granularity of information the downstream task actually needs. The language model, in turn, can only reason over an intermediate representation that has been compressed and discretized. Once UI elements are dense, the hierarchy is deeply nested, or subtle state differences exist, the information loss from front-end perception cannot be recovered in later stages. The model is forced to “guess,” and hallucinations emerge.

    The core premise of native multimodal agents is that vision is not a patch but a first-class capability on par with text. This requires integrating images, video, and text into a single “perception–reasoning–execution” loop across model architecture, training data organization, and the inference toolchain—so that perception results can directly drive actions, and action feedback can, in turn, correct perception.

    2. Three Key Lessons from Training Practice

    2.1 Perception Is Not a One-Off Step but a Full-Lifecycle Upper Bound

    Many approaches treat perception as a preprocessing step: extract features with a vision encoder, then hand everything off to language-side reasoning. Practice shows this path has an obvious bottleneck—perception quality continuously caps high-level capabilities.

    A noteworthy phenomenon is the “spillover effect” of data tasks. Introducing large-scale “image-to-vector-graphics description” encoding data during pre-training has a surface goal of front-end code generation, but the actual training effect is that the model is forced to understand layout relationships, hierarchical structure, and the relative positions of elements; as a result, downstream STEM-type reasoning performance improves as well. The reverse validation holds too: reinforcing object-localization tasks during the reinforcement learning stage also improves the operation accuracy of GUI agents.

    From this, an engineering principle can be distilled: the selection of perception training data should not serve only the current explicit task, but should be evaluated for its transfer value to spatial understanding and structural reasoning. In addition, during the instruction fine-tuning stage, “perception correction” samples should be deliberately constructed to target failure modes such as misreading UI elements, misaligned clicks, and incorrect state judgments. This kind of data is often more effective at reducing hallucination rates than continuing to pile on reasoning data.

    2.2 The Real Cost of End-to-End Agent Training Must Be Faced

    End-to-end agent training is conceptually elegant but quite painful to put into practice, mainly in four respects:

    • High environment cost: interactive UI environments, rollback-capable state machines, and stable execution sandboxes are required.
    • Difficult data labeling: a correct trajectory includes not only the final state but also whether the intermediate steps are reasonable.
    • Difficult validation: a single task may have multiple feasible paths, making it hard to judge quality by a single criterion.
    • Unstable optimization: reward signals are sparse and delayed, and policy collapse or reward hacking can easily occur.

    A workable compromise is to split training into three layers: use large-scale image-text and video data at the bottom to build a perception foundation; use trajectory data at the middle layer for behavioral cloning, so the model first learns “what the action space looks like”; and use verifiable sparse rewards at the top layer for policy optimization. The three layers are connected through a unified representation, avoiding the situation where the objectives of each stage pull against one another.

    2.3 Text-Only Capabilities Must Be Explicitly Protected

    The most common degradation in going multimodal is a collapse of text capabilities, especially long-context reasoning and code generation. The cause is an imbalance in training data ratios: visual data has high throughput and low cleaning cost, so it easily crowds out high-quality text corpora in the data mix. Practices include setting a minimum floor for the text-data ratio, fixing a set of text regression benchmarks in the capability evaluation suite, and running degradation detection after each training round—rolling back the data ratio as soon as a metric drops.

    3. Implementation Essentials for the Closed-Loop Architecture

    A runnable native multimodal loop typically consists of four stages: unified input parsing (image and video frame extraction, document layout), structured intermediate representation (element trees, coordinates, states), reasoning and planning (task decomposition, tool selection), and execution and feedback (action dispatch, result read-back, failure retry).

    The illustrative pseudocode below emphasizes “feedback feeding back” rather than specific interfaces:

    1. def run_loop(task, env):
    2. obs = env.observe() # screenshot + structured element tree
    3. plan = model.plan(task, obs) # reasoning over a unified representation
    4. for step in range(MAX_STEPS):
    5. action = model.act(plan, obs)
    6. result = env.execute(action)
    7. obs = result.observe()
    8. if result.done:
    9. return result.success
    10. plan = model.revise(plan, obs, result) # perception correction fed back
    11. return False

    Engineering-wise, three types of supporting infrastructure are also needed: object storage for hosting datasets and trajectory replay; a message queue to decouple environment execution from training sampling; and logging services plus monitoring and alerting to track reward curves, the distribution of failure types, and resource utilization levels. If a container platform is used to host interactive environments, it should ensure states can be snapshotted and rolled back; otherwise reinforcement learning sampling will be hard to reproduce.

    4. Evaluation Should Be Conducted Across Dimensions

    A single aggregate score can easily mask capability-structure problems. It is advisable to break metrics into at least four groups: UI-to-code fidelity, GUI task success rate, document and video understanding accuracy, and text-only plus code regression scores. Observing all four groups simultaneously is what makes it possible to judge whether the training strategy is genuinely improving “native multimodality” rather than robbing Peter to pay Paul. Baidu AI Cloud’s general-purpose capabilities in multimodal data processing and training pipelines can serve as a reference foundation for building such evaluation and training pipelines.

    5. Conclusion

    The difficulty of native multimodal agents does not lie in “attaching a vision module,” but in making perception, reasoning, and execution share the same representation and correct one another. Carrying perception training across the full lifecycle, facing up to the environment and validation costs of end-to-end training, and explicitly protecting text capabilities are the three key levers for moving from a prototype to a usable system.