[Paper Review] What Do Deep Nets Learn? Class-wise Patterns Revealed in the Input Space
This paper proposes a method to visualize class-wise patterns learned by deep neural networks (DNNs) directly in the input (pixel) space, revealing that DNNs memorize single, predictive patterns per class. The key finding is that even clean-train DNNs learn 'backdoor-like' triggers, and adversarially trained models learn simplified, robust shape patterns, offering new insights into DNN interpretability and vulnerabilities.
Deep neural networks (DNNs) are increasingly deployed in different applications to achieve state-of-the-art performance. However, they are often applied as a black box with limited understanding of what knowledge the model has learned from the data. In this paper, we focus on image classification and propose a method to visualize and understand the class-wise knowledge (patterns) learned by DNNs under three different settings including natural, backdoor and adversarial. Different to existing visualization methods, our method searches for a single predictive pattern in the pixel space to represent the knowledge learned by the model for each class. Based on the proposed method, we show that DNNs trained on natural (clean) data learn abstract shapes along with some texture, and backdoored models learn a suspicious pattern for the backdoored class. Interestingly, the phenomenon that DNNs can learn a single predictive pattern for each class indicates that DNNs can learn a backdoor even from clean data, and the pattern itself is a backdoor trigger. In the adversarial setting, we show that adversarially trained models tend to learn more simplified shape patterns. Our method can serve as a useful tool to better understand the knowledge learned by DNNs on different datasets under different settings.
Motivation & Objective
- To develop a method for visualizing the class-specific knowledge learned by DNNs in the input (pixel) space, rather than in feature or activation spaces.
- To investigate whether DNNs trained on clean data learn intrinsic 'backdoor' patterns that could enable successful backdoor attacks.
- To examine how adversarial training influences the type of patterns DNNs learn, particularly in terms of shape simplicity and robustness.
- To provide a tool for interpreting DNN behavior, identifying biases, and improving defense mechanisms.
Proposed method
- The method searches for a single, localized pattern in a canvas image that, when attached to any non-target-class image, causes the DNN to predict the target class with high confidence.
- It formulates the search as an optimization problem over pixel values, maximizing the model's prediction score for the target class while keeping the pattern minimal and localized.
- The method operates directly in the pixel space, enabling intuitive interpretation of learned patterns without relying on feature maps or attention mechanisms.
- It is applied across three settings: natural training, backdoored training, and adversarial training to compare pattern characteristics.
- The approach enables transferability analysis by evaluating the predictive power of patterns across different models.
- It leverages model confidence scores and gradient-based optimization to identify highly predictive pixel patterns for each class.
Experimental results
Research questions
- RQ1Do DNNs trained on clean data learn a single, consistent, and predictive pattern for each class in the input space?
- RQ2Can the proposed method reveal the backdoor trigger pattern in a backdoored model, and does it expose inherent vulnerabilities in clean models?
- RQ3How do adversarially trained DNNs differ in the patterns they learn compared to naturally trained models?
- RQ4Do the patterns learned by DNNs reflect robust features or non-robust, texture-based biases?
Key findings
- DNNs trained on natural data learn consistent, class-specific patterns in the input space that combine abstract shapes with texture, indicating a form of memorization.
- The existence of such patterns in clean models implies they inherently contain 'backdoors', as these patterns can be exploited to misclassify inputs with high success rates.
- Backdoored models learned a suspicious, localized trigger pattern that matches the expected backdoor behavior, confirming the method's effectiveness in detection.
- Adversarially trained DNNs learn more simplified, densely connected shape patterns compared to natural models, suggesting improved robustness.
- Robustly trained models on perturbed datasets (e.g., ${\mathcal{D}}_R$) learn patterns with reduced background noise but may lose key object shape components, risking generalization issues.
- The predictive power of patterns is transferable across models, with transfer rates indicating strong generalization of the learned patterns.
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.