Thank you very much for your reply. We are sorry that we did not explain it clearly in our first reply. It is a pleasure to continue discussing with you.
We have urgently conducted some ablation studies, and more experimental results are on the way. In this experiment, we choose to freeze or not freeze the layernom in LLama when training $(s,z)$ in the Block-wise minimization, and other settings are consistent with those in the original paper. Each element in the table represents (PPL of wiki-2, PPL of C4).
| |1-7B |2-7B |1-13B | 1-30B | 1-65B |
:---:|:---:|:---:|:---:|:---:|:---:
| Train LN | (9.49, 11.41) |(9.74, 11.83) |(7.86, 9.86) | (6.37, 8.51) | (5.59, 7.63) |
| Freeze LN | (9.69, 11.54)| (9.84, 11.97)| (7.90, 9.92) | (6.37, 8.52) | (5.48, 7.64) |
When LN is frozen, PPL generally increases slightly. This may be due to the reduction of learnable parameters. Nevertheless, our results are still significantly better than previous shown in Table 3. Thanks for your comments, and we will add these results in the final version.
Now, please give us some time to compare decoupleQ with GPTQ and BRECQ in detail.
Both decoupleQ and GPTQ contain a step to minimize the loss between pre- and post-quantization within a linear layer.
But minimizing the loss between pre- and post-quantization within a linear layer is a very simple and easy idea[1,2,3,4,5]. The core contribution of these papers is not that they use the layer minimization, but how to achieve the layer minimization.
For example, AWQ[1] achieves this goal via per-channel scaling that protects the salient weights; GPTQ[5] achieves this goal by updating the remaining elements while quantizing the previous elements, and adaround[2] by training the rounding up or down. While in decoupleQ, we achieve this goal by constrained mathematical optimization (6). We believe that formula (6) abstracts the essence of the problem, transforming a model quantization problem into a mathematical optimization problem, and it no longer needs to focus on some of the minutiae unique to quantization. $w$, $s$, and $z$ are now totally independent of the original weight $W_0$ in the optimization process, as long as the final output error is minimized. This is the essential difference between decoupleQ and previous methods.
When solving formula (6), we provide two approximate solutions, (10) and (11). Both formulas are common unconstrained convex optimization problems. We used the the idea from GPTQ to solve (11), but this is not the only solution, because we can choose to solve (10) to obtain a more accurate result.
The comparison with BRECQ is similar. Block minimization is used in works[3,6,7]. In BRECQ, they train the rounding for GEMM weights, whereas in decoupleQ, we train $(s,z)$ and norm layers while keeping the GEMM weights frozen (because it has already been quantized to integers at this step). This is a very lightweight training compared with BRECQ, because GEMM weights occupy most of the model parameters, and $(s,z)$ only occupies a very small part of the model parameters.
In addition, if we only consider the first stage, i.e., minimizing the loss between pre-quantization and post-quantization within the linear layer, without considering the second stage, our results still outperform the others (especially GPTQ, the fairest comparison), as shown in Table 4 and Table 3.
[1] AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration \
[2] Up or Down? Adaptive Rounding for Post-Training Quantization \
[3] AffineQuant: Affine Transformation Quantization for Large Language Models \
[4] QuIP: 2-Bit Quantization of Large Language Models With Guarantees \
[5] GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers \
[6] OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models \
[7] BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstruction
Thank you again for your valuable time and high-quality comments. We sincerely look forward to further discussions with you.