Spectral Reversal: Counteracting Singular Value Bias for Graph Prompting

Hanxu Yang, Yuhuan Zhao, Xiaodong He, zhao kangNeurIPS 2026

TL;DR

When you pre-train a Graph Neural Network (GNN), it develops "tunnel vision"—focusing heavily on loud, dominant patterns in the data while ignoring quieter, subtler signals. When adapting that frozen model to new tasks, existing prompting methods treat it like a black box, inheriting its blind spots. This paper introduces Spectral Reverse Prompt (SRP), a lightweight technique that acts like an audio equalizer: it turns down the volume on those dominant signals and rescues hidden information from the model's mathematical blind spots, achieving state-of-the-art accuracy with fewer than 7% of the backbone's parameters.

What Problem Does This Paper Address?

Pre-training massive models and adapting them via lightweight "prompts" (keeping the main network frozen while tuning tiny add-on parameters) is standard practice in AI, including for Graph Neural Networks (GNNs)—models designed to learn from interconnected data like molecules or citation networks.

However, current graph prompting methods treat frozen GNNs as opaque feature extractors. The authors crack open the black box using Singular Value Decomposition (SVD)—a mathematical prism that breaks a weight matrix down into orthogonal directions ranked by their strength, or "singular values."

They discover a systematic spectral bias: during self-supervised pre-training, gradient descent and graph message-passing conspire to pack almost all the model's capacity into a few dominant directions (large singular values). Meanwhile, weaker directions are starved of capacity, and anything falling into the weight matrix's null space (directions mapped completely to zero) becomes an irreversible blind spot. Crucially, when shifting to a new downstream task, the exact features you need often live in those neglected weak directions and blind spots.

Figure 1: Left: DPMS and ∆q in the singular values of the quintices of Wdown. Right: Informa- tion density of encoder and null space.

Methods

Instead of reinforcing what the frozen GNN already shouts about, Spectral Reverse Prompt (SRP) flips the script. Performed after a one-time, offline SVD calculation of the frozen layer weights, SRP injects layer-wise prompts built from two orthogonal channels:

  1. The Spectral Channel (Soft-Threshold Reversal): Node features are projected onto the weight matrix's singular directions. SRP applies a learnable soft-thresholding mask that acts in reverse—suppressing strong singular directions (multiplying them by ~0) and amplifying weak ones (multiplying them by ~1) before passing them through a tiny low-rank bottleneck adaptor.
  2. The Null-Space Channel: When the input dimension is larger than the layer's rank, the frozen encoder completely erases part of the feature space. SRP projects raw features into this invisible null space, extracts the top-$m$ principal components via PCA (kept frozen), and passes them through a small learnable adaptor. (Note: On datasets with tiny input dimensions where no null space exists, SRP seamlessly simplifies into a single-adaptor "projective fallback" that still preserves weak signals).

The outputs of both channels are fused and added directly to the GNN's layer activations.

Figure 2: Overall framework of Spectral Reverse Prompt (SRP). SRP decomposes each frozen GNN layer weight to expose spectral bias, then uses a spectral channel to suppress dominant directions and amplify weak ones, and a null-space channel to exploit information that is not captured by the frozen encoder. The two channels are fused into layer-wise prompts injected into the frozen GNN for downstream tuning.

Datasets

No new datasets were introduced; the authors evaluated SRP across ten established benchmarks covering diverse scales and feature dimensions:

  • Node Classification (5-shot): Citation networks (Cora, CiteSeer, PubMed) and large-scale graphs (Flickr, ogbn-arxiv).
  • Graph Classification (50-shot): Molecular and biological datasets from TUDataset (ENZYMES, DD, NCI1, NCI109, Mutagenicity).

