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

SC-VAE: Sparse coding-based variational autoencoder with learned ISTA

Pan Xiao, Peijie Qiu, Sung Min Ha, Abdalla Bani, Shuang Zhou, Aristeidis Sotiras

TL;DR

This paper introduces SC-VAE, a novel variational autoencoder that integrates sparse coding with a learned iterative shrinkage-thresholding algorithm (ISTA). By learning sparse representations in the latent space, SC-VAE overcomes common issues like posterior and codebook collapse, leading to improved image reconstruction and enabling downstream tasks like image generation and unsupervised segmentation.

What Problem Does This Paper Address?

Learning effective representations from unlabeled image data is a fundamental challenge in deep learning. Variational Autoencoders (VAEs) are a popular approach, but existing methods fall into two main categories: continuous VAEs that use static priors (prone to posterior collapse and poor local structure reconstruction) and discrete VAEs that use vector quantization (prone to codebook collapse and artifactual patterns). Both struggle with optimal image reconstruction. This paper aims to bridge this gap by proposing a VAE variant that learns sparse latent representations, combining the benefits of both continuous and discrete approaches while mitigating their drawbacks.

Methods

The core innovation is the SC-VAE (Sparse Coding-based Variational Autoencoder). It integrates sparse coding into the VAE framework. Instead of a static prior or vector quantization, SC-VAE models latent representations as sparse linear combinations of atoms from a dictionary. The key to making this trainable end-to-end is the use of a Learned ISTA (LISTA) algorithm. LISTA is a time-unfolded recurrent neural network version of ISTA, allowing gradients to backpropagate through the sparse coding process. This approach aims to achieve a middle ground between continuous and discrete VAEs, promoting disentangled representations and better reconstruction.

Datasets

The paper uses two widely recognized datasets for training and evaluation:

  • Flickr-Faces-HQ (FFHQ): A dataset of high-quality face images.
  • ImageNet: A large-scale dataset with diverse images across 1,000 categories.

Key Insights and Ideas

  • Sparse Coding as a Middle Ground: SC-VAE positions sparse coding as a natural bridge between continuous and discrete VAEs, offering a more flexible and powerful way to represent data.
  • Learned ISTA for End-to-End Training: The integration of LISTA is crucial, enabling the entire SC-VAE model, including the sparse coding component, to be trained efficiently. This circumvents the non-differentiability issues of traditional sparse coding algorithms.
  • Mitigating VAE Collapse Issues: By learning sparse representations, SC-VAE effectively avoids both posterior collapse (common in continuous VAEs) and codebook collapse (common in discrete VAEs).
  • Disentanglement through Orthogonality: The use of a predetermined orthogonal dictionary for sparse coding naturally encourages disentangled representations, which is beneficial for image generation and manipulation.
  • Patch-Level Representation for Segmentation: The learned sparse code vectors capture local image structure effectively, enabling unsupervised image segmentation by clustering these patch-level representations.

Key Results

  • Image Reconstruction: SC-VAE significantly outperforms several state-of-the-art VAE variants (including VSC, VSCLT, Vanilla VAE, β-VAE, Info-VAE, VQGAN, ViT-VQGAN, RQ-VAE, Mo-VQGAN) on both FFHQ and ImageNet datasets, achieving higher PSNR, SSIM, and lower LPIPS and rFID scores. For instance, on ImageNet with a 32x32 latent code shape, SC-VAE achieved a PSNR of 34.92 and SSIM of 0.9497.
  • Image Generation: The model can generate new images by manipulating and interpolating learned sparse code vectors, demonstrating disentangled attributes (e.g., age, skin color, hairstyle).
  • Image Patches Clustering: SC-VAE successfully groups image patches with similar patterns based on their learned sparse code vectors.
  • Unsupervised Image Segmentation: SC-VAE achieves competitive unsupervised image segmentation results on datasets like Flowers, CUB, and ISIC-2016, outperforming several baselines, including those using more complex adversarial training. It also shows notable robustness to noise.

Limitations and Future Work

  • Downsampling Impact: The paper notes that increasing the number of downsampling blocks (d) in the encoder leads to worse image reconstructions (Lrec) in SC-VAE. This suggests a trade-off between latent space dimensionality and reconstruction quality.
  • Ablation Study on LISTA Steps: An ablation study on the number of LISTA rollout steps (s) shows that performance is not monotonically improving with more steps, suggesting an optimal range for s exists.
  • Future Work: The paper implicitly suggests further exploration of the learned sparse representations for various downstream tasks, potentially optimizing the LISTA parameters further, and investigating the impact of different dictionary choices. The robustness to noise in segmentation is a promising avenue for further research.

Summary updated

BibTeX
@article{xiao2025sc,
  author = {Pan Xiao and Peijie Qiu and Sung Min Ha and Abdalla Bani and Shuang Zhou and Aristeidis Sotiras},
  title = {{SC-VAE: Sparse coding-based variational autoencoder with learned ISTA}},
  journal = {Pattern Recognition},
  year = {2025},
  doi = {10.1016/j.patcog.2024.111187},
}
Figure