arrow
返回

GraphPrior: Mutation-based Test Input Prioritization for Graph Neural Networks

delete2023-11-24
delete7
delete
OA
AI
X
Xueqi Dang
Y
Yinghua Li *
M
Mike Papadakis
J
Jacques Klein
T
Tegawendé F. Bissyandé
Y
Yves Le Traon
DOI:10.1145/3607191delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Graph Neural Networks (GNNs) have achieved promising performance in a variety of practical applications. Similar to traditional DNNs, GNNs could exhibit incorrect behavior that may lead to severe consequences, and thus testing is necessary and crucial. However, labeling all the test inputs for GNNs can be costly and time-consuming, especially when dealing with large and complex graphs, which seriously affects the efficiency of GNN testing. Existing studies have focused on test prioritization for DNNs, which aims to identify and prioritize fault-revealing tests (i.e., test inputs that are more likely to be misclassified) to detect system bugs earlier in a limited time. Although some DNN prioritization approaches have been demonstrated effective, there is a significant problem when applying them to GNNs: They do not take into account the connections (edges) between GNN test inputs (nodes), which play a significant role in GNN inference. In general, DNN test inputs are independent of each other, while GNN test inputs are usually represented as a graph with complex relationships between each test. In this article, we propose GraphPrior (GNN-oriented Test Prioritization), a set of approaches to prioritize test inputs specifically for GNNs via mutation analysis. Inspired by mutation testing in traditional software engineering, in which test suites are evaluated based on the mutants they kill, GraphPrior generates mutated models for GNNs and regards test inputs that kill many mutated models as more likely to be misclassified. Then, GraphPrior leverages the mutation results in two ways, killing-based and feature-based methods. When scoring a test input, the killing-based method considers each mutated model equally important, while feature-based methods learn different importance for each mutated model through ranking models. Finally, GraphPrior ranks all the test inputs based on their scores. We conducted an extensive study based on 604 subjects to evaluate GraphPrior on both natural and adversarial test inputs. The results demonstrate that KMGP, the killing-based GraphPrior approach, outperforms the compared approaches in a majority of cases, with an average improvement of 4.76%similar to 49.60% in terms of APFD. Furthermore, the feature-based GraphPrior approach, RFGP, performs the best among all the Graph-Prior approaches. On adversarial test inputs, RFGP outperforms the compared approaches across different adversarial attacks, with the average improvement of 2.95%similar to 46.69%.
Keyword:
Test Input Prioritization
Graph Neural Networks
Mutation
Labelling

期刊

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
论文数:
1.2K
被引数:
3.4K

机构

U
university of luxembourg
学者数:
5.2K
论文数: 4.8K
被引数: 4
引用论文

引用论文

Geopolitics and discourse地缘政治与话语
err1992-03-01
err0
PREAI
errGearóid Ó Tuathail; John Agnew
err分享
err收藏
A deeper graph neural network for recommender systems
err2019-12-01
err97
PREAI
errYin, Ruiping; Li, Kan; Zhang, Guangquan; Lu, Jie
err分享
err收藏
Graph Convolutional Networks for Hyperspectral Image Classification用于高光谱图像分类的图卷积网络
err2021-07-01
err1.3K
errOAAI
errHong, Danfeng; Gao, Lianru; Yao, Jing; Zhang, Bing; Plaza, Antonio; Chanussot, Jocelyn
err分享
err收藏
err分享
err收藏
Coverage Prediction for Accelerating Compiler Testing
err2021-02-01
err23
PREAI
errChen, Junjie; Wang, Guancheng; Hao, Dan; Xiong, Yingfei; Zhang, Hongyu; Zhang, Lu; Xie, Bing
err分享
err收藏
学者 查看更多内容