Information bottleneck method explained
The information bottleneck method is a technique in information theory introduced by Naftali Tishby, Fernando C. Pereira, and William Bialek.[1] It is designed for finding the best tradeoff between accuracy and complexity (compression) when summarizing (e.g. clustering) a random variable X, given a joint probability distribution p(X,Y) between X and an observed relevant variable Y - and self-described as providing "a surprisingly rich framework for discussing a variety of problems in signal processing and learning".[1]
Applications include distributional clustering and dimension reduction, and more recently it has been suggested as a theoretical foundation for deep learning. It generalized the classical notion of minimal sufficient statistics from parametric statistics to arbitrary distributions, not necessarily of exponential form. It does so by relaxing the sufficiency condition to capture some fraction of the mutual information with the relevant variable Y.
The information bottleneck can also be viewed as a rate distortion problem, with a distortion function that measures how well Y is predicted from a compressed representation T compared to its direct prediction from X. This interpretation provides a general iterative algorithm for solving the information bottleneck trade-off and calculating the information curve from the distribution p(X,Y).
Let the compressed representation be given by random variable
. The algorithm minimizes the following functional with respect to conditional distribution
:
infp(t|x)(I(X;T)-\betaI(T;Y)),
where
and
are the mutual information of
and
, and of
and
, respectively, and
is a
Lagrange multiplier.
Learning theory for deep learning
It has been mathematically proven that controlling information bottleneck is one way to control generalization error in deep learning.[2] Namely, the generalization error is proven to scale as
}\right) where
is the number of training samples,
is the input to a deep neural network, and
is the output of a hidden layer. This generalization bound scale with the degree of information bottleneck, unlike the other generalization bounds that scale with the number of parameters,
VC dimension,
Rademacher complexity, stability or robustness.
Information theory of deep learning
Theory of Information Bottleneck is recently used to study Deep Neural Networks (DNN).[3] Consider
and
respectively as the input and output layers of a DNN, and let
be any hidden layer of the network. Shwartz-Ziv and Tishby proposed the information bottleneck that expresses the tradeoff between the mutual information measures
and
. In this case,
and
respectively quantify the amount of information that the hidden layer contains about the input and the output.They conjectured that the training process of a DNN consists of two separate phases; 1) an initial fitting phase in which
increases, and 2) a subsequent compression phase in which
decreases. Saxe et al. in
[4] countered the claim of Shwartz-Ziv and Tishby, stating that this compression phenomenon in DNNs is not comprehensive, and it depends on the particular activation function. In particular, they claimed that the compression does not happen with ReLu activation functions. Shwartz-Ziv and Tishby disputed these claims, arguing that Saxe et al. had not observed compression due to weak estimates of the mutual information. Recently, Noshad et al. used a rate-optimal estimator of mutual information to explore this controversy, observing that the optimal hash-based estimator reveals the compression phenomenon in a wider range of networks with ReLu and maxpooling activations.
[5] On the other hand, recently Goldfeld et al. have argued that the observed compression is a result of geometric, and not of information-theoretic phenomena,
[6] a view that has been shared also in.
[7] Gaussian bottleneck
The Gaussian bottleneck,[8] namely, applying the information bottleneck approach to Gaussian variables, leads to solutions related to canonical correlation analysis. Assume
are jointly multivariate zero mean normal vectors with covariances
and
is a compressed version of
that must maintain a given value of mutual information with
. It can be shown that the optimum
is a normal vector consisting of linear combinations of the elements of
where matrix
has orthogonal rows. The projection matrix
in fact contains
rows selected from the weighted left
eigenvectors of the
singular value decomposition of the matrix (generally asymmetric)
\Omega=\SigmaX|Y
=I-\SigmaXY
.
Define the singular value decomposition
\Omega=UΛVTwithΛ=\operatorname{Diag} (λ1\leλ2 … λN )
and the critical values
\underset{λi<1}{=}(1-λi)-1.
then the number
of active eigenvectors in the projection, or order of approximation, is given by
And we finally get
In which the weights are given by
wi=\sqrt{\left(\beta(1-λi)-1\right)/λiri}
where
Applying the Gaussian information bottleneck to time series (processes), yields solutions related to optimal predictive coding. This procedure is formally equivalent to linear Slow Feature Analysis.[9]
Optimal temporal structures in linear dynamic systems can be revealed in the so-called past-future information bottleneck, an application of the bottleneck method to non-Gaussian sampled data.[10] The concept, as treated by Creutzig, Tishby et al., is not without complication as two independent phases make up in the exercise: firstly estimation of the unknown parent probability densities from which the data samples are drawn and secondly the use of these densities within the information theoretic framework of the bottleneck.
Density estimation
See main article: Density estimation.
Since the bottleneck method is framed in probabilistic rather than statistical terms, the underlying probability density at the sample points
must be estimated. This is a well known problem with multiple solutions described by
Silverman. In the present method, joint sample probabilities are found by use of a
Markov transition matrix method and this has some mathematical synergy with the bottleneck method itself.
The arbitrarily increasing distance metric
between all sample pairs and
distance matrix is
. Then transition probabilities between sample pairs
for some
must be computed. Treating samples as states, and a normalised version of
as a Markov state transition probability matrix, the vector of probabilities of the 'states' after
steps, conditioned on the initial state
, is
. The equilibrium probability vector
given, in the usual way, by the dominant eigenvector of matrix
which is independent of the initialising vector
. This Markov transition method establishes a probability at the sample points which is claimed to be proportional to the probabilities' densities there.
Other interpretations of the use of the eigenvalues of distance matrix
are discussed in Silverman's
Density Estimation for Statistics and Data Analysis.
[11] Clusters
In the following soft clustering example, the reference vector
contains sample categories and the joint probability
is assumed known. A soft cluster
is defined by its probability distribution over the data samples
. Tishby et al. presented the following iterative set of equations to determine the clusters which are ultimately a generalization of the
Blahut-Arimoto algorithm, developed in
rate distortion theory. The application of this type of algorithm in neural networks appears to originate in entropy arguments arising in the application of
Gibbs Distributions in deterministic annealing.
[12] [13] \begin{cases}
p(c|x)=Kp(c)\exp(-\betaDKL[p(y|x)||p(y|c) ])\\
p(y|c)=style\sumxp(y|x)p(c|x)p(x) /p(c)\\
p(c)=style\sumxp(c|x)p(x)\\
\end{cases}
The function of each line of the iteration expands as
Line 1: This is a matrix valued set of conditional probabilities
Ai,j=p(ci|xj)=Kp(ci)\exp(-\betaDKL[p(y|xj)||p(y|ci) ])
between the
vectors generated by the sample data
and those generated by its reduced information proxy
is applied to assess the fidelity of the compressed vector with respect to the reference (or categorical) data
in accordance with the fundamental bottleneck equation.
is the Kullback–Leibler divergence between distributions
DKL(a||b)=\sumip(ai)log (
)
and
is a scalar normalization. The weighting by the negative exponent of the distance means that prior cluster probabilities are downweighted in line 1 when the Kullback–Leibler divergence is large, thus successful clusters grow in probability while unsuccessful ones decay.
Line 2: Second matrix-valued set of conditional probabilities. By definition
\begin{align}
p(yi|ck)&=\sumjp(yi|xj)p(xj|ck)\\
&=\sumjp(yi|xj)p(xj,ck) /p(ck)\\
&=\sumjp(yi|xj)p(ck|xj)p(xj) /p(ck)\\
\end{align}
where the Bayes identities
p(a,b)=p(a|b)p(b)=p(b|a)p(a)
are used.
Line 3: this line finds the marginal distribution of the clusters
\begin{align}
p(ci)&=\sumjp(ci,xj)
&=\sumjp(ci|xj)p(xj)
\end{align}
This is a standard result.
Further inputs to the algorithm are the marginal sample distribution
which has already been determined by the dominant eigenvector of
and the matrix valued Kullback–Leibler divergence function
derived from the sample spacings and transition probabilities.
The matrix
can be initialized randomly or with a reasonable guess, while matrix
needs no prior values. Although the algorithm converges, multiple minima may exist that would need to be resolved.
[14] Defining decision contours
To categorize a new sample
external to the training set
, the previous distance metric finds the transition probabilities between
and all samples in
,
\tildep(xi)=p(xi|x')=\Kappa\exp (-λf (|xi-x' | ) )
with
a normalization. Secondly apply the last two lines of the 3-line algorithm to get cluster and conditional category probabilities.
\begin{align}
&\tildep(ci)=p(ci|x')=\sumjp(ci|xj)p(xj|x')=\sumjp(ci|xj)\tildep(xj)\\
&p(yi|cj)=\sumkp(yi|xk)p(cj|xk)p(xk|x')/p(cj|x')
=\sumkp(yi|xk)p(cj|xk)\tildep(xk)/\tildep(cj)\\
\end{align}
Finally
p(yi|x')=\sumjp(yi|cj)p(cj|x'))=\sumjp(yi|cj)\tildep(cj)
Parameter
must be kept under close supervision since, as it is increased from zero, increasing numbers of features, in the category probability space, snap into focus at certain critical thresholds.
An example
The following case examines clustering in a four quadrant multiplier with random inputs
and two categories of output,
, generated by
y=\operatorname{sign}(uv)
. This function has two spatially separated clusters for each category and so demonstrates that the method can handle such distributions.
20 samples are taken, uniformly distributed on the square
. The number of clusters used beyond the number of categories, two in this case, has little effect on performance and the results are shown for two clusters using parameters
.
The distance function is
where
while the conditional distribution
is a 2 × 20 matrix
\begin{align}&Pr(yi=1)=1if\operatorname{sign}(uivi)=1\\
&Pr(yi=-1)=1if\operatorname{sign}(uivi)=-1
\end{align}
and zero elsewhere.
The summation in line 2 incorporates only two values representing the training values of +1 or -1, but nevertheless works well. The figure shows the locations of the twenty samples with '0' representing Y = 1 and 'x' representing Y = -1. The contour at the unity likelihood ratio level is shown,
as a new sample
is scanned over the square. Theoretically the contour should align with the
and
coordinates but for such small sample numbers they have instead followed the spurious clusterings of the sample points.
Neural network/fuzzy logic analogies
This algorithm is somewhat analogous to a neural network with a single hidden layer. The internal nodes are represented by the clusters
and the first and second layers of network weights are the conditional probabilities
and
respectively. However, unlike a standard neural network, the algorithm relies entirely on probabilities as inputs rather than the sample values themselves, while internal and output values are all conditional probability density distributions. Nonlinear functions are encapsulated in distance metric
(or
influence functions/radial basis functions) and transition probabilities instead of
sigmoid functions.
The Blahut-Arimoto three-line algorithm converges rapidly, often in tens of iterations, and by varying
,
and
and the cardinality of the clusters, various levels of focus on features can be achieved.
The statistical soft clustering definition
has some overlap with the verbal fuzzy membership concept of
fuzzy logic.
Extensions
An interesting extension is the case of information bottleneck with side information.[15] Here information is maximized about one target variable and minimized about another, learning a representation that is informative about selected aspects of data. Formally
minp(t|x)I(X;T)-\beta+I(T;Y+)+\beta-I(T;Y-)
Bibliography
Notes and References
- The Information Bottleneck Method. The 37th annual Allerton Conference on Communication, Control, and Computing. Tishby. Naftali. Naftali Tishby. Pereira. Fernando C.. Bialek. William. William Bialek. September 1999. 368–377.
- Kenji Kawaguchi, Zhun Deng, Xu Ji, Jiaoyang Huang."How Does Information Bottleneck Help Deep Learning?" Proceedings of the 40th International Conference on Machine Learning, PMLR 202:16049-16096, 2023.
- Shwartz-Ziv . Ravid . Tishby . Naftali . Opening the black box of deep neural networks via information . 1703.00810. cs.LG . 2017 .
- Andrew M. Saxe. etal. 2018. On the information bottleneck theory of deep learning.. ICLR 2018 Conference Blind Submission. 2019. 12. 124020. 10.1088/1742-5468/ab3985. 2019JSMTE..12.4020S. 49584497.
- Noshad . Morteza . etal . Scalable Mutual Information Estimation using Dependence Graphs . 1801.09125 . 2018. cs.IT .
- Goldfeld. Ziv. etal. 2019. Estimating Information Flow in Deep Neural Networks. Icml 2019. 2299–2308. 1810.05728.
- Bernhard C.. Geiger. On Information Plane Analyses of Neural Network Classifiers—A Review. IEEE Transactions on Neural Networks and Learning Systems . 2022. 33 . 12 . 7039–7051 . 10.1109/TNNLS.2021.3089037 . 34191733 . 2003.09671. 214611728 .
- Information Bottleneck for Gaussian Variables. Chechik. Gal. 1 January 2005. Journal of Machine Learning Research. 6. 1 May 2005. 165–188. Globerson. Amir. Tishby. Naftali. Weiss. Yair. Dayan. Peter.
- Predictive Coding and the Slowness Principle: An Information-Theoretic Approach. Neural Computation. 2007-12-17. 0899-7667. 1026–1041. 20. 4. 10.1162/neco.2008.01-07-455. 18085988. Felix. Creutzig. Henning. Sprekeler. Felix Creutzig. 10.1.1.169.6917. 2138951.
- Past-future information bottleneck in dynamical systems. Physical Review E. 2009-04-27. 041925. 79. 4. 10.1103/PhysRevE.79.041925. 19518274. Felix. Creutzig. Amir. Globerson. Naftali. Tishby. 2009PhRvE..79d1925C.
- Book: Silverman, Bernie. Density Estimation for Statistics and Data Analysis. Monographs on Statistics and Applied Probability. Chapman & Hall. 1986. 978-0412246203. Bernie Silverman. 1986desd.book.....S. registration.
- Book: ACM. 2000-01-01. New York, NY, USA. 978-1-58113-226-7. 208–215. SIGIR '00. 10.1145/345508.345578. Noam. Slonim. Naftali. Tishby. Proceedings of the 23rd annual international ACM SIGIR conference on Research and development in information retrieval . Document clustering using word clusters via the information bottleneck method . 10.1.1.21.3062. 1373541.
- D. J. Miller, A. V. Rao, K. Rose, A. Gersho: "An Information-theoretic Learning Algorithm for Neural Network Classification". NIPS 1995: pp. 591–597
- Data clustering by Markovian Relaxation and the Information Bottleneck Method. Neural Information Processing Systems (NIPS) 2000. Tishby. Naftali. Naftali Tishby. Slonim. N. 640–646.
- Extracting Relevant Structures with Side Information . Advances in Neural Information Processing Systems. 2002. 857–864. Gal. Chechik. Naftali. Tishby.