TL;DR
This paper introduces Deep VIB, a practical method for applying the "Information Bottleneck" principle to deep neural networks using variational inference. By forcing a model to compress its input while maintaining predictive power, Deep VIB creates representations that generalize better and are significantly more robust to adversarial attacks.
What Problem Does This Paper Address?
Deep learning models are notorious for two main issues: overfitting to training data and being easily "fooled" by tiny, imperceptible perturbations known as adversarial attacks.
The authors argue this happens because standard networks often learn to represent too much of the input. If a model captures every quirk and noise pattern of the training images, it will naturally struggle with new data or malicious noise. The Information Bottleneck (IB) theory, proposed by Tishby et al. in 1999, offers a theoretical solution: find a representation $Z$ that is maximally informative about the target label $Y$ but minimally informative about the input $X$.
Essentially, the model should "forget" everything about the input that isn't strictly necessary for the task. However, calculating the mutual information required for the IB objective is computationally grueling, making it historically difficult to use with deep neural networks.
Methods
The authors propose a variational approximation to the Information Bottleneck, which they call Deep VIB.
- The Objective: They optimize a tradeoff: $\max I(Z, Y) - \beta I(Z, X)$. The first term encourages the representation $Z$ to predict $Y$ well; the second term (weighted by $\beta$) forces $Z$ to compress $X$.
- Variational Bounds: Since mutual information is hard to compute directly, they use a variational decoder $q(y|z)$ to lower-bound the first term and a variational prior $r(z)$ to upper-bound the second.
- Stochastic Encoding: Instead of a deterministic mapping, the encoder $p(z|x)$ outputs the parameters of a distribution (usually a Gaussian).
- The Reparameterization Trick: Borrowing from Variational Autoencoders (VAEs), they use the reparameterization trick to allow backpropagation through the stochastic bottleneck.
The resulting loss function looks remarkably like a supervised version of the VAE loss: a cross-entropy term for prediction plus a KL-divergence term that acts as a regularizer.
Datasets
The authors evaluated Deep VIB on two primary benchmarks:
- MNIST: The "permutation invariant" version (using fully connected layers without convolutions) to test pure regularization performance.
- ImageNet: Specifically, they used pre-computed features from the penultimate layer of a trained Inception ResNet V2 model to test the method on high-dimensional, complex data.
Key Insights and Ideas
- The "Forgetting" Property: By tuning the hyperparameter $\beta$, one can control exactly how many "bits" of information the model is allowed to keep. The authors found that for ImageNet, a model could maintain ~80% accuracy while storing only about 45 bits of information per image—a massive compression.
- Robustness through Compression: Adversarial attacks often rely on "idiosyncratic perturbations"—tiny details in the input that shift the model's internal state. Because VIB ignores irrelevant input details, these tiny perturbations often fail to pass through the bottleneck, making the model naturally more resilient.
- Stochasticity as a Shield: Because the encoding is a distribution rather than a single point, it is harder for an adversary to find a single "lucky" perturbation that consistently fools the model.
Key Results
- Generalization: On MNIST, Deep VIB achieved a 1.13% error rate, outperforming standard baselines (1.38%), Dropout (1.34%), and other advanced regularization techniques like Label Smoothing (1.23%).
- Adversarial Defense: In a targeted $L_2$ attack on ImageNet (e.g., trying to force the model to see a "soccer ball"), the deterministic baseline was fooled 100% of the time. Deep VIB resisted the attack in 43.3% of cases, and even when it was fooled, the adversary had to apply much larger, more visible perturbations to succeed.
- Calibration: The authors noted that VIB models tend to be better calibrated, meaning their confidence scores more accurately reflect the true probability of being correct.
Limitations and Future Work
- Prior Selection: The current work uses a simple fixed Gaussian prior $r(z)$. The authors suggest that using richer, parametric marginal approximations could improve performance.
- Architectural Scope: Most experiments focused on a single bottleneck at the end of the network. Future work could explore placing VIB objectives at multiple layers or every layer of a deep network.
- Computational Cost: Training requires Monte Carlo sampling from the stochastic bottleneck, which adds some computational overhead compared to standard deterministic networks.
- Task Expansion: The authors suggest applying VIB to sequence prediction (where $X$ is the past and $Y$ is the future) and exploring its connections to differential privacy.
Summary updated