MoCE: A Mixture-of-Context Aware Experts Framework for Troubleshooting Internet-scale Services

Vipul Harsh (Conviva and Carnegie Mellon University), Sayan Sinha (Conviva and Georgia Tech), Henry Milner (Conviva), B. Aditya Prakash (Conviva and Georgia Tech), Vyas Sekar (Conviva and Carnegie Mellon University), Hui Zhang (Conviva and Carnegie Mellon University)

23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 3 · Self-Managing Networks

Overview

Modern internet-scale services—spanning e-commerce, video streaming, and social media platforms—operate on vast, highly complex infrastructures comprising millions of diverse, interacting components. When failures occur, they impose massive financial burdens, with industry surveys estimating the average cost of downtime at roughly $300,000 per hour. Diagnosing these incidents requires root cause analysis (RCA) that sifts through heterogeneous telemetry data collected across four distinct layers: clients, networks, application backends, and third-party services. However, current diagnostic methodologies rely predominantly on isolated point solutions that target a single failure class using fixed telemetry formats. These point solutions fail to scale as systems evolve, new failure modes emerge, or telemetry pipelines expand.

Watch on YouTube · Slides

Visual summary for MoCE: A Mixture-of-Context Aware Experts Framework for Troubleshooting Internet-scale Services by Vipul Harsh, Sayan Sinha, Henry Milner, B. Aditya Prakash, Vyas Sekar, Hui Zhang
Visual summary for MoCE: A Mixture-of-Context Aware Experts Framework for Troubleshooting Internet-scale Services by Vipul Harsh, Sayan Sinha, Henry Milner, B. Aditya Prakash, Vyas Sekar, Hui Zhang

Key moments

  1. 0:00 Introduction and motivation for internet-scale service troubleshooting
  2. 1:23 Real-world examples of failures across different layers
  3. 4:24 Core requirements for a comprehensive RCA solution
  4. 5:30 The three high-level ideas behind the MoCE framework
  5. 7:14 Expressing experts as DAGs using three operator types
  6. 11:51 Lazy DAG runtime system and end-to-end architecture
  7. 14:15 Evaluation results on coverage, accuracy, and real-world pilot study
  8. 16:02 Scalability performance and conclusion

MoCE: A Mixture-of-Context Aware Experts Framework for Troubleshooting Internet-scale Services

Speakers: Vipul Harsh (Conviva and Carnegie Mellon University); Sayan Sinha (Conviva and Georgia Tech); Henry Milner (Conviva); B. Aditya Prakash (Conviva and Georgia Tech); Vyas Sekar (Conviva and Carnegie Mellon University); Hui Zhang (Conviva and Carnegie Mellon University)

Conference: USENIX NSDI

YouTube: https://www.youtube.com/watch?v=3VyjA0-8NIw

Overview

Modern internet-scale services—spanning e-commerce, video streaming, and social media platforms—operate on vast, highly complex infrastructures comprising millions of diverse, interacting components. When failures occur, they impose massive financial burdens, with industry surveys estimating the average cost of downtime at roughly $300,000 per hour. Diagnosing these incidents requires root cause analysis (RCA) that sifts through heterogeneous telemetry data collected across four distinct layers: clients, networks, application backends, and third-party services. However, current diagnostic methodologies rely predominantly on isolated point solutions that target a single failure class using fixed telemetry formats. These point solutions fail to scale as systems evolve, new failure modes emerge, or telemetry pipelines expand.

This talk introduces MoCE (referred to colloquially as Mochi), a Mixture-of-Context Aware Experts framework designed to address the limitations of point solutions for internet-scale service troubleshooting. Developed collaboratively by researchers from Conviva, Carnegie Mellon University, and Georgia Tech, MoCE shifts the RCA paradigm from an algorithmic development problem to a systems design challenge. By combining an extensible library of composable operators, a unified execution directed acyclic graph (DAG), and a Lazy DAG Runtime System built on top of Ray, MoCE delivers a comprehensive, expressive, and scalable architecture capable of handling diverse failure modes without incurring linear computational overheads.

Background

▶ Watch: Introduction and motivation for internet-scale service troubleshooting (0:00)

