TrimCaching: Parameter-Sharing AI Model Caching in Wireless Edge Networks

Guanqiao Qu, Zheng Lin, Fangming Liu, Xianhao Chen, Kaibin Huang

Abstract

As AI services migrate to the wireless edge to minimize latency and enhance privacy, the massive storage requirements of deep learning models present a significant bottleneck. This paper introduces TrimCaching, a novel framework that treats AI models not as monolithic files but as collections of reusable parameter blocks. By exploiting the inherent redundancy in fine-tuned models, TrimCaching optimizes edge storage and improves cache hit ratios by up to 33.9% compared to traditional independent caching methods.

Introduction

The proliferation of edge computing has enabled the deployment of Large Language Models (LLMs) and deep Convolutional Neural Networks (CNNs) closer to end-users. However, the sheer size of these models often exceeds the limited storage capacity of edge servers. Traditional caching strategies treat each model as a unique, independent entity. In the modern AI ecosystem, this approach is inefficient; many specialized models are "descendants" of the same foundation models, sharing a vast majority of their parameters through techniques like fine-tuning or layer freezing.

The Parameter-Sharing Paradigm

TrimCaching addresses the storage bottleneck by decomposing models into "parameter blocks" (e.g., specific layers or LoRA modules). Instead of caching entire models, edge servers cache these blocks. When a user requests a specific model, the system identifies which blocks are already present at the edge and only fetches the missing components.

Illustration of parameter-sharing in a model library, where specific models reuse blocks from pre-trained foundation models.

This approach transforms the caching problem into a submodular maximization problem with submodular constraints. The "cost" of adding a new model to the cache is no longer fixed; it decreases if its constituent parameter blocks are already stored for another model.

Empirical Motivation: The Redundancy Opportunity

The feasibility of TrimCaching rests on the observation that many downstream AI tasks do not require updating all parameters of a foundation model. The authors conducted experiments with the ResNet-50 architecture, fine-tuning it for specific superclasses in the CIFAR-100 dataset.

Impact of freezing bottom layers on ResNet50 accuracy for Animal and Transportation classification tasks.

As shown in the figure above, freezing up to 80-90% of the bottom layers results in negligible accuracy degradation. This "frozen" portion represents a massive opportunity for storage deduplication at the edge, as these identical backbones can be shared across dozens of specialized models.

Methodology

The authors propose two primary algorithms to solve the placement problem:

  1. TrimCaching Spec: Designed for scenarios with a fixed number of shared blocks (e.g., a common frozen backbone). It utilizes Dynamic Programming and rounding to provide a theoretical $(1 - \epsilon)/2$-approximation guarantee.
  2. TrimCaching Gen: A greedy algorithm for general cases with complex, arbitrary sharing patterns. It iteratively selects model-server pairs to maximize the incremental cache hit ratio within storage limits.

The framework also incorporates a sophisticated latency model. A "cache hit" is only recorded if the total delivery time—including potential migration from nearby edge servers—meets the application's Quality of Service (QoS) requirements.

Key Results

Evaluations using a library of 300 ResNet-derived models demonstrated significant gains:

  • Higher Hit Ratios: TrimCaching Spec achieved a cache hit ratio 33.93% higher than independent caching and 11.93% higher than the greedy version.
  • Efficiency: The greedy "Gen" algorithm performed within 1.3% of the optimal solution while running approximately 58,000 times faster than exhaustive search.
  • Mobility Resilience: Simulations showed that cache hit ratios only degraded by 5-6% over two hours of user movement, indicating that the placement decisions are robust to dynamic network conditions.

Conclusion

TrimCaching represents a significant step toward efficient AI deployment at the wireless edge. By shifting the focus from monolithic files to shared parameter blocks, the framework enables edge servers to support a much wider variety of AI services. Future work will explore more granular sharing patterns and the impact of heterogeneous hardware on caching performance.

Summary updated

BibTeX
@inproceedings{qu2024trimcaching,
  author = {Guanqiao Qu and Zheng Lin and Fangming Liu and Xianhao Chen and Kaibin Huang},
  title = {{TrimCaching: Parameter-Sharing AI Model Caching in Wireless Edge Networks}},
  booktitle = {ICDCS},
  year = {2024},
  doi = {10.1109/icdcs60910.2024.00013},
}
Figure