TL;DR
Imagine running a personalized LLM on a single local edge server for twenty different user groups at once—except your GPU memory can only hold five lightweight adapters at a time, and you can only fine-tune one per step. Who gets the next compute cycle? This paper introduces WCA-UCB, a clever bandit-based scheduler that knows when an adapter has finished learning ("saturated") so it can pause updates, and detects when user data shifts so it can wake right back up.
What Problem Does This Paper Address?
Personalizing LLMs close to users—on local edge servers—is great for privacy and latency. Because fine-tuning an entire model per user is impossible on small hardware, engineers rely on LoRA (Low-Rank Adaptation), keeping a frozen base model and swapping in tiny, tenant-specific adapter weights.
Even with LoRA, edge GPUs hit two hard walls: limited VRAM can only keep a fixed number ($K$) of adapters and their optimizer states "train-ready" at once, and compute limits force the training pipeline to update just one adapter per step.
Scheduling these updates is surprisingly tricky because fine-tuning rewards aren't static. When you train an adapter on a user's data, its validation perplexity drops fast and then plateaus—meaning marginal gains decay toward zero (saturation). Later, that user's task might abruptly change (say, from coding to math), or the system might swap a brand-new tenant into that memory slot, causing perplexity to spike and making old reward histories useless.
Standard Multi-Armed Bandit (MAB) algorithms stumble here. Even non-stationary bandits—which gradually forget old data—can't tell the difference between an inherently low-value stream and a high-value adapter that has simply finished converging, leading to wasted compute and frantic context-switching.
Methods
First, the authors simplify the system architecture via slot-based decoupling. A slower system layer handles swapping tenant adapters in and out of the $K$ physical GPU slots, while a fast learning layer treats each physical slot as a bandit "arm." Pulling an arm runs one mini-batch SGD step on whichever adapter currently lives there, yielding a net reward: marginal training loss reduction minus a fixed compute cost ($\lambda_{\text{cost}}$).
To handle rewards that decay and abruptly reset—what the authors formalize as piecewise-converging rewards—they propose WCA-UCB (Windowed Convergence-Aware UCB). While sliding-window UCB (tracking recent rewards to stay nimble) is standard, WCA-UCB adds two novel, lightweight detectors that rely purely on sliding windows of signals you already get for free during training:
- Gain-Based Saturation Detector: Tracks recent loss reductions. Once average gains drop below the compute penalty $\lambda_{\text{cost}}$ (minus a margin), WCA-UCB declares the adapter saturated and freezes the arm, yielding compute to others until a new tenant arrives or drift occurs.
- Proxy-Based Degradation Detector: Monitors post-update mini-batch training loss as a zero-overhead proxy for data mismatch. By comparing the newest quarter of its sliding window against the older three-quarters, it spots sustained loss spikes (unannounced data drift) while ignoring single-batch noise, triggering a history reset so the arm can immediately re-adapt. Explicit tenant swaps reset the slot directly.
Datasets
No new datasets are introduced, though the authors construct two custom evaluation workloads:
- Synthetic Trace-Driven Simulations: Generated traces exhibiting ascending-saturating curves, Gaussian noise, and asynchronous change-points to measure theoretical regret against an omniscient Oracle.
- UltraChat Multi-Tenant Prototype: Built from UltraChat (an existing large-scale instruction-following dialogue corpus), partitioned into $N=20$ "shadow tenants" with distinct task domains (code, math, creative writing, general chat) multiplexed across $K=5$ GPU slots.
Key Insights and Ideas
- Forgetting isn't pausing: Classic non-stationary bandits rely on forgetting old rewards, which causes them to keep poking saturated adapters just to explore. Explicitly freezing saturated arms prevents linear regret growth and drastically cuts unnecessary switching.
- Free training signals suffice—mostly: You don't need expensive held-out validation passes at every step to spot distribution drift. Windowed mini-batch training loss works as an effective online tripwire, smoothing out transient difficult-text spikes.
- Theoretical validation: Despite asynchronous tenant churn across slots, the authors prove WCA-UCB achieves a dynamic regret bound of $\tilde{O}(\log T)$, neatly separating standard exploration cost from the window-scale delay of detecting regime shifts.
Key Results
Tested on a single RTX 4090 running Qwen2.5-1.5B-Instruct with 5 active BF16 LoRA slots over 2,500 rounds:
- Better Model Quality: WCA-UCB achieved the lowest geometric-mean Perplexity (3.8456), reducing PPL by 2.6% to 8.6% compared to strong non-stationary bandit baselines like
GLR_klUCB(3.9504),D_UCB(3.9767), andSW_UCB(4.2082). - High Scheduling Stability: WCA-UCB made only 278 logical target switches, up to 5.8$\times$ fewer than
GLR_klUCB(1,609 switches). Rotting-bandit baselineRAW_UCBbarely switched (23 times) because it assumed decay was irreversible, resulting in the worst PPL (4.6005).
Limitations and Future Work
- Long hard-example bursts fool the proxy: In diagnostic stress tests, isolated 1-round loss spikes triggered 0% false resets, and 8-round bursts triggered 15%. However, a prolonged 32-round burst of genuinely hard examples triggered resets 85% of the time—meaning training loss alone cannot distinguish a long stretch of tough questions from true distribution drift.
- Logical vs. physical overhead: "Target switches" only count logical changes between adapters already sitting in VRAM, not actual SSD/CPU-to-GPU memory transfer latency, and the model assumes uniform step costs.
- Prototype scale: Testing a 1.5B model with 5 slots on an RTX 4090 is a proof of concept rather than production edge hardware. Future work aims to measure real hardware I/O transfer overhead, compare against simple early-stopping heuristics, and jointly optimize slow-layer memory admission alongside fast-layer update scheduling.
Summary updated