Matcha: Mitigating Graph Structure Shifts with Test-Time Adaptation
Wenxuan Bao, Zhichen Zeng, Zhining Liu, Hanghang Tong, Jingrui He
Abstract
Powerful as they are, graph neural networks (GNNs) are known to be vulnerable to distribution shifts. Recently, test-time adaptation (TTA) has attracted attention due to its ability to adapt a pre-trained model to a target domain, without re-accessing the source domain. However, existing TTA algorithms are primarily designed for attribute shifts in vision tasks, where samples are independent. These methods perform poorly on graph data that experience structure shifts, where node connectivity differs between source and target graphs. We attribute this performance gap to the distinct impact of node attribute shifts versus graph structure shifts: the latter significantly degrades the quality of node representations and blurs the boundaries between different node categories. To address structure shifts in graphs, we propose Matcha, an innovative framework designed for effective and efficient adaptation to structure shifts by adjusting the htop-aggregation parameters in GNNs. To enhance the representation quality, we design a prediction-informed clustering loss to encourage the formation of distinct clusters for different node categories. Additionally, Matcha seamlessly integrates with existing TTA algorithms, allowing it to handle attribute shifts effectively while improving overall performance under combined structure and attribute shifts. We validate the effectiveness of Matcha on both synthetic and real-world datasets, demonstrating its robustness across various combinations of structure and attribute shifts. Our code is available at https://github.com/baowenxuan/Matcha .
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 0e405ba1-5613-44a5-bdff-2eb97c4394ccCited by top-tier papers5
- Mint: A Simple Test-Time Adaptation of Vision-Language Models against Common CorruptionsWenxuan Bao, Ruxi Deng, Jingrui HeNeurIPS 2025 · 7 citations
- Out-of-Distribution Generalized Graph Anomaly Detection with Homophily-aware Environment MixupSibo Tian, Xin Wang, Zeyang Zhang, Haibo Chen et al.NeurIPS 2025 · 3 citations
- Panda: Test-Time Adaptation with Negative Data AugmentationRuxi Deng, Wenxuan Bao, Tianxin Wei, Jingrui HeAAAI 2026 · 3 citations
- Attribute-guided Dynamic Prompt Learning for Graph Neural NetworksZhuomin Liang, Liang Bai, Xian YangAAAI 2026
- Can Graph Neural Networks Learn Language with Extremely Weak Text Supervision?Zihao Li, Lecheng Zheng, Bowen Jin, Dongqi Fu et al.ACL 2025
Builds on45
- Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong et al.NeurIPS 2020 · 3,935 citations
- Simple and Deep Graph Convolutional NetworksMing Chen, Zhewei Wei, Zengfeng Huang, Bolin Ding et al.ICML 2020 · 1,910 citations
- Tent: Fully Test-Time Adaptation by Entropy MinimizationDequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno A. Olshausen et al.ICLR 2021 · 1,731 citations
- Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain AdaptationJian Liang, Dapeng Hu, Jiashi FengICML 2020 · 1,624 citations
- DropEdge: Towards Deep Graph Convolutional Networks on Node ClassificationYu Rong, Wenbing Huang, Tingyang Xu, Junzhou HuangICLR 2020 · 1,599 citations
Related papers
- Geometry-aware Test-Time Adaptation on GraphsLingwei Wei, Dou Hu, Li Sun, Chengze Li et al.KDD 2026
- FRET: Feature Redundancy Elimination for Test Time AdaptationLinjing You, Jiabao Lu, Xiayuan Huang, Xiangli NieICCV 2025
- CAFA: Class-Aware Feature Alignment for Test-Time AdaptationSanghun Jung, Jungsoo Lee, Nanhee Kim, Amirreza Shaban et al.ICCV 2023 · 23 citations
- Label Shift Adapter for Test-Time Adaptation under Covariate and Label ShiftsSunghyun Park, Seunghan Yang, Jaegul Choo, Sungrack YunICCV 2023 · 28 citations
- Progressive Graph Structure Adjustment for Homophily Shift AdaptationHongwei Wen, Can Zhang, Haoyu He, Hanyuan Hang et al.ICML 2026
