How mutual-ai/information-bottleneck-for-deep-learning works
This repository is an experimental information-bottleneck study for Fashion-MNIST, with notebook-based experiments comparing a batch-normalized MLP and a PyTorch CNN. The main workflow trains a model, captures hidden-layer activations, estimates input/representation and representation/label mutual information, and visualizes training metrics or the information plane. The tree also contains a vectorized MLP and PyTorch MLP/data-loading alternatives. Notebook internals were not sampled, so links between those experiment stages are left unverified where source does not establish them.
Main entry points: CNN.ipynb CNN experiment · torch_data_utils.py Fashion-MNIST loader · Fashion MNIST experiments.ipynb MLP experiment · mlp.py Batch-norm MLP
Components 14
Experiments
- MLP experiment
Fashion MNIST experiments.ipynb - CNN experiment
CNN.ipynb - Extension experiment
Extension.ipynb
Model implementations
- Batch-norm MLP
mlp.py - Vectorized MLP
mlp_vec.py - CNN model
cnn.py - PyTorch MLP
mlp_torch.py
Information analysis
- Hidden activations
mlp.py - MI estimator
mi_tool.py
Data and visualization
- Fashion-MNIST loader
torch_data_utils.py - MNIST file loader
utils.py - Metric and MI plots
plot_tool.py
Other components
- Researcher
- Fashion-MNIST
Connections 18
- Researcher → MLP experiment: runs
README.md - Researcher → CNN experiment: runs
README.md - MLP experiment → Batch-norm MLP: configures
- CNN experiment → CNN model: configures
- Extension experiment → Vectorized MLP: explores
- Extension experiment → PyTorch MLP: explores
- Batch-norm MLP → MNIST file loader: uses activations
mlp.py - Vectorized MLP → MNIST file loader: uses activations
mlp_vec.py - Batch-norm MLP → Hidden activations: yields
mlp.py - Vectorized MLP → Hidden activations: yields
mlp_vec.py - Hidden activations → MI estimator: estimates MI
- MI estimator → MNIST file loader: uses tuple helper
mi_tool.py - Metric and MI plots → MI estimator: plots results
plot_tool.py - Fashion-MNIST loader → Fashion-MNIST: loads
torch_data_utils.py - Fashion-MNIST loader → CNN experiment: supplies batches
- Fashion-MNIST loader → PyTorch MLP: supplies batches
- MLP experiment → Metric and MI plots: visualizes metrics
- CNN experiment → Metric and MI plots: visualizes metrics