PHYSICAL PDF PAGE 18 / 20

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



Algorithm 3 Adaptive Sparse-Dense Kernel on GPUs

  Input: val, colidx, rowptr: CSR-format sparse matrix, x: input vector, srow: segment starting rows, nz : number

  of non-zeros

  // Initialize

  Divide val and colidx into T warp-level segments

  Segment k range: [bknz /T c, b(k + 1)nz /T c)

  Precompute srow array via histogram of rowptr

  // Execution on GPU

  for each warp W in parallel do

      startW ← bW · nz /T c // Start index of segment

      endW ← b(W + 1) · nz /T c // End index

      current row ← srow[W ]

      local sum ← 0

     // Process chunk of 32 elements (warp size)

      repeat

         Initialize i = 0

         for each thread t in warp do

            Load val[i + t] and colidx[i + t]

            partial ← val[i + t] × x[colidx[i + t]]

            if column index crosses row boundary then

               Detect row changes using rowptr

               Perform segmented scan within warp

               Update current row via warp shuffle

            end if

            Accumulate partial to local sum

            if any thread changed row then

               Warp-wide segmented reduction

               Reset local sums except first thread per row

               Atomic add completed rows to global y

            end if

            i ← i + 32 // Move to next chunk

         end for

         // Flush remaining local sums

         Perform final warp reduction and atomic updates to y

      until current index i ≥ endW

  end for

  Output:Output vector y





F. Additional Experiment Details

F.1. Baseline Description

The detailed descriptions of the baselines used for comparison in this work are as follows:



  • RTN (round-to-nearest) quantizes each value of weights and activations to the nearest integer. After performing the

    multiplication, the values are dequantized back to floating-point numbers.



  • GPTQ (Frantar et al., 2023) leverages the Hessian matrix of activations for layer-wise error calibration and performs

    channel-wise quantization. The quantization loss is then propagated to other channels. Additionally, it introduces

    techniques such as arbitrary order, lazy-batch updates, and Cholesky reformulation, ensuring efficient quantization

    even with a large number of parameters.



  • SqueezeLLM (Kim et al., 2024) isolates a small number of weight outliers and employs a lookup table to focus all

    weight values on a few cluster centers in a sensitivity-aware manner. Quantized weights are stored as integers and



                                                            18

