Mixture of Cache-Conditional Experts for Efficient Mobile Device Inference

Andrii Skliar, Ties van Rozendaal, Romain Lepert, Todor Boinovski, Mart van Baalen +3 more
11/27/2024
cs.LGcs.AIcs.AR

No confident code implementation found for this paper.

Abstract

Mixture of Experts (MoE) LLMs have recently gained attention for their ability to enhance performance by selectively engaging specialized subnetworks or "experts" for each input. However, deploying MoEs on memory-constrained devices remains challenging, particularly when generating tokens sequentially with a batch size of one, as opposed to typical high-throughput settings involving long sequences or large batches. In this work, we optimize MoE on memory-constrained devices where only a subset of expert weights fit in DRAM. We introduce a novel cache-aware routing strategy that leverages expert reuse during token generation to improve cache locality. We evaluate our approach on language modeling, MMLU, and GSM8K benchmarks and present on-device results demonstrating 2$\times$ speedups on mobile devices, offering a flexible, training-free solution to extend MoE's applicability across real-world applications.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{skliar2024mixture,
  title  = {Mixture of Cache-Conditional Experts for Efficient Mobile Device Inference},
  author = {Andrii Skliar and Ties van Rozendaal and Romain Lepert and Todor Boinovski and Mart van Baalen and Markus Nagel and Paul Whatmough and Babak Ehteshami Bejnordi},
  year   = {2024},
  eprint = {2412.00099},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.00099v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.00099.svg)](https://codeofpaper.com/paper/2412.00099)

Discussion