From Bolted-On to Native: Designing and Implementing Natively Multimodal AI Agent Architectures

    This article explains why natively multimodal AI agents are replacing modular "bolted-on" approaches that combine text LLMs with external vision modules. It covers the unified perception-reasoning-execution architecture, the three-stage training strategy (multimodal pretraining, cross-modal instruction fine-tuning, and alignment with human feedback), the supporting toolchain and engineering infrastructure, and key application scenarios such as Design2Code, mobile automation, and preserving strong text-only reasoning capabilities.

    The Paradigm Shift: From Bolted-On to Native

    In today’s large model ecosystem, mainstream text-only large language models have demonstrated remarkably strong logical reasoning and text generation capabilities. However, when we look at real-world application scenarios, a huge portion of critical information exists in visual form—complex web interfaces, mobile app screenshots, design mockups, densely formatted PDF documents, and live video streams.

    Relying solely on text APIs to stitch together external vision modules is essentially a “bolted-on” approach. This modular composition has significant drawbacks. First, visual perception and language reasoning are decoupled in both time and space, making it difficult for the model to build deep cross-modal semantic associations. Second, because the visual encoder and language decoder are optimized against inconsistent objectives, information loss easily occurs during feature transfer, which in turn leads to severe hallucinations in downstream generation. To address these issues, the industry has proposed the concept of the “natively multimodal agent,” whose core goal is to make vision a native capability of the model rather than an afterthought.

    Architecture Analysis: A Unified Perception–Reasoning–Execution Loop

    A natively multimodal agent is not simply a vision encoder stacked on top of a language model. Instead, it starts from the underlying architecture, unifying images, video, and text within a complete perception–reasoning–execution loop. This design breaks away from the linear pipeline of traditional multimodal models. Its core components include:

    1. Native perception layer: A unified multimodal encoder performs joint feature extraction over images, video frames, and text. Unlike the traditional approach of projecting visual features and feeding them directly into the language model, the native architecture achieves early cross-modal fusion at the attention level, ensuring that visual details already carry rich contextual semantics before entering the reasoning layer.
    2. Deep reasoning layer: Built on a powerful language model backbone, this layer receives the unified representation sequence from the perception layer. Here, the model processes visual information the same way it processes pure text logic, using chain-of-thought techniques to perform fine-grained analysis, comparison, and logical deduction over visual content.
    3. Precise execution layer: What makes an agent an agent is its ability to act on the environment. The execution layer converts reasoning results into concrete operation instructions—generating frontend code, invoking system APIs, or simulating user clicks.

    Below is simplified pseudocode showing how a natively multimodal agent processes a task:

    1. class NativeMultimodalAgent:
    2. def __init__(self, model_endpoint, tool_registry):
    3. self.model = model_endpoint
    4. self.tools = tool_registry
    5. def execute_task(self, image_uri, text_instruction):
    6. # Package multimodal input together, instead of separate text and image calls
    7. multimodal_prompt = {
    8. "text": text_instruction,
    9. "image": image_uri
    10. }
    11. # The native model performs perception and reasoning directly,
    12. # and decides whether to invoke a tool
    13. response = self.model.infer(multimodal_prompt)
    14. if response.get("action"):
    15. tool_name = response["action"]["tool"]
    16. params = response["action"]["params"]
    17. # Execute the concrete action
    18. result = self.tools[tool_name].run(**params)
    19. return result
    20. else:
    21. return response["content"]

    Training Strategy: Multi-Stage Alignment and Capability Fusion

    Achieving this architecture requires an innovative training strategy. Training a natively multimodal agent typically involves three key stages:

    1. Multimodal pretraining: In this stage, the model learns jointly from massive image-text pairs, video-text pairs, and pure text corpora. The key lies in constructing a sensible data mixture—ensuring that the visual modality does not overwhelm and degrade the language model’s logical foundations, while still allowing visual features to be learned thoroughly.
    2. Cross-modal instruction fine-tuning: To unlock the model’s “execution” capabilities, teams build task-specific instruction-tuning datasets. For example, for the “design-to-code” task, they provide large numbers of mappings from UI screenshots to HTML/CSS code; for “mobile automation,” they provide screen screenshots paired with touch coordinates and action sequences. Through this process, the model learns to translate visual perception into concrete instructions.
    3. Alignment with human feedback: In the final stage, reinforcement learning from human feedback (RLHF) or direct preference optimization (DPO) is used to align the model’s multimodal outputs. This effectively reduces multimodal hallucinations and ensures strong instruction adherence when handling complex, multi-step tasks.

    Toolchain Ecosystem and Engineering in Production

    No matter how capable a model is, it cannot ship without a mature toolchain. Deploying natively multimodal agents requires end-to-end support spanning training, deployment, and application development.

    At the infrastructure level, processing multimodal data containing high-resolution images and long videos places extremely high demands on compute and storage. Developers can leverage Baidu AI Cloud’s elastic compute clusters and object storage services to enable fast reading of massive multimodal datasets and accelerate distributed training. A cloud-native container platform makes it easy to perform canary releases and elastic scaling of inference services.

    At the application development layer, agents need the ability to call external tools. Modern multimodal models use structured outputs (such as JSON Schema) to precisely describe the function name and parameters to invoke. For example, when reading a scanned PDF financial report, the model can not only “understand” the tabular data but also directly call external data analysis APIs to generate visualizations.

    Core Application Scenarios and Performance

    Thanks to the perception–reasoning–execution loop, natively multimodal agents deliver outstanding performance on a range of complex tasks:

    • Design to Code (Design2Code): The model accurately understands layout structure, color schemes, and component hierarchy in UI screenshots, and directly generates high-fidelity frontend code. Related technical practices have achieved strong results on authoritative industry benchmarks, significantly shortening frontend development cycles.
    • Mobile automation testing and operation: In mobile environment benchmarks, the model observes the phone screen, understands the current application state, and performs coherent operations such as tapping buttons, entering text, and scrolling lists—opening up a new paradigm for automated software testing and intelligent assistants.
    • Preserving text-only coding capability: A common concern is that introducing a visual modality degrades existing language abilities. Through careful parameter isolation and loss function design, the native architecture maintains a high level of pure-text coding and logical reasoning ability while gaining powerful visual understanding.

    Conclusion

    The shift from “bolted-on” to “native” is an inevitable trend in the evolution of multimodal large models. Natively multimodal agents achieve true deep fusion of vision and language through a unified architecture, refined training strategies, and a complete toolchain, demonstrating strong application potential within the perception–reasoning–execution loop. For developers and enterprises, understanding and mastering this technical path will be a key competitive advantage in building next-generation intelligent applications. With mature cloud-native infrastructure such as Baidu AI Cloud, developers can focus on business logic innovation and accelerate the adoption of multimodal agents across industries.