Diffusion models have become the leading approach to high-fidelity image and video generation, but their large memory footprint and long sampling latency make deployment costly. Quantizing both weights and activations to 4 bits (W4A4) substantially reduces both, but makes generation quality hard to preserve. At this aggressive precision, keeping a small high-precision low-rank branch to absorb outliers, as in SVDQ, has proven effective. Such methods, however, still fall short for two reasons: their calibration objective, the layer output error, fails to reflect the error in the network output of the denoising step (the step output error), and their bypass allocation primarily targets weight reconstruction rather than transmitted activation error. We propose KLI-Quant, a W4A4 post-training quantization framework for diffusion models that addresses both limitations. First, KLI-Quant weights the calibration objective by downstream sensitivity, estimated from a frozen full-precision model, so that the objective tracks the step output error rather than the layer output error. Second, it retains this low-rank bypass but regroups the deployed layer error into an activation term that depends on the bypass but not on residual quantization codes, and a weight term measured under quantized inputs. This grouping defines complementary targets for two-stage calibration, first allocating the bypass against activation error and then calibrating the residual weights under quantized inputs. We further provide efficient W4A4 kernels for the resulting two-branch layer. On MiniMax-H3, KLI-Quant achieves state-of-the-art video generation quality among the evaluated W4A4 methods, while achieving a $3.12\times$ average GEMM speedup and a $1.93\times$ end-to-end speedup over BF16.


翻译:暂无翻译

0
下载
关闭预览

相关内容

大模型5个公式化讲解,附视频与Slides
专知会员服务
40+阅读 · 2024年2月6日
Stabilizing Transformers for Reinforcement Learning
专知会员服务
61+阅读 · 2019年10月17日
【SIGGRAPH2019】TensorFlow 2.0深度学习计算机图形学应用
专知会员服务
41+阅读 · 2019年10月9日
Hierarchically Structured Meta-learning
CreateAMind
27+阅读 · 2019年5月22日
IJCAI | Cascade Dynamics Modeling with Attention-based RNN
KingsGarden
13+阅读 · 2017年7月16日
国家自然科学基金
9+阅读 · 2017年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
VIP会员
最新内容
《评估人机编队性能的标准指标》
专知会员服务
8+阅读 · 11月30日
《美陆军装甲排的自动化任务分配模型》59页
专知会员服务
6+阅读 · 11月30日
乌克兰海陆空无人力量
专知会员服务
3+阅读 · 11月30日
超越技术:美战争部的AI变革管理
专知会员服务
7+阅读 · 11月27日
北约400亿美元反无人机能力投资建设
专知会员服务
7+阅读 · 11月25日
反小型无人机系统方案评估(27页)
专知会员服务
15+阅读 · 11月25日
相关资讯
Hierarchically Structured Meta-learning
CreateAMind
27+阅读 · 2019年5月22日
IJCAI | Cascade Dynamics Modeling with Attention-based RNN
KingsGarden
13+阅读 · 2017年7月16日
相关基金
国家自然科学基金
9+阅读 · 2017年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员