Skip to content

Breaking Memory Wall for Fast Edge LLM Inference Using Contextual Sparsity

Nov 2026 · IEEE Transactions on Mobile Computing · Vol 25, pp. 19423-19440 · 0 citations · 58 references

Abstract

Deploying Large Language Models (LLMs) on memory-constrained edge servers to serve requests from mobile devices is challenging due to their substantial resource demands. The Key-Value (KV) cache and Feed-Forward Network (FFN) parameters consume the majority of available memory. However, existing methods typically rely on static memory partitioning for these components. This rigidity leads to critical performance bottlenecks: (1) An insufficient region for neurons causes neuron swapping or direct computation on the CPU, introducing high latency. (2) As the KV cache grows until it exhausts the allocated region, the system must resort to high-latency fallbacks (e.g., KV cache offloading, recomputation, or neuron swapping). Contextual sparsity of ReLU-based or sparsity-friendly LLMs, where only a small subset of neurons is active during inference, is a promising solution. By leveraging the skewness in neuron activation frequency, we observe two opportunities. (1) We can utilize memory fragmentation to store hot neurons. (2) When memory is exhausted, we prioritize evicting cold neurons from the GPU. Both opportunities improve inference throughput. Based on these insights, we propose ElasticMem, a dynamic memory management framework. It splits KV cache and neuron parameters into blocks to enable flexible neuron placement and eviction. We further design several mapping tables to enable logical-to-physical mapping. Moreover, specialized FFN operators and a CPU-GPU hybrid scheduling pipeline support efficient execution of ElasticMem. Finally, experiments on real-world edge platforms show that, compared with PowerInfer, the state-of-the-art sparsity-aware CPU-GPU hybrid execution baseline, ElasticMem improves throughput by up to <inline-formula><tex-math notation="LaTeX">$5.97\times$</tex-math><alternatives><mml:math><mml:mrow><mml:mn>5</mml:mn><mml:mo>.</mml:mo><mml:mn>97</mml:mn><mml:mo>×</mml:mo></mml:mrow></mml:math><inline-graphic xlink:href="zhao-ieq1-3712257.gif"/></alternatives></inline-formula> across multiple LLMs and deployment scenarios. In addition, compared with dense llama.cpp under memory pressure, ElasticMem achieves up to <inline-formula><tex-math notation="LaTeX">$54.7\times$</tex-math><alternatives><mml:math><mml:mrow><mml:mn>54</mml:mn><mml:mo>.</mml:mo><mml:mn>7</mml:mn><mml:mo>×</mml:mo></mml:mrow></mml:math><inline-graphic xlink:href="zhao-ieq2-3712257.gif"/></alternatives></inline-formula> higher throughput.

View source

Similar papers

#computer vision Open access Jun 2016

Software Development in Startup Companies: The Greenfield Startup Model

The results are packaged in the Greenfield Startup Model (GSM), which explains the priority of startups to release the product as quickly as possible, and the need to shorten time-to-market, by speeding up the development through low-precision engineering activities.

Carmine Giardino, Nicolò Paternoster, M. Unterkalmsteiner et al. · 178 citations · ⚡14
#computer vision Open access Oct 2016

Software Startups - A Research Agenda

Software startup companies develop innovative, software-intensive products within limited timeframes and with few resources, searching for sustainable and scalable business models.

M. Unterkalmsteiner, P. Abrahamsson, Xiaofeng Wang et al. · 157 citations · ⚡17
#machine learning Review Open access Oct 2016

“Failures” to be celebrated: an analysis of major pivots of software startups

This study conducts a case survey study based on the secondary data of the major pivots happened in 49 software startups, and demonstrates that customer need pivot is the most common among all pivot types.

Sohaib Shahid Bajwa, Xiaofeng Wang, Anh Nguyen-Duc et al. · 127 citations · ⚡15
#computer vision Review Open access May 2015

A survey study on major technical barriers affecting the decision to adopt cloud services

The comparison of adopter and non-adopter sample reveals three potential adoption inhibitor, security, data privacy, and portability, which underlines the importance of the technical and security perspectives for research investigating the adoption of technology.

Nattakarn Phaphoom, Xiaofeng Wang, S. Samuel et al. · 111 citations · ⚡8
#computer vision Open access Feb 2018

Lean Internal Startups for Software Product Innovation in Large Companies: Enablers and Inhibitors

This study investigates how Lean internal startup facilitates software product innovation in large companies and identifies its enablers and inhibitors, and shows the potential of the method-in-action framework to investigate the Lean startup approach in non-startup context.

Henry Edison, Nina M. Smørsgård, Xiaofeng Wang et al. · 78 citations · ⚡6
#computer vision Conference Sep 2010

Exploring the Sources of Waste in Kanban Software Development Projects

The application of agile software methods and more recently the integration of Lean practices contribute to the trend of continuous improvement in the software industry. One such area warranting proper empirical evidence is a project’s operational efficiency when using the Kanban method. This short paper takes a new an...

Marko Ikonen, Petri Kettunen, Nilay V. Oza et al. · 67 citations · ⚡9

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.