The Wilson Machine for Image Modeling

Saeed Saremi, Terrence J. SejnowskiarXiv 2015

Abstract

Modeling the probability distribution of natural images is a foundational challenge in computer vision. Traditional approaches rely on complex architectures with hidden units to capture multi-scale structures. This paper introduces the "Wilson Machine," a framework that leverages a visible hierarchy of binary bitplanes to transform unsupervised image modeling into a sequence of supervised tasks. By treating the primary bitplane as a critical physical system and subsequent layers as a process of stochastic heating, the model generates high-quality natural images using simple convolutional logistic regressions without the need for hidden units.

Introduction

Natural images are characterized by structural dependencies that span every possible scale, from microscopic textures to global compositions. In statistical physics, systems exhibiting such scale-invariant fluctuations are known as "critical." The Wilson Machine, named in homage to Kenneth Wilson’s work on the renormalization group and critical phenomena, applies these physical principles to image modeling.

Rather than attempting to learn abstract features through layers of hidden units, the Wilson Machine utilizes the "visible" hierarchy inherent in the data itself. By decomposing an image into a series of binary bitplanes, the authors demonstrate that the complex task of density estimation can be simplified into a directed, causal process that mimics the transition from order to disorder.

Methodology

Bitplane Decomposition and Stochastic Heating

The core of the Wilson Machine is a directed probabilistic graphical model based on a specific binary representation of grayscale images. The process begins with median-thresholding, a technique equivalent to histogram equalization followed by a half-point threshold. This ensures the first bitplane ($B_1$) captures the most significant structural information of the image.

The image is then mapped into a stack of eight binary images ($B_1, B_2, \dots, B_8$). The authors describe this hierarchy through the lens of "stochastic heating":

  • $B_1$ (The Critical Root): Contains the fundamental large-scale structures and long-range correlations.
  • $B_2$ to $B_8$: As the index $\lambda$ increases, the bitplanes become increasingly disordered, eventually resembling white noise.

Learning via Convolutional Logistic Regression

By fixing a causal direction from the structural $B_1$ to the noisy $B_8$, the authors convert a difficult unsupervised density estimation problem into a series of supervised learning tasks. The model learns the conditional probability of each bitplane given the ones above it: $P(B_\lambda | B_1, \dots, B_{\lambda-1})$.

This is implemented using a simple convolutional architecture with weight-sharing. Because the task is to predict binary values, the authors utilize logistic regression. Remarkably, this approach requires no hidden units, relying entirely on the spatial filters to capture the dependencies between bitplanes.

Image Generation

To generate a new image, the model is conditioned on a critical bitplane ($B_1$). The learned convolutional filters then "fill in" the subsequent layers. To maintain the structural integrity of clusters in the lower layers, the authors employ a "winner-take-all" sampling strategy rather than independent pixel-wise sampling.

Experimental Results

Dataset

The model was trained using the Geisler database of natural images, consisting of 1,024 high-resolution images ($2844 \times 4284$ pixels). For training, $10^5$ patches of $41 \times 41$ pixels were extracted to optimize the convolutional weights.

Performance

The Wilson Machine demonstrated both qualitative and quantitative success in capturing the statistics of natural scenes:

  • Qualitative Output: The model successfully generated large-scale images ($2564 \times 4004$ pixels) featuring realistic textures and a full range of grayscale shades.
  • Mean Square Error (MSE): The model achieved a normalized MSE of 0.0588, significantly outperforming the null model's error of 0.1244.
  • Negative Log-Likelihood (NLL): The average NLL for the conditional bitplanes ranged between 0.23 and 0.29 bits/pixel. Given that white noise (a state of total disorder) has an NLL of 1 bit/pixel, these results indicate that the Wilson Machine effectively captured substantial structural dependencies.

Discussion and Key Insights

Visible vs. Hidden Hierarchies

A significant contribution of this work is the shift from hidden to visible hierarchies. While standard deep learning architectures (like RBMs or GANs) rely on latent variables to find structure, the Wilson Machine shows that bitplane decomposition reveals a hierarchy that is directly accessible. This transparency allows for a more interpretable model that aligns with physical theories of phase transitions.

Limitations and Future Work

The primary limitation of the current framework is its dependence on the first bitplane. As a conditional model, it requires $B_1$ as an input to generate the rest of the image. To create a fully autonomous generative model, the authors identify the need to learn the prior distribution $P(B_1)$.

Furthermore, the framework suggests significant potential for lossy image compression. By focusing resources on the critical $B_1$ layer and using the Wilson Machine to reconstruct the remaining data, it may be possible to achieve high-fidelity compression at rates as low as 1 bit/pixel. While currently focused on images, the underlying theory of modeling signals with long correlation lengths could eventually be extended to audio or seismic data analysis.

Summary updated

Abstract

Learning the distribution of natural images is one of the hardest and most important problems in machine learning. The problem remains open, because the enormous complexity of the structures in natural images spans all length scales. We break down the complexity of the problem and show that the hierarchy of structures in natural images fuels a new class of learning algorithms based on the theory of critical phenomena and stochastic processes. We approach this problem from the perspective of the theory of critical phenomena, which was developed in condensed matter physics to address problems with infinite length-scale fluctuations, and build a framework to integrate the criticality of natural images into a learning algorithm. The problem is broken down by mapping images into a hierarchy of binary images, called bitplanes. In this representation, the top bitplane is critical, having fluctuations in structures over a vast range of scales. The bitplanes below go through a gradual stochastic heating process to disorder. We turn this representation into a directed probabilistic graphical model, transforming the learning problem into the unsupervised learning of the distribution of the critical bitplane and the supervised learning of the conditional distributions for the remaining bitplanes. We learnt the conditional distributions by logistic regression in a convolutional architecture. Conditioned on the critical binary image, this simple architecture can generate large, natural-looking images, with many shades of gray, without the use of hidden units, unprecedented in the studies of natural images. The framework presented here is a major step in bringing criticality and stochastic processes to machine learning and in studying natural image statistics.
BibTeX
@misc{saremi2015wilson,
  author = {Saeed Saremi and Terrence J. Sejnowski},
  title = {{The Wilson Machine for Image Modeling}},
  year = {2015},
  eprint = {1510.07740},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1510.07740},
}
Figure