Key Insights and Ideas

  • The Encoder's "Trash" is Downstream Treasure: Using just the top 8 PCA dimensions from the frozen encoder's null space—signals the GNN literally throws away—yields classification accuracy comparable to the entire 128-dimensional trained encoder output, giving a massive jump in per-dimension information density.
  • Quantifying the Bottleneck: By defining a Downstream–Pretraining Misalignment Score (DPMS)—essentially a demand-to-supply ratio for each spectral direction—the authors prove that pre-trained models over-invest in dominant directions (creating a -27.1% net capacity surplus) while starving the tail directions where downstream tasks actually need help (+11.1% net deficit).
  • Where You Adapt Matters More Than How Much: Using PAC-Bayes theory, the authors show that restricting learnable parameters strictly to weak spectral directions mathematically tightens the generalization bound, preventing overfitting in low-data (few-shot) regimes.

Key Results

Tested under two major self-supervised pre-training paradigms (GraphCL and SimGRACE) against ten baselines (including GraphPrompt, EdgePrompt+, and GraphLoRA), SRP consistently takes first or second place across nearly every benchmark while using less than 7% of the backbone's parameters:

  • Big Gains on High-Dimensional Graphs: On 5-shot Cora (with GraphCL), SRP hits 68.11% accuracy, beating GraphLoRA (63.35%) by nearly 5 percentage points and linear probing (53.05%) by 15 points. On CiteSeer (SimGRACE), SRP reaches 51.37% vs. EdgePrompt+ at 46.62%.
  • Graph-Level Strength: Even on low-dimensional molecular graphs using the projective fallback, SRP leads the pack—e.g., achieving 69.71% on DD and 69.35% on Mutagenicity (GraphCL).
  • Ablations Validate the Reversal: Removing the null-space channel drops accuracy by up to 7.4% on average; removing the spectral channel costs ~3.7%. Crucially, turning off the "reverse" mask (weighting all directions equally or amplifying both extremes) degrades accuracy by 2.2%–2.8%, proving that suppressing dominant signals is key. SRP also converges noticeably faster in training epochs than competing prompts.

Limitations and Future Work

  • Global vs. Local Reweighting: SRP applies a single global threshold across a shared singular basis for the whole graph, which might miss localized, region-specific frequency differences in heterogeneous graphs.
  • Null-Space Dependency: The null-space channel shines when input features are high-dimensional, but offers limited utility when input dimensions are smaller than or equal to the encoder's rank (forcing reliance on the spectral channel alone).
  • Future Directions: The authors suggest developing instance- or structure-adaptive spectral masks driven by downstream feedback, and bringing this spectral rebalancing lens to multi-modal graph learning.

Summary updated

Abstract

Pre-training Graph Neural Networks (GNNs) via self-supervised learning has become a dominant paradigm, yet efficiently adapting frozen encoders remains a challenge. Graph prompting offers a parameter-efficient alternative to fine-tuning, but existing methods largely treat pre-trained models as opaque feature extractors, ignoring their internal spectral structure. In this work, we identify a systematic phenomenon in pre-trained GNNs, which we term spectral bias: optimization during pre-training disproportionately aligns representations with directions associated with large singular values, leaving low-energy directions under-explored. We show that these underutilized directions can encode complementary information that is beneficial for downstream adaptation, especially under distribution shift. To leverage this insight, we propose Spectral Reverse Prompt (SRP), a prompting framework that rebalances the spectral contributions of frozen GNN encoders. SRP applies a learnable soft-thresholding mask in the spectral domain to down-weight dominant directions while amplifying weaker ones. In addition, SRP incorporates a null-space augmentation module that captures variation in directions with minimal activation under the frozen encoder. Extensive experiments across multiple benchmarks demonstrate that SRP achieves state-of-the-art performance with minimal additional parameters, highlighting that reweighting spectral components is a principled and effective strategy for parameter-efficient graph adaptation.
BibTeX
@inproceedings{yang2026spectral,
  author = {Hanxu Yang and Yuhuan Zhao and Xiaodong He and zhao kang},
  title = {{Spectral Reversal: Counteracting Singular Value Bias for Graph Prompting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=UboyGh5Iah},
}
Figure