ExpertWeave: Efficiently Serving Expert-Specialized Fine-Tuned Adapters at Scale

Ge Shi, Hanieh Sadri, Qian Wang, Yu Zhang, Ying Xiong, Yong Zhang, Zhenan Fan · DOI

Introduction

Mixture-of-Experts (MoE) architectures, such as DeepSeek and Mixtral, have become a cornerstone of modern AI by providing massive parameter counts with relatively low computational costs. These models achieve efficiency by activating only a subset of "experts" for any given token. To specialize these general-purpose models for specific domains like law, mathematics, or coding, researchers employ Expert-Specialized Fine-Tuning (ESFT). This process tunes only the experts most relevant to the target task, creating highly specialized adapters.

However, serving these specialized models at scale presents significant infrastructure challenges. When multiple users require different task-specific versions of a large MoE model simultaneously, traditional deployment methods struggle with memory management and throughput.

The Challenges of Multi-Adapter Serving

Serving multiple ESFT adapters concurrently faces three primary hurdles:

  1. The "Merge" Problem: Traditionally, adapters are merged into the base model. If a service needs to support 20 different adapters for a 16B MoE model, it would theoretically need 20 full copies of the model weights, leading to immediate Out-of-Memory (OOM) errors.
  2. LoRA Incompatibility: While systems like S-LoRA efficiently handle additive updates, ESFT is fundamentally different. It modifies or replaces existing expert weights within the MoE structure, making standard multi-LoRA serving techniques inapplicable.
  3. Memory Fragmentation: Because different tasks tune a varying number of experts across different layers, packing these weights into memory often results in significant "holes" or fragmentation, wasting up to 51% of available physical memory.

System Architecture and Methods

ExpertWeave addresses these challenges by treating the serving problem as a unified memory management and routing task. The system architecture is designed to maximize hardware utilization while minimizing latency.

ExpertWeave System Architecture: Illustrating the flow from the adapter repository to NPU memory using virtual memory management.

Virtual-Memory-Assisted Expert Weight Management

The core innovation of ExpertWeave is the use of Virtual Memory Management (VMM) APIs to decouple virtual address space from physical memory allocation. Instead of physically padding every adapter to a uniform size, ExpertWeave reserves a large contiguous virtual address space for all possible experts. Physical memory pages are only mapped to the experts that have actually been tuned. This allows the system to present a single, contiguous tensor to the computational kernels (like Grouped Matrix Multiplication) without the physical memory waste associated with traditional padding.

Batched Rerouting with Fused Kernels

Standard MoE routers are designed for the base model's expert configuration. ExpertWeave introduces an "ESFT Expert Map" that intercepts token IDs. When a token is associated with a specific adapter, a custom fused kernel redirects it from the base expert to the specialized adapter expert. By integrating this logic into a high-performance NPU kernel, ExpertWeave ensures that the routing overhead remains negligible.

Datasets and Sparsity Analysis

To evaluate ExpertWeave, researchers utilized a 16B MoE model based on the DeepSeek-V2-Lite architecture. They developed 10 real-world ESFT adapters across five domains: Math (GSM8K), Intent Recognition (Banking77), Summarization (Multi-News), Law (LegalBench), and Translation (WMT).

The choice of real-world adapters is critical because synthetic weights do not capture the sparse activation patterns inherent in specialized tasks. As shown in the table below, the number of experts tuned varies significantly by domain, which directly informs the efficiency of the VMM approach.

Characteristics of ESFT Adapters: This table highlights the sparsity and expert distribution across different task domains.

Key Results and Performance

ExpertWeave demonstrates substantial improvements over baseline "merged model" deployment strategies:

  • Memory Efficiency: On a single 64GB NPU, ExpertWeave successfully served three adapters simultaneously while maintaining a KV cache capacity of 477K tokens. In contrast, the merged-model baseline crashed after loading only two adapters.
  • 94× Capacity Boost: For scenarios involving two adapters, ExpertWeave provided 94 times more KV cache capacity than the baseline, enabling significantly higher concurrency and longer context windows.
  • Throughput Gains: The system achieved up to 18% higher throughput by effectively balancing requests across hardware resources rather than siloing them into separate model instances.
  • Scalability: When scaling to 20 adapters, the system maintained high performance, with latency increases limited to 4–11% compared to a single base model.
  • Accuracy: ExpertWeave maintains bit-perfect accuracy, matching the mathematical output of fully merged models.

Conclusion and Future Directions

ExpertWeave provides a scalable, high-performance solution for serving specialized MoE models. By leveraging virtual memory to "weave" multiple adapters into a single efficient execution path, it overcomes the memory and fragmentation barriers that previously limited multi-task MoE deployment.

Future work includes extending the VMM-based management to the KV cache itself and exploring more aggressive dynamic loading strategies to swap adapters in and out of memory as user demand shifts. While currently optimized for Ascend NPUs, the underlying principles of ExpertWeave are broadly applicable to any hardware supporting advanced virtual memory management.

Summary updated

BibTeX
@inproceedings{shi2026expertweave,
  author = {Ge Shi and Hanieh Sadri and Qian Wang and Yu Zhang and Ying Xiong and Yong Zhang and Zhenan Fan},
  title = {{ExpertWeave: Efficiently Serving Expert-Specialized Fine-Tuned Adapters at Scale}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=2S5aOnd10q},
}
Figure