自动量化框架让脉冲视觉Transformer更快更省内存。
AQ4SViT: An Automated Quantization Framework with Search Gating Policy for Compressing Spiking Vision Transformers

- 用搜索门控策略快速筛选量化方案,以膜电位漂移为性能代理。
- 比现有方法快6.6倍,内存压缩最高达82.5%,精度损失小于1.5%。
- 适合资源受限设备部署,尤其适用于需快速调优的嵌入式AI场景。
脉冲视觉变压器(SViTs)作为低功耗替代方案崭露头角,但其模型规模大限制了在资源受限嵌入式AI系统中的部署。现有量化方法依赖人工设计,耗时耗能,难以扩展至多模型。为此,本文提出AQ4SViT,一种针对SViT的自动化量化框架,可快速生成兼顾准确率与内存开销的量化配置。核心创新包括:考虑准确率约束的量化搜索策略,以及利用膜电位漂移作为性能代理的搜索门控策略。该策略采用两种算法变体:贪心搜索(快速但易陷局部最优),及束搜索(较慢但更优全局搜索)。实验表明,AQ4SViT-Greedy实现最高6.6倍加速与82.5%内存压缩,而AQ4SViT-Beam进一步将内存减少90%,仅需4.5倍更长搜索时间,所有结果均在ImageNet上保持与原模型相差不超过1.5%的精度。这些成果显著推动了SViT在嵌入式系统的落地应用。
原文摘要 · Abstract (English)
Spiking Vision Transformers (SViTs) have emerged as alternative low-power ViT models, but their large sizes hinder their deployments on resource-constrained embedded AI systems. To address this, state-of-the-art works proposed quantization techniques to compress SViT models, but their manual, human-guided approach needs a huge design time and power/energy consumption to find the appropriate quantization setting for each given network, making this approach not scalable for quantizing multiple networks. Toward this, we propose AQ4SViT, a novel automated quantization framework for SViTs that can provide quick quantization settings with good trade-offs between accuracy and memory. To achieve this, AQ4SViT employs the following key ideas: quantization search strategy that evaluates the quantization setting candidates while considering the accuracy constraint; and search gating policy that quickly evaluates and selects promising quantization candidates by leveraging membrane potential drift as a performance proxy. In the search gating policy, AQSViT employs two search algorithm variants to provide trade-off options: Greedy search, which performs fast but may lead to local optima; and Beam search, which performs slower but has better performance in finding global optima selection due to a wider search space. Experimental results show that AQ4SViT-Greedy quickly finds the appropriate quantization settings, achieving up to 6.6x faster search time and up to 82.5% memory saving compared to the state-of-the-art; while AQ4SViT-Beam further reduces the memory footprint by up to 90% compared to the state-of-the-art, but with 4.5x longer search time; all these results are obtained while maintaining high accuracy within 1.5% from the original/non-quantized models on the ImageNet dataset. These results highlight that AQ4SViT framework offers advancements toward SViT deployments on embedded AI systems.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。