TL;DR
FMplex introduces "model virtualization" for serving foundation models (FMs), allowing multiple customized downstream tasks to share a single physical backbone instance. By decoupling the heavyweight backbone from task-specific extensions and employing a batch-aware fair scheduler, it reduces latency by up to 80% and hosts up to 6x more tasks on the same hardware infrastructure.
What Problem Does This Paper Address?
Foundation models are massive, yet highly versatile. Currently, when engineers deploy FMs for different downstream tasks (e.g., one for financial forecasting, one for anomaly detection, both using the same backbone), standard serving systems deploy each task as an entirely independent model instance.
This "instance-per-task" approach replicates the massive backbone weights repeatedly in GPU memory. This leads to severe memory waste, frequent Out-of-Memory (OOM) errors, and isolated request queues that miss out on cross-task batching opportunities.
Methods
The authors propose FMplex, a serving system that treats the FM backbone as a shared virtualization substrate, much like a hypervisor virtualizes hardware resources.
Key components include:
- Virtual Foundation Model (vFM): A logical abstraction that gives each task the illusion of running on its own private FM. It isolates the task's specific extensions (encoders, decoders, and Parameter-Efficient Fine-Tuning adapters like LoRA) and lifecycle management from the physical backbone.
- Batch-aware Fair Queueing (BFQ) Scheduler: Traditional fair schedulers operate on a per-request basis, which destroys batching efficiency on GPUs. BFQ extends Start-Time Fair Queueing (STFQ) to dynamically form batches across different tasks while enforcing fair-share weights and preventing "noisy neighbor" interference.
- Task-API & FMplex-Controller: A unified programming interface to build extensible pipelines, paired with a cluster-level controller that uses a greedy "Max-Share Heuristic" to place tasks on existing physical backbones across a cluster.
Datasets
The system was evaluated using 7 foundation model backbones (spanning 16 variants) across 92 downstream tasks:
- Time-Series: MOMENT, Papagei (evaluated on tasks like forecasting, regression, and the PPG-BP dataset for heart rate prediction).
- Vision: DINOv2, Swin (tasks like classification and segmentation).
- LLMs & VLMs: Qwen2.5, Mistral-7B, Qwen2-VL (tasks like OCR and classification).
Workloads were simulated using synthetic Poisson distributions and real-world production traces from the Azure Functions Trace.
Key Insights and Ideas
- The Backbone Dominates: In an FM pipeline, the backbone accounts for nearly all the memory and compute costs, while task-specific heads or adapters are negligible. Virtualizing the backbone unlocks massive consolidation.
- Fairness vs. Batching: You don't have to sacrifice GPU batching efficiency to achieve multi-tenant isolation. By adjusting request tags after batch execution based on actual amortized service times, BFQ achieves near-perfect fairness without disabling batching.
- Sub-second Elasticity: Because tasks are decoupled from the backbone, scaling a task up or moving it due to a load spike only requires moving lightweight task states (metadata and adapter weights). This takes ~500ms instead of the ~58 seconds required to spin up a new physical backbone instance.
Key Results
- Memory & Scaling: Sharing a MOMENT-large backbone across 10 tasks required only 1.17x the memory of a single task, whereas the traditional approach hit an OOM error.
- Latency & Throughput: Compared to spatial partitioning (e.g., splitting the GPU), FMplex reduced latency by up to 80%. It achieved a 33.3% latency reduction over best-effort co-location at high loads.
- Cluster Capacity: At cluster scale, FMplex hosted up to 6x more tasks under low-load conditions and 8–12% more tasks under high-load conditions compared to standard instance-per-task deployments.
- Fairness: Enforced precise asymmetric service shares (e.g., 3:1 priority) with a high fairness score of 0.97–0.98, even during massive "noisy neighbor" request bursts.
Limitations and Future Work
- Adapter Overhead: While sharing the backbone provides massive gains, handling multiple distinct LoRA adapters sequentially in sub-batches still introduces a throughput overhead (~45% reduction compared to an adapter-free shared backbone).
- Placement Optimization: The current cluster controller relies on a lightweight greedy heuristic; the authors note that developing more sophisticated, globally optimal placement and resource-allocation algorithms remains an open area for future research.
Summary updated