In production environments, service failures manifest in varied and complex ways. Real-world examples include an Internet Service Provider (ISP) inadvertently injecting packet delays that block large user cohorts, a cascade of client-side device errors causing payment failures, or nightly backend virtual machine (VM) migration bugs triggering periodic service drops. To detect and diagnose these anomalies, engineers traditionally deploy specialized point solutions. Systems like Minesweeper focus exclusively on client-side events to isolate application errors, while other tools examine backend traces for high response times or analyze client metrics for performance anomalies.

While these point solutions are optimized for specific sub-problems, they suffer from two major shortcomings. First, they fail to provide comprehensive coverage of the broad taxonomy of failures found in modern distributed systems. Second, they are brittle: introducing a new failure type or incorporating novel telemetry data often requires building a new point solution from scratch. Simply aggregating multiple point solutions into a naive ensemble fails because running $N$ independent diagnostic algorithms linearly multiplies computational costs and multiplies human engineering effort. Consequently, the systems community has reached an impasse, highlighting the need for a principled framework that unifies root cause analysis under a scalable systems abstraction.

Key Findings

▶ Watch: Core requirements for a comprehensive RCA solution (4:24)

The central discovery of the MoCE project is that disparate RCA algorithms are not fundamentally incompatible; rather, they share a massive overlap in their underlying data manipulation, stateful processing, and statistical operations. By decomposing diverse expert diagnostic logic into modular components, MoCE demonstrates that an ensemble-based RCA approach can be executed without the prohibitive $O(N)$ computational scaling penalty typical of naive multi-expert architectures.

Key benchmark results and findings presented in the talk include:

  • Accuracy and Coverage: Evaluated across more than 10 diverse, production-inspired failure incidents injected into client, network, third-party, and backend layers, MoCE achieves a top-5 recall accuracy of 95%. In comparison, alternative baselines—including large language model (LLM)-based troubleshooting solutions—lag significantly behind at approximately 30%.
  • Real-World Efficacy: In a one-week pilot study across four live production media services, MoCE successfully flagged real anomalies—ranging from problematic URLs and localized network disruptions in specific cities to device-specific software bugs. Domain experts verified 9 out of 10 of these flagged incidents as genuine production issues.
  • Scalability and Sub-linear Compute: While a naive baseline runtime increases linearly with the addition of each expert, MoCE's unified execution DAG flattens and saturates. Running 15 distinct experts simultaneously, MoCE achieves a 6x speedup over the unoptimized baseline by eliminating redundant computations across overlapping expert pipelines.

Technical Deep Dive

▶ Watch: Expressing experts as DAGs using three operator types (7:14)

MoCE approaches the RCA problem through three core systems pillars: a mixture-of-context-aware-experts architecture, a declarative operator abstraction, and a lazy execution runtime.

The Operator Library and DAG Abstraction

The core abstraction of MoCE posits that any diagnostic expert can be expressed as a DAG composed of three fundamental types of operators:

  1. SQL-like Operators: Used to manipulate relational database tables, filter cohorts, and aggregate metrics over dimensions such as CDN, ISP, device type, and operating system.
  2. Stateful Data Processing Operators: Applied over sequences of events within specific temporal windows (e.g., isolating user actions that occur strictly during a login window in a session).
  3. Statistical and Algorithmic Operators: Encompassing machine learning logic, data cleaning routines, and pattern-mining algorithms. A primary algorithmic operator takes event sequences labeled with good or bad outcomes (e.g., payment success versus failure) and automatically extracts recurring event patterns consistently leading to negative outcomes.

MoCE's current implementation features a library of 30 such operators. This library evolved organically: developers built initial experts, abstracted common functional blocks into operators, and progressively expanded the library. Once defined, individual experts can be written concisely as simple functional programs composed of these building blocks, shielding expert developers from the underlying algorithmic complexity.

End-to-End Architecture and Runtime Stack

The end-to-end MoCE architecture routes incoming failure incidents through a multi-tier stack:

  • Policy Layer: Acts as the "brains" of the system. Given an active failure incident, the policy layer performs expert routing (selecting which subset of experts to run) and result combination (aggregating diverse expert outputs into a unified, prioritized list of root causes).
  • Control Plane: Translates high-level routing and combination policies into an executable MoCE DAG. Because multiple experts frequently utilize overlapping data extraction or filtering steps, the control plane merges individual expert DAGs into a single unified DAG, pruning duplicate computational paths.
  • Execution Plane: Powered by the Lazy DAG Runtime System, implemented as a layer on top of the Ray framework. By adopting lazy execution semantics similar to data processing frameworks like Apache Spark, the runtime views the entire unified DAG ahead of time, enabling global optimization, intelligent operator scheduling, caching of intermediate results, and fine-grained parallelism.

