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

Object-Centric Semantic Vector Quantization

Yi-Fu Wu, Minseung Lee, Sungjin AhnUniReps @ NeurIPS 2023

Abstract

Neural discrete representations are crucial components of modern neural networks. However, their main limitation is that the primary strategies such as VQ-VAE can only provide representations at the patch level. Therefore, one of the main goals of representation learning, acquiring conceptual, semantic, and compositional abstractions such as the color and shape of an object, remains elusive. In this paper, we present the first approach to semantic neural discrete representation learning. The proposed model, called Semantic Vector-Quantized Variational Autoencoder (SVQ), leverages recent advances in unsupervised object-centric learning to address this limitation. Specifically, we observe that a simple approach quantizing at the object level poses a significant challenge and propose constructing scene representations hierarchically, from low-level discrete concept schemas to object representations. Additionally, we suggest a novel method for training a prior over these semantic representations, enabling the ability to generate images following the underlying data distribution, which is lacking in most object-centric models. In experiments on various 2D and 3D object-centric datasets, we find that our model achieves superior generation performance compared to non-semantic vector quantization methods such as VQ-VAE and previous object-centric generative models. Furthermore, we find that the semantic discrete representations can solve downstream scene understanding tasks that require reasoning about the properties of different objects in the scene.

Introduction

Modern neural networks often represent images as a grid of discrete "patches," a method popularized by VQ-VAE and used in large-scale generative models like DALL-E. While effective for data compression, these patches lack inherent semantic meaning. A single patch might capture arbitrary fragments of an object and background, failing to represent a coherent concept like "a red triangle."

Conversely, object-centric learning frameworks, such as Slot Attention, successfully group pixels into object-level representations. However, these models typically rely on continuous latent vectors, which complicates the definition of a prior distribution. Consequently, these models often struggle to generate new, coherent images from scratch. The Semantic Vector-Quantized Variational Autoencoder (SVQ) addresses this missing link by providing a representation that is both object-centric and discrete.

Comparison of discrete representation strategies: (a) Patch-based VQ-VAE, (b) Object-centric Quantized-Slots, and (c) Semantic-factored SVQ.

Methodology

The SVQ architecture is built upon three core pillars designed to enable semantic abstraction:

1. Factored Slot Attention

Instead of representing an object as a single high-dimensional vector, SVQ decomposes each "slot" (object representation) into $M$ separate blocks. This factorization allows the model to learn independent attributes for each object.

2. Block-Level Quantization

Each block is associated with its own dedicated codebook. For instance, one codebook might specialize in "colors" while another learns "shapes." This approach effectively bypasses the "curse of dimensionality." In a standard quantization scheme, representing 10 colors and 10 shapes would require 100 codebook entries ($10 \times 10$). In SVQ, the model only needs 20 entries ($10 + 10$) to represent all 100 combinations, making the learning process significantly more efficient.

3. Semantic Prior

To enable generative capabilities, an autoregressive Transformer is trained on the discrete tokens produced by the frozen SVQ model. Because these tokens correspond to specific object properties, the Transformer learns to compose scenes "one object at a time," ensuring logical global structure.

The SVQ framework: (a) The encoding process uses an RNN to update slots which are then quantized via factored codebooks. (b) An autoregressive prior learns the distribution of these semantic tokens for image generation.

Experiments and Results

The model was evaluated on benchmarks including 2D Sprites and the 3D-rendered CLEVR datasets, including the challenging CLEVR-Tex, which features complex textures.

Image Generation Quality

SVQ demonstrates superior visual fidelity in multi-object scene generation. On the CLEVR-Tex dataset, SVQ achieved an FID score of 84.52, a substantial improvement over patch-based methods like VQ-VAE (178.59) and dVAE (112.80).

Downstream Reasoning and Generalization

The semantic nature of the discrete latents provides a strong inductive bias for reasoning tasks. In an "Odd-One-Out" task—identifying a unique object in a scene—SVQ achieved 99.1% accuracy on out-of-distribution data. In contrast, patch-based methods performed near random chance (~25%). Furthermore, the discrete bottleneck acts as a regularizer, preventing the model from overfitting to pixel-level noise and improving generalization to unseen attribute combinations.

Conclusion and Future Work

SVQ represents a significant step toward bridging the gap between low-level perception and high-level symbolic reasoning. By quantizing disentangled object attributes, it enables both high-quality image generation and robust semantic reasoning. While currently demonstrated on synthetic data, future work aims to scale these unsupervised object-centric methods to real-world imagery and extend the framework to video prediction and reinforcement learning environments.

Summary updated

BibTeX
@inproceedings{wu2023object,
  author = {Yi-Fu Wu and Minseung Lee and Sungjin Ahn},
  title = {{Object-Centric Semantic Vector Quantization}},
  booktitle = {UniReps @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=NSfecLF4Za},
}
Figure