WhoBuilt

From Mixture of Experts to Mixture of Agents with Super Fast Inference

Jun 27, 2025· 53 min· 4.3K views·Watch on YouTube

Speakers

Daria Soboleva, head research scientist at Cerebras, and Daniel Kim, head of growth at Cerebras, explain mixture of experts and mixture of agents and lead an AI Engineer workshop on building an agent system with fast inference.

Why mixture of experts scales models

Daniel traces model progress from GPT-3 through Llama and DeepSeek, arguing that larger models need advances in data and architecture. In a mixture of experts, a router sends each token to selected feed-forward networks, or experts, instead of activating one monolithic network. This increases model capacity while limiting how many parameters are active for each token.

Using agents for harder problems

Daria introduces inference-time compute as a way to improve answers after training. She compares GPT-4o taking 45 seconds to give a wrong answer to an AIME math problem with o3 taking 293 seconds to solve it. She describes mixture of agents as multiple prompted LLMs producing candidate answers that a final model combines, citing a NinjaTech example that solved the problem in 7.4 seconds with 32 calls and more than 500,000 generated tokens.

Why Cerebras emphasizes inference speed

Daniel says GPU systems can be constrained by moving model weights and intermediate data between compute cores and off-chip memory. He describes Cerebras chips as pairing 900,000 cores with 900,000 distributed memory stores, and says only activations need to move between chips. He presents this hardware as a way to make multi-agent systems with many model calls practical.

Building and tuning a mixture of agents

The workshop has participants configure agents with different prompts, models, temperatures, and layers, then combine their outputs with a summarization model. In the coding challenge, agents handle bugs, performance, and review while participants tune the system to generate a Python function that scores up to 120 points. Daria notes that layers run sequentially, with agents within each layer processing in parallel.

Trade-offs and audience questions

In Q&A, Daniel says harder applications may use AI systems to work on problems for hours, while faster inference could shorten that process. The speakers say mixture-of-agents performance depends on engineering prompts and choosing models for the use case; too many agents can add redundant work. They also discuss model onboarding, fine-tuning support, power use, and plans for multimodal APIs.

Takeaways

  • Use specialized agents for distinct parts of a task, then give a final model responsibility for combining their work.
  • Tune prompts, models, and agent count for the specific task; adding agents can add redundancy without improving the answer.
  • Parallel model calls can reduce wall-clock time, but may consume many tokens and calls, as in the 32-call example.
  • For complex tasks, evaluate a multi-agent system against a single model on both answer quality and response time.
  • Treat hardware memory movement as an inference constraint when designing systems that make many model calls.

Mentioned in this talk

Search inside this talk

What was claimed 12

Show all 12 facts

Related talks