Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
38 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Scaling Up On-Device LLMs via Active-Weight Swapping Between DRAM and Flash (2504.08378v1)

Published 11 Apr 2025 in cs.LG

Abstract: LLMs are increasingly being deployed on mobile devices, but the limited DRAM capacity constrains the deployable model size. This paper introduces ActiveFlow, the first LLM inference framework that can achieve adaptive DRAM usage for modern LLMs (not ReLU-based), enabling the scaling up of deployable model sizes. The framework is based on the novel concept of active weight DRAM-flash swapping and incorporates three novel techniques: (1) Cross-layer active weights preloading. It uses the activations from the current layer to predict the active weights of several subsequent layers, enabling computation and data loading to overlap, as well as facilitating large I/O transfers. (2) Sparsity-aware self-distillation. It adjusts the active weights to align with the dense-model output distribution, compensating for approximations introduced by contextual sparsity. (3) Active weight DRAM-flash swapping pipeline. It orchestrates the DRAM space allocation among the hot weight cache, preloaded active weights, and computation-involved weights based on available memory. Results show ActiveFlow achieves the performance-cost Pareto frontier compared to existing efficiency optimization methods.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (10)
  1. Fucheng Jia (2 papers)
  2. Zewen Wu (14 papers)
  3. Shiqi Jiang (27 papers)
  4. Huiqiang Jiang (32 papers)
  5. Qianxi Zhang (6 papers)
  6. Yuqing Yang (83 papers)
  7. Yunxin Liu (58 papers)
  8. Ju Ren (33 papers)
  9. Deyu Zhang (12 papers)
  10. Ting Cao (100 papers)