Estimating Information Flow in DNNs
We study the evolution of internal representations during deep neural network training, aiming to demystify the compression aspect of the information bottleneck theory.The theory suggests that DNN training comprises a rapid fitting phase followed by a slower compression phase, in which the mutual information I between the input X and internal representations T decreases.Several papers observe compression of estimated mutual information on different DNN models, but the true I over these networks is provably either constant or infinite.This work explains the discrepancy between theory and experiments, and clarifies what was actually measured by these past works.To this end, we introduce an auxiliary DNN framework for which I is a meaningful quantity that depends on the networks parameters.This noisy framework is shown to be a good proxy for the original DNN both in terms of performance and the learned representations.We then develop a rigorous estimator for I in noisy DNNs and observe compression in various models.By relating I in the noisy DNN to an information-theoretic communication problem, we show that compression is driven by the progressive clustering of hidden representations of inputs from the same class.Several methods to directly monitor clustering of hidden representations, both in noisy and deterministic DNNs, are used to show that meaningful clusters form in the T space.Finally, we return to the estimator of I employed in past works, and demonstrate that while it fails to capture the true mutual information, it does serve as a measure for clustering.This clarifies the past observations of compression and isolates the geometric clustering of hidden representations as the true phenomenon of interest.
Deterministic deep neural networks do not discard information, but they do cluster their inputs.This paper provides a principled way to examine the compression phrase in deep neural networks by providing an theoretical sounding entropy estimator to estimate mutual information. 