
Predictive Sparse Decomposition network
Historical550 ops74.4K params
Sparse coding with a fast feed-forward encoder that predicts the code instead of optimising it.
Historical · 253 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
About this model's family
Predictive Sparse Decomposition, or PSD, is a sparse coding model that learns an overcomplete set of basis functions together with a fast feed-forward predictor of the sparse code. It comes from a 2008 technical report by Koray Kavukcuoglu, Marc'Aurelio Ranzato and Yann LeCun at New York University's Computational and Biological Learning Laboratory. The point is speed: exact sparse coding needs an iterative optimisation for every input, which had kept these methods out of practical object recognition.
The predictor is a single nonlinear layer: a filter bank, a tanh, and a diagonal gain that rescales each output. Training adds a third term to the usual reconstruction-plus-sparsity loss, pulling the sparse code toward the predictor's output so that dictionary and predictor are learned jointly. A linear map could not do the job, the authors note, because an overcomplete dictionary has non-orthogonal filters. At inference the code is simply the predictor's forward pass, a single matrix-vector multiplication.
The paper reports the feed-forward predictor extracting features more than 100 times faster than the feature sign algorithm, with a speed-up over 800 at the sparsity setting that gave the best accuracy. Despite the approximation, the predicted codes gave better recognition accuracy than exact sparse codes. On Caltech 101 the system reached 53% accuracy with 30 training images per class. On the MNIST digits, PSD had the worst reconstruction error of the methods compared yet the best recognition accuracy. The predictor's codes were also more stable than exact codes across consecutive video frames.
The two members traced here are the linear PSD on a 12x12 patch, matching the 256 basis functions of 12x12 pixels in the paper's figure, and a convolutional version. The accompanying Torch package unsup provides LinearPsd and ConvPsd modules alongside a plain AutoEncoder. The paper itself lists convolutional training as future work, aimed at making the sparse representation more efficient.
Key idea. A feed-forward regressor, trained jointly with the dictionary, that approximates optimal sparse codes without any iterative optimisation at inference.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{kavukcuoglu2010fastinferencesparsecoding,
title={Fast Inference in Sparse Coding Algorithms with Applications to Object Recognition},
author={Koray Kavukcuoglu and Marc'Aurelio Ranzato and Yann LeCun},
year={2010},
eprint={1010.3467},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1010.3467},
}