Search arXiv⌕ Search

arXiv subjects

Mo Song

Publications and source records attributed to Mo Song.

2 recordsLinked to original sources

KLI-Quant: Task-Sensitive W4A4 Quantization for Diffusion Models via Decoupled Activation and Weight Error Control

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.

cs.CV↗

TATAA: Programmable Mixed-Precision Transformer Acceleration with a Transformable Arithmetic Architecture

Modern transformer-based deep neural networks present unique technical challenges for effective acceleration in real-world applications. Apart from the vast amount of linear operations needed due to their sizes, modern transformer models are increasingly reliance on precise non-linear computations that make traditional low-bitwidth quantization methods and fixed-dataflow matrix accelerators ineffective for end-to-end acceleration. To address this need to accelerate both linear and non-linear operations in a unified and programmable framework, this paper introduces TATAA. TATAA employs 8-bit integer (int8) arithmetic for quantized linear layer operations through post-training quantization, while it relies on bfloat16 floating-point arithmetic to approximate non-linear layers of a transformer model. TATAA hardware features a transformable arithmetic architecture that supports both formats during runtime with minimal overhead, enabling it to switch between a systolic array mode for int8 matrix multiplications and a SIMD mode for vectorized bfloat16 operations. An end-to-end compiler is presented to enable flexible mapping from emerging transformer models to the proposed hardware. Experimental results indicate that our mixed-precision design incurs only 0.14% to 1.16% accuracy drop when compared with the pre-trained single-precision transformer models across a range of vision, language, and generative text applications. Our prototype implementation on the Alveo U280 FPGA currently achieves 2935.2 GOPS throughput on linear layers and a maximum of 189.5 GFLOPS for non-linear operations, outperforming related works by up to 1.45x in end-to-end throughput and 2.29x in DSP efficiency, while achieving 2.19x higher power efficiency than modern NVIDIA RTX4090 GPU.

cs.AR↗