[Paper Review] ConFoc: Content-Focus Protection Against Trojan Attacks on Neural Networks
ConFoc is a novel defense that hardens trojaned deep neural networks by teaching them to focus on content rather than style, using style transfer to generate diverse training samples. It reduces attack success rates to below 1% across diverse triggers while maintaining or improving model accuracy on both benign and adversarial inputs.
Deep Neural Networks (DNNs) have been applied successfully in computer vision. However, their wide adoption in image-related applications is threatened by their vulnerability to trojan attacks. These attacks insert some misbehavior at training using samples with a mark or trigger, which is exploited at inference or testing time. In this work, we analyze the composition of the features learned by DNNs at training. We identify that they, including those related to the inserted triggers, contain both content (semantic information) and style (texture information), which are recognized as a whole by DNNs at testing time. We then propose a novel defensive technique against trojan attacks, in which DNNs are taught to disregard the styles of inputs and focus on their content only to mitigate the effect of triggers during the classification. The generic applicability of the approach is demonstrated in the context of a traffic sign and a face recognition application. Each of them is exposed to a different attack with a variety of triggers. Results show that the method reduces the attack success rate significantly to values < 1% in all the tested attacks while keeping as well as improving the initial accuracy of the models when processing both benign and adversarial data.
Motivation & Objective
- To address the growing threat of trojan attacks in deep neural networks used in critical applications like self-driving cars and facial recognition.
- To overcome limitations of existing defenses that reduce accuracy or fail against complex, adaptive triggers.
- To develop a generic, model-agnostic defense that does not require architectural changes or large datasets.
- To enable DNNs to classify inputs based on semantic content, mimicking human-like robustness to visual perturbations.
- To maintain or improve model accuracy after healing, even when processing adversarial samples.
Proposed method
- ConFoc fine-tunes a trojaned model using a small set of benign inputs augmented with styles from random base images.
- It applies neural style transfer to generate multiple styled versions of each benign input, preserving content but altering texture and color.
- The model is retrained exclusively on original and styled benign samples, forcing it to learn content-based features and ignore trigger-related style patterns.
- During inference, the model classifies inputs regardless of their style, as style is effectively ignored due to the training process.
- The healing process is agnostic to model architecture, dataset, and attack type, enabling broad applicability.
- The method assumes access to a small healing set and a few style base images, making it practical and lightweight.
Experimental results
Research questions
- RQ1RQ1: Can ConFoc effectively reduce the attack success rate of trojaned models across diverse trigger types?
- RQ2RQ2: How does ConFoc perform in maintaining or improving model accuracy on both benign and adversarial inputs after healing?
- RQ3RQ3: Can ConFoc generalize to different models, datasets, and attack variants, including BadNets and Trojaning attacks?
- RQ4RQ4: How effective is ConFoc against adaptive attackers who craft triggers to evade detection?
- RQ5RQ5: Does increasing the number of styles used in the healing process improve robustness against complex triggers?
Key findings
- ConFoc reduces the attack success rate (ASR) to 0.00% across all tested triggers, including adaptive and complex ones.
- The accuracy on benign inputs remains stable or improves, with values ranging from 97.44% to 98.14% after healing.
- For adversarial inputs, accuracy is preserved or enhanced, reaching up to 98.14% after healing, even when initial accuracy was low.
- The method maintains or improves performance across all attack variants, including multiple marks and many-to-many triggers.
- ConFoc effectively neutralizes BadNets attacks with complex, multi-layered triggers that are difficult to detect and remove.
- The healing process is robust to adaptive attackers who attempt to bypass ConFoc by using styled adversarial samples in training.
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.