Mixture of Agents (MoA): Architecture Evolution and Engineering Practices

    This article explores how the Mixture of Agents (MoA) architecture evolves from a platform-bound tool into an independent virtual model provider. It covers the core MoA workflow, architectural upgrades, typical usage patterns, and a rational evaluation of its performance gains and cost implications, along with practical recommendations for latency management and observability.

    I. What is MoA: From Single Models to Collective Intelligence

    In Large Language Model (LLM) application development, single models consistently face capability boundaries, each with its own focus on reasoning depth, knowledge coverage, and instruction following. The Mixture of Agents (MoA) mechanism provides an engineered solution: it enables multiple models to handle distinct responsibilities, generating superior outputs through division of labor and aggregation.

    The basic MoA workflow is divided into two phases:

    1. Reference Stage: A group of reference models independently and concurrently analyzes the same problem, each producing a complete round of intermediate answers. Due to differences in training data, alignment strategies, and reasoning paths, these answers are often complementary in perspective, detail, and conclusion.
    2. Aggregation Stage: An aggregator model receives the outputs from all reference models, performing cross-validation, deduplication, error correction, and synthesis to ultimately generate a higher-quality answer.

    This “diverge then converge” structure is essentially an extension of Ensemble Learning applied to generative models. When combining multiple weakly correlated predictors, the overall error is typically lower than any individual member.

    II. Architecture Evolution: From “Hardcoded Tools” to “Virtual Model Providers”

    In early industry implementations, MoA typically existed as a tool or plugin deeply bound to a specific model routing platform. Reference and aggregator models could only be selected from that platform’s list, meaning the call chain, authentication, and billing were locked into a single channel. This design introduced three obvious problems:

    • Vendor Lock-in: If the routing platform encountered rate limiting, price hikes, or model deprecations, the entire MoA process failed.
    • Uncontrollable Costs: When strong models are billed by token, the overhead of a single MoA round equals the sum of multiple model calls, leaving almost no room for optimization.
    • Rigid Combinations: Users could not integrate their own subscribed model resources or privately deployed local models into the collaboration system.

    The evolved MoA 2.0-style design refactors this mechanism into an independent virtual model provider. The core idea is that MoA is no longer an ancillary feature of a specific platform, but an abstraction layer on par with a standard model. In a preset, developers can freely specify combinations of reference and aggregator models from any provider. The underlying adapter layer shields the differences between various APIs.

    From an engineering perspective, the key points of this refactoring include:

    • Abstract Decoupling: The MoA layer relies only on a unified model calling interface (standard protocols for messages, tool calls, streaming, etc.) and is agnostic to the underlying service provider.
    • Preset as Configuration: The selection of reference and aggregator models is entirely configuration-driven; switching combinations requires no code changes.
    • Session-Level Consistency: MoA operates as a complete agent session, supporting tool calls and multi-turn dialogue, rather than a one-off “invoke and end” interaction.

    III. Usage Patterns: Integrating into the Standard Model Selection System

    The refactored MoA behaves like a standard model in interaction. Taking a CLI-like agent framework as an example, there are two typical usage methods:

    Method 1: Switching as the Default Model

    1. # Switch the MoA preset to the default model for the current session
    2. /model default --provider moa

    After switching, all subsequent conversations are processed through the MoA pipeline: each request automatically triggers parallel reasoning from the reference models, followed by the aggregator model summarizing the output. Because it operates as a full session, context memory, tool calls, and follow-up corrections work seamlessly.

    Method 2: Single On-Demand Invocation

    1. # Route only the current prompt through the MoA pipeline
    2. /moa Analyze the performance bottlenecks of this code and provide refactoring suggestions

    This pattern suits a hybrid strategy of “using a single model for everyday cost control, and upgrading to MoA for difficult problems,” making it a recommended practice for cost-sensitive scenarios.

    IV. Effectiveness and Cost: Rationally Evaluating MoA Benefits

    4.1 Effectiveness Dimension

    Industry benchmarks generally show that a properly configured MoA combination significantly outperforms its member models. When using the strongest model as the aggregator and multiple diverse strong models as the reference layer, the overall score can lead single models by several percentage points. For instance, in one public evaluation, an aggregation configuration scored about 8% higher than its strongest single-model member and about 11% higher than the second-strongest model in the reference layer.

    It is important to note that the gain margin heavily depends on the following factors:

    • Member Diversity: The greater the differences among reference models (different training lineages, alignment styles), the larger the error-correction space after aggregation.
    • Aggregator Capability: The aggregator model must possess strong long-context understanding and critical judgment capabilities; otherwise, it can easily be misled by incorrect answers from the reference layer.
    • Task Type: Tasks with clear right-or-wrong standards, such as factual Q&A and code generation, benefit more noticeably. The gain for purely creative writing tasks is relatively limited.

    4.2 Cost Dimension

    The inherent cost of MoA is call amplification: with N reference models plus 1 aggregator model, token consumption is typically over N+1 times that of a single model. Once provider-agnostic, cost optimization opens up through several paths:

    1. Subscription Resource Reuse: Configure models with included quotas from your subscriptions as the reference layer, driving marginal costs close to zero.
    2. Local Models for the Reference Layer: Use locally deployed open-weight models for parallel analysis, leaving only the most demanding aggregation step to a frontier closed-source model. Since reference models only produce intermediate drafts and final quality is gated by the aggregator, using small-to-medium models for the reference layer is an acceptable compromise.
    3. On-Demand Trigger: Route simple requests to a single model, triggering MoA only for complex tasks to avoid overkill.

    A typical low-cost, high-reward configuration strategy:

    1. Reference Layer: 2~3 local or subscription-included models (parallel, independent analysis)
    2. Aggregation Layer: 1 strongest frontier model (responsible for comprehensive adjudication)

    V. Implementation Recommendations and Considerations

    When introducing MoA into agent engineering, consider the following points:

    • Latency Management: The reference layer executes concurrently, so theoretically, the end-to-end MoA latency equals the slowest reference model plus aggregation time. Set single-model timeouts and fallback strategies to avoid slowing down the overall response.
    • Output Structure Agreements: Require reference models to output in a unified format (e.g., conclusion, basis, confidence) to reduce the aggregator’s integration difficulty.
    • Context Trimming: The merged output from the reference layer may exceed the aggregator model’s context window. Implement summarization or segmented aggregation (e.g., designing a hierarchical MoA: aggregate within groups first, then across groups).
    • Observability: Record the original output of each reference model and the aggregator’s adoption decisions to facilitate continuous tuning of member combinations.
    • Tool Call Semantics: Clarify the ownership of tool calls within the MoA session. Typically, the aggregation layer makes unified decisions and executes them, preventing multiple reference models from making duplicate calls and causing side effects.

    VI. Conclusion

    MoA has evolved from a “tool bound to a single platform” to a “provider-agnostic virtual model provider.” On the surface, this is an interface-level refactoring, but in essence, it elevates “multi-model collaboration” from a product feature to a universal architectural pattern. Developers thus gain complete combinatorial freedom: model selection, cost structure, and deployment location (cloud or local) can be flexibly assembled according to business needs. For scenarios that demand answer quality and can accommodate the overhead of multiple calls, MoA provides a clear and viable engineering path. Finding the optimal configuration among latency, cost, and quality remains a practical topic worth continuous exploration.