Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Learning deep representations by mutual information estimation and maximization

Deep InfoMax learns representations by maximizing mutual information with local patches

  • Problem Maximizing mutual information over the whole input alone often yields representations poorly suited to classification. Estimating mutual information in high dimensions is also hard, until neural estimators made it practical.
  • Method Deep InfoMax trains an encoder to maximize mutual information between a global feature and local patch features. It can also match the encoder output to a fixed prior with an adversarial discriminator.
  • Results DIM(L) with infoNCE reached 75.21 on CIFAR10 at the conv layer, against 75.39 for a fully supervised classifier.

Why maximizing global mutual information is not enough

The method starts from the idea that an encoder should be trained so that its output carries as much information as possible about its input. Mutual information is the natural measure for this, but it is difficult to compute for continuous, high-dimensional variables. Neural estimators now make mutual information between the high-dimensional inputs and outputs of deep networks computable, which is what makes this objective usable in practice.

The central observation is that the choice of what to maximize matters. Maximizing mutual information between the full input and the encoder output, called global MI here, is often not enough for useful representations, depending on the downstream task. Maximizing the average mutual information between the representation and local regions such as image patches improves classification quality, while global MI is more useful when the full input must be reconstructed from the representation.

The reasoning is that pixel-level noise carries information about individual patches but is useless for telling image classes apart. A representation that must be related to every patch is pushed to keep the content shared across patches.

Estimating mutual information during training

The estimator follows the Donsker-Varadhan bound used by MINE. A discriminator T with parameters \(\omega\) is trained to separate samples from the joint distribution J from samples from the product of marginals M, and the bound is \[ \hat{I}^{(DV)}_{\omega}(X;Y) := \mathbb{E}_J[T_\omega(x,y)] - \log \mathbb{E}_M[e^{T_\omega(x,y)}] \] In the global objective the encoder and the estimator are optimized together, with \(\hat{\omega}, \hat{\psi}\) chosen by maximizing the estimate over both parameter sets.

The encoder is split into a convolutional part and a summarizing part, and the discriminator reuses the lower layers, so the two networks share computation.

