Expand-and-Quantize: Unsupervised Semantic Segmentation Using High-Dimensional Space and Product Quantization

Jiyoung Kim, Kyuhong Shim, Insu Lee, Byonghyo Shim

TL;DR

EQUSS (Expand-and-Quantize Unsupervised Semantic Segmentation) breaks the traditional trade-off between feature compression and clustering quality. By expanding features into a high-dimensional space for better separability and then using Product Quantization (PQ) to compress them, the model achieves new state-of-the-art results across major benchmarks like CocoStuff-27 and Cityscapes.

What Problem Does This Paper Address?

Unsupervised Semantic Segmentation (USS) aims to group pixels into meaningful categories (like "car," "sky," or "road") without ever seeing a human-provided label. To do this effectively, a model needs two conflicting abilities:

  1. Information Compression: It must strip away "noise" (lighting changes, textures) to keep only the core semantic information.
  2. Clustering Capability: It must be able to clearly separate different classes in a mathematical space.
The dual requirements of USS: Information compression (A) and high-dimensional clustering capability (B).

Traditionally, researchers used dimension reduction (e.g., shrinking a 384-dim vector to 70-dim) to achieve compression. However, the authors argue this is counterproductive. According to Cover’s Theorem, patterns are more likely to be linearly separable in high-dimensional spaces. By shrinking the features, previous models made it harder for clustering algorithms to find clear boundaries between classes.

Methods

The authors propose a two-stage "Expand-and-Quantize" framework that flips the traditional bottleneck architecture on its head.

Comparison of (b) conventional bottleneck architectures versus (c) the proposed Expand-and-Quantize (EQUSS) framework.
  • The Expansion Head ($\mathcal{E}$): Instead of shrinking the features coming out of a pre-trained backbone (like DINO), EQUSS uses a non-linear transformation to project them into a higher-dimensional space. This makes the features more "clusterable."
  • Product Quantization (PQ) Head ($\mathcal{Q}$): To regain the benefits of compression without losing the high-dimensional structure, they use PQ. The high-dim vector is split into $M$ sub-vectors, and each is mapped to the nearest "codeword" in a learned codebook.
  • The "Aha" Moment: This quantization acts as a filter. Because the codebook centroids represent common patterns across the dataset, the "quantization noise" (the difference between the raw feature and the centroid) effectively discards class-irrelevant information while keeping the high-dimensional spatial relationships intact.

The model is trained using a combination of a feature correspondence loss (distilling knowledge from the backbone) and standard PQ losses (codebook and commitment losses).

Key Insights: Entropy as a Metric for "Purity"

The authors are the first to analyze USS features through the lens of Shannon entropy. They found that EQUSS features have significantly lower entropy (avg. 246 bits) compared to the previous state-of-the-art, STEGO (avg. 475 bits).

Lower entropy suggests the features are more "purely" semantic and less cluttered with random visual noise. Their analysis shows a direct correlation between a class's entropy and its segmentation accuracy. Classes with high visual variety (like "Sports" or "Indoor") have higher entropy and lower accuracy, whereas consistent classes (like "Sky") are much easier for the model to "quantize" effectively.

Key Results

EQUSS significantly outperformed previous state-of-the-art (SOTA) models across three standard benchmarks:

  • CocoStuff-27: Achieved 53.8% unsupervised accuracy, a +5.5% jump over the previous SOTA (STEGO).
  • Cityscapes: Reached 79.9% accuracy, outperforming the previous best by +2.0%.
  • Potsdam-3: Reached 82.0% accuracy, a +5.0% improvement.

Despite using higher-dimensional spaces, the quantized features are actually more compact in terms of information theory (bits), making them more efficient for downstream tasks.

Limitations and Future Work

While EQUSS sets a new bar for USS, it faces challenges with hyperparameter sensitivity regarding the number of codebooks ($M$) and codebook size ($K$). Additionally, very rare "minority" classes (those making up <0.2% of the data) still show low accuracy, as there aren't enough samples to populate the PQ codebooks effectively. The authors suggest that future "entropy-aware" training strategies could specifically target these difficult, high-variance classes.

Summary updated

BibTeX
@inproceedings{kim2024expand,
  author = {Jiyoung Kim and Kyuhong Shim and Insu Lee and Byonghyo Shim},
  title = {{Expand-and-Quantize: Unsupervised Semantic Segmentation Using High-Dimensional Space and Product Quantization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i3.28056},
}
Figure