iRaven

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.

Figure

Fig. 1: Feature/Weight memory size ratio during inference in LLMs vs GNNs.

Figure

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 x and bit-width b, we define the quantization operator Q(⋅) and dequantization operator DQ(⋅) 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 xmax>xmin, the positive scale Δ and zero-point z0 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

qmin=0,qmax=2b−1(unsigned),

or

qmin=−2b−1,qmax=2b−1−1(signed).

Here, xmin and xmax denote the minimum and maximum values of x. The function round(⋅) maps its argument to the nearest integer, and clip(⋅,qmin,qmax) truncates values outside [qmin,qmax] to the nearest bound. During inference, each real value x is quantized to xq=Q(x) and then dequantized back to x^=DQ(xq) 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 𝒱={v1,v2,…,vN} and edges ℰ, where each node vi is associated with a feature vector 𝐱i∈ℝd. Let 𝐗=[𝐱1;𝐱2;…;𝐱N]∈ℝN×d the matrix of these features and 𝐀∈ℝN×N be the adjacency matrix encoding the connectivity between nodes, where 𝐀ij denotes the presence (and possibly the weight) of an edge between nodes vi and vj. 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 vi sends a message to its neighbors based on its current state and edge information. The message from node vi to its neighbor vj is computed as a function ϕ that depends on the node features and the edge features, i.e.,

𝐦ij=ϕ(𝐡i(l),𝐡j(l),𝐞ij),

where 𝐡i(l) and 𝐡j(l) are the features of vi and vj at layer l and 𝐞ij represents the edge feature between vi and vj. 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 vi can be expressed as

𝐬i=⋀j∈𝒩(i)𝐦ij=⋀j∈𝒩(i)ϕ(𝐡i(l),𝐡j(l),𝐞ij),

where 𝒩(i) is the set of neighbors of node vi, 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 vi at layer l+1 is

𝐡i(l+1)=γ(𝐡i(l),𝐬i).

Figure

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, Q maps real-valued tensors to integer codes and DQ maps those codes back to real units. For node features X∈ℝN×d, write

Xq=DQ(Q(X)),ϵX=Xq−X.

Each pair Q,DQ uses the same scale and zero-point; different tensors may use different quantization parameters. The feature reconstruction loss is

ℒfeat=12‖X−Xq‖F2.

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 Sfp∈ℝN×d be the full-precision aggregation output and S^∈ℝN×d the dequantized aggregation output before prompt insertion. Define

R=Sfp−S^,ℒagg=12‖R‖F2.

For a continuous prompt output P∈ℝN×d, the corrected representation and its remaining error are

ZP=S^+P,ε(P)=‖Sfp−ZP‖F=‖R−P‖F.

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 p∈ℝd 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 A∈ℝN×N and the input features, and consider

Sfp =AX,S^=AXq, Spost(P) =AXq+P, Spre(P) =A(Xq+P).

Here R=−AϵX, and the pre-aggregation model Spre(P) inserts P after input quantization (distinct from ADQ(Q(X+P))).

Theorem 1 (Conditional optimization geometry).

Under the fixed-input linear model above, define

ℒpost(P) =12‖R−P‖F2, ℒpre(P) =12‖R−AP‖F2.

Their gradients and Hessians in column-vectorized prompt-output coordinates are

∇Pℒpost =P−R, ∇Pℒpre =A⊤(AP−R), ∇2ℒpost =INd, ∇2ℒpre =Id⊗A⊤A.

The post-aggregation condition number is 1. For A≠0, the pre-aggregation condition number on its nonzero-curvature subspace is

κpre,+=σmax2(A)σmin,+2(A),

where σmin,+(A) is the smallest positive singular value.

Proof.

Differentiating the two quadratic objectives gives the gradients and the Hessian operators H↦H and H↦A⊤AH. Stacking matrix columns yields the stated Hessians. The positive eigenvalues of A⊤A are the squared positive singular values of A, 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. A singular A introduces flat directions AH=0 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 A and Xq, let Pj∈ℝ1×d denote the prompt vector associated with node j, namely the jth row of the free matrix P. Then

∂(Spost(P))i∂Pj =δijId, ∂(Spre(P))i∂Pj =AijId,

where δij is the Kronecker delta. Under (6), the node-level gradients satisfy

∂ℒpost∂Pj =Pj−Rj, ∂ℒpre∂Pj =∑i=1NAij((AP)i−Ri).

Proof.

The ith rows are (AXq)i+Pi and (AXq)i+∑jAijPj. 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 Aij≠0, including its own node when Ajj≠0.

IV-D Requantization and prediction stability

LoRAP’s corrected representation ZP=S^+P is requantized for subsequent low-precision operations. Fix the post-insertion quantizer pair Q,DQ, with nearest rounding and scale Δ>0, and assume no clipping occurs for the inputs under consideration. In real units, define

S~(P) =DQ(Q(ZP)), ξq(P) =S~(P)−ZP, eq(P) =‖Sfp−S~(P)‖F.

Theorem 3 (Requantization error bound).

Under the assumptions above, the actual residual and rounding error satisfy

Sfp−S~(P) =R−P−ξq(P), ‖ξq(P)‖F ≤bq:=Δ2Nd.

Consequently,

|eq(P)−ε(P)|≤bq,eq(P)≤ε(P)+bq.

If P=R and Sfp is within the representable interval, only rounding error remains. If its entries also lie on the quantization grid, eq(P)=0.

Proof.

Substituting S~(P)=ZP+ξq(P) gives the residual identity. Each entry incurs rounding error at most Δ/2, 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 ebase=‖Sfp−DQ(Q(S^))‖F 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 ε(P) satisfies (14).

Appendix A.3 extends this single-layer bound to an L-layer GNN with full-precision outputs Hℓ and prompted quantized outputs H~ℓ. When each reference layer is Lℓ-Lipschitz in the Frobenius norm and both branches start from the same input, the final representation error eL:=‖H~L−HL‖F satisfies

eL≤∑ℓ=1L(∏j=ℓ+1LLj)δℓ,

where δℓ is the Frobenius discrepancy between the ℓth full-precision and prompted quantized layer outputs evaluated at H~ℓ−1 (accounting for aggregation, weight update, and activation errors). When HL and H~L are the reference and prompted quantized logit matrices with node rows zi and z~i, suppose node i has a unique reference prediction yi∗=argmaxczi,c with margin mi:=zi,yi∗−maxc≠yi∗zi,c>0. Since ‖z~i−zi‖∞≤eL, having eL<mi/2 (or more generally ‖z~i−zi‖∞<mi/2) preserves the predicted class yi∗ without requiring zero reconstruction error.

IV-E Transfer to low-rank prompt parameterization

Appendix A.6 extends Theorems 1–3 from unconstrained prompt outputs P∈ℝN×d to LoRAP’s shared low-rank Softmax parameterization P(θP)=Softmax(ϕ(S^))PAPB introduced in Section V. In factor coordinates, post-aggregation curvature remains independent of A, and for fixed routing weights every critical point of (PA,PB) 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 A⊤A. 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 A. Moreover, when k≥r+1 (r<k), Softmax convex combinations can span both signs across the top-r singular subspace of R, extending the post-requantization guarantee (14) to both uniform and heterogeneous quantization scales.

