recbole.FM
A factorization machine that scores sparse feature vectors using factorized pairwise interactions.
Tabular and recommender · 63 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.
At a glance
- Parameters
- 30.9K
- Operations
- 63
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICDM 2010
- Paper
- Factorization Machines
- Cited by
- 3,135 (as of 22 October 2026)
- Authors
- Steffen Rendle
- Source
- GitHub: RUCAIBox/RecBole
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
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.
Details
- Stable ID
- m8613
- Graph hash
- fb5cda67ec1fd55f3614461f8202a71ad66614a8b7b5a3018842a5d6bd255efe
- Skeleton hash
- f302987e25063fae7186f866be4541429ecdcc89a37d1bb0743f8dde4b5bbf1f
- Architecture hash
- 3f9f9ff8cf21c79030df1a401482ad6fe145c857a4a1bbe56c7a87c1c85aadf4
- Diagram SHA-256
- ee536d3e210a7e561eec9fd6e038695e90eed76d499b80aa4002c3627f22f99d
- 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
A Factorization Machine (FM) is a general predictor that works with any real-valued feature vector and can still estimate reliable parameters when the data is very sparse. The paper introduces it as a model class that combines the advantages of Support Vector Machines with factorization models.
The degree-2 model has a global bias, a weight for each variable and a term for every pair of variables. Instead of a separate dense parameter for each pair, it uses a factorized parametrization in which a pair's weight is the dot product of two vectors of size k, one per variable. The paper shows that the model equation can be computed in linear time, so the parameters can be optimized directly without support vectors.
It also shows that FMs can mimic specialized factorization models such as SVD++, PITF or FPMC just by specifying the input feature vectors. The paper states that FMs scale to large datasets like Netflix with 100 million training instances. The libFM library implements factorization machines with stochastic gradient descent, alternating least squares and Markov Chain Monte Carlo inference.
Key idea. The paper introduces Factorization Machines, which model all pairwise feature interactions with factorized parameters and so can be estimated under very sparse data in linear time.
- Factorization Machines
- FM
- factorization machine
- libFM
- sparse data
- pairwise feature interactions
- collaborative filtering
- rating prediction
- recommender systems
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@inproceedings{Rendle_2010, title={Factorization Machines}, url={http://dx.doi.org/10.1109/ICDM.2010.127}, DOI={10.1109/icdm.2010.127}, booktitle={2010 IEEE International Conference on Data Mining}, publisher={IEEE}, author={Rendle, Steffen}, year={2010}, month=Dec, pages={995–1000} }