FMplex: Model Virtualization for Serving Extensible Foundation Models

Hetvi Shastri, Pragya Sharma, Walid A. Hanafy, David Irwin, Mani Srivastava, Prashant ShenoyarXiv 2026

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.

Figure 2. Comparing (a) the instance-per-task approach, where each task loads its own FM and the backbone is repli- cated, with (b) our FM virtualization approach, where each task is presented with a virtual FM (vFM) backed by a shared physical FM, enabling deployment sharing.

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.
Figure 3. Architecture of an FM-based task pipeline featur- ing a decoder head, optional encoder and fine-tuning adapter.

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.
Figure 1. Benefits of FM sharing in terms of memory demand and throughput across a number of tasks and modalities.
  • 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

Abstract

Foundation models (FMs) are increasingly used as backbones for downstream tasks across language, vision, time-series, and multimodal applications. Yet existing model-serving systems deploy each customized task as an independent model instance, thereby replicating heavyweight backbones, wasting accelerator memory, and losing opportunities to amortize batching and loading costs. This paper presents FMplex, a serving system that treats FM backbones as a virtualization substrate for deployment sharing. FMplex presents each task with a virtual foundation model (vFM), a logically private FM instance backed by a shared physical FM. This abstraction lets independently customized tasks share a backbone while preserving task-specific extensions, independent lifecycles, and task-level isolation. In addition, we propose a batch-aware fair-queueing scheduler that combines weighted task-level sharing with inter- and intra-task batching across colocated tasks. We implement a FMplex-based serving stack spanning task construction, sharing-aware deployment, and runtime execution. Across 7 FM backbones (16 variants) and 92 downstream tasks, FMplex reduces latency by up to 80% over spatial partitioning and 33.3% over best-effort co-location, while hosting up to 6x more tasks at cluster scale.
BibTeX
@misc{shastri2026fmplex,
  author = {Hetvi Shastri and Pragya Sharma and Walid A. Hanafy and David Irwin and Mani Srivastava and Prashant Shenoy},
  title = {{FMplex: Model Virtualization for Serving Extensible Foundation Models}},
  year = {2026},
  eprint = {2606.09643},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.09643},
}

Loading related content...

Figure