The authors do not need the exact KL value, only a working maximization signal, so they can use non-KL divergences. The Jensen-Shannon estimator is \[ \hat{I}^{(JSD)}_{\omega,\psi}(X;E_\psi(X)) := \mathbb{E}_P[-sp(-T_{\psi,\omega}(x,E_\psi(x)))] - \mathbb{E}_{P\times\tilde{P}}[sp(T_{\psi,\omega}(x',E_\psi(x)))] \] where sp(z) is the softplus function, and it amounts to a binary cross-entropy.

The infoNCE estimator places its expectation over the negatives inside a log-sum, which differs from the JSD form in where the expectation sits relative to the log. The JSD form mirrors the original noise-contrastive estimation, with the product of marginals as the noise distribution.

The local objective and the combined loss

The encoder first produces a feature map of M by M local features, and these are summarized into one global vector. The local objective averages the estimated mutual information between the global vector and each local feature, as \[ (\hat\omega,\hat\psi)_L = \arg\max_{\omega,\psi} \frac{1}{M^2}\sum_{i=1}^{M^2} \hat I_{\omega,\psi}(C^{(i)}_\psi(X);E_\psi(X)) \] Because the same global vector must be informative about every patch, the encoder keeps information that repeats across patches and drops patch-specific detail.

The complete objective weights a global term with \(\alpha\), a local term with \(\beta\), and a prior-matching term with \(\gamma\), with separate discriminator parameters for the global and local terms. In the main comparison DIM(G) uses \(\alpha=1\), \(\beta=0\), \(\gamma=1\), and DIM(L) uses \(\alpha=0\), \(\beta=1\), \(\gamma=0.1\), the latter chosen from an ablation study in the appendix.

Matching the representation to a prior

A discriminator \(D_\phi\) estimates the divergence between a prior V and the push-forward distribution \(U_{\psi,P}\) of the encoder outputs, and the encoder is trained to minimize that estimate, as \[ \arg\min_\psi \arg\max_\phi \hat{D}_\phi(V\|U_{\psi,P}) = \mathbb{E}_V[\log D_\phi(y)] + \mathbb{E}_P[\log(1-D_\phi(E_\psi(x)))] \] This resembles adversarial autoencoders but has no generator, and the encoder matches the prior implicitly rather than being given prior samples as targets.

For the prior, a compact uniform distribution on \([0,1]^{64}\) worked better in the authors' tests than Gaussian, unit ball or unit sphere priors.

Datasets and how representations are scored

For STL-10 the unsupervised training uses random 64 by 64 crops and horizontal flips. CelebA is used only in an appendix analysis. Comparison methods are VAE, beta-VAE, AAE, BiGAN, NAT and CPC, with CPC taken to mean ordered autoregression on summary features regardless of the loss used.

Representations are scored by linear classification with a support vector machine, non-linear classification with a single 200-unit hidden layer, semi-supervised fine-tuning on STL-10, MS-SSIM from a decoder trained with an L2 loss, MINE, and the neural dependency measure. Neural dependency measure compares the representation with a batch-wise shuffled version of itself, so that a higher KL means the factors are more dependent.

The classifiers were selected by averaging the last 100 epochs, and the extended measures were run only on CIFAR10.

Classification results on the benchmark datasets

On CIFAR10, DIM(L) with infoNCE reached 75.21 at the conv layer, against 75.39 for a fully supervised classifier. DIM(G) reached 52.2 at the conv layer, lower than the best generative baselines such as BiGAN at 62.57. On CIFAR100, DIM(L) with infoNCE reached 49.74 at the conv layer, while the best baseline shown in the same table was BiGAN at 37.59 at that layer.

On Tiny ImageNet, DIM(L) with infoNCE reached 34.21 at the conv layer, against 36.60 for the fully supervised classifier, and BiGAN reached 24.38 at that layer.

Across the local variants, infoNCE tends to perform best, and the gap to JSD shrinks on larger datasets. DV is close to JSD on smaller datasets but falls behind on larger ones.

Comparison with CPC under a strided-crop setup

With the strided-crop architecture, crops of 8 by 8 with 4 by 4 strides on CIFAR10 and 16 by 16 with 8 by 8 strides on STL-10 give a 7 by 7 grid of local features, and both DIM(L) and CPC use infoNCE with the same encode-and-dot-product architecture. On CIFAR10 without augmentation, DIM(L) with a single global feature scores 80.95 against 77.45 for CPC, and the multiple-global version scores 77.51.

On STL-10 with random crop pretraining, CPC scores 77.81, which is above DIM(L) at 76.97 and at 78.21 for the multiple-global version.

The multiple-globals version computes global features from random 3 by 3 blocks of the 7 by 7 local features and shares one estimator across blocks. The authors suggest that CPC's strictly ordered autoregression may be unnecessary for some tasks.

Extended measures on CIFAR10

With SVM on the conv layer, DIM(L) scores 63.25 with a standard deviation of 0.86 over five runs, compared with 56.40 for BiGAN and 53.83 for VAE.

Occlusion and coordinate prediction

Adding both coordinate prediction and occlusion to infoNCE DIM raises the Y (64) classification accuracy on CIFAR10 from 70.65 to 73.99, and on CIFAR100 from 44.27 to 45.96.

Occlusion computes the global feature from a partly hidden input while local features use the full input, and coordinate prediction asks the model to recover the position of a local feature given the global feature. The authors relate these tasks to inpainting and context prediction.

Limits of the evidence

The CPC comparison in the extended CIFAR10 table was not run because the architectures diverged, so the extended measures cover DIM(L), DIM(G) and DIM(L+G) against the generative baselines only. Most extended measures were run only on CIFAR10, and the neural classifier was not run on CelebA, which appears only in an appendix analysis.

In the authors' initial settings CPC was only marginally better than BiGAN, and CPC gained only after the strided-crop architecture was adopted. The authors also note that a fully supervised classifier with specialized architecture and augmentation can do much better than these numbers. The infoNCE and DV variants need many negative samples to be competitive, and this cost grows with batch size.

Paper info

Authors
Hjelm, R Devon, Fedorov, Alex, Lavoie-Marchildon, Samuel, Grewal, Karan, Bachman, Phil, Trischler, Adam, Bengio, Yoshua
Venue
arXiv · Preprint
First published
2018-8-20
Added
2026-11-12
Updated
2019-2-22
Version
v5
arXiv
1808.06670
Category
stat.ML · cs.LG
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Hjelm, R Devon, Fedorov, Alex, Lavoie-Marchildon, Samuel, Grewal, Karan, Bachman, Phil, Trischler, Adam, Bengio, Yoshua (2018). Learning deep representations by mutual information estimation and maximization. arXiv:1808.06670v5. https://arxiv.org/abs/1808.06670v5

BibTeX
@misc{devon2018learning,
  title = {{Learning deep representations by mutual information estimation and maximization}},
  author = {Hjelm, R Devon and Fedorov, Alex and Lavoie-Marchildon, Samuel and Grewal, Karan and Bachman, Phil and Trischler, Adam and Bengio, Yoshua},
  year = {2018},
  eprint = {1808.06670},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1808.06670v5}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up