TL;DR
MOLT is a fine-grained memory sharing system that allows Large Language Model (LLM) serving to "borrow" idle GPU memory for background fine-tuning tasks without sacrificing inference performance. By reclaiming memory at the level of individual activations rather than discarding entire training steps, MOLT achieves near-perfect inference latency targets while completing up to 3.3x more training work than existing state-of-the-art systems.
What Problem Does This Paper Address?
LLM serving is notoriously resource-heavy and unpredictable. To meet Latency Service-Level Objectives (SLOs), providers must over-provision GPUs to handle sudden bursts in request volume. While autoscaling can add or remove model replicas, it operates on a timescale of minutes—far too slow to react to request fluctuations that happen in seconds. This leaves significant amounts of GPU memory sitting idle within each replica.
Researchers have tried to fill this idle capacity by colocating Parameter-Efficient Fine-Tuning (PEFT) tasks, like LoRA, alongside inference. However, when a burst of inference requests arrives, the system must reclaim memory immediately. Existing systems (like SIRIUS) do this at a "coarse" granularity: they discard the entire current training step and restart it with a smaller batch. As shown in Figure 1, this "discard-based" approach is incredibly wasteful, especially during frequent load changes where training progress is constantly reset.
Methods
The authors introduce MOLT, which implements continuous memory handover. Instead of treating a training sample as an indivisible unit, MOLT uses saved activations as the unit of sharing. Activations are tensors stored during the forward pass to be used later in the backward pass; they dominate PEFT memory usage and, crucially, can be recomputed if lost.
Key technical innovations include:
- Flexible Activation Checkpointing: Unlike standard checkpointing which fixes a memory budget before training starts, MOLT allows the budget to change mid-step. If inference needs memory, MOLT "unbacks" memory slots. The system then checks the status of these slots during the backward pass and recomputes any activations that were reclaimed by inference.
- Asynchronous-aware Slot Protection: Because the CPU dispatches commands to the GPU asynchronously, the CPU might try to reclaim memory that the GPU is still actively reading or writing. MOLT maintains a "protection window" to ensure no in-flight GPU work is corrupted during a handover.
- Dispatch Throttling: To keep the protection window small (and thus maximize reclaimable memory), MOLT limits how far the CPU dispatch can run ahead of actual GPU execution without slowing down the overall tuning speed.
Datasets
The system was evaluated using a mix of real-world traces and standard datasets:
- Inference Workload: Prompts from the ShareGPT dataset, with arrival patterns driven by the BurstGPT trace to simulate realistic, bursty production environments.
- Fine-Tuning Task: The Alpaca dataset was used for training rank-8 LoRA adapters.
- Models: Evaluation spanned several large models, including Mistral-Small-24B-Instruct and Llama-3.1-70B-Instruct, running on high-end NVIDIA H100 and B200 GPUs.
Key Insights and Ideas
- Granularity is the Breakthrough: The "aha moment" is realizing that recomputation isn't just a memory-saving trick for training—it's a mechanism for preemption. By letting inference "steal" activations, you turn a rigid training step into a flexible one that can shrink and grow its footprint on the fly.
- Recomputation as a Safety Valve: The cost of recomputing a few activations is orders of magnitude lower than the cost of discarding a whole training step. This allows the system to be much more aggressive in sharing memory.
- Handling Asynchrony is Non-Trivial: In a tensor-parallel setup (where a model is split across multiple GPUs), ensuring all ranks reclaim the same memory slots at the same time is critical for maintaining mathematical correctness across the cluster.
Key Results
MOLT significantly outperforms both compute-only sharing and discard-based memory sharing:
- SLO Attainment: MOLT maintained inference SLO attainment at 99.7% or higher across all tested configurations. In contrast, sharing only compute (without memory) resulted in SLO attainment as low as 5.0% during bursts.
- Tuning Throughput: MOLT completed 1.9x to 3.3x more tuning work than SIRIUS. Because MOLT doesn't discard steps, it can continue making progress even when inference load is high.
- Efficiency: As shown in Figure 12, MOLT utilizes almost all available "attainable" memory for tuning, whereas discard-based systems leave large chunks of memory idle because they can't fit a full training sample into the remaining space.
Limitations and Future Work
- Step-Boundary Re-backing: While MOLT can reclaim memory at any time, it currently only gives memory back to the tuning task at the start of a new step. The authors note that re-backing mid-step only helps for activations not yet produced, but more frequent re-backing could potentially be explored.
- PEFT Focus: The system is optimized for PEFT (like LoRA). While the principles of activation recomputation apply to full fine-tuning, the memory footprint of weights and optimizer states in full tuning is much larger, which might limit the "reclaimable" portion of the pool.
- Profiling Overhead: The dispatch cap requires some offline profiling to find the "sweet spot" where tuning isn't slowed down by the CPU waiting for the GPU. Automating this tuning could be a future improvement.
Summary updated