PHYSICAL PDF PAGE 2 / 20

                        Outlier-Aware Post-Training Quantization for Discrete Graph Diffusion Models



Quantization (Jacob et al., 2018; Wang et al., 2020) rises as         sight that the inference efficiency of DGDMs is primarily

a crucial direction for model acceleration, wherein floating-         constrained by computation and the observation that out-

point numbers are converted into integers, thereby enhanc-            liers are prominently present in both weights and activa-

ing computational efficiency from a hardware perspective.             tions, Bit-DGDM introduces a novel approach combining

However, existing quantization methods primarily focus                sparse-dense activation quantization with ill-conditioned

on IDMs and LLMs. For IDMs, quantization approaches                   low-rank weight decomposition to effectively mitigates the

are centered on calibrating errors between the Gaussian de-           impact of outliers. Moreover, we implement equidistributed

noising processes of full-precision and quantized models,             & adaptive sparse-dense kernels tailored for the decomposed

such as time step-aware calibration (Li et al., 2023) and             matrix multiplication. These techniques achieve high effi-

Gaussian noise correction (He et al., 2024b). Moreover,               ciency at precisions as low as 4 bits, minimizing memory

given huge model sizes, LLMs’ inference latency is domi-              usage and speeding up inference without sacrificing model

nated by weight loading, prompting LLM-oriented quanti-               performance or the quality of generated graphs. To the

zation methods to emphasize memory access optimization                best of our knowledge, we are among the first to propose a

through vector quantization (Egiazarian et al., 2024) and             quantization framework for DGDMs.

non-uniform quantization (Kim et al., 2024). However, ex-

                                                                      The detailed contributions of our work are as follows:

isting quantization methods are inadequate to address the

                                                                      • Sparse-Dense Activation Quantization: Recognizing

unique challenges of DGDMs:

                                                                        that activations in DGDMs contain significant outliers,

(1) The inference efficiency of DGDMs is bounded by                     our sparse-dense activation quantization method utilizes

computations instead of memory access. The functioning                  a sparse matrix modeling outliers and a dense matrix

of DGDMs relies on substantial low-parameter yet high-                  modeling remaining values based on adaptively selected,

computation operations (e.g., FiLM network (Perez et al.,               data-free thresholds (Sec. 4.2).

2018)), which render DGDMs computationally intensive

                                                                      • Ill-Conditioned Low-Rank Weight Decomposition: To

and result in longer runtime compared to basic Image Diffu-

                                                                        address the outliers in weights and enhance computational

sion Models (IDMs) and Large Language Models (LLMs),

                                                                        efficiency, we decompose the weights into low-rank com-

as depicted in Fig. 1(b). However, due to the inherent dif-

                                                                        ponents and an α-sparsity matrix that models outliers,

ferences between the discrete diffusion process in DGDMs

                                                                        ensuring guaranteed recovery (Sec. 4.3).

and the Gaussian denoising process in IDMs, most quantiza-

tion methods designed for IDMs face significant limitations           • Equidistributed & Adaptive Sparse-Dense Kernels:

when applied to DGDMs. Moreover, since DGDMs have                       To optimize inference speed and precision, we quantize

substantially smaller parameter sizes compared to LLMs                  the dense part of the product of decomposed weights

(0.07B versus 2B, as shown in Fig. 1(b)), the quantization              and activations into low-bit representations and design

methods designed to reduce the latency of LLM weight                    equidistributed, adaptive sparse-dense kernels for effi-

loading may be inefficient for the quantization of DGDMs.               cient sparse-dense matrix multiplications (Sec. 4.4).

(2) Considerable outliers in DGDMs are observed in                    • Evaluation: We conduct extensively experiments across

both weights and activations. The outliers, referring to                multiple DGDMs and diverse datasets to demonstrate

entries with magnitudes significantly larger than others, can           that Bit-DGDM can effectively quantize DGDMs and ob-

substantially impact quantization precision by amplifying               tain the superior performance compared with other SOTA

magnitudes and compressing the distinctions of remaining                quantization baselines. Notably, Bit-DGDM achieves

values. In text and image tasks, where outliers primarily oc-           2.5× inference speed while reducing the memory foot-

cur in activations rather than weights, existing quantization           print by up to 2.8× (Sec. 5.2 and Sec. 5.3).

methods like smoothing (Li et al., 2024b; Xiao et al., 2023)

attempt to transfer these outliers from activations to weights.       2. Related Work

However, in graph generation tasks, outliers are significantly

                                                                      The related work of this paper falls in two categories: Graph

present in both activations and weights (Sec. 4.1), render-

                                                                      Generation Models and Model Quantization. Detailed re-

ing both aspects highly susceptible to outlier effects. This

                                                                      cent advancements of Quantization for LLMs and Outlier-

dual vulnerability diminishes the effectiveness of smoothing

                                                                      Aware Quantization can be found in Appendix A.

methods in mitigating outliers (Sec. 5.2). Consequently, se-

lecting an appropriate quantization approach to mitigate the          2.1. Graph Generative Models

influence of outliers in both activations and weights is cru-         With the widespread prevalence of graph data (Sun et al.,

cial for maintaining the performance of quantized DGDMs.              2024; Ji et al., 2025; Gong & Sun, 2024b;a; Huang et al.,

In this paper, we propose a post-training quantization frame-         2022; Shi et al., 2024; Han et al., 2024), graph generation

work for DGDMs, called Bit-DGDM. Grounded in the in-                  has found extensive applications, including inverse protein

                                                                      folding (Yi et al., 2023), molecule generation (Wu et al.,



                                                                  2

