[Paper Review] GAN-based Generation and Automatic Selection of Explanations for Neural Networks
This paper proposes a GAN-based method for generating realistic, interpretable inputs to explain deep neural network activations, using a novel FID-based metric to automatically select optimal hyper-parameters. The approach enables efficient, scalable explanation generation for DNNs without manual inspection, successfully capturing vocal and non-vocal audio characteristics in a singing voice classifier.
One way to interpret trained deep neural networks (DNNs) is by inspecting characteristics that neurons in the model respond to, such as by iteratively optimising the model input (e.g., an image) to maximally activate specific neurons. However, this requires a careful selection of hyper-parameters to generate interpretable examples for each neuron of interest, and current methods rely on a manual, qualitative evaluation of each setting, which is prohibitively slow. We introduce a new metric that uses Fréchet Inception Distance (FID) to encourage similarity between model activations for real and generated data. This provides an efficient way to evaluate a set of generated examples for each setting of hyper-parameters. We also propose a novel GAN-based method for generating explanations that enables an efficient search through the input space and imposes a strong prior favouring realistic outputs. We apply our approach to a classification model trained to predict whether a music audio recording contains singing voice. Our results suggest that this proposed metric successfully selects hyper-parameters leading to interpretable examples, avoiding the need for manual evaluation. Moreover, we see that examples synthesised to maximise or minimise the predicted probability of singing voice presence exhibit vocal or non-vocal characteristics, respectively, suggesting that our approach is able to generate suitable explanations for understanding concepts learned by a neural network.
Motivation & Objective
- To address the inefficiency and subjectivity of manual hyper-parameter tuning in activation maximization for DNN interpretation.
- To develop an automatic, quantitative metric for evaluating the interpretability of generated explanations.
- To leverage GANs as a strong prior to generate realistic, meaningful inputs that maximally activate specific neurons.
- To enable scalable, post-hoc interpretation of DNN components without retraining for each model or layer.
- To validate the method on a real-world audio classification task, demonstrating its ability to capture semantic concepts like singing voice presence.
Proposed method
- A GAN generator is trained to produce realistic input examples (e.g., mel-spectrograms) that serve as priors for activation maximization.
- The generator is optimized to maximize the activation of a target neuron or layer while maintaining high likelihood under the learned prior distribution.
- A novel evaluation metric based on Fréchet Inception Distance (FID) is used to compare real and generated data distributions, enabling automatic hyper-parameter selection.
- Hyper-parameters such as learning rate and weight decay are tuned using the FID score to identify configurations yielding the most interpretable outputs.
- Positive and negative examples are generated by maximizing or minimizing the output neuron activation, respectively, to explore the concept learned by the classifier.
- The method is applied to a pre-trained singing voice detection model, with qualitative analysis of generated spectrograms to assess interpretability.
Experimental results
Research questions
- RQ1Can a GAN-based generator effectively produce realistic, interpretable inputs for explaining DNN neuron activations?
- RQ2Does the proposed FID-based metric reliably rank hyper-parameter configurations for activation maximization without human evaluation?
- RQ3Can the method generate meaningful positive and negative examples that reflect the semantic concepts (e.g., singing voice) the model was trained to detect?
- RQ4How does the use of a learned GAN prior compare to hand-crafted or autoencoder-based priors in terms of output quality and interpretability?
- RQ5To what extent can the method be generalized across different models with the same input domain without retraining?
Key findings
- The FID-based metric successfully identified the optimal hyper-parameter configuration (C₁) that produced diverse, realistic, and interpretable examples, outperforming other settings in visual quality and activation consistency.
- The best configuration (C₁) produced minimal changes to initial GAN outputs, preserving realism while effectively increasing neuron activation, indicating strong prior alignment.
- Positive examples generated by maximizing output neuron activation exhibited strong harmonic content, reduced low-frequency energy, and fewer transients—characteristics typical of singing voice.
- Negative examples generated by minimizing activation showed increased bass energy and transient content, indicating successful generation of non-vocal, instrumental-like audio.
- The method achieved high response values (up to 78) in the target neuron for extreme configurations, but these were deemed ineffective due to unrealistic spectral energy and poor perceptual quality.
- Qualitative analysis confirmed that generated examples aligned with the semantic concepts the classifier was trained to detect, suggesting the method captures meaningful representations.
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.