Skip to main content
QUICK REVIEW

[Paper Review] GEMEL: Model Merging for Memory-Efficient, Real-Time Video Analytics at the Edge

Arthi Padmanabhan, Neil Agarwal|arXiv (Cornell University)|Jan 19, 2022
Advanced Neural Network ApplicationsComputer Science9 citations
TL;DR

GEMEL introduces model merging, a memory-efficient technique that shares architecturally identical layers across edge vision models to reduce GPU memory usage and swapping overhead. By identifying and retraining shared layers, GEMEL achieves up to 60.7% memory reduction and 8–39% accuracy improvement over time/space sharing in real-time video analytics at the edge.

ABSTRACT

Video analytics pipelines have steadily shifted to edge deployments to reduce bandwidth overheads and privacy violations, but in doing so, face an ever-growing resource tension. Most notably, edge-box GPUs lack the memory needed to concurrently house the growing number of (increasingly complex) models for real-time inference. Unfortunately, existing solutions that rely on time/space sharing of GPU resources are insufficient as the required swapping delays result in unacceptable frame drops and accuracy violations. We present model merging, a new memory management technique that exploits architectural similarities between edge vision models by judiciously sharing their layers (including weights) to reduce workload memory costs and swapping delays. Our system, GEMEL, efficiently integrates merging into existing pipelines by (1) leveraging several guiding observations about per-model memory usage and inter-layer dependencies to quickly identify fruitful and accuracy-preserving merging configurations, and (2) altering edge inference schedules to maximize merging benefits. Experiments across diverse workloads reveal that GEMEL reduces memory usage by up to 60.7%, and improves overall accuracy by 8-39% relative to time/space sharing alone.

Motivation & Objective

  • Address the growing GPU memory bottleneck in edge video analytics caused by increasing model complexity and concurrent workloads.
  • Overcome the limitations of existing time- and space-sharing strategies, which cause frame drops and accuracy loss due to high swapping costs.
  • Enable efficient, real-time inference on edge devices by reducing memory footprint through architectural similarity-based model merging.
  • Develop a system that integrates seamlessly into existing video analytics pipelines with minimal changes to scheduling and model deployment.

Proposed method

  • Identify architecturally identical layers across vision models (e.g., convolutional blocks) that can be shared in weight, even if their weights differ.
  • Use structural and dependency analysis to detect viable merging configurations that preserve model accuracy while minimizing memory footprint.
  • Re-train shared layers using a fine-tuning strategy to align weights across models, ensuring accuracy is maintained post-merging.
  • Modify edge inference scheduling to prioritize workloads with high merging potential, maximizing utilization of shared layers.
  • Leverage per-model memory usage patterns and inter-layer dependencies to guide fast, accurate merging configuration selection.
  • Integrate the merging logic into existing edge inference pipelines with minimal runtime overhead, enabling real-time deployment.

Experimental results

Research questions

  • RQ1To what extent can architectural similarities across vision models be exploited to reduce memory usage in edge inference?
  • RQ2How effective is model merging in reducing GPU memory footprint and swapping delays compared to traditional time- or space-sharing strategies?
  • RQ3What impact does workload heterogeneity (e.g., varying models, scenes, objects) have on merging efficiency and memory savings?
  • RQ4Can merging be applied across different model families and variants without significant accuracy degradation?
  • RQ5How does GEMEL’s merging strategy scale across diverse, real-world video analytics workloads with mixed model types and input data?

Key findings

  • GEMEL reduces GPU memory usage by up to 60.7% across diverse video analytics workloads by sharing architecturally identical layers.
  • Memory savings are highest in 2-query workloads, with median savings of 89–98% of the optimal achievable under ideal conditions.
  • For larger workloads (up to 5 queries), memory savings degrade mildly (0–8%) when varying camera, object, or scene types, indicating robustness.
  • When varying models, memory savings drop by 2–33% due to differing layer positions and reduced sharing opportunities, but remain substantial.
  • Model merging improves overall accuracy by 8–39% compared to time- or space-sharing alone, primarily by eliminating frame drops from swapping delays.
  • The approach is especially effective when merging across model variants in the same family (e.g., VGG or ResNet variants), where up to 96.3% layer sharing is possible.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.