NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MIX'EM: Unsupervised Image Classification using a Mixture of Embeddings

Ali Varamesh, Tinne Tuytelaars · DOI

Abstract

We present MIX'EM, a novel solution for unsupervised image classification. MIX'EM generates representations that by themselves are sufficient to drive a general-purpose clustering algorithm to deliver high-quality classification. This is accomplished by building a mixture of embeddings module into a contrastive visual representation learning framework in order to disentangle representations at the category level. It first generates a set of embedding and mixing coefficients from a given visual representation, and then combines them into a single embedding. We introduce three techniques to successfully train MIX'EM and avoid degenerate solutions; (i) diversify mixture components by maximizing entropy, (ii) minimize instance conditioned component entropy to enforce a clustered embedding space, and (iii) use an associative embedding loss to enforce semantic separability. By applying (i) and (ii), semantic categories emerge through the mixture coefficients, making it possible to apply (iii). Subsequently, we run K-means on the representations to acquire semantic classification. We conduct extensive experiments and analyses on STL10, CIFAR10, and CIFAR100-20 datasets, achieving state-of-the-art classification accuracy of 78%, 82%, and 44%, respectively. To achieve robust and high accuracy, it is essential to use the mixture components to initialize K-means. Finally, we report competitive baselines (70% on STL10) obtained by applying K-means to the "normalized" representations learned using the contrastive loss.

Introduction

While supervised deep learning has mastered image classification, it relies on massive, manually labeled datasets—a process that is expensive and often impractical. Recently, "self-supervised" methods like SimCLR have learned to create powerful visual features by comparing different augmented views of the same image. However, these features are not naturally grouped by semantic category (e.g., "dogs" vs. "cars"). If a standard clustering algorithm like K-means is applied to these features, the results are often underwhelming. MIX'EM addresses this "semantic gap" by baking category-level disentanglement directly into the representation learning process.

The MIX'EM Framework

The core innovation is the Mixture of Embeddings (MIX’EM) module. Instead of projecting an image into a single vector, the model generates multiple "candidate" embeddings and a set of mixing coefficients (probabilities) that decide which candidate best represents the image.

Comparison of the standard SimCLR architecture (top) with the proposed MIX'EM framework (bottom), highlighting the mixture of embeddings module and additional loss terms.

To prevent the model from taking "shortcuts" (like assigning every image to the same component), the framework introduces three specific loss functions:

  1. Entropy Maximization ($L_{comp-ent}$): Forces the model to use all available mixture components across the dataset, ensuring diversity.
  2. Conditional Entropy Minimization ($L_{inst-ent}$): Forces the model to be highly confident about which specific component an image belongs to, creating "sharp" assignments.
  3. Associative Embedding Loss ($L_{push} + L_{pull}$): A two-part strategy that pulls images assigned to the same component closer together in the embedding space and pushes different component groups further apart.

Key Results and Insights

The authors evaluated MIX’EM on three standard computer vision benchmarks: STL10, CIFAR10, and CIFAR100-20. MIX’EM achieved state-of-the-art (SOTA) results in unsupervised classification at the time of publication, reaching 78% accuracy on STL10 and 82% on CIFAR10.

t-SNE visualizations demonstrating the impact of different loss components on the embedding space. The clusters become increasingly distinct and semantically separated as entropy and associative losses are added.

Several key insights emerged from the study:

  • Structure without Supervision: Contrastive learning can be steered toward semantic-level grouping simply by changing the architecture of the network's "head."
  • The Power of Normalization: Simply normalizing representations before clustering significantly boosts performance (e.g., jumping from 65% to 70% on STL10 for the baseline SimCLR).
  • Stability via Initialization: Standard K-means is sensitive to its starting point. By using the learned mixture components as a "warm start," MIX’EM achieves higher, more consistent accuracy.
  • Preserving Feature Quality: Adding the MIX’EM module does not degrade the quality of the underlying visual features; a linear classifier trained on frozen features performs as well as one trained on standard SimCLR features.

Limitations and Future Work

The model currently assumes the number of categories ($K$) is known in advance. While ablation studies showed the model is somewhat stable if provided with more components than actual classes, estimating $K$ automatically remains a challenge. Additionally, performance on CIFAR100-20 was lower (44%) due to semantic ambiguity in "super-class" groupings. Future work includes scaling to larger datasets like ImageNet and exploring applications in image retrieval and instance segmentation.

Summary updated

BibTeX
@inproceedings{varamesh2020mix,
  author = {Ali Varamesh and Tinne Tuytelaars},
  title = {{MIX'EM: Unsupervised Image Classification using a Mixture of Embeddings}},
  booktitle = {ACCV},
  year = {2020},
  doi = {10.1007/978-3-030-69535-4\_3},
}
Figure