Investigating Permutation-Invariant Discrete Representation Learning for Spatially Aligned Images
Organizations: Durham University, United Kingdom
Abstract
Vector quantization approaches (VQ-VAE, VQ-GAN) learn discrete neural representations of images, but these representations are inherently position-dependent: codes are spatially arranged and contextually entangled, requiring autoregressive or diffusion-based priors to model their dependencies at sample time. In this work, we ask whether positional information is necessary for discrete representations of spatially aligned data. We propose the permutation-invariant vector-quantized autoencoder (PI-VQ), in which latent codes are constrained to carry no positional information. We find that this constraint encourages codes to capture global, semantic features, and enables direct interpolation between images without a learned prior. To address the reduced information capacity of permutation-invariant representations, we introduce matching quantization, a vector quantization algorithm based on optimal bipartite matching that increases effective bottleneck capacity by relative to naive nearest-neighbour quantization. The compositional structure of the learned codes further enables interpolation-based sampling, allowing synthesis of novel images in a single forward pass. We evaluate PI-VQ on CelebA, CelebA-HQ and FFHQ, obtaining competitive precision, density and coverage metrics for images synthesised with our approach. We discuss the trade-offs inherent to position-free representations, including separability and interpretability of the latent codes, pointing to numerous directions for future work.
Figures & tables
| Method | Discrete? | -time sampling? | Interpolation? |
|---|---|---|---|
| BigGAN [ 1 ] | - | ✔ | - |
| VDVAE [ 2 ] | - | - | - |
| DDGAN [ 3 ] | - | ✔ | - |
| StyleGAN-XL [ 4 ] | - | ✔ | ✔ |
| LDM-4 [ 5 ] | - | - | - |
| ADM-IP [ 6 ] | - | - | - |
| Quantization method | (max) | Capacity (bits) |
|---|---|---|
| Nearest | 49 | 614 |
| Matching (ours) | 512 | 2221 |
| Method | FID | P | R | D | C |
|---|---|---|---|---|---|
| FFHQ 256x256 | |||||
| StyleGAN-XL [ 4 ] | 2.2 | 0.80 | 0.39 | 0.86 | 0.73 |
| StyleGAN2 [ 55 ] | 3.8 | 0.69 | 0.40 | 1.12 | 0.80 |
| VQ-GAN (UT) [ 13 ] | 7.1 | 0.69 | 0.48 | 1.06 | 0.77 |
| VQ-GAN (TT) [ 12 ] | 9.6 | 0.64 | 0.29 | 0.89 | 0.59 |
| VDVAE [ 2 ] | 28.5 | 0.59 | 0.20 | 0 .80 | 0.50 |
Vector Quantization
Vector quantization compresses vectors into discrete codebook entries for efficient storage, transmission, retrieval, and learned representations.
See all 121 papers