Paper · Systems and efficiency · Version v2
LoRAP: Low-Rank Aggregation Prompting for Quantized Graph Neural Networks Training
First published: arXiv, . Original
Copyright the authors. Licensed under Creative Commons Attribution 4.0 International.
This page holds the text of the paper, converted to HTML; figures may be left out.
Graph Neural Networks (GNNs) are neural networks that aim to process graph data, capturing the relationships and interactions between nodes using the message-passing mechanism. GNN quantization has emerged as a promising approach for reducing model size and accelerating inference in resource-constrained environments. Compared to quantization in LLMs, quantizing graph features is more emphasized in GNNs. Inspired by the above, we propose to leverage prompt learning, which manipulates the input data, to improve the performance of quantization-aware training (QAT) for GNNs. To mitigate the issue that prompting the node features alone can only make part of the quantized aggregation result optimal, we introduce Low-Rank Aggregation Prompting (LoRAP), which injects lightweight, input-dependent prompts into each aggregated feature to optimize the results of quantized aggregations. Extensive evaluations on 4 leading QAT frameworks over 9 graph datasets demonstrate that LoRAP consistently enhances the performance of low-bit quantized GNNs while introducing a minimal computational overhead.
Abstract
Graph Neural Networks (GNNs) are neural networks that aim to process graph data, capturing the relationships and interactions between nodes using the message-passing mechanism. GNN quantization has emerged as a promising approach for reducing model size and accelerating inference in resource-constrained environments. Compared to quantization in LLMs, quantizing graph features is more emphasized in GNNs. Inspired by the above, we propose to leverage prompt learning, which manipulates the input data, to improve the performance of quantization-aware training (QAT) for GNNs. To directly compensate for aggregation-level quantization errors, we introduce Low-Rank Aggregation Prompting (LoRAP), which injects lightweight, input-dependent prompts into the aggregated representations. Our analysis characterizes the optimization geometry and locality of this insertion position and gives conditions under which the correction benefit is preserved after requantization. Extensive evaluations on 4 leading QAT frameworks over 10 graph datasets demonstrate that LoRAP consistently enhances the performance of low-bit quantized GNNs while introducing a minimal computational overhead.
Index Terms:
Graph neural networks, quantization-aware training, prompt learning, low-rank aggregation prompting, graph model compression.
I Introduction
Graph Neural Networks (GNNs) are models able to process graph data, effectively capturing the node relationships using the message-passing mechanism [1]. This ability allows GNNs to model complex dependencies and interactions present in graphs and enabled their application in several domains, such as biology [2], chemistry [3, 4], recommender systems [5], and network analysis [6, 7]. Despite their wide use, the adoption of GNNs in resource-constrained environments, such as mobile phones, autonomous vehicles, and edge devices, is still challenging [5]. Even though they have fewer parameters than standard deep learning models, GNNs typically involve more computations, often exceeding the computational cost of standard models [8, 9]. This, in turn, is largely driven by the size of the underlying graph.
When dealing with large neural networks, particularly large language models (LLMs), model quantization has emerged as a promising approach to handle their deployment in resource-constrained environments [10]. This in turn involves representing weights and activations with lower precision, reducing the model size and accelerating inference.
Fig. 1: Feature/Weight memory size ratio during inference in LLMs vs GNNs.
Fig. 2: (Left) The aggregation phase in a full-precision GNN and its quantized version. (Right) The aggregation phase in a full-precision prompt-tuned GNN (where a node prompt with a value of 0.2 is added) and its quantized version. The neighbourhoods where the aggregations take place are denoted by green & magenta circles, respectively, with the aggregated values indicated by green & magenta arrows, respectively.
While traditional quantization techniques focus primarily on the weights of the model, in the case of GNNs the quantization of node features and graph structure becomes significantly more important. As the graph scale increases, the necessary storage size escalates dramatically, severely impacting the limited memory budget of resource-constrained devices. In contrast, memory consumption in LLMs is overwhelmingly dominated by parameter weights. As shown in Fig. 1, Feature representations can comprise up to 98.44% of the total memory footprint of a GNN [11], whereas in LLaMA-2-7B roughly 87% of the overall memory usage is attributable to model weights [12]. Note also that GNN inference involves repeated message passing over node embeddings, thus any reduction in the bit-width of node data directly shrinks memory transfers and arithmetic operations on each edge, yielding substantial speedups and bandwidth savings in real-world deployments.
The reduced memory footprint and runtime, however, usually result in decreased performance on downstream tasks. This drop is particularly pronounced when quantization is applied to GNNs, where the relationships between nodes and their neighbors are crucial for effective learning. For this reason, several approaches have been introduced to incorporate quantization-aware training (QAT) for GNNs. These methods try to mitigate quantization errors by leveraging node degree information [8] or using mixed-precision strategies [13]. Despite this, quantizing GNNs to low-bit representations still incurs a large accuracy drop.
Since feature quantization errors propagate through graph message passing, in this paper we propose to use prompt learning, a technique where additional learnable parameters are injected into data features, to mitigate the performance degradation of quantized GNNs. Prompt tuning was introduced as a technique to recover the performance of compressed LLMs [14], with most methods in this context being adapter-based [15], since quantization in LLMs emphasizes weights. However, extending this approach to GNN models is not straightforward and incurs considerable challenges [16].
To this end, in this paper we first propose to recover the performance of quantized GNNs by incorporating prompts in the node features space. We implement GPF-plus [16] for QAT, which integrates different prompted features for each node in the graph. However, pre-aggregation prompts are transformed by neighborhood aggregation, coupling their effects across receivers, as illustrated in Fig. 2 (Right) for a shared node prompt. We therefore insert prompts directly into the aggregation outputs, where each prompt vector acts on its corresponding receiver and compensates for the aggregation residual. Our prompts are also designed to be input-dependent and computationally efficient, making use of low-rank basis matrices.
Our contributions can be summarized as follows:
- We are the first to leverage prompt learning to improve the performance of quantized GNN models. Specifically, we manipulate the node features, the major source of reduced performance in quantized GNNs.
- We propose LoRAP, a Low-Rank Aggregation Prompting strategy where we insert input-dependent computationally efficient prompts over node feature aggregations, improving the quantized aggregation results; Moreover, to reduce the latency, we propose to fuse the GPU operations in LoRAP, resulting in the fused LoRAP kernel.
- Experiments on 4 QAT frameworks for GNNs over a wide variety of datasets demonstrate that combining GPF-plus and LoRAP consistently increases the model performance.
II Background and Related Work
II-A Quantization Process.
Given a real-valued tensor and bit-width , we define the quantization operator and dequantization operator as
Q(x)=\mathrm{clip}\Bigl(\mathrm{round}\bigl(\tfrac{x}{{\color[rgb]{0,0,0}\Delta}}\bigr)+{\color[rgb]{0,0,0}z_{0}},\;q_{\min},\;q_{\max}\Bigr)
DQ(x_{q})={\color[rgb]{0,0,0}\Delta}\,(x_{q}-{\color[rgb]{0,0,0}z_{0}})\,,
where, for a non-degenerate range , the positive scale and zero-point are computed as
{\color[rgb]{0,0,0}\Delta}=\frac{x_{\max}-x_{\min}}{q_{\max}-q_{\min}},\qquad{\color[rgb]{0,0,0}z_{0}=q_{\min}-\mathrm{round}\!\Bigl(\frac{x_{\min}}{\Delta}\Bigr),}
and the integer quantization bounds are
or
Here, and denote the minimum and maximum values of . The function maps its argument to the nearest integer, and truncates values outside to the nearest bound. During inference, each real value is quantized to and then dequantized back to for low-bitwidth storage and arithmetic.
II-B Quantization Techniques.
Quantization is a key strategy for reducing the memory footprint and computational cost of deep neural networks by representing weights and activations with lower-precision numbers. Early work showed that 16-bit fixed-point quantization can be applied to training and inference with minimal accuracy loss and was later extended to 8-bit and sub-8-bit precisions [17]. Broadly speaking, these methods fall into two categories:
- Post-Training Quantization (PTQ). PTQ methods perform a lightweight calibration step on a pretrained full-precision model to determine optimal quantization parameters (namely scale, zero-point, and rounding directions) using only a small calibration dataset. A simple min-max calibration maps the observed activation range to integer bounds, while histogram-based techniques clip outliers by optimizing for minimal information loss according to percentile criteria [18].
- Quantization-Aware Training (QAT). QAT injects fake-quantization operations into both forward and backward passes so that the network learns to adapt its weights to low-precision representations. Early QAT works on binary and ternary networks demonstrated the feasibility of end-to-end gradient updates under discrete constraints [19]. Later methods introduced learnable scale and zero-point parameters [17], while Learned Step Size Quantization (LSQ) makes the quantization grid itself trainable for optimal precision-range trade-offs [20]. Unlike PTQ, QAT updates both weights and quantization parameters during training, yielding higher accuracy, especially at very low bit-widths, at the cost of significantly longer training times.
II-C Prompt Tuning.
Prompt tuning has emerged as a highly parameter-efficient strategy for adapting large pretrained models to downstream tasks by learning a small set of continuous prompt vectors, while keeping the original model weights frozen. Early work on in-context learning with discrete prompts demonstrated the power of prompting for few-shot tasks [21]. Building on this idea, Lester et al. [22] introduced Prompt Tuning, in which soft prompt embeddings are prepended to the input and optimized via gradient descent, achieving performance competitive with full fine-tuning using orders of magnitude fewer trainable parameters. Li and Liang [23] further generalized this to Prefix Tuning, where trainable vectors are injected at every layer of a transformer. Liu et al. [24, 25] proposed P-Tuning and P-Tuning v2, which scale soft prompting to very large language models by optimizing continuous prompts at multiple layers. In the vision domain, Visual Prompt Tuning (VPT) [26] applies a similar soft-prompt mechanism to vision transformers. Despite these advances in natural language processing and computer vision, prompt tuning has been largely unexplored for graph-based models. Our work is the first to explore the use of prompt tuning for GNNs QAT.
II-D Graph Prompting.
Inspired by the success of prompt learning in Natural Language Processing (NLP), graph prompting has emerged as a paradigm to bridge the gap between pre-training and downstream tasks by modifying the input graph rather than fine-tuning the entire model parameters. Early works focused on input-space adaptation: GPF and GPF-Plus [16] introduce learnable vectors to node features, while GraphPrompt+ [27] unifies pre-training and downstream graph tasks through a shared template and inserts learnable prompt vectors across multiple GNN layers. Graph-augmented prompt tuning has also been explored for low-resource text classification [28]. More recently, unified frameworks like UniPrompt [29] and EdgePrompt [30] have attempted to optimize feature and structure prompts simultaneously. Theoretical understanding of this paradigm has also deepened; Wang et al. [31] analyzed graph prompting from a data operation perspective, providing rigorous error bounds and proving that prompts essentially simulate graph transformation operators to align upstream and downstream tasks. Furthermore, to address distribution shifts in complex scenarios such as heterophilic graphs, DAGPrompT [32] proposes a distribution-aware tuning framework that customizes prompts for hop-specific node requirements, significantly pushing the limits of prompting effectiveness.
II-E Parameter-Efficient Fine-Tuning and LoRA on Graphs.
Parallel to prompting, Low-Rank Adaptation (LoRA) has gained traction for efficient model adaptation. In the graph domain, GraphLoRA [33] applies LoRA to GNN weights combined with contrastive learning to enable efficient cross-graph transfer learning without catastrophic forgetting. Similarly, the GLoRA module within DAGPrompT [32] utilizes low-rank adaptation to optimize the GNN encoder’s projection matrices for better distribution alignment. Difference from our work: It is crucial to distinguish our proposed LoRAP from these approaches. While GraphLoRA and DAGPrompT employ LoRA to adapt the model backbone weights for transfer learning tasks, our method applies a low-rank constraint specifically to the aggregation prompt injected into the message-passing stream. To the best of our knowledge, our work is the first to leverage low-rank prompting specifically as a compensation mechanism for Quantization-Aware Training (QAT), using low-rank basis matrices to parameterize input-dependent corrections with fewer trainable parameters.
II-F Quantization in GNNs.
Graph Neural Network (GNN) quantization has recently attracted attention as a means to reduce model size and accelerate inference on graph data [34, 9], complementing scalable graph sampling approaches [35]. Unlike CNNs, GNNs pose unique challenges for quantization. Most notably, the irregular graph topology leads to highly variable node activation magnitudes (due to differing neighbor counts), making naive, uniform low-bit quantization prone to severe accuracy loss [8]. Early attempts to apply standard 8-bit quantization to GNNs often resulted in drastic performance degradation at lower bit-widths [36]. To address these issues, researchers have developed degree-aware, adaptive-precision, and other specialized quantization frameworks that explicitly leverage graph structure. Below, we summarize key approaches and their innovations in the context of GNN quantization.
Recent advances in GNN quantization emphasize leveraging graph structure to guide precision allocation. Degree-Quant (DQ) [8] introduces a stochastic masking scheme during QAT that “protects” high-degree nodes in full precision and employs percentile-based clipping to determine optimal scale ranges, enabling both 4-bit and 8-bit models to nearly match full-precision accuracy. A2Q [13] further augments this idea by learning a mixed-precision assignment for each node according to its aggregation complexity: low-degree nodes use very few bits, while high-degree “hub” nodes receive higher bit-width. Continuous proxies and gradient-friendly approximations allow per-node bit optimization. In conclusion, these graph-aware and adaptive quantization strategies deliver efficient yet high-accuracy GNNs suitable for both large-scale and edge deployments.
III Fundamentals of Graph Neural Networks
Unlike traditional convolutional neural networks that operate on grid-like data, GNNs leverage the graph topology to propagate information across nodes, enabling the model to learn representations that capture the relational inductive biases inherent in graphs. Consider a graph consisting of a set of nodes and edges , where each node is associated with a feature vector . Let the matrix of these features and be the adjacency matrix encoding the connectivity between nodes, where denotes the presence (and possibly the weight) of an edge between nodes and . The message passing mechanism at the core of GNNs consists of three key phases: message passing, aggregation, and node update. In the message passing phase, each node sends a message to its neighbors based on its current state and edge information. The message from node to its neighbor is computed as a function that depends on the node features and the edge features, i.e.,
where and are the features of and at layer and represents the edge feature between and . In the aggregation phase, the messages received from neighbors are combined into a single message for each node. The aggregation function is typically permutation-invariant, ensuring that the order of neighbors does not affect the result. The aggregated message for node can be expressed as
where is the set of neighbors of node , and can be a sum, mean, or max function, depending on the architecture. Each node finally updates its representation based on its current features and the aggregated messages, typically using a learnable function , such as a multi-layer perceptron. The update rule for node at layer is
Fig. 3: The aggregation prompting strategy. Input-dependent prompts are added to the quantized aggregation outputs to compensate for their residuals relative to the full-precision representations.
IV Prompt Tuning For Quantized GNNs
IV-A Quantization and reconstruction error
Following Section II-A, maps real-valued tensors to integer codes and maps those codes back to real units. For node features , write
Each pair uses the same scale and zero-point; different tensors may use different quantization parameters. The feature reconstruction loss is
Feature reconstruction is a common quantization objective [13], but aggregation transforms these feature errors through the graph. Consequently, a small feature error need not produce an equally small aggregation error.
At the same layer input and model checkpoint, let be the full-precision aggregation output and the dequantized aggregation output before prompt insertion. Define
For a continuous prompt output , the corrected representation and its remaining error are
These reconstruction losses describe the correction mechanism. LoRAP is trained with the original QAT objective, as described in Section V-C.
IV-B Post-aggregation correction and optimization geometry
Prompting introduces learnable adjustments that can bring quantized representations closer to their full-precision references. A feature-level example is GPF [16], which adds a shared vector to every node. In Fig. 2, the same scalar adjustment improves one neighborhood’s quantized aggregation but does not simultaneously correct the other, illustrating the restriction of a shared prompt across distinct neighborhoods; GPF-plus instead generates node-dependent prompts.
Aggregation prompting places the correction directly at the aggregation output. To isolate the effect of this placement, fix a linear aggregation operator and the input features, and consider
Here , and the pre-aggregation model inserts after input quantization (distinct from ).
Theorem 1 (Conditional optimization geometry).
Under the fixed-input linear model above, define
Their gradients and Hessians in column-vectorized prompt-output coordinates are
The post-aggregation condition number is . For , the pre-aggregation condition number on its nonzero-curvature subspace is
where is the smallest positive singular value.
Proof.
Differentiating the two quadratic objectives gives the gradients and the Hessian operators and . Stacking matrix columns yields the stated Hessians. The positive eigenvalues of are the squared positive singular values of , which gives the condition number. The full derivation and residual dynamics appear in Appendix A.1. ∎
Post-aggregation placement removes the curvature scaling induced by . A singular introduces flat directions in the pre-aggregation objective, while unequal positive singular values introduce curvature anisotropy.
IV-C Locality of correction outputs
The same model also characterizes how a node’s prompt affects the receiving nodes and their reconstruction gradients.
Theorem 2 (Insertion-level locality and targeted correction).
For fixed and , let denote the prompt vector associated with node , namely the th row of the free matrix . Then
where is the Kronecker delta. Under (6), the node-level gradients satisfy
Proof.
The th rows are and . Differentiation gives the Jacobian blocks. Applying the chain rule to the rowwise squared reconstruction residuals gives the gradients; Appendix A.2 provides the full derivation. ∎
At the insertion site, each post-aggregation prompt vector adjusts only its corresponding receiver, and its reconstruction gradient depends solely on that receiver’s corrected residual. By contrast, a pre-aggregation prompt affects every receiver with , including its own node when .
IV-D Requantization and prediction stability
LoRAP’s corrected representation is requantized for subsequent low-precision operations. Fix the post-insertion quantizer pair , with nearest rounding and scale , and assume no clipping occurs for the inputs under consideration. In real units, define
Theorem 3 (Requantization error bound).
Under the assumptions above, the actual residual and rounding error satisfy
Consequently,
If and is within the representable interval, only rounding error remains. If its entries also lie on the quantization grid, .
Proof.
Substituting gives the residual identity. Each entry incurs rounding error at most , giving the Frobenius bound. The triangle and reverse triangle inequalities yield the two error bounds. See Appendix A.3 for the full proof and extensions. ∎
For the same quantizer, let be the zero-prompt error. The correction benefit survives requantization whenever
\varepsilon(P)+b_{q}<e_{\mathrm{base}}\quad\Longrightarrow\quad e_{q}(P)<e_{\mathrm{base}}.
Thus any realized prompt, including LoRAP’s low-rank output, reduces the post-requantization error whenever its continuous residual satisfies (14).
Appendix A.3 extends this single-layer bound to an -layer GNN with full-precision outputs and prompted quantized outputs . When each reference layer is -Lipschitz in the Frobenius norm and both branches start from the same input, the final representation error satisfies
where is the Frobenius discrepancy between the th full-precision and prompted quantized layer outputs evaluated at (accounting for aggregation, weight update, and activation errors). When and are the reference and prompted quantized logit matrices with node rows and , suppose node has a unique reference prediction with margin . Since , having (or more generally ) preserves the predicted class without requiring zero reconstruction error.
IV-E Transfer to low-rank prompt parameterization
Appendix A.6 extends Theorems 1–3 from unconstrained prompt outputs to LoRAP’s shared low-rank Softmax parameterization introduced in Section V. In factor coordinates, post-aggregation curvature remains independent of , and for fixed routing weights every critical point of is either a global minimum or a strict saddle with no spurious local minima, whereas pre-aggregation low-rank prompting inherits spectral scaling and flat directions from . For shared parameters, post-aggregation gradients pair each node’s feature and routing weight solely with its own unmixed receiver residual rather than the neighbor-mixed residual induced by . Moreover, when (), Softmax convex combinations can span both signs across the top- singular subspace of , extending the post-requantization guarantee (14) to both uniform and heterogeneous quantization scales.
Fig. 4: To insert low-rank prompts in an aggregation, we first get the aggregated feature for a set of quantized nodes. Then the aggregated feature is used to perform a weighted sum of the basis vectors (composed of low-rank matrices) to produce the prompt The prompt is then added to the aggregated feature. The prompt generation procedure is in high-precision, other GNN operations are in low-precision.
V Low-Rank Aggregation Prompt Tuning
Fig. 4 illustrates the proposed method, whose components are discussed in the following subsections.
V-A Aggregation prompt insertion
At layer , LoRAP inserts node-dependent prompt vectors into the dequantized aggregation output (corresponding to in Section IV). Let denote the th row of , and stack the node prompt vectors into (denoted by in Section IV). Following (5), the continuous corrected output is
As established by Theorems 1 and 2, this placement gives each prompt direct receiver-level access to the aggregation residual under the reconstruction metric (6), while Theorem 3 characterizes how the achieved residual carries through requantization.
V-B Input-dependent low-rank aggregation prompt
Different neighborhoods can require different corrections. To generate node-dependent prompts without storing a separate trainable vector for every node, LoRAP combines a small set of shared prompt bases using input-dependent weights. Specifically, for each layer in a GNN with layers, we learn a set of prompt bases , where each and is a hyperparameter. Using reduces the number of trainable basis vectors. We then propose to use a high-precision input-dependent linear function followed by a softmax to map the dequantized aggregated feature to a probability distribution \bm{\alpha}_{i}^{(l)}\in\mathbb{R}^{k} where the element represents the weight or importance of the corresponding basis prompt vector , i.e.,
\bm{\alpha}_{i}^{(l)}=\mathrm{Softmax}\bigl(\phi(\widehat{\mathbf{s}}_{i}^{(l)})\bigr)\,.
The probabilities \bm{\alpha}_{i}^{(l)} are positive and ensure that the weights sum to 1, which means they can be interpreted as the relative importance of each basis vector in constructing the final output. In our implementation, layers sharing the same aggregation width share the linear projection while maintaining layer-specific prompt bases (layers with different aggregation widths use layer-specific projections). Using these learned probabilities, the prompt is defined as the convex combination of basis vectors
The generated prompt is input-dependent as it is dynamically formed by combining the learned basis vectors with weights that are produced based on the aggregation features.
TABLE I: The results of 3 quantization frameworks with FP32 baselines at the top. We provide three quantization frameworks for INT4: standard QAT, Degree-Quant (DQ), and . They are validated on 3 model architectures with four adaptation settings: (1) no prompts, (2) GPF-plus, (3) GraphLoRA, and (4) GPF-LoRAP. For each quantization framework and model architecture, the best result among the four settings is highlighted in bold, while the second-best result is shown in italics. Rankings use unrounded means.
| Quant. | Model | Adaptation | Node Classification (Accuracy %) | Graph Classification (Accuracy %) | Graph Regression (Loss) | ||
|---|---|---|---|---|---|---|---|
| Frame. | Arch. | Method | Cora | Citeseer | MNIST | CIFAR-10 | ZINC |
| FP32 | GIN | None | |||||
| GCN | |||||||
| GAT | |||||||
| QAT | GIN | None | \mathit{0.555\pm 0.024} | ||||
| GPF-plus | \bm{45.6\pm 3.0} | \mathit{55.3\pm 0.9} | |||||
| GraphLoRA | \mathit{25.7\pm 4.5} | \mathit{95.6\pm 0.7} | |||||
| GPF-LoRAP | \mathit{45.1\pm 2.8} | {\color[rgb]{0,0,0}\bm{28.6\pm 2.4}} | {\color[rgb]{0,0,0}\bm{96.6\pm 0.2}} | \bm{55.8\pm 0.5} | \bm{0.528\pm 0.017} | ||
| DQ | GIN | None | |||||
| GPF-plus | \mathit{63.1\pm 3.5} | ||||||
| GraphLoRA | \mathit{72.8\pm 1.8} | \mathit{93.1\pm 0.7} | \mathit{51.7\pm 0.8} | \mathit{0.539\pm 0.007} | |||
| GPF-LoRAP | {\color[rgb]{0,0,0}\bm{75.2\pm 0.6}} | \bm{64.6\pm 2.3} | {\color[rgb]{0,0,0}\bm{94.3\pm 0.3}} | \bm{53.0\pm 0.9} | \bm{0.512\pm 0.008} | ||
| GIN | None | \mathit{77.4\pm 0.9} | \mathit{66.6\pm 0.1} | ||||
| GPF-plus | \mathit{95.9\pm 0.4} | \mathit{56.8\pm 1.4} | \mathit{0.399\pm 0.009} | ||||
| GraphLoRA | |||||||
| GPF-LoRAP | \bm{78.5\pm 1.0} | \bm{70.7\pm 0.6} | \bm{96.4\pm 0.2} | \bm{57.4\pm 1.4} | \bm{0.361\pm 0.010} | ||
| QAT | GCN | None | \mathit{63.4\pm 2.2} | \mathit{0.707\pm 0.056} | |||
| GPF-plus | \mathit{71.5\pm 1.3} | ||||||
| GraphLoRA | \mathit{70.1\pm 3.9} | \mathit{43.6\pm 0.9} | |||||
| GPF-LoRAP | \bm{71.3\pm 8.3} | \bm{63.9\pm 2.2} | \bm{73.6\pm 1.2} | {\color[rgb]{0,0,0}\bm{47.2\pm 2.2}} | \bm{0.690\pm 0.021} | ||
| DQ | GCN | None | \mathit{72.5\pm 3.7} | \mathit{68.6\pm 3.3} | |||
| GPF-plus | \bm{71.4\pm 3.1} | \mathit{90.9\pm 0.7} | \mathit{51.1\pm 0.5} | \mathit{0.534\pm 0.017} | |||
| GraphLoRA | |||||||
| GPF-LoRAP | \bm{78.0\pm 2.5} | \bm{92.4\pm 0.5} | \bm{53.4\pm 0.5} | {\color[rgb]{0,0,0}\bm{0.529\pm 0.014}} | |||
| GCN | None | \mathit{0.504\pm 0.009} | |||||
| GPF-plus | \mathit{78.0\pm 0.1} | \mathit{70.0\pm 2.3} | \mathit{91.0\pm 0.5} | \mathit{53.2\pm 1.0} | |||
| GraphLoRA | |||||||
| GPF-LoRAP | \bm{79.1\pm 0.1} | \bm{71.8\pm 0.7} | \bm{91.8\pm 0.6} | \bm{53.5\pm 1.2} | \bm{0.482\pm 0.011} | ||
| QAT | GAT | None | \mathit{30.1\pm 14.5} | ||||
| GPF-plus | \mathit{77.5\pm 0.9} | \mathit{43.1\pm 1.2} | |||||
| GraphLoRA | \mathit{65.4\pm 2.0} | \mathit{0.606\pm 0.010} | |||||
| GPF-LoRAP | \bm{66.8\pm 1.6} | \bm{40.6\pm 7.3} | \bm{78.2\pm 1.1} | \bm{43.8\pm 0.7} | \bm{0.581\pm 0.013} | ||
| DQ | GAT | None | \mathit{0.556\pm 0.022} | ||||
| GPF-plus | |||||||
| GraphLoRA | \mathit{69.5\pm 8.0} | \mathit{63.2\pm 3.3} | \mathit{94.7\pm 0.4} | \mathit{58.6\pm 1.0} | |||
| GPF-LoRAP | \bm{72.5\pm 2.3} | {\color[rgb]{0,0,0}\bm{63.2\pm 1.0}} | {\color[rgb]{0,0,0}\bm{94.9\pm 0.2}} | {\color[rgb]{0,0,0}\bm{61.5\pm 0.3}} | \bm{0.508\pm 0.023} | ||
| GAT | None | \mathit{92.5\pm 0.6} | |||||
| GPF-plus | \mathit{83.4\pm 0.5} | \mathit{71.8\pm 0.2} | \mathit{62.3\pm 1.4} | ||||
| GraphLoRA | \mathit{0.581\pm 0.023} | ||||||
| GPF-LoRAP | \bm{83.6\pm 0.6} | \bm{72.5\pm 0.8} | \bm{93.1\pm 0.7} | \bm{62.9\pm 1.0} | {\color[rgb]{0,0,0}\bm{0.547\pm 0.008}} |
In our implementation, the set of prompt bases is stacked as a matrix . Storing across layers requires basis parameters. To improve parameter efficiency, we factorize into two high-precision low-rank matrices, and , where the rank budget , giving . This in turn reduces the number of parameters from to . Given the quantized matrix of aggregated features , we then incorporate our input-dependent low-rank prompts into the -th GNN layer as
\mathbf{\hat{S}}^{(l)}=DQ(\mathbf{S}^{(l)}_{q})
\mathbf{P}^{(l)}_{s}=\textrm{Softmax}\left(\phi(\mathbf{\hat{S}}^{(l)})\right)\mathbf{P}^{(l)}_{A}\mathbf{P}^{(l)}_{B}
\mathbf{S}^{(l)*}_{q}=Q(\mathbf{\hat{S}}^{(l)}+\mathbf{P}^{(l)}_{s})\,,
where is the dequantization operator defined in Section II-A. Since , the realized prompt has rank at most , and Theorem 3 bounds the post-requantization error of . Finally, the obtained prompted aggregation feature is used for further low-precision operations. By doing so, the gradient flows through the quantized weights to the full-precision prompts during the optimization process, allowing the learned prompt to be aware of the quantization effects. This awareness allows the model, when making predictions, to adapt its behavior to compensate for the low-bit representation, potentially leading to improved performance.
V-C QAT frameworks & LoRAP integration
LoRAP retains the task objective of the host QAT framework (see Section II-B), jointly updating the prompt parameters (routing map and low-rank factors), the backbone weights , and any trainable quantizer parameters without freezing the backbone or adding an auxiliary reconstruction loss:
Although these coupled task-loss updates differ from fixed-residual gradient descent, Appendix A.4 shows that at every iteration , the current backbone and quantizer state define , , and the realized prompt for which Theorem 3 bounds the post-requantization error pointwise via and the current scale .
V-D LoRAP kernel
Although the low-rank prompt generator uses small factor matrices, executing it as a series of sequential operations incurs a notable latency overhead, totaling 93.5 s as illustrated in Fig. 5. For such lightweight projections (e.g., GEMMs) and element-wise additions, the bottleneck shifts from computation to memory access, as intermediate activations must be repeatedly loaded from and stored to DRAM. To address this, we propose to fuse the LoRAP kernel using Triton [37], a Python-based GPU programming framework. By fusing the low-rank prompt generation and the residual addition directly into the aggregation operation, the LoRAP kernel allows intermediate states to be exchanged via the GPU register file or shared memory. This design eliminates redundant global memory accesses and kernel launch overheads, reducing the latency to 44.5 s (a 2.1 speedup) and effectively rendering the prompt injection process more efficient.
VI Experiments
We integrate our prompt tuning strategy into 4 graph QAT frameworks to restore their performance under INT4 quantization bit-width, specifically standard QAT [17], Degree-Quant (DQ) [8], [13], and MixQ [38]. The GNN architectures employed in our experiments include GIN [39], GCN [40], and GAT [41]. Evaluation results are reported across both node-level and graph-level tasks. For node-level tasks, the Cora, CiteSeer, and PubMed datasets are utilized, as well as large-scale OGB benchmarks (ogb-arxiv, ogb-products, and ogbn-mag) to verify scalability. For graph-level tasks, the REDDIT-BINARY, MNIST, CIFAR10, and ZINC datasets are adopted, where ZINC is specifically used for regression tasks. To provide a comparative baseline, we employ SOTA graph prompting methods, including GPF-plus, UniPrompt [29], and EdgePrompt+ [30], as well as the low-rank graph adapter GraphLoRA [33] (adapted to QAT as detailed in Appendix B.1), for performance recovery of quantized GNNs. Detailed descriptions of the datasets are provided in Section VI-A1. Since GPF-plus and LoRAP can be seen as complementary approaches, our implementation integrates GPF-plus into the input feature space and LoRAP into the aggregation feature space, denoted as GPF-LoRAP. The additional hyperparameters introduced in our approach include the number of prompts () and the rank (). For fair comparison, other hyperparameters retain the same configurations as those used in the original quantization frameworks, with only and subjected to tuning. We also conduct experiments on full-precision (FP32) models to determine if prompt tuning can bring the performance of low-precision GNNs to that of FP32 ones. We then evaluate inference latency to show that incorporating prompts into quantized GNNs introduces a negligible computational overhead. Finally, we perform ablation studies to separate the effect of different prompting strategies.
VI-A Datasets
TABLE II: Overall statistics for the datasets used in this work.
| Task | Name | Graphs | Nodes | Edges | Features | Classes |
|---|---|---|---|---|---|---|
| Node-level | Cora | 1 | 2,708 | 10,556 | 1,433 | 7 |
| CiteSeer | 1 | 3,327 | 9,104 | 3,703 | 6 | |
| PubMed | 1 | 19,717 | 88,648 | 500 | 3 | |
| OGB-Arxiv | 1 | 169,343 | 1,166,243 | 128 | 40 | |
| OGB-Products | 1 | 2,449,029 | 61,859,140 | 100 | 47 | |
| OGB-Mag | 1 | 1,939,743 | 25,582,108 | 128 | 349 | |
| Graph-level | REDDIT-BINARY | 2000 | 429.6 | 995.5 | 0 | 2 |
| MNIST | 70000 | 71 | 565 | 3 | 10 | |
| CIFAR10 | 60000 | 117.6 | 941.2 | 5 | 10 | |
| ZINC | 12000 | 23 | 49.8 | 28 | — |
Table II summarizes the key properties of all datasets considered in this paper. For node-level tasks, we utilize the standard citation networks Cora, CiteSeer, and PubMed, in which each node represents a document and each edge represents a citation link. To verify scalability, we also incorporate large-scale OGB benchmarks, including OGB-Arxiv, OGB-Products, and the heterogeneous OGB-Mag. In these datasets, node features are primarily bag-of-words vectors or pretrained features, and the task is to predict node classes in a semi-supervised setting [40].
For graph-level tasks, MNIST and CIFAR-10 are image-classification datasets converted into superpixel graphs using SLIC, where nodes correspond to perceptually similar pixel clusters [42]. ZINC consists of molecular graphs with atoms as nodes and bonds as edges for regression tasks [43]. REDDIT-BINARY is a social network graph dataset extracted from Reddit discussion threads, where nodes represent users and edges denote interactions between users.
MNIST, CIFAR-10, ZINC, and OGB use their standard train/validation/test splits. Citation networks use the semi-supervised split from [40]; REDDIT-BINARY performance is reported as mean accuracy over 10-fold cross-validation.
VI-B Experimental Setup
To ensure a fair comparison, we replicate the GNN architectures and FP32 baselines from DQ [8] and A2Q [13] across all tasks. Table III details the specific configurations (number of layers, hidden-unit sizes, and the presence of skip connections) used in our experiments. We implement the QAT, DQ, and A2Q frameworks in PyTorch Geometric [44], adhering to the original hyperparameter settings of each method. All quantized models are trained with the Adam optimizer; the only parameters we vary are the number of prompts , selected from , and the prompt rank , chosen from with . Results on Cora, CiteSeer, and ogb-arxiv are averaged over 100 independent runs with different random seeds, while results on MNIST, CIFAR-10, and ZINC are averaged over 10 runs. For REDDIT-BINARY, we perform 10-fold cross-validation with a fixed split seed of 12345.
For the classification tasks (Cora, CiteSeer, PubMed, MNIST, CIFAR-10, REDDIT-BINARY), we report the accuracy
where and are the true and predicted labels, respectively, and is the indicator function.
For the regression task on ZINC, we use the Mean Absolute Error (MAE) loss
where is the ground-truth property value and is the model prediction.
As for the experimental environment, all experiments were carried out on servers featuring an AMD EPYC 9124 16-core CPU paired with four NVIDIA RTX 4090 GPUs and running Ubuntu 22.04. Each node has 512 GB of RAM, and we used CUDA 12.7 with PyTorch 2.7.0 for all GPU-accelerated workloads.
TABLE III: Architectural configurations on selected datasets.
| Model | Property | Cora | CiteSeer | MNIST | CIFAR10 | ZINC | REDDIT-BINARY |
|---|---|---|---|---|---|---|---|
| GCN | Layers | 2 | 2 | 5+1 MLP | 5+1 MLP | 5+1 MLP | – |
| Hidden units | 16 | 16 | 146 | 146 | 145 | – | |
| Skip connection | NO | NO | YES | YES | YES | – | |
| GIN | Layers | 2 | 2 | 5+1 MLP | 5+1 MLP | 5+1 MLP | 5 |
| Hidden units | 16 | 16 | 110 | 110 | 110 | 64 | |
| Skip connection | NO | NO | YES | YES | YES | NO | |
| GAT | Layers | 2 | 2 | 5+1 MLP | 5+1 MLP | 5+1 MLP | – |
| Hidden units | – | ||||||
| Skip connection | NO | NO | YES | YES | YES | – |
VII Results
VII-A Main results
We show how our prompt learning strategy improves the performance of 3 INT4 QAT frameworks in the Table I. Full-precision (FP32) baselines are shown at the top. Under the naive QAT framework (INT4 QAT), all architectures suffer severe accuracy drops when no prompt is used (e.g., for GIN, Cora accuracy falls from to ). Introducing GPF-plus yields only a marginal recovery, whereas GPF-LoRAP consistently narrows this gap, improving GIN by +0.9%/+9.9% on Cora/Citeseer, GCN by +4.9%/+0.5%, and GAT by +14.0%/+10.5%, while also boosting graph classification (+7.1% for GIN on CIFAR-10). Under DQ, which already retains more of the original accuracy, GPF-LoRAP further boosts performance across the board, confirming its generality. Even with the framework, which already narrows the FP32 gap, GPF-LoRAP delivers consistent improvements. By contrast, while GraphLoRA is competitive in several DQ settings (e.g., reaching 72.8% on Cora with GIN), it exhibits marked instability under and standard QAT (e.g., dropping from 66.6% to 38.3% on CiteSeer under -GIN and from 70.6% to 40.3% on MNIST under QAT-GCN), indicating that weight-side adapters are less reliable under aggressive quantization. Remarkably, when combined with the quantization, GPF-LoRAP not only recovers nearly all of the performance lost to low-bit compression but actually surpasses the original FP32 baseline in several cases. For example, on Cora, GIN quantized with and equipped with our prompts achieves 78.5% accuracy, outperforming the 77.6% of the full-precision mode. In summary, GPF-LoRAP outperforms both the unprompted baseline and the GPF-plus strategy, often halving the remaining accuracy gap with the FP32 model. The benefits are pronounced across nearly all settings, demonstrating that GPF-LoRAP can act as a general training strategy for GNN QAT frameworks.
Fig. 5: Latency comparison.
TABLE IV: Results for QAT & DQ GIN in INT4 & 8 on Reddit-Binary.
| Quant. Frame. | Model | Prompt Method | REDDIT-BIN (Acc. %) |
|---|---|---|---|
| FP32 | GIN | None | |
| QAT-W8A8 | GIN | None | |
| GPF-plus | |||
| GPF-LoRAP | (+\bm{5.1}) | ||
| DQ-W8A8 | GIN | None | |
| GPF-plus | |||
| GPF-LoRAP | (+\bm{2.8}) | ||
| QAT-W4A4 | GIN | None | |
| GPF-plus | |||
| GPF-LoRAP | (+\bm{17.2}) | ||
| DQ-W4A4 | GIN | None | |
| GPF-plus | |||
| GPF-LoRAP | (+\bm{3.6}) |
VII-B Results on different bit widths
Table IV presents the Reddit-Binary classification accuracy of GIN under different bit-widths, using both standard QAT and DQ, with three prompting strategies: (1) no prompts, (2) node prompting with GPF-plus, and (3) GPF-LoRAP.
While standard GPF-plus is unstable and sometimes lowers the accuracy, GPF-LoRAP consistently improves performance (+5.1% under QAT-W8A8) and even pushes the accuracy beyond the full-precision baseline in the stronger DQ-W8A8 setting (+2.8%). Moreover, in the aggressive INT4 regime, when the model fails severely under QAT-W4A4, GPF-LoRAP provides a substantial recovery (+17.2%).
TABLE V: Ablation study for A2Q GIN on the MNIST dataset.
| Config | Average bits | #Additional Parameters | MNIST (Acc. %) |
|---|---|---|---|
| FP32 | 32 | 0KB | |
| INT4 | 4 | 0KB | |
| + GPF-plus | 4 | 17.26KB | |
| GraphLoRA | 4 | 20.67KB | |
| + GPF-plus + LoRAP (GPF-LoRAP) | 4 | 26.95KB | |
| A2Q | 3.75 | 0KB | |
| + GPF-plus | 3.75 | 17.26KB | |
| GraphLoRA | 3.75 | 20.67KB | |
| + EdgePrompt+ | 3.78 | 103.44KB | |
| + AP | 3.78 | 43.03KB | |
| + LoRAP | 3.76 | 9.69KB | |
| + GPF-plus + AP | 3.78 | 60.29KB | |
| + GPF-plus + LoRAP (GPF-LoRAP) | 3.76 | 26.95KB |
VII-C Results on large-scale datasets
To verify the scalability of our approach, we extended our evaluation to three large-scale benchmarks: ogb-arxiv, ogb-products, and the heterogeneous graph ogbn-mag. As shown in Table VI, LoRAP consistently yields the highest accuracy across all tasks and quantization frameworks. A crucial observation is that standard node-level prompting method GPF-Plus struggle in these large-scale quantized settings. For instance, on the heterogeneous ogbn-mag dataset under the A2Q framework, applying GPF-Plus actually degrades the baseline performance from 32.7% to 30.4%. In contrast, LoRAP raises the accuracy to 34.2%. Similarly, on ogb-products, LoRAP improves the MixQ baseline by a solid margin (+2.5%), validating its robustness and effectiveness in handling diverse graph structures and scales.
TABLE VI: Performance comparison on large-scale datasets.
| Task | Method | Acc | Bits |
|---|---|---|---|
| ogb- arxiv (GCN) | FP32 | 32 | |
| A2Q | 2.7 | ||
| +GPF-Plus | 2.7 | ||
| +UniPrompt | 2.7 | ||
| +LoRAP | 2.7 | ||
| MixQ | 7.1 | ||
| +GPF-Plus | 7.1 | ||
| +UniPrompt | 7.1 | ||
| +LoRAP | 7.0 | ||
| ogb-products (GraphSAGE) | FP32 | 32 | |
| MixQ | 5.0 | ||
| +GPF-Plus | 5.0 | ||
| +UniPrompt | 4.9 | ||
| +LoRAP | 5.0 | ||
| ogbn-mag (GCN) | FP32 | 32 | |
| A2Q | 2.7 | ||
| +GPF-Plus | 2.9 | ||
| +UniPrompt | 2.9 | ||
| +LoRAP | 2.7 |
VII-D Latency comparison
In Table VII, we report the latency for a single GCN layer on the CIFAR-10 dataset. The hardware for testing is an AMD EPYC 9124 16-Core CPU paired with an Nvidia RTX4090 GPU.
On the CPU, quantizing both weights and activations to 8 bits achieves a 2.39 speedup over the FP32 baseline. Incorporating the FP32 LoRAP prompt module on top of the W8A8 layer incurs minimal cost, still running almost 2.00 faster than the original FP32 layer. On the GPU, the efficiency is further improved by our fused kernel design. Specifically, the INT4+LoRAP (fused kernel) maintains a 1.86 speedup compared to the FP32 baseline, demonstrating that the overhead of prompt injection is effectively mitigated. End-to-end full-graph GPU latency, peak memory, and model storage results on ogbn-arxiv are provided in Appendix B.3.
TABLE VII: Latency and Speedup comparison on CPU and GPU devices. Speedup is calculated relative to the FP32 baseline.
| Device | Setting | Latency | Speedup |
|---|---|---|---|
| CPU | FP32 | 36.66ms | 1.00 |
| INT8 | 15.36ms | 2.39 | |
| INT8+LoRAP | 18.29ms | 2.00 | |
| INT4 | 11.78ms | 3.11 | |
| INT4+LoRAP | 14.77ms | 2.48 | |
| GPU | FP32 | 0.69ms | 1.00 |
| INT8 | 0.43ms | 1.60 | |
| INT8+LoRAP | 0.52ms | 1.33 | |
| INT8+LoRAP (fused) | 0.48ms | 1.44 | |
| INT4 | 0.33ms | 2.09 | |
| INT4+LoRAP | 0.42ms | 1.64 | |
| INT4+LoRAP (fused) | 0.37ms | 1.86 |
TABLE VIII: GPF-LoRAP with A2Q (INT4) for GIN on ZINC, mean std deviation for varying number of prompts and rank .
r\backslash k | 5 | 10 | 20 | 40 |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 4 | ||||
| 8 | — |
VII-E Ablation study
Table V presents an ablation study on the MNIST dataset using -quantized GIN models to isolate the impact of different adaptation strategies, including GPF-plus, GraphLoRA, EdgePrompt+, full-rank aggregation prompting (AP), and our proposed GPF-LoRAP.
EdgePrompt+ and GraphLoRA both degrade performance despite incurring higher parameter overhead (103.44 KB and 20.67 KB, respectively). In contrast, the low-rank constraint in LoRAP demonstrates superior parameter efficiency by outperforming the full-rank AP strategy while requiring significantly fewer trainable parameters (9.69 KB). Furthermore, there is a clear synergy between node and aggregation prompting: while GPF-plus and LoRAP individually improve over the baseline, their combination (GPF-LoRAP) yields the strongest gain, successfully bridging the gap to match the FP32 benchmark. Additional control comparisons against an equal-capacity MLP and FP32 prompting on Cora, CiteSeer, and PubMed are reported in Appendix B.2.
VII-F Impact of the Number of Prompts and the Aggregation Rank
Table VIII reports the mean loss of GPF-LoRAP using A2Q (INT4) and GIN on the ZINC dataset for different numbers of prompts and aggregation rank with . For low ranks, as increases from 5 to 40, the loss generally decreases: at it drops from 0.382 to 0.368 and at from 0.370 to the overall minimum of 0.361. For higher ranks ( and ), the lowest losses occur at (0.373) and (0.374), respectively, before slightly rising at . Overall, the best performance is achieved at with a mean loss of 0.361, confirming that moderate prompt counts and rank values yield the lowest prediction error. The optimal trade-off between prompt count and rank depends on the performance and computational budget.
TABLE IX: Comparison of accuracy and bit-width on node and graph classification tasks.
| Prompt Method | Node Classification | Graph Classification | ||||||
|---|---|---|---|---|---|---|---|---|
| Quant. | Task | Acc | Bits | Quant. | Task | Acc | Bits | |
| None | DQ | Cora-GCN | 4.0 | QAT | Reddit-Binary | 4.0 | ||
| GPF-Plus | 4.0 | 4.0 | ||||||
| UniPrompt | 4.0 | - | - | |||||
| EdgePrompt+ | 4.0 | 4.0 | ||||||
| LoRAP | 4.0 | 4.0 | ||||||
| GPF-LoRAP | 4.0 | 4.0 | ||||||
| None | A2Q | Cora-GCN | 1.7 | A2Q | MNIST | 3.8 | ||
| GPF-Plus | 1.7 | 3.8 | ||||||
| UniPrompt | 1.7 | - | - | |||||
| EdgePrompt+ | 1.7 | 3.8 | ||||||
| LoRAP | 1.7 | 3.8 | ||||||
| GPF-LoRAP | 1.7 | 3.8 | ||||||
| None | MixQ | Cora-GCN | 3.8 | MixQ | Reddit-Binary | 5.9 | ||
| GPF-Plus | 3.8 | 5.8 | ||||||
| UniPrompt | 3.9 | - | - | |||||
| EdgePrompt+ | 3.8 | 5.8 | ||||||
| LoRAP | 3.8 | 5.7 | ||||||
| GPF-LoRAP | 3.8 | 5.7 |
VII-G Training Time Evaluation
TABLE X: Training time for various quantization frameworks and prompting strategies on Reddit-Binary with GIN (INT4).
| Quant. Framework | Accuracy | Training Time |
|---|---|---|
| QAT | 74.67s | |
| QAT-GPF-plus | 79.86s | |
| QAT-GPF-LoRAP | 78.36s | |
| DQ | 6398.54s | |
| DQ-GPF-plus | 6446.86s | |
| DQ-GPF-LoRAP | 6442.77s | |
| A2Q | 1040.29s | |
| A2Q-GPF-plus | 1063.73s | |
| A2Q-GPF-LoRAP | 1048.08s |
Table X reports the average accuracy (mean std deviation over 10 seeds) and total training time for each quantization framework on Reddit-Binary with GIN (INT4), measured on a single Intel i5-14600KF CPU machine with 64GB RAM, one RTX 4090 GPU, and running Ubuntu 22.04. In the QAT setting, adding GPF-plus increases the training time from 74.67s to 79.86s, while GPF-LoRAP requires 78.36s. Under DQ, the baseline runtime of 6398.54s is only marginally affected by prompting: DQ-GPF-plus and DQ-GPF-LoRAP take 6446.86s and 6442.77s, respectively. For A2Q, GPF-plus adds 23.44s and GPF-LoRAP adds 7.79s to the 1040.29s baseline. These results confirm that GPF-plus and GPF-LoRAP introduce only minimal additional training cost across all quantization frameworks.
VII-H Impact of Different Aggregation Methods
We further evaluate the robustness of our method across different aggregation mechanisms, namely sum, mean, and max. As shown in Table XI, GPF-LoRAP consistently achieves the best performance across all settings. A key observation is that node prompting (GPF) exhibits instability depending on the aggregation type; specifically, it suffers a significant performance drop in the sum aggregation (decreasing from 77.4% to 72.7%). We hypothesize that adding prompts directly to node features can disrupt the magnitude of aggregated signals when simple summation is used. With post-aggregation prompting, GPF-LoRAP recovers the lost accuracy and reaches 78.5%. Furthermore, GPF-LoRAP outperforms the baselines in both mean (78.7%) and max (77.9%) aggregations, demonstrating that our aggregation-aware strategy effectively generalizes to various message-passing dynamics.
TABLE XI: Performance comparison with different aggregation functions.
| sum | mean | max | |
|---|---|---|---|
| None | |||
| GPF | |||
| GPF-LoRAP |
VII-I Comparison with State-of-the-Art Prompting Methods
We further benchmark GPF-LoRAP against recent state-of-the-art graph prompting baselines, including UniPrompt and EdgePrompt, integrated into four distinct quantization frameworks: QAT, DQ, A2Q, and MixQ. As presented in Table IX, GPF-LoRAP consistently outperforms all competing methods across both node and graph classification tasks. For instance, under the DQ framework on the Cora-GCN task, GPF-LoRAP achieves an accuracy of 78.0%, significantly surpassing UniPrompt (72.8%) and EdgePrompt (73.1%). A particularly striking improvement is observed on the Reddit-Binary dataset, where adding LoRAP to the QAT baseline boosts accuracy from 52.4% to 70.1%, demonstrating substantial recovery of classification performance under quantization. These results confirm that LoRAP serves as a robust and generalized plug-and-play module for enhancing various QAT strategies.
VIII Conclusion
In this article, we proposed LoRAP, which is a low-rank aggregation prompting method for improving quantization-aware training of graph neural networks. By introducing input-dependent aggregation prompts into the message-passing process, LoRAP provides a flexible correction mechanism for quantized GNNs under low-bit representations. Different from conventional node-level prompting methods that modify input features before graph aggregation, LoRAP directly operates on the aggregated representations, allowing the model to compensate for aggregation-level quantization errors caused by neighborhood-dependent feature propagation. By representing aggregation prompts with low-rank basis matrices, LoRAP maintains parameter efficiency while preserving sufficient adaptability for different graph structures and node neighborhoods. Furthermore, LoRAP can be seamlessly integrated into existing GNN QAT frameworks without introducing additional loss functions or changing their original optimization objectives.
Our experiments span graph learning tasks, quantization frameworks, and GNN architectures. The results show that LoRAP, when combined with GPF-plus, is able to recover the lost performance and, in several cases, surpasses the accuracy of full-precision models, all while adding minimal overhead. The consistent improvements across node classification, graph classification, and graph regression tasks demonstrate that aggregation-level prompting is highly adaptable to different graph scenarios. In particular, the results on large-scale benchmarks further verify the scalability of LoRAP, while the latency comparison and ablation studies show that the proposed low-rank design achieves a favorable balance between accuracy recovery and computational efficiency. Therefore, when low-bit GNNs are required for resource-constrained environments but suffer from severe quantization-induced degradation, LoRAP can be used as an effective and general plug-in strategy to improve model performance.
Although LoRAP achieves promising performance across different settings, it still requires a prompt generation phase during training and inference, and its effectiveness may depend on the choice of prompt number and rank. Moreover, this work mainly focuses on quantization-aware training, while its compatibility with post-training quantization and other compression techniques has not been fully explored. Future work will aim to further reduce the prompt generation cost, extend LoRAP to more complex graph settings such as dynamic graphs, heterogeneous graphs, and graph foundation models.
References
- [1] Z. Zhang, P. Cui, and W. Zhu (2022) Deep learning on graphs: a survey. IEEE Transactions on Knowledge and Data Engineering 34 (1), pp. 249–270. Document
- [2] L. Hetzel, D. S. Fischer, S. Günnemann, and F. J. Theis (2021) Graph representation learning for single-cell biology. Current Opinion in Systems Biology 28, pp. 100347.
- [3] P. Reiser, M. Neubert, A. Eberhard, L. Torresi, C. Zhou, C. Shao, H. Metni, C. van Hoesel, H. Schopmans, T. Sommer, et al. (2022) Graph neural networks for materials science and chemistry. Communications Materials 3 (1), pp. 93.
- [4] G. Minello, A. Bicciato, L. Rossi, A. Torsello, and L. Cosmo (2025) Graph generation via spectral diffusion. In The Thirteenth International Conference on Learning Representations,
- [5] S. Wu, F. Sun, W. Zhang, X. Xie, and B. Cui (2022) Graph neural networks in recommender systems: a survey. ACM Computing Surveys 55 (5), pp. 1–37.
- [6] L. Tang and H. Liu (2010) Graph mining applications to social network analysis. Managing and mining graph data, pp. 487–513.
- [7] S. Rahmani, A. Baghbani, N. Bouguila, and Z. Patterson (2023) Graph neural networks for intelligent transportation systems: a survey. IEEE Transactions on Intelligent Transportation Systems 24 (8), pp. 8846–8885.
- [8] Tailor (2020) Degree-quant: quantization-aware training for graph neural networks. arXiv preprint arXiv:2008.05000.
- [9] L. Ma, Z. Sheng, X. Li, X. Gao, Z. Hao, L. Yang, X. Nie, J. Jiang, W. Zhang, and B. Cui (2025) Acceleration algorithms in GNNs: a survey. IEEE Transactions on Knowledge and Data Engineering 37 (6), pp. 3173–3192. Document
- [10] T. Dettmers, M. Lewis, Y. Belkada, and L. Zettlemoyer (2022) Gpt3. int8 (): 8-bit matrix multiplication for transformers at scale. Advances in neural information processing systems 35, pp. 30318–30332.
- [11] B. Feng, Y. Wang, X. Li, S. Yang, X. Peng, and Y. Ding (2020) Sgquant: squeezing the last bit on graph neural networks with specialized quantization. In 2020 IEEE 32nd international conference on tools with artificial intelligence (ICTAI), pp. 1044–1052.
- [12] Z. Li, X. Liu, B. Zhu, Z. Dong, Q. Gu, and K. Keutzer (2023) Qft: quantized full-parameter tuning of llms with affordable resources. arXiv preprint arXiv:2310.07147.
- [13] Z. Zhu, F. Li, Z. Mo, Q. Hu, G. Li, Z. Liu, X. Liang, and J. Cheng (2023) Aggregation-aware quantization for graph neural networks. arXiv preprint arXiv:2302.00193.
- [14] Z. Xu, Z. Liu, B. Chen, S. Zhong, Y. Tang, J. Wang, K. Zhou, X. Hu, and A. Shrivastava (2024) Soft prompt recovers compressed llms, transferably. In Forty-first International Conference on Machine Learning,
- [15] T. Dettmers, A. Pagnoni, A. Holtzman, and L. Zettlemoyer (2024) Qlora: efficient finetuning of quantized llms. Advances in Neural Information Processing Systems 36.
- [16] T. Fang, Y. Zhang, Y. Yang, C. Wang, and L. Chen (2024) Universal prompt tuning for graph neural networks. Advances in Neural Information Processing Systems 36.
- [17] B. Jacob, S. Kligys, B. Chen, M. Zhu, M. Tang, A. Howard, H. Adam, and D. Kalenichenko (2018) Quantization and training of neural networks for efficient integer-arithmetic-only inference. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2704–2713.
- [18] M. Nagel, R. A. Amjad, M. van Baalen, C. Louizos, and T. Blankevoort (2020) Up or down? adaptive rounding for post‐training quantization. In International Conference on Learning Representations (ICLR), Link
- [19] I. Hubara, M. Courbariaux, D. Soudry, R. El‐Yaniv, and Y. Bengio (2016) Quantized neural networks: training neural networks with low precision weights and activations. arXiv preprint arXiv:1609.07061. Link
- [20] S. K. Esser, J. L. McKinstry, D. Bablani, R. Appuswamy, and D. S. Modha (2020) Learned step size quantization. In International Conference on Learning Representations,
- [21] T. B. Brown, B. Mann, N. Ryder, M. Subbiah, J. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, et al. (2020) Language models are few-shot learners. Note: arXiv preprint arXiv:2005.14165
- [22] B. Lester, R. Al-Rfou, and N. Constant (2021) The power of scale for parameter-efficient prompt tuning. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing,
- [23] X. L. Li and P. Liang (2021) Prefix-tuning: optimizing continuous prompts for generation. In Proceedings of the 2021 Annual Meeting of the Association for Computational Linguistics,
- [24] X. Liu, Y. Zhang, Z. Ling, Y. Guo, T. Han, Y. Guo, M. Sun, and X. Cui (2021) P-tuning: prompt tuning can be comparable to fine-tuning across scales and tasks. In Proceedings of the 2021 Annual Meeting of the Association for Computational Linguistics,
- [25] X. Liu, H. Peng, Y. Zhang, Y. Wei, and M. Sun (2022) P-tuning v2: prompt tuning can be comparable to fine-tuning at scale. In Advances in Neural Information Processing Systems, Vol. 35.
- [26] M. Jia, L. Tang, B. Chen, C. Cardie, S. Belongie, B. Hariharan, and S. Lim (2022) Visual prompt tuning. In European conference on computer vision, pp. 709–727.
- [27] X. Yu, Z. Liu, Y. Fang, Z. Liu, S. Chen, and X. Zhang (2024) Generalized graph prompt: toward a unification of pre-training and downstream tasks on graphs. IEEE Transactions on Knowledge and Data Engineering 36 (11), pp. 6237–6250. Document
- [28] Z. Wen and Y. Fang (2024) Prompt tuning on graph-augmented low-resource text classification. IEEE Transactions on Knowledge and Data Engineering 36 (12), pp. 9080–9095. Document
- [29] Y. Huang, J. Zhao, D. He, X. Wang, Y. Li, Y. Huang, D. Jin, and Z. Feng (2025) One prompt fits all: universal graph adaptation for pretrained models. In The Thirty-ninth Annual Conference on Neural Information Processing Systems,
- [30] X. Fu, Y. He, and J. Li (2025) Edge prompt tuning for graph neural networks. In The Thirteenth International Conference on Learning Representations,
- [31] Q. Wang, X. Sun, and H. Cheng (2025) Does graph prompt work? a data operation perspective with theoretical analysis. In ICML,
- [32] Q. Chen, L. Wang, B. Zheng, and G. Song (2025) DAGPrompT: pushing the limits of graph prompting with a distribution-aware graph prompt tuning approach. arXiv preprint arXiv:2501.15142.
- [33] Z. Yang, J. Han, C. Wang, and H. Liu (2024) GraphLoRA: structure-aware contrastive low-rank adaptation for cross-graph transfer learning. arXiv preprint arXiv:2409.16670.
- [34] S. Zhang, A. Sohrabizadeh, C. Wan, Z. Huang, Z. Hu, Y. Wang, Y. Lin, J. Cong, and Y. Sun (2026) A survey on graph neural network acceleration: algorithms, systems, and customized hardware. ACM Computing Surveys 58 (11), pp. 1–36.
- [35] H. Ding, Z. Wei, and Y. Ye (2025) Scalable and effective graph neural networks via trainable random walk sampling. IEEE Transactions on Knowledge and Data Engineering 37 (2), pp. 896–909. Document
- [36] H. Wang, D. Lian, Y. Zhang, L. Qin, X. He, Y. Lin, and X. Lin (2020) Binarized graph neural network.
- [37] P. Tillet, H. Kung, and D. Cox (2019) Triton: an intermediate language and compiler for tiled neural network computations. In Proceedings of the 3rd ACM SIGPLAN International Workshop on Machine Learning and Programming Languages, pp. 10–19.
- [38] S. Moustafa, N. Kriege, and W. N. Gansterer (2025) Efficient mixed precision quantization in graph neural networks. In 2025 IEEE 41st International Conference on Data Engineering (ICDE), pp. 4038–4052.
- [39] K. Xu, W. Hu, J. Leskovec, and S. Jegelka (2018) How powerful are graph neural networks?. arXiv preprint arXiv:1810.00826.
- [40] T. N. Kipf and M. Welling (2017) Semi-supervised classification with graph convolutional networks. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings, Link
- [41] P. Veličković, G. Cucurull, A. Casanova, A. Romero, P. Lio, and Y. Bengio (2017) Graph attention networks. arXiv preprint arXiv:1710.10903.
- [42] R. Achanta, A. Shaji, K. Smith, A. Lucchi, P. Fua, and S. Süsstrunk (2012) SLIC superpixels compared to state-of-the-art superpixel methods. IEEE Transactions on Pattern Analysis and Machine Intelligence 34 (11), pp. 2274–2282.
- [43] W. Jin, R. Barzilay, and T. Jaakkola (2018) Junction tree variational autoencoder for molecular graph generation.
- [44] M. Fey and J. E. Lenssen (2019) Fast graph representation learning with pytorch geometric.
Appendix
Appendix A Theoretical Analysis
We analyze aggregation prompting through four connected questions: the optimization geometry of the insertion position, the locality of its correction, the preservation and propagation of that correction after requantization, and compatibility with joint QAT.
Features and real-valued quantized representations.
Node features are stored as rows of , where is the number of nodes and is the feature dimension. Following Section II-A of the main paper, maps real-valued inputs to integer quantization codes, and maps those codes back to real units:
Here is the quantization scale, is the integer zero-point, and are the quantized bounds, as defined in Section II-A. Each and its corresponding use the same scale and zero-point; In this appendix, denotes the real-valued reconstruction of the input features:
X_{q}={\color[rgb]{0,0,0}DQ\bigl(Q(X)\bigr)}\in\mathbb{R}^{N\times d},\qquad\epsilon_{X}=X_{q}-X.
Thus is a dequantized feature matrix, and is its real-valued quantization error.
Reconstruction error formulation.
Let denote the full-precision output and the quantized aggregation output, respectively, evaluated at the same layer input before prompt insertion. For a prompt output , define
Here is the required correction, is the continuous prompted representation, and is its achieved reconstruction error. We use and for the Frobenius norm and inner product, and for the spectral norm of a matrix or Euclidean norm of a vector.
A.1 Optimization Geometry
For the geometry and locality analyses, fix a aggregation operator and the input features. The reconstruction model refers to
Before requantization, define the two prompted representations by
The pre-aggregation surrogate adds the prompt to the features. In particular, with the same fixed input quantization parameters, the placements
A{\color[rgb]{0,0,0}DQ\bigl(Q(X+P)\bigr)}\quad\text{and}\quad A\bigl({\color[rgb]{0,0,0}DQ\bigl(Q(X)\bigr)}+P\bigr)
are different.
Theorem A.1 (Conditional optimization geometry).
Consider
Their gradients and column-vectorized Hessians are
The post-aggregation condition number in prompt-output space is . For , the pre-aggregation condition number restricted to the nonzero-curvature subspace is
where is the smallest positive singular value.
Proof.
For a perturbation , differentiating the objectives gives
and
A second derivative yields the operators and , respectively. The operator \vecop stacks matrix columns. Since \vecop(A^{\top}AH)=(I_{d}\otimes A^{\top}A)\vecop(H), the Hessians follow. The positive eigenvalues of the pre-aggregation Hessian are the squared positive singular values of , each repeated times. Their ratio gives (28). ∎
The post-aggregation objective has a strictly positive definite Hessian and condition number , independently of . For pre-aggregation prompting, a singular introduces flat directions corresponding to perturbations with , and unequal positive singular values of yield . Thus, post-aggregation placement removes both the flat directions and the curvature anisotropy induced by the aggregation operator.
Residual dynamics.
For gradient descent with step size , let and denote their respective iterates. Using the same residual convention as in (24), define
Substitution of the gradients gives
The post residual contracts for and vanishes in one step at . For , the pre residual lies in the column space of and contracts there for , with mode-dependent factors . Thus post-aggregation insertion removes the additional spectral scaling by from these prompt-output updates.
A.2 Locality of Correction Outputs
Using the same aggregation model, we now examine how each node’s prompt vector affects node representations at the insertion site.
Theorem A.2 (Insertion-level locality and targeted correction).
For fixed and and a free prompt matrix , let denote the prompt vector associated with node (the th row of ). For the representations and , every pair of nodes satisfies
where is the Kronecker delta and is the identity matrix. Moreover, under the reconstruction objectives in (26), the node-level gradients with respect to satisfy
Proof.
Writing out the th row of each prompted representation gives
Since and are fixed, differentiating these expressions with respect to the row vector yields the Jacobian blocks and in (30).
Next, write the objectives in (26) as sums over nodewise residuals:
Applying the chain rule with (30) and using , we obtain
which establishes (31). ∎
Equations (30) and (31) show that, at the insertion site, each post-aggregation prompt vector directly adjusts only node ’s representation. Under the stated reconstruction objective, its gradient depends only on that node’s corrected residual . For pre-aggregation prompting, affects the receiving nodes with , and its gradient combines their residuals with weights .
A.3 Requantization and Error Propagation
We now analyze the prompted representation in (24) after requantization. Fix the post-insertion pair with nearest rounding in , and let denote its quantization scale (grid spacing in real units). Assume that the quantizer inputs under consideration lie within its representable interval, so that no clipping occurs. The actual prompted representation is \widetilde{S}(P)={\color[rgb]{0,0,0}DQ\bigl(Q(Z_{P})\bigr)}. Define its rounding error and reconstruction error by
\xi_{q}(P)={\color[rgb]{0,0,0}DQ\bigl(Q(Z_{P})\bigr)}-Z_{P},\qquad e_{q}(P)=\|S_{\mathrm{fp}}-\widetilde{S}(P)\|_{F}.
Theorem A.3 (Requantization error bound).
Under the assumptions above, the actual residual satisfies
S_{\mathrm{fp}}-{\color[rgb]{0,0,0}DQ\bigl(Q(Z_{P})\bigr)}=R-P-\xi_{q}(P),\qquad\|\xi_{q}(P)\|_{F}\leq b_{q}:=\frac{\Delta}{2}\sqrt{Nd}.
Consequently,
|e_{q}(P)-\varepsilon(P)|\leq b_{q},\qquad\boxed{e_{q}(P)\leq\varepsilon(P)+b_{q}.}
If and lies within the representable interval entrywise, then and . If, in addition, every entry of is on the quantization grid, then .
Proof.
Substituting {\color[rgb]{0,0,0}DQ\bigl(Q(Z_{P})\bigr)}=Z_{P}+\xi_{q}(P) and gives the residual identity. Nearest rounding within the representable interval introduces an error of magnitude at most in each of the entries. Thus
The triangle and reverse triangle inequalities give , proving (34). For , we have , so only rounding error remains. When the target entries lie on the grid, {\color[rgb]{0,0,0}DQ\bigl(Q(S_{\mathrm{fp}})\bigr)}=S_{\mathrm{fp}} and the error is zero. ∎
Preservation of the correction benefit.
Without prompting, the continuous aggregation residual is . LoRAP introduces a learnable correction at the aggregation output, yielding the residual . For the same fixed quantizer, let e_{\mathrm{base}}=\|S_{\mathrm{fp}}-{\color[rgb]{0,0,0}DQ\bigl(Q(\widehat{S})\bigr)}\|_{F} be the actual zero-prompt error. Theorem A.3 guarantees that LoRAP achieves a strictly smaller quantized reconstruction error whenever
\varepsilon(P)+b_{q}<e_{\mathrm{base}}\quad\Longrightarrow\quad e_{q}(P)<e_{\mathrm{base}}.
A Linear Update after Requantization
Let be the full-precision weight matrix and W_{q}={\color[rgb]{0,0,0}DQ\bigl(Q(W_{\mathrm{fp}})\bigr)} its dequantized quantized counterpart, where and use the same weight quantization parameters, which may differ from the post-insertion configuration. Thus is expressed in real units, while contains integer codes. For the same layer input, the reference linear output is . Define
This decomposition separates the aggregation residual from the weight discrepancy. The prompted output satisfies
Y_{\mathrm{fp}}-{\color[rgb]{0,0,0}DQ\bigl(Q(Z_{P})\bigr)}W_{q}
\|Y_{\mathrm{fp}}-{\color[rgb]{0,0,0}DQ\bigl(Q(Z_{P})\bigr)}W_{q}\|_{F}
The bound follows from (33) and . Using (36) also gives the explicit connection to the common prompt residual:
\|Y_{\mathrm{fp}}-{\color[rgb]{0,0,0}DQ\bigl(Q(Z_{P})\bigr)}W_{q}\|_{F}\leq{}
If an activation is -Lipschitz in the Frobenius norm, applying it to both outputs multiplies the bound by . Any additional output or bias quantization and arithmetic errors must be included when bounding the complete layer output.
Multilayer Propagation and Prediction Stability
Corollary A.1 (Propagation through reference layers).
Let and be the full-precision reference and quantized prompted layer maps, respectively, at the same checkpoint. For node representations, write , allowing the feature dimension to vary across layers. Suppose is -Lipschitz in the Frobenius norm on a set containing the relevant inputs. For identical initial inputs , define
and the same-input local discrepancy
Then the accumulated error satisfies
and, for a network of layers,
\boxed{e_{L}\leq\sum_{\ell=1}^{L}\left(\prod_{j=\ell+1}^{L}L_{j}\right)\delta_{\ell}.}
An empty product equals .
Proof.
Insert and subtract and apply the triangle inequality and the Lipschitz assumption:
Expanding this recursion with proves (41). ∎
For fixed reference maps, reducing the local discrepancies tightens the bound on the final representation error. Each contribution is weighted by the sensitivity of the subsequent layers. To apply the single-layer bounds, evaluate , , and at the common input , using that layer’s aggregation width and quantizer step in . The quantity measures the error at the aggregation output; compares the complete layer outputs and must also account for the subsequent update, activation, and any other numerical errors. Only the reference maps require Lipschitz continuity; the quantizers themselves need not be continuous.
Corollary A.2 (Margin-based preservation of a prediction).
Let be the reference and prompted quantized logit vectors of node over classes. Suppose the reference has a unique predicted class and margin . If the prompted quantized logits satisfy
then the predicted class remains .
Proof.
Let . For each ,
Thus remains the unique maximizer. ∎
Corollaries A.1 and A.2 connect LoRAP’s aggregation-level compensation to prediction preservation. Include the classification readout in the final layer so that and are the two logit matrices, with rows and , respectively. Then
Whenever this upper bound is smaller than , node retains the same predicted class as the full-precision model, meaning that LoRAP only needs to reduce the accumulated error below the margin threshold rather than achieving zero reconstruction error.
A.4 Optimization Dynamics and Joint QAT
Convergence in free prompt-output coordinates.
First fix the input, the linear aggregation operator , and the quantization parameters as in Section A.1. The required correction is then fixed. For the free prompt matrix, gradient descent on gives
Here indexes the updates of this fixed reconstruction objective. Writing , we obtain
Thus, for , the residual converges geometrically to zero; reaches in one step. In the corresponding pre-aggregation objective, the residual update includes , as shown in (29). Post-aggregation placement therefore removes the additional spectral scaling from these free-output updates.
Error bounds during joint QAT.
LoRAP generates its prompt through shared routing and low-rank factors,
The index now denotes an actual QAT iteration. At the same layer input, evaluate the full-precision reference using the current real-valued backbone parameters , and the dequantized aggregation using their current quantized counterparts. Define
Let be the post-insertion quantizer pair with matching current parameters. The actual rounding and reconstruction errors are
The residual identity
holds at every iteration. If the current quantizer satisfies the nearest-rounding and no-clipping assumptions of Theorem A.3, then
where is the current quantization scale and are the aggregation output dimensions.
During joint QAT, the routing map , low-rank factors , backbone , and trainable quantizer parameters are updated together under the task loss rather than by fixed- gradient descent as in (43). Even under these coupled updates, (44) holds pointwise at every iteration , bounding the post-requantization aggregation error via the current prompt residual and scale without freezing the backbone or adding an auxiliary reconstruction loss.
A.5 Layer-wise Analysis of Aggregation Residual Compensation
Section IV of the main paper defines the aggregation residual and describes how a prompt output changes this residual before and after requantization. We measure these quantities layer by layer in two configurations, each with four message-passing layers and prompt rank : GCN on MNIST under standard QAT and GIN on CIFAR-10 under A2Q (Fig. 6). In both rows, panel (a) reports the continuous residual ratio and the requantized error ratio , where is the error of the requantized aggregation without a prompt. Panel (b) shows the cumulative energy of the singular values of , and panel (c) tracks the continuous ratio during training.
Fig. 6: Layer-wise compensation of the aggregation residual by LoRAP () for GCN on MNIST under standard QAT (top row) and GIN on CIFAR-10 under A2Q (bottom row). (a) Continuous residual ratio and requantized error ratio . The dashed line marks the no-prompt value, and the percentages give the relative reduction . (b) Cumulative energy of the singular values of ; markers indicate . (c) Continuous residual ratio during training.
GCN on MNIST under QAT.
In the top row of Fig. 6, the prompt reduces the residual in all four layers, and the reduction persists after requantization. The continuous ratio is 0.39 in the first layer and 0.75 in the second, and the requantized error decreases by 48.7% and 19.6%, respectively. In the third and fourth layers, the continuous ratio remains at 0.96 and the requantized error decreases by about 2%. Panel (b) accounts for this difference: is 84.9% in the first layer and 44.2% in the second, but below 10% in the third and fourth layers, so most of the residual energy in the deeper layers lies outside any rank-8 subspace. In panel (c), all ratios start slightly above 1 because the prompt is randomly initialized and not yet aligned with ; the first two layers then decrease within the first few tens of epochs before settling at the levels shown in panel (a).
GIN on CIFAR-10 under A2Q.
In the bottom row of Fig. 6, the prompt again reduces the residual in every layer, but the strongest compensation occurs in the second layer rather than the first. The second-layer continuous ratio is 0.34, and the requantized error decreases by 45.2%. The other three layers keep continuous ratios between 0.84 and 0.94, with requantized reductions of 3.4–6.8%. Panel (b) shows the same spectral pattern as in the GCN case: the leading singular direction of the second-layer residual already carries most of its energy, and reaches 92.8%, whereas the other layers have between 20.5% and 33.5%. In panel (c), the ratios again start above 1, with the first layer at about 1.16; the second-layer ratio then shows the largest and most gradual decrease, while the other layers stabilize early at higher values.
Summary.
In both configurations, requantization adds the error term in the residual identity of Theorem A.3, so each requantized reduction is smaller than the corresponding continuous one, yet it remains positive in every layer. The two configurations also differ in which layer benefits most, the first layer for GCN and the second for GIN, and in both cases this is the layer whose residual has the highest . LoRAP therefore corrects the low-rank component of the aggregation residual, independently of layer depth. Where the residual concentrates in a few directions, the reduction is substantial and survives requantization.
A.6 Transfer of Theoretical Guarantees to Low-Rank LoRAP
Sections A.1–A.3 analyze an unconstrained matrix to isolate the effect of the insertion position. We now establish how optimization geometry, node-level locality, and requantization error preservation transfer to LoRAP’s shared low-rank parameterization introduced in Section V of the main paper.
Parameterized setup.
For prompt bases factorized at rank , let denote the open probability simplex, and define the post-aggregation and matched pre-aggregation low-rank prompt generators by
where and act row-wise with and , while and are the shared low-rank factors collected in . Substituting (45) into (26) gives the parameterized reconstruction objectives
Because and are independent of , all post-aggregation derivatives below hold identically whether (Section A.1) or includes an aggregation quantizer prior to prompt addition (Section V-B of the main paper).
Theorem A.4 (Low-rank optimization geometry and landscape).
Fix , , , and the routing matrices and in (46), and let be the orthogonal projector onto . In column-vectorized factor coordinates, the block Hessians satisfy
Moreover, although is nonconvex, every critical point is either a global minimum achieving
with for , or a strict saddle point whose joint Hessian has a strictly negative eigenvalue.
Proof.
For fixed and , differentiating along gives
and a second derivative yields the linear operator . Applying \vecop(UXV)=(V^{\top}\otimes U)\vecop(X) with symmetric gives . Similarly, differentiating with respect to along yields , whose column vectorization is . Replacing with gives the two pre-aggregation block Hessians in (47).
To analyze the global landscape of for fixed , note first that , so . Let be the compact singular value decomposition of , with (), positive diagonal, and (). Then . Setting and , we have and , so
Because maps surjectively onto (with right inverse ) and for all , the Eckart–Young–Mirsky theorem applied to gives
Combining this identity with proves (48).
Now let be any critical point of that is not a global minimum, and set . Stationarity reads
Left-multiplying the first equation by gives , alongside . Hence and , so the nonzero singular values of are the disjoint multiset union of the nonzero singular values of and those of . Since does not attain the global minimum in (48), we have (so ) and , where if .
Let and be unit top left and right singular vectors of , so that , , and . For any , define the perturbation , , and . Substituting into (49) and using yields the second directional derivative
If , choosing a unit vector and with makes this quadratic form strictly negative. Symmetrically, if , choosing unit and with makes it strictly negative. Otherwise, both and are positive definite. Let be a unit eigenvector associated with the smallest eigenvalue of , which equals , and set and . Then and
By the Rayleigh quotient characterization, has a strictly negative eigenvalue. ∎
In factor coordinates, the Hessian is no longer the identity because curvature depends on the routing Gram matrix and factor norms. Nevertheless, Theorem A.4 preserves the structural advantage of Theorem A.1: post-aggregation factor curvature is independent of and free of spurious local minima for fixed routing, whereas pre-aggregation replaces with , inheriting spectral distortion from and flat directions whenever . When a pre-aggregation prompt is injected prior to input quantization as (as in GPF-plus), QAT evaluates backward derivatives via the straight-through estimator (STE). On entries within the quantizer’s clipping interval, the STE Jacobian of is the identity, so the Gauss–Newton curvature of the low-rank factors still replaces with , while clipped entries introduce additional zero-gradient directions.
Theorem A.5 (Low-rank locality and residual attribution).
For fixed parameters , let denote the th row of , , and . For and , every pair of nodes satisfies
where . Writing and , the shared-parameter gradients satisfy
Proof.
For row , depends only on . For , the Softmax derivative is , so for entries ,
which gives the post-aggregation block in (50). Similarly, yields .
For the parameter gradients, Theorem A.2 gives the output-row derivatives and . Applying the chain rule to across gives
and
which assemble into the post-aggregation identities in (51). Replacing , , , and with , , , and yields the pre-aggregation gradients. ∎
Shared prompt parameters aggregate gradients across all nodes, yet Theorem A.5 shows that post-aggregation LoRAP pairs each node’s feature and routing weight solely with its own unmixed receiver residual , while keeping the node-to-node sensitivity block-diagonal in (50). Pre-aggregation low-rank prompting instead replaces with the graph-mixed residual , allowing opposite-sign residuals across receiving neighbors to cancel before updating .
Theorem A.6 (Low-rank approximation and requantization bound).
Let collect orthonormal right singular vectors for the top singular values of , and set and . Then every satisfies
and setting gives the exact decomposition
For unconstrained simplex weights, if , then either or is confined to an open half-space in . Conversely, whenever , there exist of rank and an unconstrained (which need not be realizable by the affine router ) such that , giving . Finally, if post-insertion requantization uses nearest rounding without clipping and entrywise positive scales , then with ,
so holds whenever .
Proof.
Because , the Eckart–Young–Mirsky theorem gives . In addition, each row satisfies , so , and summing the squared bounds over proves (52).
Next, since and , we have and . Writing , the Frobenius inner product of the two terms vanishes:
Using yields (53).
For the basis-count threshold, let denote the rows of and . Suppose . If , then for some with , so are linearly dependent and . If , since and are disjoint compact convex sets, the strict separating hyperplane theorem gives a unit vector such that for all , confining to an open half-space. Conversely, suppose and let . Define the rows of by for (where is the th standard basis row) and for . The leading block of is , so . For each node with , set
Because , we have and , so for all , , and . Stacking as rows gives an unconstrained with , and substituting into (53) yields . Because has logits affine in , need not be realizable by (for instance, when distinct full-precision neighborhoods quantize to identical rows while ), so the lower bound characterizes the capacity of unconstrained convex combinations rather than a guaranteed error of LoRAP.
Finally, under nearest rounding without clipping at entrywise scales , each entry of satisfies , so . Applying the triangle and reverse triangle inequalities to proves (54). ∎
Interpretation and consistency with the layer-wise spectral measurements.
Theorem A.6 transfers Theorem A.3 and Corollaries A.1–A.2 to low-rank LoRAP conditionally on , while explaining the design constraint : at least bases are necessary for convex combinations of the prompt bases to span both signs across principal directions, whereas the remaining gap reflects the predictability of from under the affine router . When , the spectral lower bound in (52) implies , where is the cumulative singular-value energy defined in Section A.5. At , the empirical values in Fig. 6 closely track this bound. For GCN on MNIST under QAT, in layer 1, in layer 2, and in layers 3–4 give theoretical floors , , and , matching the observed continuous ratios , , and . For GIN on CIFAR-10 under A2Q, layer 2 reaches (, observed ), whereas the remaining layers have (floors –, observed –). Setting recovers in Theorem A.3 and the pointwise joint-QAT bound (44), while heterogeneous extends both bounds directly to per-channel quantization and nodewise mixed-precision schemes such as A2Q.
Appendix B Additional Experimental Details and Results
B.1 Adaptation of GraphLoRA to QAT
To compare LoRAP against weight-space low-rank adaptation under quantization, we adapt GraphLoRA [33] (reported as GraphLoRA in Tables I and V of the main paper) into a parallel low-rank graph adapter within each message-passing layer of the quantized backbone:
where denotes the native quantized message-passing module with backbone weights and quantizer configuration , retaining the host framework’s fake-quantization operators and backward rules. Here is an intermediate tensor reused from the native propagation path without introducing extra quantizer calls: for GIN and GCN, is the dequantized neighborhood aggregate, whereas for GAT, is the layer’s native propagation input paired with the edge set to form a separate low-rank attention branch. The adapter applies an FP32 low-rank projection (, ) in row-wise node coordinates, with the output factor initialized to zero so that the adapted layer initially matches the unadapted quantized backbone. The sum is then processed by the layer’s remaining native operations (such as normalization, activation, or skip connections) to produce . Adapter parameters remain in FP32 and are not merged into the quantized weights .
Unlike the cross-graph transfer setting in [33], our QAT benchmark operates in a single-domain training regime without source-graph pretraining, SMMD distribution alignment, or auxiliary transfer losses (omitting the contrastive and structural reconstruction terms of [33]). We jointly optimize the backbone weights , quantizer parameters (when trainable under the host recipe), and adapter parameters under the host QAT framework’s native training objective (the task loss , together with the native bit-budget storage penalty of when applicable), using the backbone learning rate and zero weight decay for .
B.2 Equal-Capacity MLP and FP32 Prompting Comparison
Table XII compares GPF-LoRAP against no prompting and an equal-capacity MLP baseline under , alongside full-precision (FP32) baselines with and without GPF-LoRAP. Specifically, the equal-capacity MLP replaces LoRAP at each layer with a two layer ReLU residual MLP whose per-layer parameter count matches that of our input-dependent low-rank prompt generator, and is jointly optimized with the backbone and quantizer parameters under the host objective. Replacing GPF-LoRAP with this equal-capacity MLP frequently degrades accuracy, while applying GPF-LoRAP directly to FP32 models yields no consistent gain and often lowers accuracy, indicating that LoRAP specifically compensates for low-bit quantization distortions rather than its extra capacity.
TABLE XII: Test accuracy (%) comparison under (with no prompting, an equal-capacity MLP, and GPF-LoRAP) and FP32 (with and without GPF-LoRAP).
| Dataset | Model | FP32 | ||||
|---|---|---|---|---|---|---|
| None | Equal-Capacity MLP | GPF-LoRAP | None | GPF-LoRAP | ||
| Cora | GIN | |||||
| GCN | ||||||
| GAT | ||||||
| CiteSeer | GIN | |||||
| GCN | ||||||
| GAT | ||||||
| PubMed | GIN | |||||
| GCN | ||||||
| GAT |
B.3 End-to-End Performance
TABLE XIII: End-to-end full-graph inference latency, peak GPU memory, and model storage (including prompts) on ogbn-arxiv with a 3-layer GCN (, hidden dimension ) on an NVIDIA RTX 4090 GPU. GPF-LoRAP uses prompts and rank .
| Deployment Path | Prompting | GPU Latency (ms) | Peak GPU Memory (MiB) | Model Storage (KiB) |
|---|---|---|---|---|
| FP32 | None | 610.03 | 434.16 | |
| Native W4A4 | None | 65.15 | 65.31 | |
| Native W4A4 | GPF-LoRAP (unfused) | 94.43 | 114.09 | |
| Native W4A4 | GPF-LoRAP (fused) | 73.68 | 114.09 |
Table XIII reports end-to-end full-graph inference latency, peak GPU memory, and model storage (including prompts) on ogbn-arxiv for a 3-layer GCN (, hidden dimension ) on an NVIDIA RTX 4090 GPU, with GPF-LoRAP configured at and . Relative to FP32 (5.530 ms), native W4A4 lowers latency to 3.175 ms ( speedup). Unfused GPF-LoRAP raises latency to 4.689 ms (+1.514 ms, or +47.7% over native W4A4), whereas kernel fusion lowers it to 3.449 ms (+0.274 ms, or +8.6% over native W4A4), retaining a speedup over FP32. Peak GPU memory follows the same trend: native W4A4 reduces peak memory from 610.03 MiB to 65.15 MiB (an 89.3% reduction), unfused GPF-LoRAP raises it to 94.43 MiB (+29.28 MiB, or +44.9%), and fused GPF-LoRAP brings it down to 73.68 MiB (+8.53 MiB, or +13.1% over native W4A4, and an 87.9% reduction relative to FP32). Including prompts, model storage increases from 65.31 KiB under native W4A4 to 114.09 KiB (+48.78 KiB), remaining 73.7% smaller than the 434.16 KiB FP32 model; the added 48.78 KiB is below 0.1% of the 73.68 MiB peak runtime memory.
Note that, to ensure a fair and correct comparison, we follow the same experimental setting (including datasets and model architectures) of the QAT frameworks our work is based on. ↩