SSC-VAE: Structured Sparse Coding Based Variational Autoencoder for Detail Preserved Image Reconstruction

Hao Wang, Lu Wang, Zhongyu Wang, Lixin Ma, Ye LuoAAAI 2025

Abstract

SSC-VAE introduces a "structured" approach to sparse coding within Variational Autoencoders (VAEs), moving away from the traditional assumption that latent representations are independent entities. By employing an adaptive, attention-based thresholding mechanism, the model captures both spatial and internal dictionary correlations. This methodology leads to significantly sharper image reconstructions and superior noise suppression, particularly in detail-heavy domains such as medical ultrasound imaging.

Introduction

Traditional Variational Autoencoders (VAEs) are frequently criticized for producing "blurry" reconstructions because they struggle to represent rich, fine-grained textures. While recent advancements like Vector Quantization (VQ-VAE) and Sparse Coding (SC-VAE) have attempted to address this by using discrete or sparse representations, they often treat latent codes for image patches independently. This "independence assumption" ignores critical spatial correlations (how adjacent patches relate) and internal dictionary correlations (how different basis elements relate). SSC-VAE aims to bridge this gap by explicitly modeling these two-dimensional correlations during the sparse coding process to preserve structural integrity.

Methodology

The core innovation of this work is the Structured Sparse Coding (SSC) framework. Unlike previous models that use simple scalar sparsity controllers, SSC-VAE utilizes a sophisticated two-step refinement process to generate element-wise thresholds.

The SSC-VAE architecture featuring Sparsity Controller Inference and Refinement modules followed by an unfolded LISTA network.
  1. Sparsity Controller Inference: Instead of a global sparsity value, a convolutional network infers a vectorized threshold map. This provides every element in the latent code with its own "sparsity knob," allowing for granular control over feature preservation.
  2. Sparsity Controller Refinement: Inspired by the Convolutional Block Attention Module (CBAM), this step uses channel-wise attention to capture correlations between dictionary atoms and spatial attention to capture regional correlations across the image.
  3. Unfolded LISTA Network: These refined thresholds are integrated into a Learned Iterative Soft-Thresholding Algorithm (LISTA) network. This "unfolded" architecture performs the actual sparse coding, effectively embedding an optimization process directly into the deep learning pipeline.

Key Insights: The Structure of Sparsity

A primary finding of the paper is that sparsity thresholds themselves possess inherent structure. When visualized, the adaptive threshold maps exhibit clear patterns that correlate strongly with the input image's features. This confirms that sparsity should not be a blind global setting but a spatially-aware mechanism that protects important structural details from being "thresholded away" as noise.

Visualization of input images alongside their corresponding structured sparse representations and dictionary atoms.

Furthermore, the application of attention mechanisms to the thresholds of a sparse coding layer allows different parts of the latent space to interact, facilitating a more holistic representation of the image data.

Experimental Results

The authors evaluated SSC-VAE across three datasets: a Clinical Ultrasound Dataset (primary benchmark), BSDS500 (natural contours), and mini-Imagenet. The model demonstrated substantial quantitative and qualitative gains:

  • Ultrasound Reconstruction: SSC-VAE achieved a 7.68% improvement in SSIM and a 3.25 dB boost in PSNR over the previous state-of-the-art SC-VAE. Compared to VQ-VAE, the improvements were even more pronounced (17.03% SSIM and 6.58 dB PSNR).
  • Image Fidelity: On the ultrasound dataset, SSC-VAE reached a Fréchet Inception Distance (FID) of 17.83, significantly outperforming SC-VAE (63.21) and VQ-VAE (101.88).
  • Denoising Robustness: In experiments with varying levels of Gaussian noise, SSC-VAE consistently maintained higher structural similarity than all baselines.
  • Efficiency: The model achieves these results with only a 2% increase in computational overhead (FLOPs and parameters) relative to the baseline SC-VAE.

Conclusion and Future Work

SSC-VAE proves that modeling structural correlations within sparse coding significantly enhances the fidelity of VAE reconstructions, particularly for medical imaging where texture and noise are difficult to distinguish. Future research may explore the model's performance as a pure generative tool, the scalability of the structured controller with larger dictionaries, and the utility of these richer representations for downstream tasks like automated segmentation or classification.

Summary updated

BibTeX
@inproceedings{wang2025ssc,
  author = {Hao Wang and Lu Wang and Zhongyu Wang and Lixin Ma and Ye Luo},
  title = {{SSC-VAE: Structured Sparse Coding Based Variational Autoencoder for Detail Preserved Image Reconstruction}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i7.32825},
}
Figure