arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2506.12480cs.LGeess.SP
收藏

面向边缘AI的小规模状态空间模型量化

Quantizing Small-Scale State-Space Models for Edge AI

Institute of Neuroinformatics University of Zürich(神经信息研究所 维也纳大学);ETH Zürich(苏黎世联邦理工学院)

Leo Zhao, Tristan Torchet, Melika Payvand, Laura Kriener, Filippo Moro

AI总结:

本文针对边缘AI场景下小规模状态空间模型的部署需求,研究量化对其的影响,通过量化感知训练及异构量化策略,在大幅降低内存占用的同时维持模型性能,为资源受限环境的模型部署提供参考。

摘要:

状态空间模型(SSMs)近期因能高效建模长程依赖在深度学习领域受到关注,是边缘AI应用的潜力候选方案。本文分析了量化对小规模SSMs的影响,重点在于在保持任务性能的同时降低内存与计算成本。我们以S4D架构为基础,首先研究了训练后量化(PTQ),发现状态矩阵A和内部状态x对量化尤为敏感。此外,我们分析了应用于S4D架构中参数与激活函数的不同量化技术的影响。为解决训练后量化(PTQ)后观测到的性能下降问题,我们采用了量化感知训练(QAT),在8位精度下的序列MNIST基准测试中,将性能从PTQ的40%显著提升至96%。我们进一步验证了QAT在实现亚8位精度方面的潜力,并评估了不同参数化方案对QAT稳定性的作用。此外,我们提出了一种异构量化策略,为模型各组件分配不同精度等级,在不损失性能的前提下将整体内存占用降低了6倍。我们的研究结果为在资源受限环境中部署量化SSMs提供了可行的见解。

英文摘要:

State-space models (SSMs) have recently gained attention in deep learning for their ability to efficiently model long-range dependencies, making them promising candidates for edge-AI applications. In this paper, we analyze the effects of quantization on small-scale SSMs with a focus on reducing memory and computational costs while maintaining task performance. Using the S4D architecture, we first investigate post-training quantization (PTQ) and show that the state matrix A and internal state x are particularly sensitive to quantization. Furthermore, we analyze the impact of different quantization techniques applied to the parameters and activations in the S4D architecture. To address the observed performance drop after Post-training Quantization (PTQ), we apply Quantization-aware Training (QAT), significantly improving performance from 40% (PTQ) to 96% on the sequential MNIST benchmark at 8-bit precision. We further demonstrate the potential of QAT in enabling sub-8-bit precisions and evaluate different parameterization schemes for QAT stability. Additionally, we propose a heterogeneous quantization strategy that assigns different precision levels to model components, reducing the overall memory footprint by a factor of 6x without sacrificing performance. Our results provide actionable insights for deploying quantized SSMs in resource-constrained environments.

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

↑