Hermes \({}^{+}\) : Adaptive Memory-Efficient Pipeline Inference for Large Models on Edge Devices
The application of Transformer-based large models has achieved significant success in recent years. However, the exponential growth in the parameters of large models introduces formidable memory challenges for edge deployment. Prior works to address this challenge mainly focus on optimizing the model structure and adopting memory swapping methods. However, the former reduces the inference accuracy, and the latter raises the inference latency. This paper 1 introduces PipeLoad , a novel adaptive memory-efficient pipeline execution mechanism. It reduces memory usage by incorporating dynamic memory management and minimizes inference latency by employing parallel model loading. Based on the PipeLoad mechanism, we present Hermes \\({}^{+}\\) , a framework optimized for large model inference on edge devices. In Hermes \\({}^{+}\\) , we adopt a searching algorithm to balance inference latency and memory usage. We evaluate Hermes \\({}^{+}\\) with Transformer-based models of different sizes on a CPU server and edge devices. Our experiments illustrate that Hermes \\({}^{+}\\) achieves up to \\(4.49\\times\\) speedup in latency and \\(81.1\\%\\) lower memory footprint than the state-of-the-art pipeline mechanism for BERT and ViT models, \\(24.3\\times\\) speedup in latency and \\(67.2\\%\\) lower memory footprint for GPT-2 and GPT-J models with 128 tokens.
Authors
- Zinuo Cai (ORCID: https://orcid.org/0000-0001-9373-8474)
- Baoheng Zhang (ORCID: https://orcid.org/0009-0003-5138-9896)
- Ruhui Ma (ORCID: https://orcid.org/0000-0001-9592-8490)
- Yuan Liu (ORCID: https://orcid.org/0000-0002-2576-1426)
- Yiming Qiang (ORCID: https://orcid.org/0009-0002-7110-7342)
- Tianqi Wu (ORCID: https://orcid.org/0000-0002-1545-3462)
- Xueyuan Han (ORCID: https://orcid.org/0009-0006-7585-5494)
- Nan Jiang (ORCID: https://orcid.org/0009-0003-3718-7868)
Institutions
- Jiangnan University (CN)
- Shanghai Jiao Tong University (CN)
- China Ship Scientific Research Center (CN)
Publication Details
- Journal
- ACM Transactions on Autonomous and Adaptive Systems
- Published
- 2026-09-21
- DOI
- https://doi.org/10.1145/3845607
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00