Mixed-Precision Graph Neural Quantization for Low Bit Large Language Models

Wanlong Liu, Yichen Xiao, Dingyi Zeng, Hongyang Zhao, Wenyu Chen, Malu Zhang

Large Language Models (LLMs) are notoriously resource-hungry. While Post-Training Quantization (PTQ) has become the standard for squeezing these models onto consumer hardware, performance typically falls off a cliff once you drop below 3 bits per weight. A new paper from researchers at the University of Electronic Science and Technology of China introduces MG-PTQ, a method that uses Graph Neural Networks (GNNs) to intelligently navigate the treacherous waters of ultra-low-bit quantization.

TL;DR

MG-PTQ (Mixed-precision Graph Neural PTQ) leverages a GNN to perceive dependencies between model weights and adaptively assign different bit-widths to different layers. By treating weight columns as nodes in a graph, the method achieves state-of-the-art performance in sub-3-bit scenarios, outperforming established methods like GPTQ.

What Problem Does This Paper Address?

The "memory wall" is the primary bottleneck for deploying models like LLaMA2-70B, which requires roughly 150GB of VRAM in half-precision. Quantization—reducing the precision of weights from 16-bit floats to 4-bit or even 2-bit integers—is the solution.

However, current PTQ strategies struggle at very low bit-widths (< 3 bits). The core issue is that existing methods often treat weights as relatively independent or use static importance metrics. When you only have 2 bits to work with, every rounding error is magnified. To maintain model "intelligence" (measured as perplexity), we need a way to identify which weights are critical (requiring more bits) and which are redundant (requiring fewer), while accounting for how these weights interact with one another.

Methods

The authors propose a two-stage approach: Perception and Allocation.

  1. Graph Construction: Instead of looking at weights in isolation, they construct a feature graph. Each column of target weights is a node. The edges between nodes are defined by the second-order Hessian matrix, which mathematically represents how the loss changes with respect to weight interactions.
  2. The GNN Module: They use a 2-layer Graph Convolutional Network (GCN). Through message passing, the GCN "perceives" the dependencies between weight columns. If one column's quantization error heavily impacts its neighbors, the GNN learns that this node is "important."
  3. Adaptive Bit-Width Allocation: A feed-forward network acts as a classifier, taking the GNN's output to assign a specific bit-width (e.g., 1, 2, 3, or 4 bits) to each column.
  4. The Gumbel-Softmax Trick: Choosing a discrete bit-width (like "2 bits" vs "3 bits") is a non-differentiable operation, which usually breaks backpropagation. The authors use the Gumbel-Softmax estimator to allow the GNN to be trained via gradient descent.
  5. Optimization Objective: The loss function balances two goals: minimizing the actual quantization error and keeping the average bit-width across the model at a target level (e.g., an average of 2.5 bits).

Datasets

The researchers evaluated their method using the WikiText2 and C4 datasets, which are standard benchmarks for measuring the perplexity of language models. They tested the approach across several popular model families:

  • LLaMA-1 (7b, 13b)
  • LLaMA-2 (7b, 13b)
  • LLaMA-3 (8b)

Key Insights and Ideas

  • Weights are Social: The most significant insight is that weight importance isn't local. By using the Hessian matrix as an adjacency matrix for a GNN, the authors explicitly model the "ripple effect" that quantizing one weight has on others.
  • GNN vs. MLP: In ablation studies, replacing the GNN with a standard Multi-Layer Perceptron (MLP) led to a significant drop in performance. This confirms that the structural information of the weight dependencies is more valuable than the raw weight values themselves.
  • Customizable Objectives: Because the bit-allocation is learned, the framework is highly flexible. Users can set a specific "bit budget," and the GNN will find the mathematically optimal way to distribute those bits across the architecture.

Key Results

MG-PTQ sets new benchmarks for low-bit quantization:

  • Superiority at 2-bits: On LLaMA-7b (WikiText2), MG-PTQ achieved significantly lower perplexity than the previous state-of-the-art, GPTQ. For instance, at an average of 2.5 bits, MG-PTQ reached a perplexity of 39.53, whereas GPTQ at 2 bits exploded to 152.31.
  • Efficiency: Despite the added complexity of a GNN, the quantization time remains competitive. The GNN is only used during the quantization phase (post-training), so it does not add any overhead to the final model's inference speed.
  • Stability: While traditional methods like RTN and AWQ show extreme performance degradation at 2 bits, MG-PTQ maintains much higher model usability.

Limitations and Future Work

The paper focuses primarily on weight quantization. While this solves the storage and memory capacity problem, it doesn't address activation quantization, which is often necessary for full hardware acceleration on certain integer-only kernels.

Additionally, while the GNN training is efficient, it still represents an extra step compared to "one-shot" methods like GPTQ. Future work might explore how to further generalize the GNN's learned importance across different model architectures without retraining.

Summary updated

BibTeX
@inproceedings{liu2025mixed,
  author = {Wanlong Liu and Yichen Xiao and Dingyi Zeng and Hongyang Zhao and Wenyu Chen and Malu Zhang},
  title = {{Mixed-Precision Graph Neural Quantization for Low Bit Large Language Models}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2025},
  doi = {10.1109/icassp49660.2025.10889834},
}

Loading related content...

Figure