arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.04002cs.LGcs.AI
收藏

通过自适应分割计算实现大语言模型的内存与延迟约束推理

Memory- and Latency-Constrained Inference of Large Language Models via Adaptive Split Computing

Department of Artificial Intelligence, Kyungpook National University(人工智能系,庆北国立大学);Department of Electrical and Computer Engineering, Queen’s University(电气与计算机工程系,皇后大学);Department of Information and Communications Engineering, Pukyong National University(信息与通信工程系,浦项国立大学)

Mingyu Sung, Vikas Palakonda, Suhwan Im, Sunghwan Moon, Il-Min Kim, Sangseok Yun, Jae-Mo Kang

AI总结:

本文提出首个面向自回归推理的自适应分割计算框架,通过混合精度量化、两阶段中间压缩和统一优化,在满足边缘设备内存与延迟约束的同时实现 1.49 倍推理加速并保持模型精度。

摘要:

大语言模型(LLMs)在多种推理任务上已取得接近人类的表现,但由于其庞大的参数规模和内存密集型的自回归解码过程,在资源受限的物联网(IoT)设备上部署仍然不切实际。分割计算通过在边缘设备和云服务器之间划分模型执行提供了一种有前景的解决方案,但现有方法未能解决自回归推理的独特挑战,尤其是迭代式 token 生成过程和不断增长的键值(KV)缓存需求。本文提出了首个面向自回归的分割计算框架,专门用于在边缘设备上部署大语言模型。我们的方法有三项关键贡献。第一,我们开发了单点分割压缩(OPSC),这是一种混合精度量化方案,通过将模型策略性地划分为具有不同精度级别的前端和后端段来防止内存不足故障。第二,我们提出了一种两阶段中间压缩流水线,结合阈值分割(TS)和逐 token 自适应位宽量化(TAB-Q),在保留对精度至关重要的激活值的同时大幅降低通信开销。第三,我们构建了一个统一优化框架,联合选择最优分割点、量化设置和序列长度,以满足严格的内存和延迟约束。在多种大语言模型和硬件平台上的广泛评估表明,与最先进的量化方法(包括 SmoothQuant、OmniQuant 和 Atom)相比,该框架具有更优越的性能。该框架实现了 1.49 倍的推理加速和显著的通信开销降低,同时保持或提高了模型精度。

英文摘要:

Large language models (LLMs) have achieved near-human performance across diverse reasoning tasks, yet their deployment on resource-constrained Internet-of-Things (IoT) devices remains impractical due to massive parameter footprints and memory-intensive autoregressive decoding. While split computing offers a promising solution by partitioning model execution between edge devices and cloud servers, existing approaches fail to address the unique challenges of autoregressive inference, particularly the iterative token generation process and expanding key-value (KV) cache requirements. This work introduces the first autoregressive-aware split computing framework designed explicitly for LLM deployment on edge devices. Our approach makes three key contributions. First, we develop one-point split compression (OPSC), a mixed-precision quantization scheme that prevents out-of-memory failures by strategically partitioning models into front-end and back-end segments with different precision levels. Second, we propose a two-stage intermediate compression pipeline that combines threshold splitting (TS) and token-wise adaptive bit quantization (TAB-Q) to preserve accuracy-critical activations while dramatically reducing communication overhead. Third, we formulate a unified optimization framework that jointly selects optimal split points, quantization settings, and sequence lengths to satisfy strict memory and latency constraints. Extensive evaluations across diverse LLMs and hardware platforms demonstrate superior performance compared to state-of-the-art quantization methods, including SmoothQuant, OmniQuant, and Atom. The framework achieves a 1.49 inference speedup and significant communication overhead reduction while maintaining or improving model accuracy.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