All models

Predictive Sparse Decomposition (PSD, DA variant)

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

Historical · 253 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 (10 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
209
Operations
253
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
m2272
Graph hash
89f75e8095d3981ae6ddc9a456676c5e732e9cbf9a2c4069ce1e2e0c7e19da14
Skeleton hash
65493f918e0adc802ea79826bf18292499ae08c167b451bc3075c5d9a0626e83
Architecture hash
376061bebea119b3fa947e5f739d9dfe48d3283fd1ac45a2a97d312e60c0726d
Diagram SHA-256
17d48694603ba082b50e4c048da3b89ddf829dba6454843c71e5037bfce0588b
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}, 
}