Assembly-of-Experts for Efficient, Lower-Cost LLM Inference
This article explains why inference cost and latency often limit the practical use of large language models. It describes Assembly-of-Experts (AoE), an approach that combines existing frozen models at inference time instead of training a larger model. The article covers the design goals, a reference architecture for model registration, routing, budget planning, parallel calls, aggregation, and fallback, along with cost optimization techniques, quality safeguards, deployment limits, and a rollout checklist.
1. Background: Inference Efficiency and Cost as Key Constraints
As large language model (LLM) applications move from “working” to “working well,” tension on the inference side becomes more visible. Complex tasks require stronger understanding, reasoning, and generation. At the same time, high concurrency, long contexts, and multi-turn interactions can significantly increase call costs and latency.
A single model often cannot meet every scenario. Strong models may produce lengthy responses and carry higher per-request costs. Lightweight models respond quickly but lack stable performance on complex reasoning. Engineering teams therefore need to answer a central question: how to make responses more concise, inference more efficient, and total cost more controllable without significantly sacrificing intelligence.
Multi-model fusion is a common approach, but traditional methods often rely on additional training, fine-tuning, or complex distillation. These methods take time and money, and they introduce version management and data dependency issues.
A lighter approach treats several already-trained base models as “experts” at inference time. The system selects a subset of these experts based on task intent and budget, then aggregates, trims, and validates their outputs. This family of approaches is called Assembly-of-Experts (AoE). Its core idea is not to train a larger model. It reuses existing model capabilities through inference orchestration while keeping model parameters frozen.
2. Core Design: Assembly at Inference Time Instead of Fusion at Training Time
The defining feature of the Assembly-of-Experts approach is that composition happens after training. Base models keep their parameters unchanged. For each request, the system performs three tasks: it identifies the task intent, selects suitable experts, and merges their outputs.
Mixture-of-Experts architectures typically learn routing parameters inside the model during training. In contrast, inference-time expert assembly focuses on the engineering layer, where configuration, observability, and fallback are easier to manage. This approach requires no extra fine-tuning or retraining, so it suits quick combinations and iteration across an existing model pool.
The method has four design goals:
- Capability reuse: Different base models perform differently across tasks. Capability labels and routing strategies let the system use each model’s strengths, rather than relying on a single model for every task.
- Controlled cost: Each request has a budget that covers the maximum number of experts, output length limits, and latency targets. This prevents unbounded stacking of model calls.
- Concise responses: The aggregation stage does more than concatenate outputs. It removes duplicates, compresses content, enforces format constraints, and trims redundancy so the final response stays close to the user’s question.
- Quality assurance: Confidence scoring, cross-validation, factual consistency checks, and fallback mechanisms reduce the risks that come with conflicting outputs from multiple models.
“No fine-tuning or retraining” does not mean “no tuning.” Routing rules, budget policies, aggregation weights, and output templates still need to be configured and calibrated against evaluation sets. This tuning happens in the orchestration layer and does not change base model parameters. As a result, iteration costs are lower, and gradual rollouts are easier.
3. System Architecture: From Model Registration to Result Aggregation
A practical expert assembly system typically includes the following modules:
Model registration and capability profiles. The system maintains capability labels for each base model, such as general question answering, long-document summarization, structured extraction, logical reasoning, code understanding, and multilingual processing. It also records cost tier, average latency, maximum context length, output style, and known weaknesses. Capability profiles are not static configuration. They should be updated continuously through offline evaluation and online monitoring.
Request parsing and intent recognition. The system performs lightweight parsing of each user request to extract the task type, output format, time sensitivity, risk level, and length constraints. This step does not need a heavy model. Rules, classifiers, or a combination of lightweight models can keep routing overhead low.
Expert planning and budget allocation. The planner selects a subset of experts based on intent, budget, and quality goals. It must decide how many experts to call, whether to run them in parallel, the output length limit for each expert, whether cross-validation is needed, and how to fall back if a call fails. Budget allocation should prioritize the critical path and avoid unnecessary calls made only for “multi-model voting.”
Parallel inference and timeout control. Experts run independently. The system sets a global timeout and per-expert timeouts. For latency-sensitive scenarios, a “first sufficient result” strategy can work: the system returns the first result that meets the quality threshold, and later results are used only for verification or supplementation.
Output aggregation and compression. The aggregator merges multiple drafts and resolves conflicting viewpoints, factual inconsistencies, and format differences. Common operations include weighting by confidence, extracting consensus content, removing repeated statements, reordering to match the target format, and enforcing a maximum final length. For high-risk scenarios, the system can add fact-checking or citation verification.
Monitoring, caching, and fallback. The system records routing decisions, expert call counts, latency distributions, aggregation conflict rates, user feedback, and cost metrics. Frequent, stable requests can be cached. When an expert times out, produces low-confidence output, or aggregation fails, the system falls back to a single model or a conservative template.
4. Illustrative Pseudocode
The pseudocode below shows a simplified orchestration flow: routing, planning, parallel calls, aggregation, and fallback. It does not describe specific interfaces or product implementations.
type Expert = {id: stringcapabilities: string[]costLevel: numberlatencyProfile: number[]qualityScore: map}function serve(query, experts, budget):intent = parseIntent(query)candidates = filterByCapability(experts, intent)plan = planAssembly(candidates, intent, budget)drafts = parallelInvoke(plan.experts,query,plan.constraints,timeout = plan.timeout)merged = assemble(drafts, plan.weights, plan.format)merged = compress(merged, plan.maxOutput)if lowConfidence(merged) or conflictTooHigh(merged):return fallback(query, plan.fallback)return merged
In this flow, parseIntent identifies the task and its constraints. planAssembly decides the expert combination and budget. assemble merges multiple outputs. compress keeps responses concise. fallback maintains availability when something goes wrong. In an actual implementation, record the input and output of each step in a structured form so that runs can be replayed and problems traced.
5. Cost and Efficiency Optimization
Expert assembly does not automatically lower costs. Poor routing or too many experts can increase the number of calls and the aggregation overhead. Optimization should address several areas:
First, tiered routing. Use lightweight rules or a small model to estimate task difficulty. Simple requests can go to a single expert or the cache, and only complex requests move into multi-expert assembly. This keeps every request from carrying multi-model costs.
Second, hard budget limits. Set a maximum number of experts, a maximum output length, and a maximum wait time for each request. When the budget runs low, keep the high-confidence experts and use the others only for verification or skip them.
Third, output length control. Lengthy responses increase generation cost and reading effort. During aggregation, define the target length, format, and required points, and remove repeated explanations and unrelated background.
Fourth, caching and reuse. Build result caches for stable questions, fixed templates, and repeated queries. In multi-turn conversations, reuse confirmed facts and intermediate conclusions to avoid repeated inference.
Fifth, parallelism and early stopping. Parallel calls reduce total latency but increase short-term resource usage. Early stopping returns a result once it meets the quality threshold, which avoids unnecessary expert calls.
Sixth, cost observability. Record the number of expert calls, output length, routing hit rate, and aggregation time for each request, and build a cost model from these records. Only sustained observation can show whether expert assembly delivers real efficiency gains.
6. Quality Assurance and Risk Control
The main risks of multi-model output are conflict and inconsistency. To reduce these risks, teams should implement the following mechanisms:
Confidence assessment. Assign a confidence or quality score to each expert output. Weight the score by historical performance, task type, and output completeness. Low-confidence results should not go directly into the final response.
Cross-validation. For factual, numerical, and structured tasks, have multiple experts generate answers independently, then compare the key fields. When they conflict, send the case to verification or a conservative response instead of simply concatenating the outputs.
Consistency constraints. The aggregator should unify terminology, format, and tone so that the outputs of different models do not simply stack on top of each other. For outputs that require strict formats, validate the structure before filling in the content.
Degradation and fallback. When multi-expert aggregation fails, latency exceeds limits, or quality falls short, fall back to a single model, a cached result, or a templated response to keep the system available.
Offline evaluation and online gradual rollout. Build an evaluation set that covers common tasks, edge-case inputs, and high-risk questions. Compare the expert assembly against a single-model baseline. During release, roll out to a share of traffic and monitor cost, latency, conflict rate, and user feedback.
Version management. Version the base models, routing rules, aggregation templates, and budget policies. A change to any of these can affect the final results, so the system must support rollback and comparison.
7. Applicable Scenarios and Limits
Expert assembly suits workloads with diverse task types, tiered quality requirements, and clear cost pressure. Examples include general question answering, document summarization, information extraction, multilingual processing, routing of complex requests, and output format normalization. For high-concurrency workloads with simple questions, lightweight routing and caching can reduce overhead. For complex reasoning, cross-validation across multiple experts can improve stability.
The approach is not universal. For real-time interactions with very low latency requirements, multi-expert calls may add waiting time. For scenarios that need strong consistency and explainability, multi-model voting does not necessarily outperform a single model combined with rule-based checks. For highly specialized domains where base models have limited coverage, inference-time composition cannot replace domain data development. Engineering teams should first use evaluation sets to verify the benefits, then decide whether to expand the expert pool.
8. Deployment Checklist
Before deployment, check the following items:
- Are model capability profiles in place?
- Are request budgets and timeout policies defined?
- Can routing decisions be recorded and replayed?
- Are there mechanisms for handling aggregation conflicts and fallback?
- Are cost, latency, and quality metrics monitored?
- Does the system support gradual rollout and version rollback?
- Are high-risk outputs checked by humans or rules?
With this foundation in place, expert assembly can move from a concept to an operable inference architecture.
9. Conclusion
The Assembly-of-Experts approach replaces training-time fusion with inference-time assembly. With frozen parameters and no fine-tuning or retraining, it offers an engineering path to better inference efficiency, shorter responses, and lower total cost.
Success depends less on the number of models than on accurate routing, reasonable budgets, robust aggregation, and complete monitoring. Developers should treat this approach as an observable, reversible, and iterative inference orchestration system, not as a simple stack of models. Only when quality, cost, and latency are measured and bounded clearly can expert assembly reliably serve real business needs.