Figure

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 l, LoRAP inserts node-dependent prompt vectors into the dequantized aggregation output 𝐒^(l)∈ℝN×d (corresponding to S^ in Section IV). Let 𝐬^i(l) denote the ith row of 𝐒^(l), and stack the node prompt vectors 𝐩i(l)∈ℝ1×d into 𝐏s(l)∈ℝN×d (denoted by P in Section IV). Following (5), the continuous corrected output is

𝐙P(l)=𝐒^(l)+𝐏s(l),(𝐙P(l))i=𝐬^i(l)+𝐩i(l).

As established by Theorems 1 and 2, this placement gives each prompt direct receiver-level access to the aggregation residual 𝐑(l)=𝐒fp(l)−𝐒^(l) under the reconstruction metric (6), while Theorem 3 characterizes how the achieved residual ε(𝐏s(l)) 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 l in a GNN with L layers, we learn a set of k prompt bases ℬ(l)={𝐛1(l),𝐛2(l),⋯,𝐛k(l)}, where each 𝐛m(l)∈ℝd and k is a hyperparameter. Using k≪N 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 𝐬^i(l) to a probability distribution \bm{\alpha}_{i}^{(l)}\in\mathbb{R}^{k} where the element αim(l) represents the weight or importance of the corresponding basis prompt vector 𝐛m(l), 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 d share the linear projection ϕ while maintaining layer-specific prompt bases ℬ(l) (layers with different aggregation widths use layer-specific projections). Using these learned probabilities, the prompt 𝐩i(l)∈ℝd is defined as the convex combination of basis vectors

𝐩i(l)=∑m=1kαim(l)𝐛m(l).

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 A2Q. 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.ModelAdaptationNode Classification (Accuracy %)Graph Classification (Accuracy %)Graph Regression (Loss)
Frame.Arch.MethodCora ↑Citeseer ↑MNIST ↑CIFAR-10 ↑ZINC ↓
FP32GINNone77.6±1.166.1±0.996.4±0.453.3±3.70.414±0.009
GCN81.4±0.771.1±0.790.9±0.454.5±0.10.469±0.002
GAT83.1±0.472.5±0.795.8±0.465.4±0.40.463±0.002
QATGINNone44.2±1.518.7±3.791.0±0.548.7±1.7\mathit{0.555\pm 0.024}
GPF-plus\bm{45.6\pm 3.0}21.6±2.991.3±0.3\mathit{55.3\pm 0.9}0.569±0.020
GraphLoRA37.0±1.7\mathit{25.7\pm 4.5}\mathit{95.6\pm 0.7}51.8±4.20.589±0.010
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}
DQGINNone61.0±6.958.4±2.192.4±0.450.7±1.60.540±0.019
GPF-plus64.3±5.0\mathit{63.1\pm 3.5}91.9±0.351.3±1.20.555±0.018
GraphLoRA\mathit{72.8\pm 1.8}58.5±3.4\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}
A2QGINNone\mathit{77.4\pm 0.9}\mathit{66.6\pm 0.1}95.7±0.254.9±0.90.400±0.016
GPF-plus72.7±0.859.5±6.6\mathit{95.9\pm 0.4}\mathit{56.8\pm 1.4}\mathit{0.399\pm 0.009}
GraphLoRA66.8±1.738.3±2.995.4±0.154.1±1.40.462±0.009
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}
QATGCNNone66.4±7.0\mathit{63.4\pm 2.2}70.6±2.438.5±1.3\mathit{0.707\pm 0.056}
GPF-plus69.8±6.561.6±3.1\mathit{71.5\pm 1.3}41.0±1.20.733±0.018
GraphLoRA\mathit{70.1\pm 3.9}61.5±4.840.3±1.7\mathit{43.6\pm 0.9}1.221±0.043
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}
DQGCNNone\mathit{72.5\pm 3.7}\mathit{68.6\pm 3.3}87.0±1.249.5±0.80.657±0.032
GPF-plus72.3±2.8\bm{71.4\pm 3.1}\mathit{90.9\pm 0.7}\mathit{51.1\pm 0.5}\mathit{0.534\pm 0.017}
GraphLoRA65.1±9.752.1±4.787.5±1.144.9±1.00.568±0.010
GPF-LoRAP\bm{78.0\pm 2.5}66.1±1.3\bm{92.4\pm 0.5}\bm{53.4\pm 0.5}{\color[rgb]{0,0,0}\bm{0.529\pm 0.014}}
A2QGCNNone76.1±0.369.7±1.690.5±0.552.4±0.8\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}0.506±0.008
GraphLoRA51.5±6.738.5±7.589.9±0.249.9±0.50.521±0.008
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}
QATGATNone52.8±0.7\mathit{30.1\pm 14.5}76.3±1.241.9±1.10.702±0.011
GPF-plus54.9±5.319.7±3.0\mathit{77.5\pm 0.9}\mathit{43.1\pm 1.2}0.693±0.025
GraphLoRA\mathit{65.4\pm 2.0}20.4±7.674.6±2.122.4±1.2\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}
DQGATNone68.7±7.541.9±5.990.3±0.554.2±0.5\mathit{0.556\pm 0.022}
GPF-plus58.3±5.439.1±9.693.1±0.651.5±0.80.589±0.018
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}0.583±0.016
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}
A2QGATNone82.6±0.871.2±0.9\mathit{92.5\pm 0.6}61.9±1.20.674±0.007
GPF-plus\mathit{83.4\pm 0.5}\mathit{71.8\pm 0.2}92.4±0.8\mathit{62.3\pm 1.4}0.685±0.008
GraphLoRA79.3±2.467.2±1.860.7±16.761.4±0.7\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 ℬ(l) is stacked as a matrix 𝐁(l)∈ℝk×d. Storing 𝐁(l) across L layers requires L×k×d basis parameters. To improve parameter efficiency, we factorize 𝐁(l) into two high-precision low-rank matrices, 𝐏A(l)∈ℝk×r and 𝐏B(l)∈ℝr×d, where the rank budget r≪min(k,d), giving 𝐁(l)=𝐏A(l)𝐏B(l). This in turn reduces the number of parameters from L×k×d to L×r×(k+d). Given the quantized matrix of aggregated features 𝐒q(l), we then incorporate our input-dependent low-rank prompts into the l-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 DQ is the dequantization operator defined in Section II-A. Since 𝐁(l)=𝐏A(l)𝐏B(l), the realized prompt 𝐏s(l) has rank at most r, and Theorem 3 bounds the post-requantization error of DQ(𝐒q(l)∗). Finally, the obtained prompted aggregation feature 𝐒q(l)∗ 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 LD of the host QAT framework (see Section II-B), jointly updating the prompt parameters θP (routing map and low-rank factors), the backbone weights W, and any trainable quantizer parameters θQ without freezing the backbone or adding an auxiliary reconstruction loss:

minθQ,θP,WLD.

