Convolutional Matching Pursuit and Dictionary Training

Arthur Szlam, Koray Kavukcuoglu, Yann LeCunarXiv 2010

Abstract

This paper introduces a computationally efficient framework for sparse coding and dictionary learning in a translation-invariant (convolutional) setting. By adapting the greedy Matching Pursuit algorithm and the K-SVD training method to work with convolutional filters, the authors demonstrate the ability to learn hierarchical features—ranging from simple edges to complex object parts—without the massive memory overhead typically associated with shift-invariant models.

Introduction

In traditional sparse coding, signals such as image patches are represented as linear combinations of a few "atoms" from a learned dictionary. While successful, standard models face two major challenges: redundancy and scalability. They do not naturally handle translations, requiring separate atoms for every possible position of a feature. To achieve translation invariance, a "Toeplitz" dictionary containing every possible shift of every filter is needed, which becomes mathematically unmanageable for high-resolution images. This paper investigates whether simpler, greedy algorithms can provide a faster and more scalable solution to the convolutional sparse coding problem.

Methods

The authors propose two primary adaptations to existing algorithms to handle the convolutional setting efficiently.

Convolutional Matching Pursuit (CMP)

Matching Pursuit is a greedy algorithm that iteratively selects the best-matching dictionary atom and subtracts its contribution from the signal. In the convolutional version, the "dictionary" consists of a set of filters. By exploiting the symmetries of convolution, the authors avoid storing a massive dictionary matrix. Instead, they precompute a small array of inner products between filters, enabling rapid lookup of the next best match.

Learned first-layer filters showing Gabor-like edge detectors.

Convolutional Dictionary Learning

To learn the filters, the authors adapt the K-SVD algorithm. The process alternates between sparse coding (using CMP to find feature maps) and filter updates. During the update step, the algorithm identifies all locations where a filter was "activated" across the dataset, extracts those patches, removes the contributions of other filters, and applies Principal Component Analysis (PCA) to refine the filter shape.

Key Results and Insights

The approach was evaluated on the AT&T Face Database, Caltech Motorcycles, and PASCAL VOC datasets, yielding several key insights.

Hierarchical Feature Learning

The model successfully learns hierarchical structures. The first layer typically learns "Gabor-like" edge detectors. Subsequent layers, trained on the outputs of the first, learn more complex structures such as eyes, nose parts, or wheel arcs.

Higher-level dictionary atoms representing complex facial features learned from the AT&T Face Database.

Efficiency and Reconstruction

The authors found that running $q$ steps of basis pursuit on an $h \times w$ image costs only one application of the filter bank plus $O(kqhw)$ operations. This efficiency makes the method viable for practical image processing. Qualitatively, images can be reconstructed with high fidelity using a very small number of filter responses (e.g., 40 responses for a $64 \times 64$ face image).

Contrast Normalization and the Laplacian

A key insight is that "contrast normalization" (subtracting a local average) is nearly equivalent to using a discrete Laplacian. This focuses the model on structural gradients rather than raw pixel intensities, helping it learn structure regardless of lighting conditions.

Discussion and Limitations

While the alternating optimization is non-convex and lacks guaranteed global convergence, it consistently generates biologically plausible filters in practice. However, limitations remain. Matching Pursuit is a "shortsighted" greedy algorithm that may not find the globally optimal sparse set. Additionally, the model is sensitive to user-selected parameters such as the number of filters ($K$) and the sparsity constraint ($q$). Future work may explore deeper convolutional architectures trained entirely through this greedy, layer-wise approach.

Summary updated

BibTeX
@misc{szlam2010convolutional,
  author = {Arthur Szlam and Koray Kavukcuoglu and Yann LeCun},
  title = {{Convolutional Matching Pursuit and Dictionary Training}},
  year = {2010},
  eprint = {1010.0422},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1010.0422},
}
Figure