A General Framework for Defending against Query-based Black-box Attacks on Neural Network Models

As Machine Learning as a Service (MLaaS) becomes increasingly prevalent, query-based black-box attacks pose a significant threat to machine learning systems. These attacks manipulate input queries to generate adversarial examples, resulting in misclassification or undesired outputs. To address these threats, researchers have developed various query moderation techniques. However, recent studies have revealed that these techniques are vulnerable to sophisticated adaptive attacks. In this paper, we propose a general framework, Query Provenance Analysis (QPA), to defend against query-based black-box attacks both robustly (against non-adaptive and adaptive attacks) and efficiently (in real-time). Our key insight is that, instead of focusing on individual queries, utilizing features from the query sequence (termed query provenance ) can distinguish malicious queries from benign queries more effectively. We construct a query provenance graph to capture the relationship between a new query and prior historical queries, and then design efficient algorithms to detect malicious queries based on the query provenance graphs. We evaluate QPA on image classification and Natural Language Processing (NLP) tasks. QPA significantly reduces the Attack Success Rate (ASR) compared to baselines, achieving up to 20 \(\times\) lower ASR for image classification and 10 \(\times\) lower ASR for NLP, while also improving throughput and latency across all tasks.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Software Engineering and Methodology
Published
2026-06-12
DOI
https://doi.org/10.1145/3820765
Primary Topic
Adversarial Robustness in Machine Learning
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A General Framework for Defending against Query-based Black-box Attacks on Neural Network Models

Shaofei Li, Ziqi Zhang, Yao Guo, Ding Li et al.
ACM Transactions on Software Engineering and Methodology
Adversarial Robustness in Machine Learning
article

A General Framework for Defending against Query-based Black-box Attacks on Neural Network Models

Shaofei Li, Ziqi Zhang, Yao Guo, Ding Li, Zhenkai Liang, Xiangqun Chen, Ruqin Li
article en

Abstract

As Machine Learning as a Service (MLaaS) becomes increasingly prevalent, query-based black-box attacks pose a significant threat to machine learning systems. These attacks manipulate input queries to generate adversarial examples, resulting in misclassification or undesired outputs. To address these threats, researchers have developed various query moderation techniques. However, recent studies have revealed that these techniques are vulnerable to sophisticated adaptive attacks. In this paper, we propose a general framework, Query Provenance Analysis (QPA), to defend against query-based black-box attacks both robustly (against non-adaptive and adaptive attacks) and efficiently (in real-time). Our key insight is that, instead of focusing on individual queries, utilizing features from the query sequence (termed query provenance ) can distinguish malicious queries from benign queries more effectively. We construct a query provenance graph to capture the relationship between a new query and prior historical queries, and then design efficient algorithms to detect malicious queries based on the query provenance graphs. We evaluate QPA on image classification and Natural Language Processing (NLP) tasks. QPA significantly reduces the Attack Success Rate (ASR) compared to baselines, achieving up to 20 \(\times\) lower ASR for image classification and 10 \(\times\) lower ASR for NLP, while also improving throughput and latency across all tasks.

ACM Transactions on Software Engineering and Methodology
University of Illinois Urbana-Champaign (US), National University of Singapore (SG), Peking University (CN), Institute of Software (CN), Beihang University (CN)
Openalex Percentile: Top 4%
Adversarial Robustness in Machine Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.