PHYSICAL PDF PAGE 16 / 20

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





                                𝑬′                                        𝑿′



                              Linear                                    Linear

                                                                                                 𝑿 𝑬



                                FiLM                                    FiLM                      Node/Edge-wise

                                                                                                       MLP



                            𝒚        Flatten heads         Flatten heads         𝒚

                                                                                                 Graph Transformer

                                                                                                       Layer

                                                     Aggregation



                                                                                                       …        ×𝑵

                                                 Softmax             Linear



                                                                                                 Graph Transformer

                                  𝑬         FiLM                      𝑿                                Layer

                                                                                                                𝒚

                                              Outer product                                       Node/Edge-wise

                                                                                                       MLP



                                        Linear              Linear

                                                                                                 𝑿 𝑬           Structural &

                                                                                                             Spectral features

                                          𝑿                   𝑿

                                                               × 𝒏_𝒉𝒆𝒂𝒅



                          Figure A1. An illustration of graph transformer architectures used in Digress.



                                                                                           (l)

amino acid (AA) type and geometric properties, edge embeddings mij to connect nodes i and j, and xpos

                                                                                                  i to describe the

coordinates of the nodes. The EGC layer updates the node representations as follows:

                                                                                 

                                                                         2

                                    (l+1)         (l)  (l)    (l)    (l)      (l)

                                 mij      = φe hi , hj , xi − xj           , mij



                                            (l+1)      1 X  (l)

                                                             (l)         (l)

                                                                              

                                                                                 (l+1)

                                                                                       

                                          xi         = xi +     xi − xj φx mij

                                                       n                                                                         (16)

                                                           j6=i

                                                                       

                                          (l+1)        (l)        (l+1)

                                                            X

                                         hi     = φh hi ,      mij  ,

                                                                               j6=i



where φe , φh are the operations of edge and node propagations, respectively, and φx is an operation that projects the edge

embedding to a scalar.



D. Algorithm and Complexity Analysis

Figure 3 provides a succinct overview of the comprehensive quantization process in Bit-DGDM. To enhance clarity and

facilitate comprehension, we delineate the systematic protocol for the overall inference process of quantized model in

Algorithm 1. Besides, we extensively illustrate the procedure of ill-conditioned low-rank decomposition of weights (Sec. 4.3)

in Algorithm 2. This section presents a complexity analysis of the ill-conditioned low-rank decomposition. First, the

initializations of the α-Sparsity matrix SW,0 and low-rank component L0 R>                               2      2

                                                                             0 requires 2nm + nmr + nr + mr flops. The

                                                                                                 2      2    3

computational complexity w.r.p the iterative optimizations of these components is O(nmr + mr + nr + r ) flops. Since

the rank r is typically much less than the channel sizes n, m of weight W, the overall complexity of the ill-conditioned

low-rank decomposition requires O(nmr).







E. Equidistributed and Adaptive Sparse-Dense Kernel Implementation

In this section, we will introduce the core concept of our designed Equidistributed and Adaptive Sparse-Dense kernel. For

each sparse matrix, we utilize the CSR (Compressed Sparse Row) format (Buluç et al., 2009) to represent it. The CSR

format is a storage scheme that efficiently represents sparse matrices by storing non-zero elements along with their row and

column indices, thereby reducing memory usage and improving computational efficiency.



                                                                                      16

