TL;DR
Serving dozens of specialized LoRA adapters on a single Large Language Model creates a classic systems tug-of-war: switch adapters too often and GPU memory bottlenecks kill your throughput; switch too rarely and unlucky users starve in the queue. FELPS (Fairness-aware Efficient LoRA Priority Scheduling) breaks this rigid compromise by pairing classical proportional fairness with a memory-locality penalty, giving engineers a single tunable dial to glide smoothly along an optimal efficiency-fairness frontier.
What Problem Does This Paper Address?
Imagine a busy kitchen with one master stove (a base LLM) and dozens of specialized spice racks (Low-Rank Adaptation, or LoRA, modules) stored in a pantry down the hall (CPU memory). Because LoRA adapters are lightweight parameter tweaks, modern serving systems host many concurrent tasks—coding, medical Q&A, summarization—on one shared GPU.
Here is the rub: GPU memory is tight. Every LoRA adapter you load onto the GPU eats into the memory pool needed for the KV cache (the working memory that stores conversation context for active requests), shrinking your batch size. Furthermore, swapping adapters between CPU and GPU takes time.
- If you optimize for efficiency (like Adapter Clustering), you keep the same few adapters on the GPU and batch their requests together. Throughput soars, but requests needing unloaded adapters starve.
- If you optimize for fairness (like First-Come-First-Served or Round-Robin), you swap adapters constantly so everyone gets a turn, thrashing memory and tanking throughput.
Existing schedulers lock you into a single, suboptimal point in this dilemma. The authors ask: Can we mathematically decouple fairness and efficiency to outperform existing baselines and let operators choose their exact trade-off?
Methods
FELPS builds upon standard continuous batching and unified paged memory (inherited from S-LoRA), alongside a standard lightweight proxy model (OPT-125M) to predict output token lengths. What’s new is how FELPS ranks waiting queues using two synthesized components, plus a smarter admission gate:
- Service-aware Fair Priority (SFP): Inspired by Proportional-Fair Scheduling from networking, FELPS aims to give each adapter GPU time proportional to its workload demand. It calculates a real-time Waiting Cost (pending wait time weighted by prompt and predicted output lengths) and divides it by Service History—an Exponential Moving Average (EMA) of the GPU time that adapter recently consumed. Overloaded, underserved adapters naturally bubble to the top.
- Locality-aware Penalty (LP): To stop SFP from swapping adapters recklessly, FELPS divides an unloaded adapter's priority by a penalty factor $\beta_a$. If an adapter is already in GPU memory, $\beta_a = 1$ (no penalty). If unloaded, $\beta_a$ scales logarithmically with the adapter's rank (memory size), controlled by a tunable weight $\lambda$. An unloaded task must accumulate enough waiting pain to justify the memory swap.
- Fine-grained Admission Control (FAC): Instead of conservatively reserving KV-cache memory for a request's entire predicted output upfront, FAC only reserves memory for the next scheduling step, relying on reactive offloading if memory overflows.
Datasets
Rather than introducing new standalone datasets, the authors construct two realistic multi-LoRA evaluation workloads from existing public benchmarks:
- Multi-task Workload: Aggregates nine public datasets spanning math reasoning, code generation, and summarization (including GSM8K, MATH, CNN/DailyMail, and WritingPrompts), mapped to distinct LoRA adapters. Traffic is synthesized using a Gamma process for arrivals and a Zipf distribution for skewed task popularity.
- Conversation Workload: Uses real-world timestamps and prompts from the Chatbot Arena Conversations dataset, mapping its 20 source LLMs to 20 corresponding LoRA adapters.
Key Insights and Ideas
- Absolute fairness is a trap under skewed workloads: Baseline schedulers like VTC enforce strict equal token-usage across adapters. When one adapter is wildly more popular than others, forcing equal service severely bottlenecks the popular queue—ironically crashing user-level latency fairness. Demand-proportional fairness fixes this.
- Short-term memory prevents grudges: Tracking service history via an Exponential Moving Average (rather than total lifetime usage) is vital. Without EMA decay, an adapter that experienced a burst of activity ten minutes ago would be punished long after traffic calmed down, causing wild tail-latency spikes.
- Better scheduling unlocks stranded GPU memory: By curbing unnecessary adapter thrashing while aggressively admitting urgent tasks via FAC, FELPS keeps the GPU's KV-cache token pool much fuller than baselines—meaning higher throughput comes from eliminating idle memory, not starving minority tasks.
Key Results
Tested on Llama-2-7B (RTX 4090) and Llama-2-13B (RTX A6000) with heterogeneous LoRA ranks (32 and 64), FELPS traces a Pareto frontier that dominates existing schedulers:
- Breaking the trade-off: On the Llama-2-7B multi-task workload, FELPS beats the throughput-focused baseline (AC) in throughput (6.28 vs. 6.21 req/s), cuts average Time-To-First-Token (TTFT) by ~19% (34.48s vs. 42.32s), and leaps ahead in Jain’s Fairness Index by 33.36 percentage points (81.95% vs. 48.59%).
- Beating fairness baselines at speed: Across experiments, compared to FCFS, FELPS boosts throughput by ~10% and slashes average TTFT by over 20%, while consistently improving fairness.
- High memory utilization: Token usage plots confirm FELPS sustains the highest active token usage (~85–90% median pool utilization), outperforming both AC (~80%) and FCFS (~70%).
Limitations and Future Work
- Offline hyperparameter tuning: While the penalty weight $\lambda$ cleanly trades fairness for efficiency, its sweet spot depends on traffic patterns and currently requires offline calibration.
- Reliance on length prediction: Priority calculations depend on
OPT-125Moutput length estimates. While resilient to moderate noise, extreme mispredictions can distort queue rankings. - Single-node scope: FELPS schedules temporally within a single GPU node. While it can sit neatly beneath cluster-level routers (like CaraServe or LoRAServe), extending FELPS to jointly optimize routing and scheduling across multi-node GPU clusters remains open for future work.
Summary updated