Machine learning models have become integral to various aspects of our lives, from personalized product recommendations to predicting sensitive information such as sexual orientation or political affiliation. However, the deployment of such models raises concerns about individual privacy. In this blog post, I will summarize the paper “Attack Some while Protecting Others: Selective Attack Strategies for Attacking and Protecting Multiple Concepts” by authors Vibha Belavadi, Yan Zhou, Murat Kantarcioglu, and Bhavani Thuraisingham, published in ACM CCS 2023, presented by Dr. Murat Kantarciogl.
The main concern of this paper is about datasets that are used for learning different models; in this situation, perturbing an image to attack a classifier may reduce the accuracy of perturbed images on other models; this could not be desired for the user perturbing her image to preserve her privacy. Imagine a scenario where a user wants product recommendations based on shopping data but prefers recommendations based on “age” over “gender.” Selective attacks become relevant here, enabling users to create “adversarial” examples that attack one concept (e.g., gender) while preserving another (e.g., age). This attack is needed where the user perturbs an image to mislead one set of classifiers while protecting other models trained on the same dataset. Allowing users to challenge and protect specific aspects of their data from being predicted by classifiers could be used in many applications, especially when machine learning models predict sensitive information. This raises an interesting research question: Is it possible to craft test-time attacks that only foil one set of classifiers without impacting the other that uses the same test instance?
The key contributions of the paper could be summarized as follows:
- Empirical demonstration of the impact of existing single-model attacks on the accuracy of other models.
- Theoretically formalizes the multi-concept attack problem for linear classifiers and provides optimal solutions.
- Extension of the theoretical model to address similar challenges in non-linear classifiers like deep neural networks.
- Development of a test-time selective attack algorithm that significantly improves targeted attack performance compared to existing techniques.
- Use of the Shapely value to identify influential features in the success of attacks and demonstrate how the proposed model preserves important features of protected concepts. The one-target attack is only possible when the targeted and protected features have less common features.
Proposed Solution: To address the challenge of attacking one set of machine learning models while preserving the accuracy of others, the authors propose a novel test-time selective attack algorithm. Unlike existing test-time attacks, this algorithm simultaneously considers attacking and protecting multiple classifiers. For linear classifiers, the authors provide an optimal formalization of the problem and solve it using linear programming. They also extend this theoretical foundation to address challenges encountered in deep neural network models (DNNs).

A Comparison of the naive attack to their custom attack (protecting the non-attacked) in the context of an attack-protect dual model. Each row lists the accuracy of the classifier trained to learn the indexed concept. Attacked classifier sets are {Glasses}, {Pretty, Glasses}, and {Age, Glasses, Gender}, and the corresponding accuracy after the attack is underlined. The accuracy of the protected classifiers in our strategy is bolded.
- Optimization for Linear Classifiers:
In optimizing attacks for linear classifiers, 𝐿1 norm minimization focuses on minimizing the sum of absolute modifications to critical features of the attacked classifier while respecting constraints for other protected models. 𝐿∞ norm minimization extends this concept by minimizing the maximum absolute modification across selected features within a linear programming framework. Meanwhile, 𝐿2 norm minimization aims to minimize the sum of squared modifications to chosen features, employing Lagrangian multipliers. Collectively, these approaches provide comprehensive strategies for addressing the multi-concept attack problem in linear learning models.
- Optimization for Non-linear Classifiers:
In scenarios involving non-linear classifiers, the multi-concept attack problem is formulated as a multi-objective optimization problem, where the optimization objectives may be in conflict. To summarize, their approach is formulating multi-objective optimization for non-linear classifiers, maximizing losses for attacked classifiers, and minimizing losses for protected ones.

- Impact of Number of Attacked and Protected Classifiers:
Strategic considerations in the impact of the number of attacked and protected classifiers revolve around feature selection. As the number of attacked classifiers increases, the choice of attack is constrained to overlapping critical features of attacked classifiers. Conversely, with an increase in the number of protected classifiers, the choice of attack is limited to features outside the protected set.

Conclusion: In conclusion, the research on test-time selective attacks introduces a valuable approach for users concerned about the privacy implications of machine learning models. By allowing users to attack certain concepts while protecting others selectively, this technique opens new possibilities for ensuring privacy without sacrificing the utility of machine learning applications. As machine learning plays a crucial role in our lives, innovations like test-time selective attacks contribute to the ongoing conversation about responsible and ethical AI deployment.


