arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.16261cs.AIcs.CVcs.LG
收藏

面向低比特Mamba超分辨率的硬件友好型令牌组激活量化

Hardware-Friendly Token-Group Activation Quantization for Low-Bit Mamba Super-Resolution

Kookmin University(国民大学)

Jinwoo Chung, Jangho Kim

AI总结:

该研究针对Mamba超分辨率模型低比特量化的挑战,提出硬件友好的令牌组激活量化框架,结合频率保留细化目标,实现性能提升与硬件加速。

摘要:

基于Mamba的超分辨率模型是基于Transformer的恢复骨干网络的高效替代方案,但其低比特后训练量化仍存在挑战,因为Mamba的输入依赖型状态空间算子选择性扫描会在空间令牌间诱导出不同的激活范围,因此单一的层级裁剪范围无法适配所有令牌。我们提出令牌组量化(Token-Group Quantization),这是一种硬件友好型激活后训练量化(PTQ)框架,可静态近似硬件不友好的扫描后分组最优方案,将具有相似偏好裁剪范围的令牌分配至同一组。为避免静态低比特推理时的运行时扫描后分组,我们采用轻量级预测器从量化扫描路径前可用的扫描前特征中推断分组。在校准阶段,我们通过聚类捕获相似舍入-裁剪行为的扫描后激活描述符来形成伪标签;推理时,冻结的预测器将扫描前特征映射至分组,并从离线校准的组级裁剪边界表中选择条目,无需运行时统计收集、动态裁剪更新或扫描后分组分配。为解决低比特恢复性能下降问题,我们进一步引入频率保留细化(Frequency-Preserving Refinement, FPR)目标用于裁剪边界校准,该目标对齐全精度教师模型与量化学生模型输出的傅里叶振幅和相位,以保留高频结构。在各类PTQ协议、比特宽度、骨干网络及任务中,我们的方法始终优于现有Mamba和超分辨率(SR)PTQ基线,可迁移至Transformer超分辨率和视觉Mamba分类,与基于旋转的量化兼容,并在Jetson Orin Nano上实现了比FP16高2.23倍的加速。代码可在此处获取。

英文摘要:

Mamba-based super-resolution models are efficient alternatives to Transformer-based restoration backbones, but their low-bit post-training quantization remains challenging because selective scan, Mamba's input-dependent state-space operator, induces different activation ranges across spatial tokens. Thus, a single layer-wise clipping range poorly matches all tokens. We propose Token-Group Quantization, a hardware-friendly activation PTQ framework that statically approximates a hardware-unfriendly post-scan grouping oracle, where tokens with similar preferred clipping ranges are assigned to the same group. To avoid runtime post-scan grouping in static low-bit inference, a lightweight predictor infers the groups from pre-scan features available before the quantized scan path. During calibration, we form pseudo-labels by clustering post-scan activation descriptors that capture similar rounding--clipping behavior. At inference, the frozen predictor maps pre-scan features to groups and selects entries from offline-calibrated group-wise clipping-bound tables, without runtime statistics collection, dynamic clipping updates, or post-scan group assignment. To address low-bit restoration degradation, we further introduce a Frequency-Preserving Refinement (FPR) objective for clipping-bound calibration. FPR aligns Fourier amplitude and phase between full-precision teacher and quantized student outputs to preserve high-frequency structures. Across PTQ protocols, bit-widths, backbones, and tasks, our method consistently outperforms prior Mamba and SR PTQ baselines, transfers to Transformer SR and Vision Mamba classification, composes with rotation-based quantization, and achieves 2.23x speedup on Jetson Orin Nano over FP16. Code is available here.

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

↑