Test-Time Graph Recalibration: Enhancing Robust Zero-Shot Inference for Graph Foundation Models
Chunchun Chen, Zhen Luo, Xing Wei, Yuxing Zhang, Xiaofeng Cao, Rui Fan, Ambuj K Singh, Wei Ye
NeurIPS page · OpenReview · Open on the map
Category: Graphs, OOD Detection & Medical Imaging › Graph Adversarial Robustness · Type: new method · Keywords: graph foundation models, adversarial robustness, zero-shot inference, test-time adaptation, spectral entropy
Areas: Graph Learning › Graph Learning Paradigms › Graph Adversarial Robustness
Summary
TRACE (Test-Time Graph Recalibration) is a test-time framework that learns a structural anti-attack directly on noisy graphs to neutralize adversarial perturbations while preserving performance on clean graphs.
Explained to a 5-year-old
We have a computer model that learns about networks of connections. Sometimes someone tries to trick it by changing the connections. The model can fix itself when it sees new tricks without having to learn everything again. It looks at how mixed up the connections are and uses a simple rule to fix them. It also uses a guide from words to help it fix the graph.
Explained to a 5-year-old, longer
A computer program learns how to understand networks of things, like friends being connected. Sometimes people try to confuse the program by changing the way the things are linked. The program can learn to fix these tricks when it sees new confusing links without having to start over. It checks how mixed up the connections look using a simple measurement. If the connections look too tangled, it decides to change some of them. It uses a guide that comes from words to know what a good network should look like. The guide helps the program move the tangled network back to a clean state. It does this by flipping a few connections at a time, which is fast and cheap. After fixing, the program can still answer questions about the network correctly. This works even when the program hasn't been trained on the new tricky network before. The method helps the program stay reliable in real situations where it might be tricked. Overall, it makes the program smarter at handling unexpected changes.
For a technical reader
The paper addresses the problem of keeping graph foundation models robust when they encounter adversarial perturbations at inference time. Instead of retraining the model, the proposed approach learns a lightweight anti-attack module on the fly by measuring structural-semantic misalignment with a smoothed spectral entropy metric. It then guides the corrupted graph back to a clean manifold using a uniformity-based loss that leverages pretrained text encoders as semantic anchors. To keep computation efficient, the method updates the graph structure via a first-order gradient-based edge-flipping scheme that works directly in the discrete domain. Experiments on multiple benchmarks show that this test-time recalibration consistently outperforms existing baselines without the need for additional training.
Problem
Robust zero-shot inference for graph foundation models is challenging because existing defenses are static and costly to retrain, leaving them vulnerable to unseen adversarial structures.
Method
The approach learns a structural anti-attack directly on noisy graphs during inference, uses a non-parametric metric based on smoothed spectral entropy to detect misalignment, and applies a uniformity-guided objective with text encoder anchors to guide the graph back to a clean manifold, employing a first-order gradient-based edge-flipping strategy for efficient reconstruction.
Results
The approach shows superior performance over state-of-the-art baselines across multiple benchmark datasets and graph attacks.
Contributions
It introduces a test-time recalibration framework that adaptively detects and mitigates adversarial perturbations without retraining, using a spectral entropy metric and a uniformity-guided optimization with edge flipping for efficient graph reconstruction.
Practical relevance
Enables robust zero-shot inference for graph foundation models in practical settings without costly retraining.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction