CompSRT:用于图像超分辨率变换器的量化与剪枝
Any Orthogonal Transform Will Do: Range Reduction Explains Rotation-Based Quantization for Super-Resolution
AI总结:
CompSRT通过Hadamard变换和标量分解实现图像超分辨率变换器SwinIR-light的高效压缩,量化性能优于现有最佳方法,且在低比特宽度下实现显著的视觉质量提升和压缩率提高。
摘要:
模型压缩已成为使图像超分辨率模型更高效的重要工具。然而,最佳压缩模型与全精度模型之间仍存在较大差距,对更高效模型的压缩理论深入理解仍需加强。先前对大语言模型量化的研究表明,Hadamard变换能够减少权重和激活值的异常值,从而提高性能。我们认为,虽然Hadamard变换确实减少了异常值的影响,但对其变换功能的实证分析仍需进行。通过研究SwinIR-light的权重和激活值分布,我们通过统计分析发现,较低的误差是由于Hadamard变换能够减少范围,并增加接近$0$的值的比例。基于这些发现,我们介绍了CompSRT,一种更高效的压缩图像超分辨率变换器网络SwinIR-light的方法。我们进行了基于Hadamard的量化,并进行了标量分解,以引入两个额外的可训练参数。我们的量化性能在指标上统计学上显著优于SOTA,最大增益可达1.53 dB,并通过在所有比特宽度上减少模糊度来明显提高视觉质量。在$3$-$4$比特时,为了展示我们的方法与剪枝的兼容性以增加压缩,我们还剪除了40%的权重,并证明可以实现6.67%-15%的每参数比特数减少,性能与SOTA相当。
英文摘要:
Rotation-based quantization -- multiplying weights and activations by a Hadamard matrix before quantizing -- is now standard, but why it works is explained informally, via incoherence, the central limit theorem, or kurtosis, and rarely tested directly. We ask which property of the post-rotation distribution drives the gain, using paired hypothesis tests on the weights and activations of an image super-resolution transformer. Three candidate properties separate cleanly. Range reduction replicates under every orthogonal transform we tried -- Sylvester Hadamard, QuIP#-Paley, DCT-II, and random orthogonal matrices -- and transfers to a state-space backbone and to CNN weights. Improved normality also replicates. The increased mass near zero, by contrast, is significant only under the zero-padded Sylvester construction and disappears under unpadded transforms, so we attribute it to the padding, not the transform. The end task follows the same pattern: over a grid of three scale factors, three bitwidths and five benchmarks, rotation improves PSNR in all 45 configurations against an otherwise identical un-rotated quantizer at the same nominal bitwidth (the rotated arm carries 0.267 bits/parameter of Sylvester padding at 4 bits and stays ahead in every cell when charged for it), while substituting DCT-II or a random orthogonal matrix costs only 0.06-0.07 dB, less than the padding the Hadamard is charged for. The choice of kernel is therefore an implementation decision: the Hadamard's advantage is its +/-1 entries and O(n log n) butterflies. We package the recipe as CompSRT, which improves on 2DQuant in 44 of 45 configurations at equal nominal bitwidth -- charged for its padding that edge holds at 3 and 2 bits but not at 4. CondiQuant remains ahead at every operating point by 0.03-1.40 dB, which we report.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。