recbole.FPMC
FPMC factorizes a per-user item transition cube to combine Markov chain sequences with user taste.
Tabular and recommender · 22 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
- 11.1K
- Operations
- 22
- Framework
- PyTorch
- Recurrent
- No
- Published
- WWW 2010
- Cited by
- 2,781 (as of 19 October 2026)
- Authors
- Steffen Rendle, Christoph Freudenthaler, Lars Schmidt-Thieme
- Source
- recbole 1.2.1
- 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
- m8616
- Graph hash
- 8d7dff39c352e0dea7827c77c9c99c696881936090251da16f80ebd6dad0d3f8
- Skeleton hash
- e98711d8c1b0d9acb9069fe5d02b651fa317e60fc27e970b16b9aa82d6296213
- Architecture hash
- dd2d2157675f77d1973282fa949a29f6b6e087d9be838be63b167e6b3f65e485
- Diagram SHA-256
- bb5c9030a7cc42e0c85aba413b6e6d666a8e7f0212867a5b85e8b016e4987333
- 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
FPMC is a recommender for sequential basket data: the target is to recommend items a user might want to buy in their next visit. The paper brings together matrix factorization, which learns a user's general taste, and Markov chains, which model sequential behavior through a transition graph over items.
The method learns a personalized transition matrix for each user, so in total it uses a transition cube. Because observations for estimating transitions are very limited, the cube is factorized with a pairwise interaction model, a special case of the Tucker Decomposition. The paper shows that this factorized personalized Markov chain subsumes both a common Markov chain and the normal matrix factorization model. For learning, the authors adapt the Bayesian Personalized Ranking framework to sequential basket data. Learning draws quadruples of user, time, item and negative item by bootstrapping and runs stochastic gradient descent on them.
The evaluation uses anonymized purchase data of an online drug store. The paper reports that FPMC outperforms matrix factorization, factorized Markov chains and a dense Markov chain on both sparse and dense data. In RecBole's version, the basket size from the paper is set to 1 so the model works like other sequential recommenders, and the loss is BPR. With 128 factorization dimensions, training the largest FPMC model took about 34 hours on the sparse dataset.
Key idea. FPMC learns per-user transition matrices over items, factorized by pairwise interactions, to capture both sequential effects and long-term user taste.
- fpmc
- factorizing personalized markov chains
- next basket recommendation
- personalized markov chain
- matrix factorization markov chain
- sequential recommendation
- s-bpr
- recbole
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, series={WWW ’10}, title={Factorizing personalized Markov chains for next-basket recommendation}, url={http://dx.doi.org/10.1145/1772690.1772773}, DOI={10.1145/1772690.1772773}, booktitle={Proceedings of the 19th international conference on World wide web}, publisher={ACM}, author={Rendle, Steffen and Freudenthaler, Christoph and Schmidt-Thieme, Lars}, year={2010}, month=Apr, pages={811–820}, collection={WWW ’10} }