recbole.STAMP
Session-based recommender weighing the last click's short-term memory against the session's long-term memory.
Tabular and recommender · 32 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
- 128.4K
- Operations
- 32
- Framework
- PyTorch
- Recurrent
- No
- Published
- KDD 2018
- Cited by
- 1,286 (as of 29 November 2026)
- Authors
- Qiao Liu, Yifu Zeng, Refuoe Mokhosi, Haibin Zhang
- 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
- m8672
- Graph hash
- 31e24290b97779a8e543f4296d400646578d7bd1c3cb77d8ffc722378d4c9e44
- Skeleton hash
- 01967d00e738cd3219533d416613c73637c6b4c3555fba34bcb1d938b87d56c2
- Architecture hash
- ad419f29374666827601d61ae50f0a737b488b6fac8d1a1c8b4260ae06ed19c6
- Diagram SHA-256
- 47cf5b219c30eece3bc8843c6d1afb05ab68fdc8f195a0f54b8a2efd4273fd25
- 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
STAMP, the Short-Term Attention/Memory Priority model, is a session-based recommender that predicts a user's next action from an anonymous click session. The paper's starting point is that recurrent models with long short-term memory capture a user's general interests from previous clicks but ignore the effect of the current action on the next move. Its argument is that a long-term memory alone is insufficient for long sessions, where unintended clicks cause interest drift. STAMP therefore combines two memories: general interests from the long-term memory of the whole session context, and current interests from the short-term memory of the last click.
In the RecBole implementation, attention weights over the session's item embeddings are computed from each item, the last click and the average of the context. RecBole's authors note a small modification to the paper's score function: after testing, they dropped the final sigmoid activation. The paper evaluates the model on three benchmark datasets from the RecSys Challenge 2015 and the CIKM Cup 2016. The authors' own code is TensorFlow, with separate model files for the two datasets because their parameters differ.
Key idea. STAMP pairs a long-term memory of the session context with a short-term memory of the last click so current interests steer the next-click prediction.
- stamp
- short-term attention memory priority
- session-based recommendation
- next click prediction
- attention
- recommender system
- anonymous sessions
- recbole
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{stamp2018,
title = {STAMP: Short-Term Attention/Memory Priority Model for Session-based Recommendation},
author = {Qiao Liu and Yifu Zeng and Refuoe Mokhosi and Haibin Zhang},
year = {2018},
journal = {KDD 2018},
doi = {10.1145/3219819.3219950}
}