[Paper Review] Learning Representations by Maximizing Compression
This paper proposes a compression-based representation learning algorithm that models image data by sequentially predicting pixels using a learnable autoencoder-like architecture. By maximizing the likelihood of pixel predictions under a sequential ordering, the method achieves state-of-the-art compression performance on MNIST and USPS datasets, learning interpretable filters similar to those from RBMs and denoising autoencoders, while enabling exact likelihood computation and efficient sampling via arithmetic coding.
We give an algorithm that learns a representation of data through compression. The algorithm 1) predicts bits sequentially from those previously seen and 2) has a structure and a number of computations similar to an autoencoder. The likelihood under the model can be calculated exactly, and arithmetic coding can be used directly for compression. When training on digits the algorithm learns filters similar to those of restricted boltzman machines and denoising autoencoders. Independent samples can be drawn from the model by a single sweep through the pixels. The algorithm has a good compression performance when compared to other methods that work under random ordering of pixels.
Motivation & Objective
- To develop a representation learning algorithm grounded in data compression, leveraging sequential prediction of pixels to model complex, high-dimensional data distributions.
- To enable exact computation of data likelihood under the model, facilitating direct use of arithmetic coding for compression.
- To learn meaningful, disentangled representations through end-to-end training that generalize across random pixel orderings.
- To demonstrate that compression performance correlates with the quality of learned representations, using MNIST and USPS as benchmarks.
Proposed method
- The model predicts each pixel sequentially from previously observed pixels using a two-pathway architecture: a direct path (R) and a nonlinear path (UV) through a hidden layer, both combined and passed through a sigmoid for output probability.
- The hidden layer state is updated incrementally using only the current pixel's value and learned weights, enabling efficient online inference with O(nh nx + nx^2) operations per pixel.
- The model is trained by maximizing the log-likelihood of observed pixel values, using the binary cross-entropy loss: L = -Σ[xi log(yi) + (1-xi) log(1-yi)].
- The architecture supports exact likelihood estimation and enables sampling from the model via a single sweep over pixels, using predicted probabilities to stochastically generate new images.
- The method is regularized with L2 weight decay and early stopping to prevent overfitting, especially when increasing the number of hidden units.
- The framework is extensible to real-valued data by modeling pixel distributions as mixtures of simple one-dimensional distributions, such as Gaussians.
Experimental results
Research questions
- RQ1Can a model that learns to compress data by sequentially predicting pixels learn meaningful, disentangled representations?
- RQ2How does the performance of this compression-based learning method compare to established generative models like RBMs and denoising autoencoders in terms of both compression and representation quality?
- RQ3Does the model’s ability to compute exact likelihoods enable effective compression and sampling without requiring approximate inference?
- RQ4How robust is the method to random pixel ordering, and does it outperform context-aware systems like DjVu under such conditions?
Key findings
- The model achieves 84.5 bits per image on the USPS dataset and 94.8 bits on MNIST using 200 hidden units, outperforming baseline methods including RBMs and herding.
- With 1000 hidden units and regularization, the model achieves 81.0 bits per image on MNIST, demonstrating strong compression performance under random pixel ordering.
- The learned filters resemble strokes and edge detectors, showing interpretability and similarity to features learned by RBMs and denoising autoencoders.
- The model enables exact likelihood computation and direct use of arithmetic coding for compression, with the encoded bitstream equaling the model’s log-likelihood.
- Sampling from the model produces plausible digit images through a single forward pass, using stochastic prediction of each pixel based on previously generated values.
- The method generalizes well to real-valued data by modeling pixel distributions as mixtures of simple one-dimensional distributions, such as Gaussians.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.