MELINOE: Fine-Tuning Enables Memory-Efficient Inference for Mixture-of-Experts Models
Abstract
Mixture-of-Experts (MoE) model architectures can significantly reduce the number of activated parameters per token, enabling computationally efficient training and inference. However, their large overall parameter counts have precluded their widespread usage in resource-constrained settings as all of the parameters must still be loaded into GPU memory. Prior works aim to address this memory bottleneck by offloading certain experts into CPU memory and porting them to GPU memory only when they are activated. In practice, these methods suffer from the significant I/O latency incurred by expert transfer. We present MELINOE, a method that fine-tunes an MoE model to more strongly prefer activating a smaller number of experts per sequence. Caching these preferred experts in GPU memory reduces expert churn and CPU-GPU transfer overhead. MELINOE increases throughput by – over efficient baselines and up to over transfer-heavy baselines while retaining or even improving the performance of the model on a downstream task, making it a consistently reliable method for improving MoE inference efficiency.
Then back it, or bet against it.
Related papers
Open the market on this paper to see 7 more related papers.