QuoRem:用于扩散Transformer中时序精度切换的商-余数父模型
QuoRem: One Quotient-Remainder Parent for Temporal Precision Switching in Diffusion Transformers
AI总结:
QuoRem是一种单父模型框架,通过商-余数分解实现扩散Transformer的时序精度切换,可减半GPU内存、最高达2.18倍加速,在速度与保真度上取得最优帕累托前沿。
摘要:
扩散Transformer(DiTs)每一步处理数千个图像token,因此加速需要对权重和激活值进行量化以适配整数Tensor Core。静态W8A8量化的加速效果有限,而静态W4A4量化会降低图像的布局和细节。在不同步骤间切换W8A8和W4A4可结合8位的保真度与4位的速度,但现有方法存在诸多不足:需在内存中保留两个独立模型、通过朴素位切片将4位权重转为负值、未对token共享的激活值偏移进行中心化,或采用刚性单向调度。我们提出QuoRem,这是一个单父模型框架,可从单个检查点运行W8A8和无适配器的W4A4,权重仅需1.00字节(B/w)。离线阶段,偏移商-余数分解将每个8位权重无损拆分为近似无偏的4位商平面(Q)和4位余数平面(R);在线阶段,4位步骤在量化前减去共享token均值,并通过(Q,R)上的一次向量-矩阵乘积恢复该均值,无需低秩分支。在轨迹中,单通Waterline分析器对早期布局漂移和后期细节损失进行建模,以统一单切换和多阶段调度,而PlaneFold仅在切换时就地折叠权重平面,开销可忽略。在四个DiT骨干网络上,QuoRem将双检查点基线的GPU内存减半,在4位步骤占一半时,相比BF16达到最高2.18倍的加速,并在速度与保真度上设置了最优帕累托前沿。
英文摘要:
Diffusion transformers (DiTs) process thousands of image tokens per step, so speedup requires quantizing both weights and activations for integer Tensor Cores. Static W8A8 caps speedup, while static W4A4 degrades layout and detail. Switching between W8A8 and W4A4 across steps combines 8-bit fidelity with 4-bit speed, yet existing methods hold two separate models in memory, shift 4-bit weights negative via naive bit-slicing, leave token-shared activation shifts uncentered, or use rigid one-way schedules. We present QuoRem, a single-parent framework that runs W8A8 and adapter-free W4A4 from one checkpoint at 1.00 byte per weight (B/w). Offline, an offset quotient-remainder decomposition splits each 8-bit weight losslessly into a nearly unbiased 4-bit quotient plane ($\mathbf{Q}$) and a 4-bit remainder plane ($\mathbf{R}$). Online, 4-bit steps subtract the shared token mean before quantization and restore it via one vector-matrix product across $(\mathbf{Q}, \mathbf{R})$ without low-rank branches. Along the trajectory, a one-pass Waterline profiler models early layout drift and late detail loss to unify one-switch and multi-phase schedules, while PlaneFold folds weight planes in place only at switches with negligible overhead. Across four DiT backbones, QuoRem halves the GPU memory of dual-checkpoint baselines, reaches up to $2.18\times$ speedup over BF16 with half the steps in 4-bit, and sets the best Pareto frontier of speed and fidelity.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。