[Paper Review] Active Deep Learning Attacks under Strict Rate Limitations for Online API Calls
This paper proposes an active deep learning attack framework to infer online classifier APIs under strict rate limitations, using iterative active learning to minimize required API calls. It achieves high-label similarity (92.3% accuracy) with only 1,107 queries, enabling effective evasion and causative (poisoning) attacks that degrade classifier reliability by up to 48% on average.
Machine learning has been applied to a broad range of applications and some of them are available online as application programming interfaces (APIs) with either free (trial) or paid subscriptions. In this paper, we study adversarial machine learning in the form of back-box attacks on online classifier APIs. We start with a deep learning based exploratory (inference) attack, which aims to build a classifier that can provide similar classification results (labels) as the target classifier. To minimize the difference between the labels returned by the inferred classifier and the target classifier, we show that the deep learning based exploratory attack requires a large number of labeled training data samples. These labels can be collected by calling the online API, but usually there is some strict rate limitation on the number of allowed API calls. To mitigate the impact of limited training data, we develop an active learning approach that first builds a classifier based on a small number of API calls and uses this classifier to select samples to further collect their labels. Then, a new classifier is built using more training data samples. This updating process can be repeated multiple times. We show that this active learning approach can build an adversarial classifier with a small statistical difference from the target classifier using only a limited number of training data samples. We further consider evasion and causative (poisoning) attacks based on the inferred classifier that is built by the exploratory attack. Evasion attack determines samples that the target classifier is likely to misclassify, whereas causative attack provides erroneous training data samples to reduce the reliability of the re-trained classifier. The success of these attacks show that adversarial machine learning emerges as a feasible threat in the realistic case with limited training data.
Motivation & Objective
- To address the challenge of inferring online classifier APIs when strict rate limits restrict the number of allowed API calls.
- To develop an active learning-based method that minimizes the number of required API queries while maximizing the accuracy of the inferred classifier.
- To enable downstream adversarial attacks—evasion and causative (poisoning)—using the inferred classifier under realistic data constraints.
- To evaluate the feasibility and impact of adversarial machine learning in real-world scenarios with limited training data access.
Proposed method
- The method begins with a small initial set of 1,107 API calls to collect labeled data for training an initial deep learning classifier $ˇ{T}$.
- An active learning loop is employed: the current classifier $ˇ{T}$ selects the most informative samples (based on uncertainty or margin) to query from the target API, reducing redundant queries.
- The model is iteratively retrained with newly acquired labeled data, improving accuracy while minimizing total API usage.
- For evasion attacks, the inferred classifier $ˇ{T}$ is used to identify test samples likely to be misclassified by the target $T$.
- For causative attacks, the adversary identifies samples with high-confidence predictions (far from decision threshold) and flips their labels to poison the retraining process.
- The impact of causative attacks is quantified using a difference metric $d(T,\tilde{T}) = \frac{m_1 + m_2}{n_1 + n_2}$, measuring label disagreement between original and updated classifiers.
Experimental results
Research questions
- RQ1Can adversarial deep learning attacks be effective when the number of allowed API calls is strictly limited?
- RQ2How can active learning be leveraged to minimize the number of required API queries while maintaining high fidelity in classifier inference?
- RQ3To what extent can an inferred classifier enable successful evasion and causative (poisoning) attacks under data constraints?
- RQ4What is the quantitative impact of causative attacks on classifier reliability when only a small percentage of labels are poisoned?
Key findings
- The active learning-based exploratory attack achieved a label similarity of 92.3% between the inferred classifier $\hat{T}$ and the target classifier $T$ using only 1,107 API calls.
- The causative attack with $p = 10\%$ poisoning rate resulted in a 48.00% average label disagreement between the original classifier $T$ and the updated classifier $\tilde{T}$.
- The difference on positive class samples was $d_1(T,\tilde{T}) = 39.92\%$, and on negative class samples, $d_2(T,\tilde{T}) = 55.64\%$, indicating significant degradation in reliability.
- The method successfully identified high-impact samples for poisoning by selecting those with high-confidence predictions (far from threshold), maximizing attack effectiveness.
- The framework demonstrates that adversarial machine learning is a feasible threat even under realistic constraints of limited data access and rate-limited APIs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.