Abstract
In this work, we propose DeepMI, an information-theory-based framework designed to train deep neural networks (DNNs) using Mutual Information (MI). Targeted primarily at unsupervised learning of real-world tasks, DeepMI addresses the limitations of traditional pointwise loss functions like $L_1$ and $L_2$. To overcome the challenges of MI's unbounded nature and non-differentiability, we introduce a linearized representation of MI ($L_{LMI}$) and a fuzzy logic-based differentiable pipeline. We demonstrate that $L_{LMI}$ provides superior gradients and performance compared to popular loss functions across tasks such as bar alignment, mask prediction, and depth estimation.
Introduction
The choice of a loss function is critical in deep learning, as it defines the objective the network must minimize. Standard metrics like Mean Absolute Error ($L_1$) or Mean Squared Error ($L_2$) are pointwise operators; they compare images pixel-by-pixel but fail to capture the statistical structure or dependencies within the data. While the Structural Similarity Index (SSIM) offers structural awareness, it is often combined with $L_1/L_2$ in complex, weighted schemes that are difficult to tune.
Mutual Information (MI) is a powerful alternative from information theory that measures statistical dependence. However, MI has historically been difficult to use in deep learning because it is unbounded and requires discrete histogram calculations, which are non-differentiable. DeepMI addresses these hurdles to enable effective unsupervised learning.
The DeepMI Framework
The DeepMI framework introduces two key innovations to make Mutual Information viable for deep learning:
- Linearized Mutual Information ($L_{LMI}$): Instead of standard logarithmic MI, the authors derive a bounded loss function. It penalizes the off-diagonal elements of the joint probability density function (PDF) and the divergence between marginal and joint distributions. This objective is zero only when two signals match perfectly.
- Fuzzy Histograms: To make the process differentiable, standard "hard" binning is replaced with fuzzification. When a pixel value falls between bins, its weight is distributed based on distance, allowing for gradient flow and standard backpropagation.
Experimental Evaluation
The authors evaluated DeepMI on three distinct unsupervised tasks:
- Unsupervised Bar Alignment: Aligning a rectangular bar by predicting translation and rotation.
- Unsupervised Mask Prediction: Identifying similar and dissimilar regions between two images.
- Unsupervised Depth Estimation: A complex real-world task using stereo images from the KITTI dataset.
Key Results and Insights
DeepMI consistently outperformed $L_1$, $L_2$, and SSIM across all experiments. In the mask prediction task (Figure 4), $L_{LMI}$ generated significantly cleaner masks with higher Intersection-over-Union (IoU) scores compared to the noisy outputs of traditional losses.
In the challenging depth estimation task, $L_{LMI}$ achieved a Mean Absolute Error (MAE) of 0.27m, significantly better than $L_{SSIM}$ (0.46m) and the popular $L_{SSIM} + L_2$ combination (0.64m).
Advantages of DeepMI
- Eliminating "Texture Copy": Traditional losses often suffer from artifacts where patterns from the original image leak into the depth map. $L_{LMI}$ naturally avoids this by focusing on statistical alignment rather than pixel-matching.
- Signal Agnostic: Because MI operates on probability distributions, the framework can theoretically be applied to any data type, including audio or time series.
- Simplified Tuning: DeepMI has only one primary hyperparameter: the number of bins ($N$). A small number of bins (15–25) is sufficient for most tasks.
Conclusion and Future Work
DeepMI provides a robust, differentiable framework for integrating Mutual Information into unsupervised deep learning. By moving beyond pointwise comparisons to statistical dependencies, it achieves superior performance in tasks ranging from simple alignment to complex depth estimation. Future research may extend this framework to autonomous vehicle odometry, speech processing, and multi-modal signal fusion.
Summary updated