ELDR: Expert-Locality-Aware Decode Routing for PD-Disaggregated MoE Serving
arXiv · HuggingFace · ▲24
Abstract (verbatim)
In prefill-decode (PD) disaggregated LLM serving, each request is assigned to a decode worker after prefill. Existing decode routers balance only load; for mixture-of-experts (MoE) models this is incomplete: equally loaded workers can differ in latency, since each decode step loads the weights of every distinct expert its batch activates. We present ELDR, an expert-locality-aware decode router for PD-disaggregated MoE serving. From a request's prefill expert activations, ELDR builds an expert signature predicting the experts it will activate during generation. Offline, balanced K-means partitions signature space across decode workers; online, locality-band routing sends each request to the least-loaded worker among those best matching its signature. A signature cache, co-indexed with the KV cache at KV-block granularity, keeps signatures exact under prefix caching. Implemented in vLLM and evaluated on deployments of up to 40 GPUs, ELDR reduces median TPOT by 5.9-13.9% over the strongest of four load-balancing baselines across three MoE models and two workloads, with model outputs unchanged.
Background
Background Analysis
1. Technical Context and Need
Large Language Model (LLM) deployment is shifting toward Prefill-Decode (PD) disaggregation, where prompt processing (prefill) and token generation (decode) run on separate worker pools. This architecture faces a key challenge: prefill is compute-bound and parallel, while decode is latency-sensitive and sequential. Co-locating them causes long prefills to block decode, increasing Time-to-First-Token (TTFT) and Time-per-Output-Token (TPOT). Thus, PD disaggregation requires efficient routing—after prefill, requests must be assigned to appropriate decode workers to generate subsequent tokens.
For Mixture-of-Experts (MoE) models, traditional load-balancing methods are insufficient. MoE decode is memory-bandwidth-bound, with latency determined by the union of activated experts per batch (not token count). For example, two requests sharing a decode node but activating different experts may have vastly different latencies. However, existing methods only balance load, ignoring expert locality (e.g., requests from similar domains activate overlapping experts like code, medicine, or law).
2. Previous Limitations
Traditional routing methods suffer from:
- Inadequate load balancing: Balancing compute load ignores that MoE latency depends on expert sets, so nodes with equal load may have very different latencies.
- Ignoring expert locality: Failing to exploit the structural nature of MoE expert activation (e.g., related requests activate similar experts), leading to fragmented expert sets and higher memory access costs.
- Incompatibility with prefix caching: Prefix caching (skipping prefill for repeated prompts) breaks expert signatures, and existing methods cannot maintain routing accuracy under cache hits.
3. Proposed Solution
The paper introduces ELDR (Expert-Locality-Aware Decode Routing) to address these issues:
- Expert signatures and locality-aware routing: Generate an expert signature from prefill activations, use offline balanced K-means to partition signature space into regions (each mapping to a decode worker), and route requests online to the least-loaded worker with the most similar signature.
- Prefix cache compatibility: Maintain a block-level expert signature cache aligned with KV cache to recover full signatures under partial or full cache hits, ensuring routing accuracy.
- Dual-objective optimization: Balance expert locality (via signature clustering) and real-time load balancing (via online low-load selection).
4. Key Differences from Prior Work
ELDR’s core innovations compared to prior work:
- Focus on expert locality: First uses the structural nature of MoE expert activation (e.g., domain correlations) for routing, rather than only load.
- Offline-online separation: Offline K-means captures expert locality structure, while online routing balances structure with real-time load via a "locality band."
- Cache-aware routing: Resolves prefix caching-routing conflicts with block-level signature caching, a problem overlooked by traditional methods.
Implemented in vLLM, ELDR modifies only the routing layer (keeping model outputs unchanged) and reduces TPOT by up to 13.9%, working for MoE models from billions to hundreds of billions of parameters.




