[Paper Review] Associative Compression Networks for Representation Learning
This paper proposes Associative Compression Networks (ACNs), a variational autoencoder variant that conditions the prior distribution on similar latent codes from the dataset, enabling efficient compression and rich, structured representations. By modeling local dependencies in latent space, ACNs maintain informative codes even with powerful autoregressive decoders, achieving state-of-the-art unsupervised representation quality on MNIST, CIFAR-10, ImageNet, and CelebA.
This paper introduces Associative Compression Networks (ACNs), a new framework for variational autoencoding with neural networks. The system differs from existing variational autoencoders (VAEs) in that the prior distribution used to model each code is conditioned on a similar code from the dataset. In compression terms this equates to sequentially transmitting the dataset using an ordering determined by proximity in latent space. Since the prior need only account for local, rather than global variations in the latent space, the coding cost is greatly reduced, leading to rich, informative codes. Crucially, the codes remain informative when powerful, autoregressive decoders are used, which we argue is fundamentally difficult with normal VAEs. Experimental results on MNIST, CIFAR-10, ImageNet and CelebA show that ACNs discover high-level latent features such as object class, writing style, pose and facial expression, which can be used to cluster and classify the data, as well as to generate diverse and convincing samples. We conclude that ACNs are a promising new direction for representation learning: one that steps away from IID modelling, and towards learning a structured description of the dataset as a whole.
Motivation & Objective
- Address the failure of standard VAEs to maintain informative latent codes when paired with powerful autoregressive decoders.
- Overcome the paradox in variational autoencoding where high-level concept coding costs outweigh compression benefits for individual data points.
- Develop a framework that organizes the entire dataset through structured latent representations rather than annotating individual examples.
- Enable meaningful, disentangled representations that support clustering, classification, and controllable generation without auxiliary supervision.
- Demonstrate that compression efficiency and representation quality can be improved by modeling local, dataset-wide structure in latent space.
Proposed method
- Introduce a prior distribution that is conditioned on the nearest neighbors of a latent code in the training set, based on their proximity in latent space.
- Use a two-part compression framework: transmit the code using a conditional prior (based on similar codes), then transmit the residual using an autoregressive decoder.
- Train the model end-to-end using a variational inference objective that minimizes the expected description length (KL divergence + reconstruction loss).
- Apply a k-nearest neighbors (k-NN) search in the latent space to identify similar codes for prior conditioning, ensuring local structure is captured.
- Use a powerful, autoregressive decoder (e.g., gated PixelCNN) to reconstruct data from the code, allowing high-fidelity generation.
- Enable 'daydream sampling' by traversing the latent space along trajectories that preserve structural continuity, enabling smooth interpolation between samples.
Experimental results
Research questions
- RQ1Can a variational autoencoder maintain informative latent codes when paired with a powerful autoregressive decoder, contrary to the common failure mode of code ignoring?
- RQ2Does conditioning the prior on similar codes from the dataset improve compression efficiency and representation quality compared to standard VAEs?
- RQ3Can the resulting latent codes capture high-level disentangled factors such as object class, pose, and style across diverse datasets?
- RQ4Is the learned representation suitable for downstream tasks like linear classification and clustering without fine-tuning?
- RQ5Can the model generate diverse, high-quality samples through continuous latent space traversal (daydream sampling) while preserving semantic structure?
Key findings
- On MNIST, ACN codes achieved 91.2% linear classification accuracy, significantly outperforming the 38.4% accuracy of raw pixels.
- On CIFAR-10, ACN codes achieved 55.3% top-1 linear classification accuracy, compared to 38.4% for pixels, demonstrating strong disentanglement of high-level features.
- On ImageNet (32x32), ACN codes achieved 18.5% top-1 and 40.5% top-5 linear classification accuracy, far exceeding the 3.0% and 9.0% for pixels.
- On CelebA, ACN codes preserved high-level attributes like gender, expression, and pose, with reconstructions showing accurate modeling of facial features and lighting.
- Daydream sampling revealed smooth, continuous transitions in facial expression, pose, and style, indicating structured and disentangled latent space organization.
- ACN samples showed a subtle but consistent improvement in sample quality over baseline Gated PixelCNN, especially in capturing global image coherence and diversity.
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.