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

Online Convolutional Sparse Coding with Sample-Dependent Dictionary

Yaqing Wang, Quanming Yao, James Tin-Yau Kwok, Lionel M. Ni

Convolutional Sparse Coding (CSC) is a powerful tool for signal and image processing, capable of learning shift-invariant filters that capture patterns regardless of their location in an image. However, traditional CSC methods face a severe scalability bottleneck. They typically operate in "batch-mode," requiring all data to be loaded into memory at once. While recent "online" versions (OCSC) have mitigated this, their computational and memory complexity still grows quadratically with the number of filters ($K$).

To capture complex local patterns, a large $K$ is essential. Yet, this "curse of the filter count" makes the algorithm prohibitively slow and memory-hungry on standard hardware, severely limiting CSC's application to high-dimensional data like videos or multispectral images.

To overcome this, researchers have introduced Sample-dependent Convolutional Sparse Coding (SCSC), a scalable framework that assigns every data sample its own "personal" dictionary, drastically reducing memory and computational costs while achieving state-of-the-art performance.

The Architectural Shift: Sample-Dependent Dictionaries

The core innovation of SCSC is moving away from a single, massive, shared dictionary. Instead of forcing every image to share the exact same set of $K$ filters, each image $i$ is assigned a sample-dependent dictionary $D_i$.

To maintain efficiency, $D_i$ is not learned from scratch. The model learns a small, shared set of $R$ base filters ($B$). Each of the $K$ filters in a sample's specific dictionary is generated as a linear combination of these base filters ($D_i = B W_i$, where $W_i$ represents the combination weights).

Because the number of base filters ($R$) is significantly smaller than the total number of filters ($K$), the space complexity drops dramatically from $O(K^2P)$ to $O(R^2P)$. The algorithm uses an online learning approach, updating the base filters incrementally as new samples arrive. To solve the resulting non-convex optimization problem, SCSC employs a mix of ADMM for the base filters and a specialized proximal gradient method (niAPG) for the sparse codes and combination weights.

Key Insights: The Power of Dense Weights

A crucial finding in the development of SCSC was the treatment of the combination weights ($W_i$). The authors discovered that applying $\ell_2$-norm constraints (density) to the weights yielded substantially better results than $\ell_1$-norm constraints (sparsity).

Testing PSNR comparison between SCSC-L1 and SCSC-L2 on Fruit and City datasets.

Sparse weights artificially limited the model to using only one or very few base filters per pattern. In contrast, dense ($\ell_2$) weights allowed the model to "mix" base filters more freely, resulting in richer, more expressive filter approximations. By allowing each sample to uniquely combine base filters, the model captures a much wider variety of patterns than a fixed dictionary of the same size—essentially achieving "compressed" complexity.

State-of-the-Art Performance and Scalability

SCSC was evaluated across a wide range of datasets, from standard small images (Fruit, City) to large datasets (CIFAR-10, Flower), and high-dimensional data (Video, Multispectral, and Light Field data).

Testing PSNR comparison between standard OCSC and SCSC across multiple datasets.

The results demonstrate clear dominance over existing methods:

  • Superior Reconstruction: SCSC consistently achieved higher Peak Signal-to-Noise Ratio (PSNR) than standard OCSC and other batch methods across all tested datasets.
  • Massive Memory Efficiency: On the CIFAR-10 dataset, SCSC achieved a staggering compression ratio of 1024x compared to standard OCSC, all while maintaining better accuracy.
  • High-Dimensional Feasibility: Most CSC research focuses on speeding up convolutions, but SCSC targets the dictionary size itself. By reducing the dependency from $K^2$ to $R^2$, SCSC was the only tested method capable of handling the full Video, Multispectral, and Light Field datasets on a single standard GPU. Competing methods either required distributed computing clusters or failed to converge within 48 hours.
  • Practical Applications: Beyond basic reconstruction, the dictionaries learned via SCSC proved superior for practical downstream tasks like image denoising and inpainting, outperforming previous state-of-the-art methods.

Limitations and Future Directions

While highly effective, SCSC introduces a new hyperparameter: $R$, the number of base filters. While empirical results show $R=10$ or $R=30$ works well for many tasks, optimal selection for novel domains may require tuning. Additionally, the joint optimization of weights and codes is non-convex, carrying an inherent risk of converging to local minima depending on initialization.

Looking forward, the sample-dependent dictionary approach presents exciting opportunities. The authors suggest this flexible, memory-efficient architecture could be integrated into deeper network architectures or utilized to further optimize the parameter efficiency of modern Convolutional Neural Networks (CNNs).

Summary updated

BibTeX
@inproceedings{wang2018online,
  author = {Yaqing Wang and Quanming Yao and James Tin-Yau Kwok and Lionel M. Ni},
  title = {{Online Convolutional Sparse Coding with Sample-Dependent Dictionary}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=SyWjMnZOWr},
}
Figure