PHYSICAL PDF PAGE 5 / 20

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



                                                  Difficult to quantize                     Easy to quantize

                                Sparse-Dense

                                Quantization

                                  (Sec. 4.2)                                                                                Quantization and



𝑿

                         |𝑿|

                                                                               +                                            Efficient Kernel

                                                                                                                               (Sec. 4.4)





                                                             Sparse 𝑺𝑋                        Dense 𝑫𝑋                𝑿𝑾 = (𝑺𝑋 + 𝑫𝑋 )(𝑺𝑊 + 𝑫𝑊 )

                                Ill-conditioned                                             Easy to compute                ෡ 𝑊 + 𝑺𝑋 𝑳𝑹𝑇 + 𝑿𝑺𝑊

                                                                                                                        ෡ 𝑋𝑫

                                                                                                                       ≈𝑫

                                                  Difficult to quantize

                                Decomposition

                                    (Sec. 4.3)                    0.7                  16-bit 𝑳

                          |𝑾|                                                                                                       Sparse-Dense

                                                                        0.9                                              low-bit

𝑾

                                                            0.6

                                                                               +       rank=32                                      multiplication



                                                      0.5                              16-bit 𝑹

                                                  𝛼-Sparsity 𝑺𝑊                Low-Rank 𝑫𝑊 = 𝑳𝑹𝑇



Figure 3. Our quantization framework Bit-DGDM consists of three phases. (i) Decomposing the activations into a sparse matrix modeling

outliers and a dense quantized matrix modeling remaining values (Sec. 4.2). (ii) Utilizing the ill-conditioned low-rank decomposition

method for decomposing weights into an α-sparsity matrix and a low-rank components (Sec. 4.3). (iii) Quantizing the dense parts to

low-bit representations and implementing efficient kernel for sparse-dense matrix multiplication (Sec. 4.4).



ber of activation values to ensure accurate percentile estima-                     sion reduction robustness for the outlier-existing matrix, we

tion. A straightforward approach involves inferring activa-                        propose an ill-conditioned low-rank weight decomposition

tion values using a training dataset. However, this necessi-                       method. The overall algorithm for weight decomposition is

tates access to a large raw dataset. Acquiring such datasets                       illustrated in Alg. 2. We assume that the weight W ∈ Rm×n

is often challenging due to their size, privacy concerns, and                      is a superposition of D?W and S?W :

copyright restrictions. Moreover, avoiding the use of raw

datasets enhances the applicability of post-training quanti-                                                   W = D?W + S?W ,                       (8)

zation. With this in mind, we propose a data-free method

for adaptive threshold selection. Our approach begins by                           where S?W is a sparse matrix modeling the outliers of weight

sampling multiple initial graphs {G T } = {(XT , ET )} from                        W, and D?W is a rank-r matrix modeling the remaining

uniform distributions of node and edge types:                                      component. Herein, ∗ denote the ideal or target values,

                                                                                   while the following variables without ∗ denote the variables

       XT ∼ U({1, ..., |X |}), ET ∼ U({1, ..., |E|}).                    (7)

                                                                                   to be optimized. We define the sparsity of SW following

These graphs are processed through the full-precision                              α-sparsity constraint (Yi et al., 2016; Netrapalli et al., 2014):

DGDM to obtain intermediate activation values in each                              Definition 4.1 (α-sparsity). The sparse matrix S is α-

steps. Thresholds are then selected based on the activations                       sparsity if at most α-fraction of nonzero entries per row

from all steps within the same layer, using predefined per-                        and column for α ∈ [0, 1), which we denote as:

centiles, thereby facilitating effective quantization without

relying on raw datasets.

                                                                                   Sα := {S ∈ Rm×n |∀i, j, kSi,: k0 ≤ αn, kS:,j k0 ≤ αm}.

4.3. Ill-conditioned Low-Rank Weight Decomposition

Our analysis of outliers in activations and weights indicates                      To avoid the low-rank constraint on DW , we write DW as

that, unlike in LLMs where outliers predominantly occur                            product of DW = LR> with L ∈ Rm×r and R ∈ Rn×r .

in activations, DGDMs exhibit significant outliers in model                        We utilize the low-rank matrix LR> and the sparse matrix

weights as well. This characteristic may render quantization                       SW to reconstruct the raw weight matrix W through the

methods via smoothing inefficient (Xiao et al., 2023), as                          following optimization objective:

reducing the magnitude of activations comes at the cost of

amplifying the magnitude of weights, thereby exacerbat-

                                                                                                    min              kLR> + SW − Wk2F ,              (9)

ing the impact of outliers on weight quantization. More-                               L∈Rm×r ,R∈Rn×r ,SW ∈Sα

over, quantization approaches that mitigate outlier effects

through SVD decomposition (Li et al., 2024b) may also                              where k · kF denotes Frobenius Norm. To enable gradi-

be compromised, as outliers can substantially influence the                        ent descent on efficiently optimizing L and R, we denote

magnitude of singular values and the direction of singular                         the loss function in k-th iteration Lk := L(Lk , Rk ) :=

vectors. Inspired by robust principal component analysis                           kLk R>                   2

                                                                                          k + SW,k − WkF . To enforce the α-sparsity con-

(RPCA) (Candès et al., 2011) for enhancing the dimen-                             straint of SW in Def. 4.1, we employs a sparsification oper-



                                                                               5

