What Do Deep Networks Learn? Class Patterns Revealed in Input SpaceWhat Do Deep Nets Learn? Class-wise Patterns Revealed in the Input Space
The researchers propose a method that searches in pixel space for a single predictive pattern for each class, to visualize and understand the class knowledge learned by deep neural networks for image classification under three settings: natural, backdoor and adversarial. Unlike existing visualization methods, this method finds for each class one predictive pattern representing the knowledge learned by the model. Results show that models trained on natural clean data learn abstract shapes accompanied by some texture; a model implanted with a backdoor learns a suspicious pattern for the backdoor class; the authors point out that the phenomenon that the model can learn a single predictive pattern for each class indicates that even when trained only on clean data, a deep neural network may learn a backdoor, and that pattern itself constitutes a backdoor trigger. Under the adversarial setting, adversarially trained models tend to learn more simplified shape patterns. The authors state that this method can serve as a tool for understanding the knowledge learned by deep neural networks under different datasets and settings.