Multimodal Vision in Large Language Models: Post-hoc Fusion vs. Native Training

    This article breaks down the two main approaches to adding visual capabilities to a text-based large language model: post-hoc multimodality, which attaches a vision encoder and projector to an existing base model, and native multimodality, which mixes images and interleaved图文-free documents into pretraining from day one. It compares representation alignment, capability ceilings, iteration cost, and data engineering overhead, then outlines a three-layer evaluation strategy, key deployment practices for input handling, serving, observability, cost control, and compliance, and a low-risk adoption path for most teams.

    1. The Real Problem Behind the Community Signal: It Is Not Whether Vision Exists, but How It Is Connected

    A recently deleted post in an open-source model community hinted that visual capabilities were coming to a new generation of large model series. The discussion was heated, the original post disappeared, and the reason cannot be confirmed — it may have been a matter of timing, inaccurate information, or a broader product roadmap consideration. For developers, the value of this unverifiable rumor is limited. What deserves a closer look is the engineering problem it reflects: when the text base is already strong enough, how should visual capability be connected, and what are the costs and benefits of each option.

    Abstract the problem by one level, and any team that wants to add image understanding to a pure text base has only two options: bolt a vision pathway onto the existing base, or mix text and images together from the first day of pretraining. The divergence between these paths is not in implementation details, but in whether the representation space is unified, and in the resulting differences in capability ceiling and iteration cost.

    2. Path One: Post-hoc Multimodality

    The approach is straightforward: first obtain a strong text base, then attach a vision encoder (commonly a contrastively pretrained image-text dual-tower model in the industry), use a projection layer or a lightweight adapter to map visual features into the language model’s embedding space, and finally fine-tune with multimodal instruction data.

    The advantages are very practical at the engineering level:

    • Modularity: the training pipeline can be split, and the vision side and language side can iterate in parallel;
    • Existing text capabilities are reused, with no need to retrain the base;
    • When something goes wrong, the encoder can be replaced or the alignment redone independently, keeping diagnosis costs low.

    The costs are equally clear: fusion of vision and text happens after representation rather than within it, so fine-grained cross-modal reasoning (reading charts, layout structure, comparing multiple images) tends to hit a ceiling; in addition, the quality of the projection layer and instruction data can significantly amplify or mask the true level of the base model.

    One lesson from practice is worth remembering: mixing large amounts of interleaved image-text data during pretraining does not always yield obvious gains, which is why most teams choose post-hoc fusion as the default. What really determines the upper limit of results is the quality and coverage of the alignment data, not the volume of data.

    A minimal illustrative skeleton (pseudocode, structure only):

    1. # The vision tower is usually frozen or only the last few layers are fine-tuned
    2. img_feat = vision_encoder(pixel_values) # [B, N, Dv]
    3. img_tokens = projector(img_feat) # [B, N, Dl] aligned to language dimension
    4. inputs = interleave(text_embeds, img_tokens) # insert placeholders by layout/sequence
    5. logits = language_model(inputs, labels=labels)

    3. Path Two: Native Multimodality

    The native path starts by mixing images, interleaved image-text documents, and pure text in the pretraining corpus, letting the model learn a unified representation within the same set of parameters. Its theoretical advantages are threefold: a consistent representation space makes cross-modal retrieval and reference more natural; the ceiling for complex multimodal reasoning is higher; and images themselves are a high-density information carrier, offering better information efficiency than pure text descriptions under the same token budget.

    The difficulties are also hard: data engineering complexity rises sharply, and cleaning, deduplication, licensing, and mixing ratios for interleaved image-text corpora all require additional pipelines; training and inference costs increase; and an imbalanced mix can cause text capabilities to regress — such “fixing one thing while breaking another” cases are already publicly documented in the industry.

    An often overlooked decision factor is the data shape of the usage scenario. If business inputs are naturally long documents, scanned files, or UI screenshots, where text and images are interleaved in their original form, the native path fits better; if inputs are standalone question answering of “one image plus one question,” post-hoc fusion offers better cost-performance.

    4. Capability Evaluation: Look Beyond Leaderboards to Your Task Distribution

    A three-layer evaluation is recommended:

    1. Basic perception layer: text recognition, object and scene recognition, layout and reading-order restoration;
    2. Structured understanding layer: table parsing, formula restoration, field extraction from receipts and forms;
    3. Reasoning layer: chart trend judgment, multi-image comparison, and trade-offs when text and images conflict.

    Beyond accuracy, metrics should record hallucination rate (the proportion of descriptions of content not present in the image), refusal rate, and position bias under long documents. These three predict production performance better than an overall score.

    5. Engineering Implementation Essentials

    • Input side: unify resolution and tiling strategy, control the visual token budget, and use a hybrid representation of chunking plus a global thumbnail for long documents;
    • Serving side: deploy vision encoding and language inference separately, scale elastically with a container platform, use a message queue to smooth peaks, and store images and intermediate artifacts in object storage;
    • Observability: use logging services and monitoring alerts to track time to first token, visual tokens per request, and timeout and degradation ratios;
    • Cost control: for small images, first assess clarity and content before deciding whether to invoke the vision pathway, avoiding sending all traffic through the heavy model;
    • Compliance: clarify the provenance and licensing boundaries of training and inference data, and desensitize sensitive fields before ingestion.

    6. Conclusion

    “When vision will arrive” is a marketing question; “how to connect it” is the engineering question. For most teams, the lowest-risk path is to first get the pipeline running with post-hoc fusion and build an evaluation set, then decide whether to invest in native multimodality based on the real data shape. If using relevant capabilities from Baidu AI Cloud, it is worth starting with general categories such as model services, object storage, and monitoring alerts, running small-scale validation against your own task distribution before scaling up.