Gated Information Bottleneck for Generalization in Sequential Environments

Francesco Alesiani, Shujian Yu, Xi Yu

Introduction

Deep neural networks often fall victim to "shortcut learning," where they rely on spurious correlations rather than invariant causal features. For instance, a model trained to identify cows in green pastures might fail when presented with a cow on a beach, having mistakenly learned that "green grass" is a defining feature of the animal. While the Information Bottleneck (IB) principle—which seeks to compress input information while retaining task-relevant features—offers a potential solution, existing implementations often rely on fragile variational approximations and struggle in sequential environments where data distributions shift over time.

This paper introduces the Gated Information Bottleneck (GIB), a framework designed to enhance generalization by explicitly filtering out non-essential information through a novel gating mechanism and a stable information-theoretic objective.

The GIB Framework

The GIB architecture addresses the limitations of traditional IB methods through two primary innovations: a trainable gating mechanism and the use of matrix-based Renyi entropy.

1. The Gating Mechanism

As illustrated in Figure 1, GIB employs a dual-masking strategy to refine feature representations. A "soft mask" (a trainable vector) acts as a continuous filter, progressively attenuating features that represent spurious correlations while amplifying task-relevant ones. Complementing this is a "hard mask" that ensures once a feature is identified as noise and discarded, it remains inactive in subsequent environments. This prevents the model from re-learning spurious noise when exposed to new data distributions.

The GIB architecture utilizes a gating mechanism with soft and hard masks to compress raw features into task-relevant representations.

2. Matrix-based Renyi Entropy

Estimating Mutual Information in high-dimensional spaces is notoriously difficult. Rather than relying on variational shortcuts, GIB utilizes a matrix-based functional to calculate entropy directly from data samples. This approach provides a more stable and computationally efficient objective function, allowing the model to optimize the bottleneck without the inaccuracies inherent in standard approximations.

Experimental Evaluation

The researchers evaluated GIB across several benchmarks to test its robustness and generalization capabilities:

  • Sequential Generalization: Using "Colored" datasets (e.g., Colored MNIST), where color-label correlations are flipped between training and testing, GIB achieved ~55% test accuracy. In contrast, standard methods like Empirical Risk Minimization (ERM) and Invariant Risk Minimization (IRM) performed near random guessing (~24%).
  • Out-of-Distribution (OOD) Detection: GIB achieved an AUROC of 93.0% in identifying samples from unknown distributions (e.g., MNIST digits when trained on Fashion-MNIST clothes), outperforming Variational IB (90.6%).
  • Adversarial Robustness: The model was tested against FGSM and PGD attacks. As shown in Figure 2, GIB maintains significantly higher classification accuracy under increasing attack strengths compared to standard and variational baselines.
GIB demonstrates superior robustness against adversarial attacks (FGSM and PGD) compared to standard and other IB-based methods.

Key Insights

  • Sequential Superiority: Unlike IRM, which requires simultaneous access to multiple environments to identify invariants, GIB can effectively "project" relevant information from one environment to the next. This makes it uniquely suited for real-world scenarios where data arrives sequentially.
  • Automated Feature Selection: GIB promotes extreme feature sparsity. On datasets like CIFAR-10, the model achieved top-tier performance while utilizing only a small fraction of the available feature dimensions, effectively performing automated feature selection.
  • Causal Justification: The authors provide a theoretical link between IB theory and invariant causal representation learning, formally justifying why information compression leads to better causal reasoning and robustness.

Conclusion and Future Work

GIB represents a significant step forward in building models that ignore "fake" patterns in favor of essential task features. While highly effective, its performance can be sensitive to the quality of the initial training environment. Future research will focus on scaling GIB to high-resolution datasets, integrating it with memory-replay systems for long-term continual learning, and automating the tuning of the bottleneck tightness parameter ($\lambda$).

Summary updated

BibTeX
@article{alesiani2023gated,
  author = {Francesco Alesiani and Shujian Yu and Xi Yu},
  title = {{Gated Information Bottleneck for Generalization in Sequential Environments}},
  journal = {Knowledge and Information Systems},
  year = {2023},
  doi = {10.1007/s10115-022-01770-w},
}
Figure