Mixture of Agents (MoA) Architecture and Global Routing: A Practical Configuration Guide

    This article explains a Mixture of Agents (MoA) architecture that separates reference models from a single aggregate executor, and describes a three-layer global routing design for automatically selecting single-model or MoA paths. It also covers beginner configuration, advanced optimization techniques, typical use cases, and cost and latency tradeoffs.

    Mixture of Agents (MoA) Architecture and Global Routing: A Practical Configuration Guide

    1. MoA Multi-Agent Consultation Model: Principles and Value

    MoA (Mixture of Agents) is a multi-model collaboration architecture that combines “multi-agent brainstorming” with “single-point decision execution.” It differs from two common approaches: relying entirely on a single model, which can produce hallucinations based on assumptions, and having multiple agents execute independently and conflict with each other, which leads to chaotic operations and uncontrollable results.

    MoA strictly separates responsibilities into two layers:

    1. Reference models (advisory board)

      • Typically configured with 2–3 lightweight or mid-sized models with different specialties.
      • They have no tool-calling permissions and cannot execute commands, read or write files, or access a browser.
      • They only output viewpoints on the user’s question: analysis approaches, loophole identification, supplementary details, and alternative plans.
      • Their strength is divergence: different models have different knowledge blind spots, and cross-coverage can significantly reduce fixed thinking patterns.
      • Cost is controllable: reference models only produce textual viewpoints and do not handle heavy computational tasks.
    2. Aggregate model (decision executor)

      • The only core model with full permissions. It can read the entire conversation context and call all tools, including the terminal, file system, and browser.
      • It is responsible for summarizing all advisory viewpoints, cross-validating correctness, integrating high-quality ideas, correcting flaws, and producing the final answer for execution.
      • Its strength is convergence: decision-making authority is centralized, avoiding state chaos caused by concurrent execution across multiple agents.

    Core benefit: Multi-model cross-validation significantly reduces hallucinations, logical gaps, and incomplete solutions. For complex tasks, this “diverge first, converge later” process can clearly improve output accuracy and completeness.

    2. Global Intelligent Routing: The Brain for Automated Scheduling

    Global routing replaces manual judgment of “which model should handle this question.” It automatically analyzes the difficulty, scenario, length, and requirement type of each request, then dynamically matches the optimal single-model or multi-model MoA combination without manual model switching.

    A typical three-layer routing design provides layer-by-layer fallback and optimization:

    1. Layer 1: Fast rule-based filtering

      • Make low-cost preliminary judgments based on request characteristics: very short questions, greetings, and format-conversion requests are routed directly to lightweight models.
      • Requests involving code generation, long-form reasoning, or multi-step planning are marked as complex tasks and passed to the next layer.
    2. Layer 2: Semantic and difficulty assessment

      • Estimate complexity based on context length, domain keywords, and task type (Q&A, generation, rewriting, or analysis).
      • Medium-complexity tasks are routed to mid-sized models or dual-model validation.
      • High-complexity tasks trigger the MoA consultation process, in which multiple reference models provide viewpoints in parallel.
    3. Layer 3: Fallback and degradation strategy

      • If the primary model is unavailable or times out, automatically fall back to a backup model.
      • If result confidence is insufficient, add another round of reference-model review.
      • Log routing decisions to support later review and strategy tuning.

    3. Beginner Configuration

    The following is a generic configuration example. It is a pseudo-configuration; specific fields should follow the documentation of the framework in use.

    1. agents:
    2. reviewer:
    3. type: reference # outputs viewpoints only, no tool permissions
    4. count: 2
    5. models: [light-model-a, light-model-b]
    6. output: analysis-only
    7. executor:
    8. type: aggregate # the only decision executor
    9. model: flagship-model
    10. tools: [terminal, files, browser]
    11. context: full-history
    12. router:
    13. strategy: auto
    14. levels:
    15. - rule-based-fast-path
    16. - semantic-difficulty
    17. - fallback-and-retry

    Beginner configuration recommendations:

    • Start with two reference models to avoid excessive divergence that makes aggregation difficult.
    • Explicitly instruct reference models in their prompts to “output analysis only, not the final answer.”
    • Enable full context for the aggregate model so it can check differences between reference-model viewpoints and the user’s original requirements.

    4. Professional Optimization and Advanced Techniques

    1. Domain-specific advisory boards
      Different models perform differently across tasks. You can configure different reference-model combinations for code tasks, data analysis tasks, and writing tasks, and have the routing layer select the corresponding combination by task type.

    2. Control viewpoint output structure
      Require reference models to output in a fixed format, such as core approach, risk points, alternatives, and confidence. This significantly reduces the integration cost for the aggregate model and makes automated comparison easier.

    3. Cross-validate during aggregation
      The aggregate model should explicitly perform viewpoint deduplication, fact checking, and conflict resolution. In the system prompt, require it to first list disagreements, then resolve them one by one, and finally output a conclusion. This reduces superficial integration.

    4. Routing strategy canary rollout and replay
      Before launch, replay historical requests offline to measure hit rate per layer, fallback rate, and final satisfaction, then gradually roll out. Keep routing decision logs for continuous threshold tuning.

    5. Cost and latency tradeoffs
      MoA introduces parallel-call latency and token costs. Recommendations: do not send simple tasks into MoA; limit reference-model output length; enable full tool permissions for the aggregate model only on high-value tasks.

    5. Typical Scenarios

    • Complex code tasks: Multiple reference models review architecture, boundary conditions, and performance, while the aggregate model implements a unified solution.
    • Technical solution design: Reference models propose multiple options and risks, and the aggregate model compares them and outputs a recommendation.
    • Long-form writing and review: Reference models check logic, facts, and style, and the aggregate model finalizes the draft.

    6. Summary

    The key to MoA is separation of responsibilities: reference models handle divergence and error-finding, while the aggregate model handles convergence and execution. Global routing is responsible for assigning the right tasks to the right model combination at the right time. Together, they can significantly reduce single-model hallucination risk while controlling cost and latency, enabling a stable and operable multi-model collaboration workflow.