Date: September 21, 2025

Topic: Visualizing Neural Networks

Recall

We can visualize weights, activations, gradients and test for robustness to understand what the network is learning.

Notes

Visualizing Neural Networks

image.png

Weights

Activations

Gradients

Robustness


If the FC is connected to images, we can reshape the weights and visualize what the weights look like.

For CNNs, we can instead visualize the kernels. They learn edges, colors and textures. Comparing kernels against different architectures yields qualitative differences.

Visualizing Weights

Visualizing Fully Connected Layers

FC visualization

FC visualization

Visualizing Convolutional Layers (Kernels)

Conv visualization

Conv visualization


By visualizing output maps, especially those early in the network, we can see what image patches tend to be highly activated.




<aside> 📌 SUMMARY: To understand NN, we can visualize weights, activations, gradients and the network’s robustness and biases From visualizing the output maps, we can see rough shapes of what the model is seeing, however if the output maps are too small then it is hard to visualize We can also do dimensionality reduction to understand the separation of classes, with good performance being expected on well-separated classes.

</aside>


Date: September 30, 2025

Topic: Gradient-Based Visualizations