Small and Efficient Mixture-of-Experts Models: Architecture and Training Practices

    This article examines the architecture and training practices of a second-generation general-purpose mixture-of-experts (MoE) model with about 594B total parameters and about 17B active parameters per computation. It covers multimodal input/output capabilities, four-stage pretraining, a 9-day joint reinforcement training phase, the use and risk control of external reasoning-trace data, safety testing before full-weight release, deployment engineering considerations, and business-fit evaluation. Readers gain a practical view of how sparse computation balances model capacity and inference cost, and what engineering and governance issues remain.

    1. Model Positioning: Sparse Computation to Lower LLM Usage Costs

    A mixture-of-experts (MoE) model is a typical sparse neural network architecture. Unlike dense models that activate all parameters on every inference, an MoE model usually consists of multiple expert networks and a router. After the input is evaluated by the router, only a subset of experts is selected to participate in computation, and the outputs from those experts are then weighted and fused.

    The core value of this design is that the model can have a large total parameter scale while using only a small portion of those parameters in a single computation. For scenarios that require broad knowledge coverage, reasoning ability, and multitask adaptability, a sparse architecture can achieve a better balance between model capacity and inference cost.

    The model discussed here is a second-generation general-purpose MoE model with a total parameter scale of about 594B and about 17B active parameters per computation. It is important to note that “total parameters” and “active parameters” are not the same concept:

    • Total parameters refer to the total number of parameters across all experts, shared modules, embedding layers, and output layers in the model.
    • Active parameters refer to the parameter scale that actually participates in the forward computation when processing a single input.
    • Inference cost is usually closer to the combined result of active parameters, sequence length, parallel strategy, and hardware efficiency.
    • Storage cost is mainly determined by the total parameter scale, so sparse models do not inherently reduce the storage requirements for full weights.

    Therefore, MoE models have advantages in computational efficiency, but they still impose high engineering requirements for weight loading, memory planning, expert sharding, and distributed communication.

    2. Input/Output Capabilities and Use Cases

    The model supports text and image inputs and produces text as its output form. This means the model can process natural language instructions and can also analyze text, structure, objects, and semantic relationships in images, then organize the results into readable text.

    From an application perspective, multimodal input capability can cover the following task categories:

    1. Document understanding
      Extract content, summarize, and answer questions about scanned documents, table screenshots, flowcharts, and technical documents.

    2. Chart analysis
      Generate trend explanations or anomaly analysis based on visual information such as bar charts, line charts, and statistical charts.

    3. Interface and operation instruction understanding
      Recognize software interfaces, error prompts, and configuration pages to help generate troubleshooting suggestions.

    4. Joint image-text reasoning
      Combine image content with text questions to perform conditional judgment, information summarization, and step explanation.

    5. Development assistance scenarios
      Read architecture diagrams, API documentation screenshots, or code images to help developers analyze structure. However, for tasks that require exact code reproduction, structured text input should still be preferred to reduce visual recognition errors.

    It should be emphasized that supporting image input does not mean the model performs equally well on all visual tasks. In practice, attention should also be paid to image resolution, text density, layout complexity, table structure, and implicit information in images. For production systems, it is advisable to combine input preprocessing, content validation, and human review mechanisms.

    3. Four-Stage Pretraining: Building General Capabilities Step by Step

    The model uses four stages to complete pretraining. Although the specific stage split and training recipe are not disclosed, from the general patterns of large-model development, multi-stage pretraining is usually used to separate different objectives and reduce interference during training.

    3.1 Basic Corpus Learning Stage

    The first stage is usually based on large-scale general corpora, enabling the model to acquire lexical, syntactic, commonsense relational, and basic knowledge representation capabilities. The focus at this stage is not complex instruction following, but establishing a stable language modeling foundation.

    Data quality is more important than simply scaling up volume. Training data usually needs cleaning for duplicate content, low-quality filtering, format normalization, and sensitive-content governance; otherwise, the model may produce repetitive outputs, factual errors, or unstable style.

    3.2 Knowledge and Long-Context Capability Enhancement Stage

    After basic capabilities are formed, training can further strengthen professional knowledge, long-context understanding, and complex document modeling. For enterprise applications, long-text capability involves not only context window size but also cross-paragraph information retrieval, entity consistency maintenance, and multi-step relational inference.

    This stage needs to avoid the model merely memorizing local text. Instead, through reasonable data organization, it should learn to summarize information from multiple sources, identify conflicts, and maintain answer structure.

    3.3 Multimodal Capability Training Stage

    To support image input, the model needs to learn the alignment between visual features and language representations. A typical process includes image encoding, visual feature mapping, image-text paired training, and visual question answering task training.

    The difficulty in multimodal training is that the information density of images and text is not consistent. For example, a table image may contain many local numbers, while a descriptive text paragraph may only summarize the overall trend. Training data needs to cover both overall understanding and detail recognition; otherwise, the model may “understand the topic but misread the details.”

    3.4 Capability Stabilization and Quality Correction Stage

    The final stage is usually used to improve stability across different tasks and correct issues such as format errors, factual deviations, interrupted reasoning, and incomplete outputs. At this point, the model’s focus is no longer only predicting the next token, but forming an answer organization approach that better matches user intent.

    The engineering value of four-stage training lies in adjusting data ratios, training intensity, and evaluation methods according to the objectives of different stages. However, the more stages there are, the more complex the training pipeline becomes, and changes in data distribution are more likely to introduce capability regression. Therefore, a continuous evaluation mechanism must be established.

    4. Joint Reinforcement Training and Reasoning Capability Improvement

    After pretraining, the model also underwent a 9-day joint reinforcement training phase. Joint reinforcement training usually focuses on multiple objectives at the same time, such as instruction following, answer quality, reasoning process, format compliance, safety boundaries, and multimodal task performance.

    Compared with simply expanding pretraining data, reinforcement training is better suited to improving “how to answer.” For example:

    • Whether the user’s request is accurately understood;
    • Whether the output follows the specified format;
    • Whether uncertainty is proactively stated when information is insufficient;
    • Whether complex problems can be decomposed;
    • Whether dangerous or inappropriate content is avoided;
    • Whether context consistency is maintained in longer tasks.

    The key to reinforcement training is reward design. If the reward only focuses on answer length or surface format, the model may learn to cater to evaluation rather than solve the problem. If only the final conclusion is emphasized, the reliability of the reasoning process may be ignored. Therefore, training objectives usually need to balance correctness, completeness, conciseness, safety, and verifiability.

    5. Use and Risk Control of Reasoning Trace Data

    In the later training stages, the model used reasoning trace data collected from external large models. Reasoning traces can help train the model to learn step-by-step analysis methods for complex problems, including condition decomposition, hypothesis validation, error correction, and conclusion induction.

    However, reasoning trace data is not inherently reliable data. The following issues need to be considered when using it:

    5.1 Trace Correctness

    A generative model may produce reasoning processes that appear plausible but are actually incorrect. If such data is used directly for training without filtering, incorrect patterns may be amplified. Therefore, unreliable samples need to be filtered through rule validation, result verification, manual sampling, or cross-judgment by multiple evaluators.

    5.2 Style Transfer Issues

    Different models may have different reasoning styles. Directly using external traces may cause the target model to over-imitate a certain expression style, or even affect its original answer style. During training, it is better to extract general problem-solving structures rather than mechanically copy specific wording.

    5.3 Data Compliance and Privacy

    Reasoning traces may contain personal information, sensitive content, or restricted data fragments. Before being included in the training set, they need de-identification, authorization verification, content classification, and source review to ensure data use complies with relevant requirements.

    5.4 Avoid Over-Reliance on Explicit Processes

    Reasoning traces can improve complex-task capability, but this does not mean all answers should display complete internal analysis. Actual systems should output concise conclusions, necessary evidence, and verifiable steps according to application requirements, avoiding exposure of unnecessary internal processes or sensitive information.

    6. Safety Process Before Releasing Full Weights

    The model plans to release its full weights under a permissive open-source license after completing external safety testing and red-team testing. For large-scale models, releasing weights is not only a publishing action; it also means the model will enter more uncontrolled environments. Therefore, safety evaluation is a necessary precondition.

    Safety testing should usually cover the following aspects:

    • Harmful content generation;
    • Unauthorized instructions and prompt injection;
    • Privacy information reproduction;
    • False facts and overconfidence;
    • Multimodal input bypass;
    • Code and tool-calling risks;
    • Adversarial examples and abnormal inputs;
    • Safety boundary failure in long contexts.

    Red-team testing focuses more on the attacker’s perspective. Testers design attack methods such as continuous inducement, semantic disguise, role switching, mixed image-text input, and context contamination to observe whether the model can consistently follow safety policies.

    Before official release, clear usage instructions should also be provided, including the model’s applicable scope, known limitations, recommended deployment methods, risk control suggestions, and issue feedback mechanisms. For enterprise users, the open-source license alone should not be used to judge whether the model is suitable for direct production deployment. Evaluation should also consider data sensitivity levels, business impact scope, and human review requirements.

    7. Deployment and Engineering Practice Recommendations

    When deploying this type of model, the first step is to distinguish between “full weight loading” and “on-demand expert activation.” Although a single inference activates only some parameters, the server may still need to store a large number of expert weights. Actual architectures usually need to combine model sharding, expert parallelism, data parallelism, and pipeline parallelism for planning.

    The following engineering issues should be prioritized:

    1. GPU memory and RAM capacity
      Capacity assessment should be based on weight precision, number of shards, cache size, and concurrency, not only on active parameters.

    2. Expert load balancing
      If a large number of requests are routed to a small number of experts, local device congestion will occur and overall throughput will decrease. Routing strategies and load-balancing mechanisms need to be considered jointly during training and deployment.

    3. Communication overhead
      When experts are distributed across different computing devices, routing and result aggregation introduce cross-device communication. Communication efficiency may become a major bottleneck for sparse models.

    4. Multimodal input preprocessing
      Images should be checked for size, format, and clarity. For images containing sensitive information, necessary de-identification should also be completed before they enter the model.

    5. Output validation
      Production systems should not rely entirely on the model’s own judgment. High-risk outputs can be checked again through rule engines, fact verification, format validation, and human review.

    8. How to Evaluate Whether the Model Fits Actual Business Needs

    Evaluation cannot rely only on a single benchmark score. When selecting a model, enterprises should build test sets close to their business scenarios, covering dimensions such as accuracy, stability, response speed, resource consumption, and safety.

    For text tasks, knowledge question answering, summarization, classification, information extraction, and complex reasoning can be tested. For multimodal tasks, table recognition, image-text question answering, layout analysis, and low-quality image processing tests should be added. At the same time, attention should be paid to model performance when input is incomplete, questions are ambiguous, or information is contradictory.

    Overall, the technical focus of this type of second-generation MoE model is not only parameter scale. It is also about how to use sparse computation to achieve large-capacity knowledge representation, how to use staged training and joint reinforcement training to improve task capability, and how to establish verifiable safety boundaries before releasing weights. For developers and enterprise users, understanding the difference between total parameters and active parameters, identifying the practical limitations of multimodal models, and establishing complete evaluation and governance processes are the keys to turning model capabilities into stable production value.