[Paper Review] Non-Negative Networks Against Adversarial Attacks
This paper proposes non-negative weight constraints in neural networks to enhance robustness against targeted adversarial attacks, particularly in binary classification tasks like malware and spam detection. By restricting model weights to non-negative values, the approach forces adversaries to remove malicious features rather than add them, reducing evasion rates to near zero in malware detection and exactly zero in spam detection, while maintaining high accuracy in image classification tasks.
Adversarial attacks against neural networks are a problem of considerable importance, for which effective defenses are not yet readily available. We make progress toward this problem by showing that non-negative weight constraints can be used to improve resistance in specific scenarios. In particular, we show that they can provide an effective defense for binary classification problems with asymmetric cost, such as malware or spam detection. We also show the potential for non-negativity to be helpful to non-binary problems by applying it to image classification.
Motivation & Objective
- To address targeted adversarial attacks in security-critical binary classification tasks such as malware and spam detection, where attackers can only add features (additive adversaries).
- To explore whether non-negative weight constraints can serve as an effective defense mechanism in these scenarios by limiting the model's reliance on specific features.
- To generalize the non-negative constraint approach to multi-class problems like image classification, assessing its robustness and accuracy trade-offs.
- To evaluate the effectiveness of non-negative networks against strong adversarial attacks, including FGSM, IGA, and PGD, across multiple datasets.
Proposed method
- Apply non-negative weight constraints during training to ensure all learned weights are non-negative, limiting the model to only detect features associated with the positive class.
- Use targeted adversarial attacks (e.g., FGSM, IGA) to evaluate robustness, measuring evasion rates as a function of target confidence levels.
- Train models on MNIST, CIFAR10, CIFAR100, and Tiny ImageNet to test generalization across datasets with varying class complexity.
- Assess transferability of attacks by using an unconstrained substitute model to generate adversarial examples for a non-negative model.
- Use confidence thresholds (e.g., 40% or lower) as a detection mechanism for potential adversarial inputs in non-negative models.
- Compare performance against baseline models with and without non-negative constraints across multiple attack types and datasets.
Experimental results
Research questions
- RQ1Can non-negative weight constraints significantly reduce evasion rates in targeted adversarial attacks for binary classification tasks like malware and spam detection?
- RQ2How does the non-negative constraint technique generalize to multi-class image classification tasks, and what is its impact on robustness and accuracy?
- RQ3Does the non-negative constraint mechanism act merely as gradient obfuscation, or does it provide genuine robustness to adversarial examples?
- RQ4Can confidence thresholds in non-negative models be used as a practical detection mechanism for adversarial inputs?
- RQ5What is the trade-off between robustness and accuracy when applying non-negative constraints across different datasets and attack strengths?
Key findings
- Non-negative networks achieved exactly 0% evasion rate in spam detection and nearly 0% in malware detection under targeted attacks, demonstrating strong defense effectiveness.
- On MNIST and CIFAR10, targeted attacks failed at a target confidence of 30% or higher, indicating that high-confidence predictions are robust to evasion.
- For CIFAR100 and Tiny ImageNet, targeted attacks failed at a rate of ≤2% when the target confidence was sufficiently high, showing scalability to larger datasets.
- Transferability attacks from an unconstrained substitute model to a non-negative model achieved only a 1.042% success rate, suggesting the defense is not merely gradient obfuscation.
- The accuracy drop due to non-negative constraints was less than 1% across all multi-class datasets, indicating a low cost for improved robustness.
- Despite robustness in targeted attacks, non-negative models showed increased vulnerability to low-confidence errors, likely due to uniform probability distributions under attack.
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.