DeepMI: A Mutual Information Based Framework For Unsupervised Deep Learning of Tasks

Ashish Kumar, Laxmidhar BeheraarXiv 2021

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:

  1. 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.
  2. 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.
Qualitative comparison of unsupervised mask prediction across different loss functions. The $L_{LMI}$ loss produces masks that most closely match the ground truth (GT) with minimal noise.

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).

Depth estimation results on the KITTI dataset. $L_{LMI}$ effectively avoids "texture copy" artifacts and maintains structural integrity compared to traditional pixel-wise losses.

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

Abstract

In this work, we propose an information theory based framework DeepMI to train deep neural networks (DNN) using Mutual Information (MI). The DeepMI framework is especially targeted but not limited to the learning of real world tasks in an unsupervised manner. The primary motivation behind this work is the limitation of the traditional loss functions for unsupervised learning of a given task. Directly using MI for the training purpose is quite challenging to deal with because of its unbounded above nature. Hence, we develop an alternative linearized representation of MI as a part of the framework. Contributions of this paper are three fold: i) investigation of MI to train deep neural networks, ii) novel loss function LLMI , and iii) a fuzzy logic based end-to-end differentiable pipeline to integrate DeepMI into deep learning framework. Due to the unavailability of a standard benchmark, we carefully design the experimental analysis and select three different tasks for the experimental study. We demonstrate that L LMI alone provides better gradients to achieve a neural network better performance over the popular loss functions, also in the cases when multiple loss functions are used for a given task.
BibTeX
@misc{kumar2021deepmi,
  author = {Ashish Kumar and Laxmidhar Behera},
  title = {{DeepMI: A Mutual Information Based Framework For Unsupervised Deep Learning of Tasks}},
  year = {2021},
  eprint = {2101.06411},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.06411},
}
Figure