All models

Predictive Sparse Decomposition network

Sparse coding with a fast feed-forward encoder that predicts the code instead of optimising it.

Historical · 550 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (577 KB)

Open in a new tab

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.

At a glance

Parameters
74.4K
Operations
550
Framework
PyTorch
Recurrent
No
Published
2008, NYU CBLL technical report
Cited by
253 (as of 4 October 2026)
Authors
Koray Kavukcuoglu, Marc'Aurelio Ranzato, Yann LeCun
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m14357
Graph hash
240056a817a4e26089007ff21b3a618d4c1f5305579956f93e01839cfab592ae
Skeleton hash
563673eb9c1f2cc8733260d2efe5c362c4cc90ba0d12e5ef3dd8727c8dfa2044
Architecture hash
c8fa0210ab73beb34f6c337b6b8ddd165a4fde11c51e53891f278de03f6c5c68
Diagram SHA-256
987de106351643296fb46ccf843ae9fb898c55a53a1f9c2853251d3d1996256b
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

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.

  • PSD
  • Predictive Sparse Decomposition
  • Predictive Sparse Decomposition network
  • sparse coding
  • fast inference sparse coding
  • Kavukcuoglu
  • Ranzato
  • LeCun
  • unsup Torch
  • LinearPsd
  • ConvPsd

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@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}, 
}