Multi-Model Weight Fusion via MoE: Enhancing Inference Efficiency with a "Triple-Thinking" Approach
This article explores a practical approach to reducing Large Language Model (LLM) inference costs by fusing weights from multiple Mixture-of-Experts (MoE) models. By leveraging the composability of MoE architectures, developers can assemble a new model that maintains high reasoning capabilities while significantly reducing output token length and latency. We detail the "triple-thinking" configuration, analyze its performance and token economy, and provide engineering guidelines for deploying this zero-training fusion method.
I. Background: The Cost Dilemma of LLM Inference
Recent reasoning Large Language Models (LLMs) have significantly improved performance in math, coding, and science tasks through long “think before answering” chain-of-thought (CoT) mechanisms. However, longer CoTs mean more output tokens, leading to higher inference latency and API costs. In many real-world scenarios, users do not need a model to “think ten thousand steps”; they prefer a much shorter response that achieves 80-90% of the intelligence level of top-tier reasoning models.
Meanwhile, mainstream open-source LLMs generally adopt the Mixture-of-Experts (MoE) architecture. Although the total parameter count is massive (up to hundreds of billions), each token only activates a small fraction of experts. This fine-grained routing structure presents an intriguing engineering opportunity: the expert tensor structures across different models are highly similar. Theoretically, we can “disassemble” multiple trained models and reassemble a new one combining their strengths without expensive retraining.
II. Core Method: Ensemble Experts and Weight Fusion
2.1 Basic Principles
The “ensemble experts” method essentially utilizes the composability of MoE architectures to build sub-models with specific capability orientations from multiple parent models in linear time complexity. Key operations include:
- Selective merging of routed experts: Compare expert tensors across parent models layer by layer. Based on a predefined strategy, determine whether each layer’s experts come from a specific parent model or are interpolated by weight.
- Retention of shared and attention layers: MoE models typically feature shared experts and attention parameters used by all tokens. The empirical approach is to retain the efficient shared and attention layers from a faster, more concise parent model, thereby inheriting strong reasoning capabilities while avoiding verbose outputs.
- Zero training cost: This process only involves tensor reading, interpolation, and writing back. It requires no fine-tuning or reinforcement learning and can be completed on a single machine in hours.
The illustrative pseudocode is as follows:
# Pseudocode: Layer-by-layer merging strategyfor layer in model.layers:if layer.type == "attention" or layer.type == "shared_expert":output[layer] = fast_parent[layer] # Retain efficient layerselse:for expert_idx in range(num_experts):src = schedule[layer][expert_idx] # Predefined source allocation tableoutput.experts[expert_idx] = parents[src].experts[expert_idx]
2.2 The “Triple-Thinking” Configuration
A typical and highly effective configuration involves fusing three parent models simultaneously, known in the industry as the “Triple-Thinking” configuration:
- Parent Model A: The latest strong reasoning model, providing high-level math and logical reasoning capabilities.
- Parent Model B: The previous generation of reasoning models, contributing structured and disciplined thinking patterns to suppress CoT divergence.
- Parent Model C: A general-purpose conversational base model whose weight style is concise and instruction-oriented, significantly shortening the output length.
When combined via an expert-level distribution table, the resulting sub-model exhibits a “compromise intelligence”: the reasoning depth approaches Parent Model A, while the response style and length lean significantly toward Parent Model C.
III. Performance and Benefit Analysis
3.1 Intelligence Retention
On math competition benchmarks (e.g., AIME across two years) and graduate-level science QA benchmarks (e.g., GPQA-Diamond), such fused models typically achieve 90% to 92% of the score of the strongest parent model. This means trading less than two percentage points of accuracy for a substantial efficiency boost—a highly cost-effective trade-off for most cost-sensitive scenarios.
3.2 Token Economy
More crucially, the output length changes. In testing, the fused model’s response token count is approximately 40% of the strong reasoning parent model, meaning the output length is reduced by about 60%. Since inference latency is primarily dominated by the number of generated tokens, this directly brings about a twofold increase in response speed. For API calls billed by the token, costs decrease almost linearly.
IV. Engineering Implementation Recommendations
For teams looking to reproduce similar solutions in their own environments, consider the following points:
- Verify architectural compatibility: The parent models to be merged must share the same MoE topology (same number of experts, tensor shapes, and routing dimensions); otherwise, direct interpolation is impossible.
- Design a distribution strategy: Start with a baseline of “take all from the strongest reasoning model,” gradually replace some layers with experts from a faster model, and use evaluation sets to verify the performance-cost curve to find the optimal trade-off.
- Maintain attention layer consistency: Attention parameters should be taken entirely from the same parent model; mixing them can easily disrupt the cohesive attention pattern.
- Deployment and inference acceleration: The merged model’s weight size is comparable to the original (total parameters still in the hundreds of billions). It is recommended to use an inference framework that supports expert parallelism and leverage quantization (e.g., low-bit weight compression) to reduce VRAM usage. For cloud deployments, utilize elastic GPU instances and object storage to distribute weight shards, combined with a monitoring and alerting system to track token consumption and time-to-first-token (TTFT) latency.
- Continuous evaluation regression: The fused model’s behavior may differ from any parent model. It is essential to establish a regression evaluation set on real business data to prevent capability degradation on long-tail tasks.
V. Conclusion and Future Outlook
Weight fusion based on the MoE structure provides a third path to “reduce costs and increase efficiency”—neither distillation training nor simple quantization compression, but direct “assembly” of multiple mature models in the parameter space. It achieves a controllable trade-off between intelligence and efficiency at nearly zero training cost, making it especially suitable for teams that already have multiple homogeneous open-source base models and are sensitive to inference costs.
Looking ahead, the exploration space for such methods includes automated searching for optimal expert distribution strategies, fusion across different model generations, and stacking fusion with quantization, speculative decoding, and other inference optimization techniques to further lower the marginal cost of unit intelligence. For developers, understanding and mastering this technical approach means adding an autonomously controllable engineering weapon beyond model selection.