Although these coupled task-loss updates differ from fixed-residual gradient descent, Appendix A.4 shows that at every iteration t, the current backbone and quantizer state define Sfp,t, S^t, and the realized prompt Pt for which Theorem 3 bounds the post-requantization error pointwise via εt(Pt) and the current scale Δt.

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], A2Q [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 (k) and the rank (r). For fair comparison, other hyperparameters retain the same configurations as those used in the original quantization frameworks, with only k and r 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.

TaskNameGraphsNodesEdgesFeaturesClasses
Node-levelCora12,70810,5561,4337
CiteSeer13,3279,1043,7036
PubMed119,71788,6485003
OGB-Arxiv1169,3431,166,24312840
OGB-Products12,449,02961,859,14010047
OGB-Mag11,939,74325,582,108128349
Graph-levelREDDIT-BINARY2000∼ 429.6∼ 995.502
MNIST70000∼ 71∼ 565310
CIFAR1060000∼ 117.6∼ 941.2510
ZINC12000∼ 23∼ 49.828—

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 k, selected from {5,10,20,40}, and the prompt rank r, chosen from {1,2,4,8} with r<k. 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

Accuracy=1N∑i=1N𝟏(yi=y^i),

where yi and y^i 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

MAE=1N∑i=1N|yi−y^i|,

where yi is the ground-truth property value and y^i 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.

ModelPropertyCoraCiteSeerMNISTCIFAR10ZINCREDDIT-BINARY
GCNLayers225+1 MLP5+1 MLP5+1 MLP–
Hidden units1616146146145–
Skip connectionNONOYESYESYES–
GINLayers225+1 MLP5+1 MLP5+1 MLP5
Hidden units161611011011064
Skip connectionNONOYESYESYESNO
GATLayers225+1 MLP5+1 MLP5+1 MLP–
Hidden units8×h8×h19×h19×h18×h–
Skip connectionNONOYESYESYES–

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 77.6% to 44.2%). 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 A2Q 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 A2Q and standard QAT (e.g., dropping from 66.6% to 38.3% on CiteSeer under A2Q-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 A2Q 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 A2Q 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.

Figure

Fig. 5: Latency comparison.

TABLE IV: Results for QAT & DQ GIN in INT4 & 8 on Reddit-Binary.

Quant. Frame.ModelPrompt MethodREDDIT-BIN (Acc. %) ↑
FP32GINNone92.2±2.3
QAT-W8A8GINNone76.1±7.5
GPF-plus72.2±3.7
GPF-LoRAP81.2±2.7 (+\bm{5.1})
DQ-W8A8GINNone91.8±2.3
GPF-plus94.1±2.0
GPF-LoRAP94.6±2.7 (+\bm{2.8})
QAT-W4A4GINNone52.4±5.8
GPF-plus53.8±5.7
GPF-LoRAP69.6±5.6 (+\bm{17.2})
DQ-W4A4GINNone89.4±2.9
GPF-plus92.3±2.4
GPF-LoRAP93.0±3.1 (+\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.

ConfigAverage bits#Additional ParametersMNIST (Acc. %)↑
FP32320KB96.4±0.4
INT440KB94.4±0.2
+ GPF-plus417.26KB96.0±0.5
GraphLoRA420.67KB93.6±0.7
+ GPF-plus + LoRAP (GPF-LoRAP)426.95KB96.2±0.4
A2Q3.750KB95.7±0.2
+ GPF-plus3.7517.26KB95.9±0.4
GraphLoRA3.7520.67KB95.4±0.1
+ EdgePrompt+3.78103.44KB95.5±0.3
+ AP3.7843.03KB95.9±0.1
+ LoRAP3.769.69KB96.2±0.3
+ GPF-plus + AP3.7860.29KB96.3±0.1
+ GPF-plus + LoRAP (GPF-LoRAP)3.7626.95KB96.4±0.2

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.

TaskMethodAccBits
ogb- arxiv (GCN)FP3271.7±0.332
A2Q71.1±0.32.7
+GPF-Plus70.9±0.32.7
+UniPrompt71.3±0.42.7
+LoRAP73.6±0.12.7
MixQ69.3±0.07.1
+GPF-Plus70.1±0.27.1
+UniPrompt69.4±0.27.1
+LoRAP71.9±0.17.0
ogb-products (GraphSAGE)FP3266.6±1.332
MixQ60.8±2.25.0
+GPF-Plus61.0±1.65.0
+UniPrompt60.1±1.14.9
+LoRAP63.3±2.05.0
ogbn-mag (GCN)FP3233.6±0.432
A2Q32.7±0.42.7
+GPF-Plus30.4±0.12.9
+UniPrompt31.0±0.42.9
+LoRAP34.2±0.22.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.

DeviceSettingLatencySpeedup
CPUFP3236.66ms1.00×
INT815.36ms2.39×
INT8+LoRAP18.29ms2.00×
INT411.78ms3.11×
INT4+LoRAP14.77ms2.48×
GPUFP320.69ms1.00×
INT80.43ms1.60×
INT8+LoRAP0.52ms1.33×
INT8+LoRAP (fused)0.48ms1.44×
INT40.33ms2.09×
INT4+LoRAP0.42ms1.64×
INT4+LoRAP (fused)0.37ms1.86×

TABLE VIII: GPF-LoRAP with A2Q (INT4) for GIN on ZINC, mean ± std deviation for varying number of prompts k and rank r.

r\backslash k5102040
10.382±0.0130.379±0.0110.378±0.0090.368±0.012
20.370±0.0110.372±0.0050.372±0.0090.361±0.010
40.378±0.0140.376±0.0170.373±0.0110.380±0.014
8—0.374±0.0150.374±0.0150.380±0.011

VII-E Ablation study

Table V presents an ablation study on the MNIST dataset using A2Q-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 k and the Aggregation Rank r

Table VIII reports the mean loss of GPF-LoRAP using A2Q (INT4) and GIN on the ZINC dataset for different numbers of prompts k and aggregation rank r with r<k. For low ranks, as k increases from 5 to 40, the loss generally decreases: at r=1 it drops from 0.382 to 0.368 and at r=2 from 0.370 to the overall minimum of 0.361. For higher ranks (r=4 and r=8), the lowest losses occur at k=20 (0.373) and k∈{10,20} (0.374), respectively, before slightly rising at k=40. Overall, the best performance is achieved at r=2,k=40 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 MethodNode ClassificationGraph Classification
Quant.TaskAccBitsQuant.TaskAccBits
NoneDQCora-GCN72.5±3.74.0QATReddit-Binary52.4±5.84.0
GPF-Plus72.3±2.84.053.8±5.74.0
UniPrompt72.8±2.44.0--
EdgePrompt+73.1±2.54.053.2±4.94.0
LoRAP77.7±1.84.070.1±5.64.0
GPF-LoRAP78.0±2.54.069.6±5.64.0
NoneA2QCora-GCN76.1±0.31.7A2QMNIST95.7±0.23.8
GPF-Plus78.0±0.11.795.9±0.43.8
UniPrompt78.5±0.21.7--
EdgePrompt+75.9±0.31.795.5±0.33.8
LoRAP79.1±0.11.796.2±0.33.8
GPF-LoRAP79.1±0.11.796.4±0.23.8
NoneMixQCora-GCN68.7±2.73.8MixQReddit-Binary72.8±3.55.9
GPF-Plus71.3±1.83.872.5±2.75.8
UniPrompt73.6±2.63.9--
EdgePrompt+71.2±2.23.872.8±3.15.8
LoRAP75.9±1.63.875.6±2.85.7
GPF-LoRAP76.5±1.03.876.6±3.45.7

VII-G Training Time Evaluation

TABLE X: Training time for various quantization frameworks and prompting strategies on Reddit-Binary with GIN (INT4).

Quant. FrameworkAccuracyTraining Time
QAT52.4±5.874.67s
QAT-GPF-plus53.8±5.779.86s
QAT-GPF-LoRAP69.6±5.678.36s
DQ89.4±2.96398.54s
DQ-GPF-plus92.3±2.46446.86s
DQ-GPF-LoRAP93.0±3.16442.77s
A2Q89.2±2.31040.29s
A2Q-GPF-plus89.6±3.41063.73s
A2Q-GPF-LoRAP92.6±2.51048.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.

summeanmax
None77.4±0.976.9±1.277.1±0.6
GPF72.7±0.877.1±0.977.3±1.8
GPF-LoRAP78.5±1.078.7±0.877.9±1.1

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 X∈ℝN×d, where N is the number of nodes and d is the feature dimension. Following Section II-A of the main paper, Q maps real-valued inputs to integer quantization codes, and DQ maps those codes back to real units:

Q(x) =clip(round(xΔ)+z0,qmin,qmax), DQ(xq) =Δ(xq−z0).

Here Δ>0 is the quantization scale, z0 is the integer zero-point, and qmin,qmax are the quantized bounds, as defined in Section II-A. Each Q and its corresponding DQ use the same scale and zero-point; In this appendix, Xq 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 Xq is a dequantized feature matrix, and ϵX is its real-valued quantization error.

Reconstruction error formulation.

Let Sfp,S^∈ℝN×d denote the full-precision output and the quantized aggregation output, respectively, evaluated at the same layer input before prompt insertion. For a prompt output P∈ℝN×d, define

R=Sfp−S^,ZP=S^+P,ε(P)=‖R−P‖F.

Here R is the required correction, ZP is the continuous prompted representation, and ε(P)=‖Sfp−ZP‖F is its achieved reconstruction error. We use ‖⋅‖F and ⟨⋅,⋅⟩F for the Frobenius norm and inner product, and ‖⋅‖2 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 A∈ℝN×N and the input features. The reconstruction model refers to

Sfp=AX,S^=AXq,EA=AϵX=S^−Sfp=−R.

Before requantization, define the two prompted representations by

Spost(P)=AXq+P=ZP,Spre(P)=A(Xq+P).

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

ℒpost(P) =12‖EA+P‖F2=12ε(P)2, ℒpre(P) =12‖A(ϵX+P)‖F2=12‖R−AP‖F2.

Their gradients and column-vectorized Hessians are

∇Pℒpost =EA+P, ∇2ℒpost =INd, ∇Pℒpre =A⊤A(ϵX+P), ∇2ℒpre =Id⊗A⊤A.

The post-aggregation condition number in prompt-output space is 1. For A≠0, the pre-aggregation condition number restricted to the nonzero-curvature subspace is

κpre,+=σmax2(A)σmin,+2(A),

where σmin,+ is the smallest positive singular value.

Proof.

For a perturbation H, differentiating the objectives gives

Dℒpost(P)[H]=⟨EA+P,H⟩F,

and

Dℒpre(P)[H]=⟨A(ϵX+P),AH⟩F=⟨A⊤A(ϵX+P),H⟩F.

A second derivative yields the operators H↦H and H↦A⊤AH, 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 A, each repeated d times. Their ratio gives (28). ∎

The post-aggregation objective has a strictly positive definite Hessian INd and condition number 1, independently of A. For pre-aggregation prompting, a singular A introduces flat directions corresponding to perturbations H with AH=0, and unequal positive singular values of A yield κpre,+>1. 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 Ppostt and Ppret denote their respective iterates. Using the same residual convention as in (24), define

Rpostt =Sfp−Spost(Ppostt)=R−Ppostt, Rpret =Sfp−Spre(Ppret)=R−APpret.

Substitution of the gradients gives

Rpostt+1 =(1−η)Rpostt, Rpret+1 =(IN−ηAA⊤)Rpret.

The post residual contracts for 0<η<2 and vanishes in one step at η=1. For A≠0, the pre residual lies in the column space of A and contracts there for 0<η<2/σmax2(A), with mode-dependent factors 1−ησj2(A). Thus post-aggregation insertion removes the additional spectral scaling by A⊤A 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 A and Xq and a free prompt matrix P∈ℝN×d, let Pj∈ℝ1×d denote the prompt vector associated with node j (the jth row of P). For the representations Spost(P)=AXq+P and Spre(P)=A(Xq+P), every pair of nodes i,j satisfies

∂(Spost(P))i∂Pj=δijId,∂(Spre(P))i∂Pj=AijId,

where δij is the Kronecker delta and Id is the d×d identity matrix. Moreover, under the reconstruction objectives in (26), the node-level gradients with respect to Pj satisfy

∂ℒpost(P)∂Pj =Pj−Rj, ∂ℒpre(P)∂Pj =∑i=1NAij((AP)i−Ri).

Proof.

Writing out the ith row of each prompted representation gives

(Spost(P))i =(AXq)i+Pi, (Spre(P))i =(AXq)i+∑ℓ=1NAiℓPℓ.

Since A and Xq are fixed, differentiating these expressions with respect to the row vector Pj yields the d×d Jacobian blocks δijId and AijId in (30).

Next, write the objectives in (26) as sums over nodewise residuals:

ℒpost(P) =12∑i=1N‖(Spost(P))i−(Sfp)i‖22, ℒpre(P) =12∑i=1N‖(Spre(P))i−(Sfp)i‖22.

Applying the chain rule with (30) and using (AXq)i−(Sfp)i=−Ri, we obtain

∂ℒpost(P)∂Pj =∑i=1Nδij(Pi−Ri)=Pj−Rj, ∂ℒpre(P)∂Pj =∑i=1NAij((AP)i−Ri),

which establishes (31). ∎

Equations (30) and (31) show that, at the insertion site, each post-aggregation prompt vector Pj directly adjusts only node j’s representation. Under the stated reconstruction objective, its gradient depends only on that node’s corrected residual Pj−Rj. For pre-aggregation prompting, Pj affects the receiving nodes i with Aij≠0, and its gradient combines their residuals with weights Aij.

A.3 Requantization and Error Propagation

We now analyze the prompted representation ZP in (24) after requantization. Fix the post-insertion pair Q,DQ with nearest rounding in Q, and let Δ>0 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 P∗=R and Sfp lies within the representable interval entrywise, then ε(P∗)=0 and eq(P∗)≤bq. If, in addition, every entry of Sfp is on the quantization grid, then eq(P∗)=0.

Proof.

Substituting {\color[rgb]{0,0,0}DQ\bigl(Q(Z_{P})\bigr)}=Z_{P}+\xi_{q}(P) and R=Sfp−S^ gives the residual identity. Nearest rounding within the representable interval introduces an error of magnitude at most Δ/2 in each of the Nd entries. Thus

‖ξq(P)‖F2≤NdΔ2/4.

The triangle and reverse triangle inequalities give |eq(P)−‖R−P‖F|≤‖ξq(P)‖F, proving (34). For P∗=R, we have ZP∗=Sfp, 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 R. LoRAP introduces a learnable correction P at the aggregation output, yielding the residual R−P. 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 Wfp∈ℝd×d′ 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 Q and DQ use the same weight quantization parameters, which may differ from the post-insertion configuration. Thus Wq is expressed in real units, while Q(Wfp) contains integer codes. For the same layer input, the reference linear output is Yfp=SfpWfp. Define

EW =Yfp−S^Wq =RWq+Sfp(Wfp−Wq).

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}
=EW−PWq−ξq(P)Wq,
\|Y_{\mathrm{fp}}-{\color[rgb]{0,0,0}DQ\bigl(Q(Z_{P})\bigr)}W_{q}\|_{F}
≤‖EW−PWq‖F+bq‖Wq‖2.

The bound follows from (33) and ‖ξq(P)Wq‖F≤‖ξq(P)‖F‖Wq‖2. 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{}
[ε(P)+bq]‖Wq‖2 +‖Sfp(Wfp−Wq)‖F.

If an activation γ is Lγ-Lipschitz in the Frobenius norm, applying it to both outputs multiplies the bound by Lγ. 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 Fℓ and F~ℓ be the full-precision reference and quantized prompted layer maps, respectively, at the same checkpoint. For node representations, write Fℓ,F~ℓ:ℝN×dℓ−1→ℝN×dℓ, allowing the feature dimension to vary across layers. Suppose Fℓ is Lℓ-Lipschitz in the Frobenius norm on a set containing the relevant inputs. For identical initial inputs H0=H~0, define

Hℓ=Fℓ(Hℓ−1),H~ℓ=F~ℓ(H~ℓ−1),

and the same-input local discrepancy

δℓ=‖Fℓ(H~ℓ−1)−F~ℓ(H~ℓ−1)‖F.

Then the accumulated error eℓ=‖Hℓ−H~ℓ‖F satisfies

eℓ≤Lℓeℓ−1+δℓ,

and, for a network of L layers,

\boxed{e_{L}\leq\sum_{\ell=1}^{L}\left(\prod_{j=\ell+1}^{L}L_{j}\right)\delta_{\ell}.}

An empty product equals 1.

Proof.

Insert and subtract Fℓ(H~ℓ−1) and apply the triangle inequality and the Lipschitz assumption:

eℓ ≤‖Fℓ(Hℓ−1)−Fℓ(H~ℓ−1)‖F+δℓ ≤Lℓeℓ−1+δℓ.

Expanding this recursion with e0=0 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 Sfp, S^, and P at the common input H~ℓ−1, using that layer’s aggregation width and quantizer step in bq. The quantity eq(P) 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 zi,z~i∈ℝC be the reference and prompted quantized logit vectors of node i over C classes. Suppose the reference has a unique predicted class ci and margin mi=(zi)ci−maxc≠ci(zi)c>0. If the prompted quantized logits satisfy

‖z~i−zi‖∞<mi/2,

then the predicted class remains ci.

Proof.

Let ηi=‖z~i−zi‖∞. For each c≠ci,

(z~i)ci−(z~i)c≥(zi)ci−(zi)c−2ηi≥mi−2ηi>0.

Thus ci 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 HL and H~L are the two logit matrices, with rows zi and z~i, respectively. Then

‖z~i−zi‖∞≤eL≤∑ℓ=1L(∏j=ℓ+1LLj)δℓ.

Whenever this upper bound is smaller than mi/2, node i 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 A, and the quantization parameters as in Section A.1. The required correction R is then fixed. For the free prompt matrix, gradient descent on ℒpost(P)=12‖R−P‖F2 gives

Ps+1=Ps−η(Ps−R).

Here s indexes the updates of this fixed reconstruction objective. Writing Rposts=R−Ps, we obtain

Rposts+1 =(1−η)Rposts, ℒpost(Ps+1) =(1−η)2ℒpost(Ps).

Thus, for 0<η<2, the residual converges geometrically to zero; η=1 reaches P=R in one step. In the corresponding pre-aggregation objective, the residual update includes AA⊤, 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,

Pt=Softmax(ϕt(S^t))PA,tPB,t.

The index t now denotes an actual QAT iteration. At the same layer input, evaluate the full-precision reference Sfp,t using the current real-valued backbone parameters Θt, and the dequantized aggregation S^t using their current quantized counterparts. Define

Rt=Sfp,t−S^t,Zt=S^t+Pt,εt(Pt)=‖Rt−Pt‖F.

Let Qt,DQt be the post-insertion quantizer pair with matching current parameters. The actual rounding and reconstruction errors are

ξq,t(Pt) =DQt(Qt(Zt))−Zt, eq,t(Pt) =‖Sfp,t−DQt(Qt(Zt))‖F.

The residual identity

Sfp,t−DQt(Qt(Zt))=Rt−Pt−ξq,t(Pt)

holds at every iteration. If the current quantizer satisfies the nearest-rounding and no-clipping assumptions of Theorem A.3, then

eq,t(Pt)≤εt(Pt)+bq,t,bq,t=Δt2Nd,

where Δt is the current quantization scale and N,d are the aggregation output dimensions.

During joint QAT, the routing map ϕt, low-rank factors PA,t,PB,t, backbone Θt, and trainable quantizer parameters are updated together under the task loss rather than by fixed-R gradient descent as in (43). Even under these coupled updates, (44) holds pointwise at every iteration t, bounding the post-requantization aggregation error via the current prompt residual εt(Pt) and scale Δt 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 R=Sfp−S^ and describes how a prompt output P 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 r=8: 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 ‖R−P‖F/‖R‖F and the requantized error ratio eq/ebase, where ebase is the error of the requantized aggregation without a prompt. Panel (b) shows the cumulative energy Ek=∑j≤kσj2/∑jσj2 of the singular values σj of R, and panel (c) tracks the continuous ratio during training.

Figure

Fig. 6: Layer-wise compensation of the aggregation residual R=Sfp−S^ by LoRAP (r=8) for GCN on MNIST under standard QAT (top row) and GIN on CIFAR-10 under A2Q (bottom row). (a) Continuous residual ratio ‖R−P‖F/‖R‖F and requantized error ratio eq/ebase. The dashed line marks the no-prompt value, and the percentages give the relative reduction 1−eq/ebase. (b) Cumulative energy Ek of the singular values of R; markers indicate E8. (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: E8 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 R; 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 E8 reaches 92.8%, whereas the other layers have E8 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 ξq(P) 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 E8. 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 P∈ℝN×d 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 k prompt bases factorized at rank r<min(k,d), let Δk={α∈ℝ1×k:αm>0,∑m=1kαm=1} denote the open probability simplex, and define the post-aggregation and matched pre-aggregation low-rank prompt generators by

P(θP) =M(ϕ)PAPB, M(ϕ) =Softmax(ϕ(S^))∈ΔkN, Ppre(θP) =Mpre(ϕpre)PAPB, Mpre(ϕpre) =Softmax(ϕpre(Xq))∈ΔkN,

where ϕ(s^i)=s^iWϕ+bϕ and ϕpre(xq,j)=xq,jWϕ,pre+bϕ,pre act row-wise with Wϕ,Wϕ,pre∈ℝd×k and bϕ,bϕ,pre∈ℝ1×k, while PA∈ℝk×r and PB∈ℝr×d are the shared low-rank factors collected in θP=(ϕ,PA,PB). Substituting (45) into (26) gives the parameterized reconstruction objectives

ℒ^post(ϕ,PA,PB)=12‖R−M(ϕ)PAPB‖F2,ℒ^pre(ϕpre,PA,PB)=12‖R−AMpre(ϕpre)PAPB‖F2.

Because S^ and R=Sfp−S^ are independent of θP, all post-aggregation derivatives below hold identically whether S^=AXq (Section A.1) or S^=DQ(Sq) 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 A, S^, Xq, and the routing matrices M=M(ϕ) and Mpre=Mpre(ϕpre) in (46), and let ΠM=MM† be the orthogonal projector onto col(M). In column-vectorized factor coordinates, the block Hessians satisfy

∇PA2ℒ^post =(PBPB⊤)⊗(M⊤M), ∇PB2ℒ^post =Id⊗(PA⊤M⊤MPA), ∇PA2ℒ^pre =(PBPB⊤)⊗(Mpre⊤A⊤AMpre), ∇PB2ℒ^pre =Id⊗(PA⊤Mpre⊤A⊤AMprePA).

Moreover, although (PA,PB)↦ℒ^post(ϕ,PA,PB) is nonconvex, every critical point (PA,PB) is either a global minimum achieving

minPA∈ℝk×r,PB∈ℝr×dℒ^post(ϕ,PA,PB)=12(‖R‖F2−∑j=1rσj2(ΠMR)),

with σj(ΠMR)=0 for j>min(rank(M),d), or a strict saddle point whose joint Hessian ∇(PA,PB)2ℒ^post has a strictly negative eigenvalue.

Proof.

For fixed M and PB, differentiating ℒ^post along HA∈ℝk×r gives

DPAℒ^post[HA]=⟨MPAPB−R,MHAPB⟩F=⟨M⊤(MPAPB−R)PB⊤,HA⟩F,

and a second derivative yields the linear operator HA↦(M⊤M)HA(PBPB⊤). Applying \vecop(UXV)=(V^{\top}\otimes U)\vecop(X) with symmetric PBPB⊤ gives ∇PA2ℒ^post=(PBPB⊤)⊗(M⊤M). Similarly, differentiating with respect to PB along HB∈ℝr×d yields HB↦(PA⊤M⊤MPA)HB, whose column vectorization is Id⊗(PA⊤M⊤MPA). Replacing M with AMpre gives the two pre-aggregation block Hessians in (47).

To analyze the global landscape of ℒ^post(ϕ,PA,PB) for fixed M∈ΔkN, note first that M𝟏k=𝟏N≠0, so m:=rank(M)≥1. Let M=UMΣMVM⊤ be the compact singular value decomposition of M, with UM∈ℝN×m (UM⊤UM=Im), ΣM∈ℝm×m positive diagonal, and VM∈ℝk×m (VM⊤VM=Im). Then ΠM=UMUM⊤. Setting RM:=UM⊤R∈ℝm×d and U~:=ΣMVM⊤PA∈ℝm×r, we have MPAPB=UMU~PB∈col(UM) and (IN−ΠM)R⟂col(UM), so

ℒ^post(ϕ,PA,PB)=12‖(IN−ΠM)R‖F2+12‖RM−U~PB‖F2.

Because PA↦ΣMVM⊤PA maps ℝk×r surjectively onto ℝm×r (with right inverse U~↦VMΣM−1U~) and σj(RM)=σj(ΠMR) for all j≥1, the Eckart–Young–Mirsky theorem applied to RM gives

minPA,PB12‖RM−U~PB‖F2=12(‖RM‖F2−∑j=1rσj2(RM)).

Combining this identity with ‖(IN−ΠM)R‖F2=‖R‖F2−‖RM‖F2 proves (48).

Now let (PA,PB) be any critical point of ℒ^post(ϕ,⋅,⋅) that is not a global minimum, and set EM:=RM−U~PB. Stationarity reads

0=∇PAℒ^post=−VMΣMEMPB⊤,0=∇PBℒ^post=−U~⊤EM.

Left-multiplying the first equation by ΣM−1VM⊤ gives EMPB⊤=0, alongside U~⊤EM=0. Hence col(EM)⟂col(U~)⊇col(U~PB) and row(EM)⟂row(PB)⊇row(U~PB), so the nonzero singular values of RM=U~PB+EM are the disjoint multiset union of the nonzero singular values of U~PB and those of EM. Since (PA,PB) does not attain the global minimum in (48), we have EM≠0 (so σ1(EM)>0) and σr(U~PB)<σ1(EM), where σr(U~PB):=0 if rank(U~PB)<r.

Let ue∈ℝm and ve∈ℝd be unit top left and right singular vectors of EM, so that ue⊤EMve=σ1(EM)>0, U~⊤ue=0, and PBve=0. For any a,b∈ℝr, define the perturbation ΔU~=uea⊤, ΔPA=VMΣM−1ΔU~, and ΔPB=bve⊤. Substituting (PA+tΔPA,PB+tΔPB) into (49) and using ⟨U~bve⊤,uea⊤PB⟩F=(ue⊤U~b)(a⊤PBve)=0 yields the second directional derivative

D(PA,PB)2ℒ^post[ΔPA,ΔPB]=‖U~b‖22+‖PB⊤a‖22−2σ1(EM)a⊤b.

If ker(U~)≠{0}, choosing a unit vector b∈ker(U~) and a=τb with 0<τ<2σ1(EM)/(‖PB⊤b‖22+1) makes this quadratic form strictly negative. Symmetrically, if ker(PB⊤)≠{0}, choosing unit a∈ker(PB⊤) and b=τa with 0<τ<2σ1(EM)/(‖U~a‖22+1) makes it strictly negative. Otherwise, both U~⊤U~ and PBPB⊤ are positive definite. Let w∈ℝr be a unit eigenvector associated with the smallest eigenvalue of (U~⊤U~)1/2(PBPB⊤)(U~⊤U~)1/2, which equals σr2(U~PB), and set a=(U~⊤U~)1/2w and b=σ1(EM)(U~⊤U~)−1/2w. Then (ΔPA,ΔPB)≠(0,0) and

D(PA,PB)2ℒ^post[ΔPA,ΔPB]=σ12(EM)+σr2(U~PB)−2σ12(EM)=σr2(U~PB)−σ12(EM)<0.

By the Rayleigh quotient characterization, ∇(PA,PB)2ℒ^post has a strictly negative eigenvalue. ∎

In factor coordinates, the Hessian is no longer the identity because curvature depends on the routing Gram matrix M⊤M and factor norms. Nevertheless, Theorem A.4 preserves the structural advantage of Theorem A.1: post-aggregation factor curvature is independent of A and free of spurious local minima for fixed routing, whereas pre-aggregation replaces M⊤M with Mpre⊤A⊤AMpre, inheriting spectral distortion from A⊤A and flat directions whenever col(Mpre)∩ker(A)≠{0}. When a pre-aggregation prompt is injected prior to input quantization as ADQ(Q(X+Ppre(θP))) (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 DQ(Q(⋅)) is the identity, so the Gauss–Newton curvature of the low-rank factors still replaces M⊤M with Mpre⊤A⊤AMpre, while clipped entries introduce additional zero-gradient directions.

Theorem A.5 (Low-rank locality and residual attribution).

For fixed parameters θP, let αi∈Δk denote the ith row of M(ϕ), Σα,i=Diag(αi)−αi⊤αi, and Jprompt,i=PB⊤PA⊤Σα,iWϕ⊤. For Spost(θP)=S^+P(θP) and Spre(θP)=A(Xq+Ppre(θP)), every pair of nodes i,j satisfies

∂(Spost(θP))i∂s^j=δij(Id+Jprompt,i),∂(Spre(θP))i∂xq,j=Aij(Id+Jprompt,jpre),

where Jprompt,jpre=PB⊤PA⊤Σα,jpreWϕ,pre⊤. Writing Eipost=Pi(θP)−Ri and E~jpre=∑i=1NAij((APpre(θP))i−Ri), the shared-parameter gradients satisfy

∇PAℒ^post =∑i=1Nαi⊤EipostPB⊤, ∇PBℒ^post =∑i=1NPA⊤αi⊤Eipost, ∇Wϕℒ^post =∑i=1Ns^i⊤EipostPB⊤PA⊤Σα,i, ∇PAℒ^pre =∑j=1N(αjpre)⊤E~jprePB⊤, ∇PBℒ^pre =∑j=1NPA⊤(αjpre)⊤E~jpre, ∇Wϕ,preℒ^pre =∑j=1Nxq,j⊤E~jprePB⊤PA⊤Σα,jpre.

Proof.

For row i, (Spost(θP))i=s^i+αi(s^iWϕ+bϕ)PAPB depends only on s^i. For zi=s^iWϕ+bϕ, the Softmax derivative is ∂αi,m/∂zi,p=(Σα,i)m,p, so for entries (c,q)∈{1,…,d}2,

∂Pi,c(θP)∂s^j,q=δij∑m=1k∑p=1k(Wϕ)q,p(Σα,i)p,m(PAPB)m,c=δij(PB⊤PA⊤Σα,iWϕ⊤)c,q=δij(Jprompt,i)c,q,

which gives the post-aggregation block in (50). Similarly, (Spre(θP))i=∑ℓ=1NAiℓ(xq,ℓ+Ppre,ℓ(θP)) yields Aij(Id+Jprompt,jpre).

For the parameter gradients, Theorem A.2 gives the output-row derivatives ∂ℒpost/∂Pi=Eipost and ∂ℒpre/∂Ppre,j=E~jpre. Applying the chain rule to Pi(θP)=αi(s^iWϕ+bϕ)PAPB across i=1,…,N gives

∂ℒ^post∂(PA)m,u=∑i=1Nαi,m(EipostPB⊤)u,∂ℒ^post∂(PB)u,c=∑i=1N(αiPA)uEi,cpost,

and

∂ℒ^post∂(Wϕ)q,p=∑i=1Ns^i,q∑m=1k(EipostPB⊤PA⊤)m(Σα,i)m,p,

which assemble into the post-aggregation identities in (51). Replacing Pi(θP), s^i, αi, and Eipost with Ppre,j(θP), xq,j, αjpre, and E~jpre yields the pre-aggregation gradients. ∎

Shared prompt parameters aggregate gradients across all N nodes, yet Theorem A.5 shows that post-aggregation LoRAP pairs each node’s feature s^i and routing weight αi solely with its own unmixed receiver residual Eipost, while keeping the node-to-node sensitivity block-diagonal in (50). Pre-aggregation low-rank prompting instead replaces Ejpost with the graph-mixed residual E~jpre, allowing opposite-sign residuals across receiving neighbors to cancel before updating θP.

Theorem A.6 (Low-rank approximation and requantization bound).

Let Vr∈ℝd×r collect orthonormal right singular vectors for the top r singular values of R, and set Cr=RVr∈ℝN×r and Bmax(θP)=max1≤m≤k‖(PAPB)m‖2. Then every θP satisfies

ε(P(θP))2≥max{∑j>rσj2(R),∑i=1N(max{0,‖Ri‖2−Bmax(θP)})2},

and setting PB=Vr⊤ gives the exact decomposition

ε(ϕ,PA,Vr⊤)2=∑j>rσj2(R)+‖Cr−M(ϕ)PA‖F2.

For unconstrained simplex weights, if k≤r, then either rank(PA)<r or conv(PA) is confined to an open half-space in ℝr. Conversely, whenever k≥r+1, there exist PA∈ℝk×r of rank r and an unconstrained M∗∈ΔkN (which need not be realizable by the affine router M(ϕ)) such that M∗PA=Cr, giving ε(ϕ,PA,Vr⊤)2=∑j>rσj2(R)+‖(M(ϕ)−M∗)PA‖F2. Finally, if post-insertion requantization uses nearest rounding without clipping and entrywise positive scales Δi,c>0, then with bq:=12∑i=1N∑c=1dΔi,c2,

|eq(P(θP))−ε(P(θP))|≤bq,eq(P(θP))≤ε(P(θP))+bq,

so eq(P(θP))<ebase holds whenever ε(P(θP))+bq<ebase.

Proof.

Because rank(P(θP))≤r, the Eckart–Young–Mirsky theorem gives ε(P(θP))2≥∑j>rσj2(R). In addition, each row αi∈Δk satisfies ‖Pi(θP)‖2=‖∑m=1kαi,m(PAPB)m‖2≤Bmax(θP), so ‖Ri−Pi(θP)‖2≥max{0,‖Ri‖2−Bmax(θP)}, and summing the squared bounds over i=1,…,N proves (52).

Next, since Vr⊤Vr=Ir and Cr=RVr, we have (R−CrVr⊤)Vr=0 and ‖R−CrVr⊤‖F2=∑j>rσj2(R). Writing R−M(ϕ)PAVr⊤=(R−CrVr⊤)+(Cr−M(ϕ)PA)Vr⊤, the Frobenius inner product of the two terms vanishes:

⟨R−CrVr⊤,(Cr−M(ϕ)PA)Vr⊤⟩F=⟨(R−CrVr⊤)Vr,Cr−M(ϕ)PA⟩F=0.

Using ‖(Cr−M(ϕ)PA)Vr⊤‖F2=‖Cr−M(ϕ)PA‖F2 yields (53).

For the basis-count threshold, let q1,…,qk∈ℝ1×r denote the rows of PA and K=conv({q1,…,qk}). Suppose k≤r. If 0∈K, then ∑m=1kλmqm=0 for some λm≥0 with ∑m=1kλm=1, so q1,…,qk are linearly dependent and rank(PA)≤k−1<r. If 0∉K, since {0} and K are disjoint compact convex sets, the strict separating hyperplane theorem gives a unit vector u∈ℝ1×r such that qu⊤<0 for all q∈K, confining K to an open half-space. Conversely, suppose k≥r+1 and let ρ¯=max{1,max1≤i≤N‖(Cr)i‖∞}>0. Define the rows of PA∈ℝk×r by qm=2r(r+1)ρ¯em for m=1,…,r (where em is the mth standard basis row) and qm=−2(r+1)ρ¯𝟏r⊤ for m=r+1,…,k. The leading r×r block of PA is 2r(r+1)ρ¯Ir, so rank(PA)=r. For each node i with ci=(Cr)i, set

βi=12(1−∑m=1rci,m2r(r+1)ρ¯),αi,m∗={ci,m+2(r+1)ρ¯βi2r(r+1)ρ¯,1≤m≤r,[6.0pt]βik−r,r+1≤m≤k.

Because |ci,m|≤ρ¯, we have βi≥(2r+1)/[4(r+1)]>0 and ci,m+2(r+1)ρ¯βi≥(r−12)ρ¯>0, so αi,m∗>0 for all m, ∑m=1kαi,m∗=1, and ∑m=1kαi,m∗qm=ci. Stacking αi∗ as rows gives an unconstrained M∗∈ΔkN with M∗PA=Cr, and substituting Cr=M∗PA into (53) yields ε(ϕ,PA,Vr⊤)2=∑j>rσj2(R)+‖(M(ϕ)−M∗)PA‖F2. Because M(ϕ)=Softmax(S^Wϕ+bϕ) has logits affine in S^, M∗ need not be realizable by ϕ (for instance, when distinct full-precision neighborhoods quantize to identical rows s^i=s^j while (Cr)i≠(Cr)j), so the lower bound ∑j>rσj2(R) characterizes the capacity of unconstrained convex combinations rather than a guaranteed error of LoRAP.

Finally, under nearest rounding without clipping at entrywise scales Δi,c>0, each entry of ξq(P(θP))=DQ(Q(ZP(θP)))−ZP(θP) satisfies |(ξq(P(θP)))i,c|≤Δi,c/2, so ‖ξq(P(θP))‖F≤bq. Applying the triangle and reverse triangle inequalities to Sfp−S~(P(θP))=R−P(θP)−ξq(P(θP)) 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 ε(P(θP))+bq<ebase, while explaining the design constraint r<k: at least r+1 bases are necessary for convex combinations of the prompt bases to span both signs across r principal directions, whereas the remaining gap ‖(M(ϕ)−M∗)PA‖F reflects the predictability of Cr from S^ under the affine router ϕ. When R≠0, the spectral lower bound in (52) implies ε(P(θP))/‖R‖F≥1−Er, where Er is the cumulative singular-value energy defined in Section A.5. At r=8, the empirical values in Fig. 6 closely track this bound. For GCN on MNIST under QAT, E8=84.9% in layer 1, 44.2% in layer 2, and <10% in layers 3–4 give theoretical floors 1−E8≈0.39, 0.75, and >0.95, matching the observed continuous ratios 0.39, 0.75, and 0.96. For GIN on CIFAR-10 under A2Q, layer 2 reaches E8=92.8% (1−E8≈0.27, observed 0.34), whereas the remaining layers have E8∈[20.5%,33.5%] (floors 0.82–0.89, observed 0.84–0.94). Setting Δi,c≡Δ recovers bq=Δ2Nd in Theorem A.3 and the pointwise joint-QAT bound (44), while heterogeneous Δi,c 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 ℓ∈{1,…,L} of the quantized backbone:

Yℓ=FℓQAT(H~ℓ−1,ℰ;Wℓ,θQ,ℓ),Y~ℓ=Yℓ+Gℓ(Uℓ,ℰ;ψℓ),

where FℓQAT denotes the native quantized message-passing module with backbone weights Wℓ and quantizer configuration θQ,ℓ, retaining the host framework’s fake-quantization operators and backward rules. Here Uℓ is an intermediate tensor reused from the native propagation path without introducing extra quantizer calls: for GIN and GCN, Uℓ=S^ℓ is the dequantized neighborhood aggregate, whereas for GAT, Uℓ is the layer’s native propagation input paired with the edge set ℰ to form a separate low-rank attention branch. The adapter Gℓ(⋅;ψℓ) applies an FP32 low-rank projection WA,ℓWB,ℓ (WA,ℓ∈ℝdℓ,in×rgl, WB,ℓ∈ℝrgl×dℓ,out) in row-wise node coordinates, with the output factor WB,ℓ initialized to zero so that the adapted layer initially matches the unadapted quantized backbone. The sum Y~ℓ is then processed by the layer’s remaining native operations (such as normalization, activation, or skip connections) to produce H~ℓ. Adapter parameters remain in FP32 and are not merged into the quantized weights Wℓ.

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 W, quantizer parameters θQ (when trainable under the host recipe), and adapter parameters ψ={ψℓ}ℓ=1L under the host QAT framework’s native training objective (the task loss LD, together with the native bit-budget storage penalty of A2Q 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 A2Q, 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 A2Q objective. Replacing GPF-LoRAP with this equal-capacity MLP frequently degrades A2Q 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 A2Q (with no prompting, an equal-capacity MLP, and GPF-LoRAP) and FP32 (with and without GPF-LoRAP).

DatasetModelA2QFP32
NoneEqual-Capacity MLPGPF-LoRAPNoneGPF-LoRAP
CoraGIN77.4±0.977.4±0.578.5±1.077.6±1.178.0±0.7
GCN76.1±0.376.8±0.379.1±0.181.4±0.777.0±0.8
GAT82.6±0.880.9±0.483.6±0.683.1±0.481.0±1.2
CiteSeerGIN66.6±0.164.0±1.670.7±0.666.1±0.968.0±0.7
GCN69.7±1.667.7±0.971.8±0.771.1±0.766.9±1.8
GAT71.2±0.968.9±1.272.5±0.872.5±0.766.8±3.4
PubMedGIN72.9±0.473.2±2.675.7±1.475.9±1.275.7±1.7
GCN71.4±0.273.3±1.877.3±1.179.5±0.279.4±0.4
GAT78.3±0.474.6±1.680.2±1.278.7±0.278.4±0.2

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 (128→256→256→40, hidden dimension d=256) on an NVIDIA RTX 4090 GPU. GPF-LoRAP uses k=20 prompts and rank r=8.

Deployment PathPromptingGPU Latency (ms)Peak GPU Memory (MiB)Model Storage (KiB)
FP32None5.530±0.003610.03434.16
Native W4A4None3.175±0.00465.1565.31
Native W4A4GPF-LoRAP (unfused)4.689±0.01194.43114.09
Native W4A4GPF-LoRAP (fused)3.449±0.00573.68114.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 (128→256→256→40, hidden dimension d=256) on an NVIDIA RTX 4090 GPU, with GPF-LoRAP configured at k=20 and r=8. Relative to FP32 (5.530 ms), native W4A4 lowers latency to 3.175 ms (1.74× 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 1.60× 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.

  1. 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. ↩