Experimental Setup & Results

▶ Watch: Lazy DAG runtime system and end-to-end architecture (11:51)

The evaluation of MoCE combines controlled fault-injection benchmarks with a live production deployment study.

  • Fault-Injection Testbed: The researchers constructed a diverse suite of failure incidents inspired by real-world production logs, deliberately injecting faults across client-side applications, network paths, third-party APIs, and backend server infrastructure.
  • Baseline Comparison: MoCE was benchmarked against isolated point solutions and an LLM-based troubleshooting baseline across the injected incident suite. Measured via recall at top-$K$ (where an algorithm receives full credit if the true root cause is present in its top-$K$ ranked outputs), MoCE achieves 95% accuracy at $K=5$, substantially outperforming competing baselines which plateau near 30%.
  • Production Pilot: MoCE was deployed as a pilot monitoring system across four commercial media streaming services over a one-week duration. The system processed live telemetry streams, flagging anomalies such as corrupted media URLs, regional network degradations isolated to two specific cities, and hardware-specific decoding failures. Human domain experts manually audited the outputs, confirming the validity of 9 out of 10 surfaced anomalies.
  • Scalability Benchmarks: Scaling experiments measured system runtime as the number of active troubleshooting experts increased from 1 to 15. While a baseline architecture scaling un-merged experts exhibited a direct linear increase in execution time, MoCE's runtime saturated due to operator merging within the unified DAG, ultimately delivering a 6x execution speedup at the 15-expert scale.

Practical Implications

▶ Watch: Scalability performance and conclusion (16:02)

For infrastructure teams, reliability engineers, and system operators, MoCE demonstrates that scaling automated root cause analysis requires moving away from fragmented, brittle point solutions toward unified, declarative compilation frameworks. By packaging diagnostic logic into reusable operator abstractions akin to Lego blocks, organizations can rapidly onboard new failure detection heuristics without linearly expanding compute budgets or engineering overhead.

However, practitioners must navigate certain tradeoffs and limitations inherent to the framework:

  • Operator Library Maturity: Developing expressive experts relies entirely on the richness of the underlying operator library. While 30 operators cover a broad spectrum of streaming and web service incidents, highly domain-specific enterprise architectures may require custom operator development.
  • Policy Design Complexity: While MoCE simplifies expert authoring, configuring the policy layer—specifically expert routing and result aggregation—requires careful tuning to avoid false-positive propagation from noisy expert modules.
  • Stateful Engine Constraints: The current proof-of-concept implementation utilizes a simplified in-memory Python stateful processing engine. While sufficient for the evaluated workloads, extreme internet-scale deployments processing millions of events per second may necessitate deeper integration with distributed stream-processing engines (such as Apache Flink).

Key Takeaways

  • Limitation of Point Solutions: Isolated diagnostic tools fail to cover diverse failure classes and cannot adapt to evolving system topologies or telemetry streams.
  • The Mixture-of-Experts Approach: Utilizing an ensemble of specialized experts provides comprehensive RCA coverage, but requires systems-level optimization to avoid prohibitive computational costs.
  • Composable Operator Abstraction: Complex diagnostic workflows can be cleanly modeled as DAGs constructed from a modular library of SQL-like, stateful, and algorithmic operators.
  • Unified DAG Merging: Merging overlapping expert pipelines eliminates redundant computations, allowing MoCE to scale sub-linearly and achieve a 6x speedup over unoptimized baselines when running 15 concurrent experts.
  • Lazy Execution Runtime: Built on top of Ray, MoCE’s lazy evaluation engine enables global visibility, intelligent scheduling, caching, and robust parallelism.
  • Production Validation: MoCE achieves 95% top-5 recall on injected failure benchmarks and successfully verifies real-world anomalies across live media streaming services in production pilot studies.

About the Speaker(s)

Vipul Harsh is a researcher affiliated with Conviva, Carnegie Mellon University (CMU), and Georgia Tech, specializing in systems, networking, and machine learning applications for internet-scale infrastructure. The presented work is joint research conducted by teams across Conviva, CMU, and Georgia Tech, including co-authors Sayan Sinha, Henry Milner, B. Aditya Prakash, Vyas Sekar, and Hui Zhang.

Reviews

→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)

All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)