Multimodal Large Models: A Practical Guide to Architecture Selection and End-to-End Training

    This guide explores the systematic decisions involved in building multimodal large models, moving beyond mere model structure design. It compares two mainstream architecture routes—unified embedding decoders versus cross-modal attention—and their respective trade-offs. The article further breaks down the end-to-end training pipeline from pretraining to reinforcement learning, highlighting stage-specific returns, saturation points, and forgetting risks. Additionally, it covers practical engineering tips for Mixture-of-Experts (MoE), an objective comparison of open-source versus closed-source models, and provides actionable insights for technical selection and training orchestration.

    Background: Why Architecture Selection and Training Orchestration Matter Equally

    Over the past two years, multimodal large models have transitioned from laboratory research to production systems. Engineering teams are now focused on systematic decisions regarding how to select architectures, orchestrate training pipelines, and allocate compute budgets, rather than merely asking if a model can be trained. A common pitfall is pouring all attention into model structure while neglecting the stage-specific dynamics of the end-to-end training pipeline. In fact, at equivalent parameter scales, the quality of training orchestration often impacts final performance just as much as the architecture choice itself.

    This article addresses three core questions: First, what scenarios are the two mainstream architecture routes for current multimodal models best suited for? Second, what are the return curve patterns at each step from pretraining to reinforcement learning (RL)? Third, what easily overlooked pitfalls exist in engineering the Mixture-of-Experts (MoE) architecture? Please note that this article discusses general methodology and is not tied to any specific product or platform.

    Two Architecture Routes: Unified Embedding Decoder vs. Cross-Modal Attention

    When building multimodal models, the industry generally identifies two foundational architectural paradigms, differing fundamentally in where and how information fusion occurs.

    Route A: Unified Embedding Decoder Architecture

    The core philosophy of this route is “align first, fuse later.” After an image passes through a vision encoder, a projection module maps the visual features into the same embedding space as text tokens. These visual tokens are then concatenated with text tokens into a single sequence and fed into a unified decoder for processing.

    The design of the projection module is a critical engineering point. Early solutions typically employed a simple linear layer or a two-layer MLP, offering low implementation costs and training stability. Subsequent evolutions introduced more complex resampling structures (such as query-based feature compression) to control sequence length when the number of visual tokens is large. Choosing which projection method essentially involves a trade-off between visual information fidelity and sequence computation overhead.

    The advantage of the unified embedding architecture lies in its structural simplicity and unified training objectives, allowing the decoder to fully reuse the achievements of pure-text pretraining. However, its limitations are also clear: visual information is compressed into a fixed number of tokens before entering the decoder. High-resolution details and fine-grained spatial relationships are easily lost during the projection stage. This bottleneck is particularly prominent for tasks requiring fine visual understanding, such as document layout analysis or dense object counting.

    Route B: Cross-Modal Attention Architecture

    The cross-modal attention route maintains the independence of both the vision encoder and the language model. It utilizes additional cross-attention layers to allow text tokens to actively “query” visual features at each layer (or select layers). Visual features are not compressed into a fixed sequence but are instead stored as key-value pairs for the text side to retrieve on demand.

    This design offers a wider and more flexible visual information pathway, enabling the model to dynamically decide which regions to focus on based on task requirements. The trade-off is increased structural complexity: introducing cross-attention layers adds parameters and computation. Training requires more refined learning rate scheduling, and the alignment between the vision encoder and the language model is more challenging.

    Key Trade-off Dimensions for Selection

    Neither route is absolutely superior; selection should revolve around the following dimensions:

    • Task distribution: For scenarios dominated by general image-text QA, Route A offers higher cost-effectiveness. For high-resolution, fine-grained visual reasoning, Route B or a hybrid approach is more suitable.
    • Training budget: Route A can heavily reuse text-side pretrained weights, resulting in lower cold-start costs. Route B requires more cross-modal alignment data.
    • Inference latency: Route A provides controllable sequence lengths, suitable for latency-sensitive scenarios. The cross-attention in Route B incurs faster overhead growth with long visual sequences.
    • Engineering complexity: Route A offers a shorter debugging path, while Route B imposes higher demands on the distributed capabilities of the training framework.

    Notably, recent research trends indicate that approaches “completely removing the independent vision encoder” underperform on multiple benchmarks. Retaining independent visual capacity and achieving efficient alignment through partial layer parameter injection is becoming the consensus direction for a compromised solution. The implication for engineering teams is that architecture selection should not pursue extreme simplification, but rather focus on the balance point between “visual capacity” and “alignment efficiency.”

    Stage-Specific Patterns in the End-to-End Training Pipeline: Returns, Saturation, and Forgetting

    Once the architecture is determined, the orchestration of the training pipeline dictates the conversion efficiency of compute investments. Based on public research conclusions from large-scale controlled experiments, the training pipeline can be understood by breaking it down into four stages.

    Pretraining Stage: Diminishing Marginal Returns of Scale

    The return curve in the pretraining stage exhibits a clear logarithmic pattern: performance improves significantly when data and parameter sizes are small; however, once the number of training tokens exceeds a certain threshold, the gains from unit compute rapidly decay. In engineering terms, this means that pretraining budget allocation should identify saturation points early and reserve remaining compute for subsequent stages, rather than blindly stacking data.

    Another phenomenon worth noting is the “non-uniformity of capability emergence.” Certain capabilities (like basic description generation) reach a usable level at smaller scales, while complex reasoning capabilities often require crossing a higher scale threshold to significantly improve. This necessitates a pretraining evaluation system that covers multi-dimensional capabilities rather than relying on a single loss metric.

    Continuous Pretraining (CPT) Stage: A High Cost-Effective Window for Domain Adaptation

    Inserting a Continuous Pretraining (CPT) stage to inject domain data after base pretraining and before supervised fine-tuning typically yields a high return on investment. Experimental patterns show that returns in the CPT stage are strongly correlated with the quality of domain data and relatively weakly correlated with data volume—a small amount of high-quality domain data often outperforms a large amount of low-quality data.

    Vigilance must be maintained regarding the forgetting effect during the CPT stage. An excessively high proportion of domain data can lead to the regression of general capabilities. A common practice is to employ a mixed sampling strategy, blending domain data with general data at a set ratio, and monitoring performance on general benchmarks during training as an early stopping signal.

    Supervised Fine-Tuning (SFT) Stage: Data Composition Matters More Than Scale

    The core challenge in the SFT stage is not “whether data exists,” but “whether the data composition is reasonable.” Factors such as task type distribution, instruction diversity, and response length distribution significantly influence the final model’s behavioral style. Controlled experiments conclude that blindly expanding data scale in the SFT stage yields far fewer benefits than meticulously adjusting task proportions.

    The engineering recommendation is to establish a hierarchical SFT data management system: tag data by dimensions like task type, difficulty level, and language distribution. Sample according to the demand ratio of the target scenario during training, and determine the optimal composition through small-scale ablation experiments.

    Reinforcement Learning (RL) Stage: Reward Design and Saturation Point Identification

    Returns in the RL stage are highly dependent on the quality of reward signals. Experiments indicate a clear saturation point in the RL stage: once the policy model’s score under the reward model improves to a certain degree, continued training leads to reward hacking or a decline in output diversity. Methods for identifying saturation points include monitoring the rate of change in the reward score distribution, tracking real task metrics on a holdout set, and observing changes in output entropy.

    The following pseudocode illustrates the decision logic for stage transitions in training orchestration:

    1. def should_advance_stage(stage_metrics, thresholds):
    2. """
    3. Determine whether to advance to the next training stage based on current metrics
    4. stage_metrics: dictionary of monitoring metrics for the current stage
    5. thresholds: configuration of switching thresholds for each metric
    6. """
    7. # Check if the current stage's returns are saturated
    8. gain_rate = stage_metrics["recent_gain"] / stage_metrics["window"]
    9. if gain_rate < thresholds["min_gain_rate"]:
    10. return "saturated"
    11. # Check for capability regression (forgetting signal)
    12. if stage_metrics["general_benchmark_drop"] > thresholds["max_forget"]:
    13. return "rollback_needed"
    14. # Check for reward hacking signals
    15. if stage_metrics["output_entropy"] < thresholds["min_entropy"]:
    16. return "stop_rl"
    17. return "continue"

    Engineering Practices for Mixture-of-Experts (MoE) Architecture

    Current mainstream open-source models widely adopt the MoE architecture, whose core advantage is trading sparse activation for parameter capacity. However, in engineering practice, training stability with MoE is far more complex than with dense models.

    Routing collapse is the most common failure mode: expert routing converges to a few experts early in training, causing most expert parameters to remain effectively un-updated. Mitigation strategies include introducing auxiliary load-balancing losses, using expert capacity factors to cap the maximum tokens processed by a single expert, and adding noise to routing logits during initialization.

    Communication overhead is another major challenge in distributed training. Expert parallelism requires all-to-all token communication across devices. When experts are distributed across different nodes, communication latency can become a bottleneck. In practice, expert placement strategies must be adjusted according to cluster topology, striving to keep expert parallelism groups within the same high-speed interconnect domain.

    The choice of expert granularity also requires trade-offs: more experts with smaller individual parameter sizes facilitate fine-grained capability differentiation but increase routing decision difficulty. The converse offers more stable routing but diminishes the benefits of sparsification. Industry experience suggests maintaining a reasonable ratio between the number of experts and the total parameter scale, avoiding configurations with “too many experts but insufficient capacity per expert.”

    A Rational View on the Open-Source vs. Closed-Source Gap

    A pendulum-like sentiment is common in the tech community: sometimes praising open-source models for comprehensively surpassing closed-source ones, and other times swinging to extreme pessimism. From an engineering perspective, both extreme judgments lack basis.

    The objective fact is: open-source models are indeed accelerating their catch-up in general capabilities, but leading closed-source models still maintain systemic advantages in data flywheels, the refinement of RLHF, and long-tail scenario coverage. For enterprise technology selection, the meaningful approach is not a blanket conclusion of “who is stronger,” but scenario-specific evaluation for concrete tasks—open-source solutions offer clear cost-effectiveness advantages in cost-sensitive, privately deployable scenarios; closed-source solutions remain irreplaceable in scenarios demanding high alignment quality and strict complex instruction following.

    A pragmatic approach is to establish an internal evaluation baseline: build a small-scale evaluation set using real business data, conduct regular horizontal comparisons of candidate solutions, and let data rather than public opinion drive selection decisions.

    Conclusion

    The engineering practice of multimodal large models is a systematic endeavor, with architecture selection, training orchestration, MoE tuning, and solution evaluation constraining one another. At the architecture level, unified embedding and cross-modal attention each have their applicable boundaries, with the key lying in matching task distribution and budget constraints. At the training level, identifying saturation points and forgetting risks at each stage is more critical than simply stacking compute. At the engineering level, the routing stability and communication efficiency of MoE require early planning. Ultimately, all technical decisions should return to the real needs of business scenarios, supported by reproducible evaluation data, avoiding being swayed by short-term public opinion.