recbole.Caser
A convolutional sequential recommender that reads a user's recent item embeddings as an image.
Tabular and recommender · 64 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
- 226.2K
- Operations
- 64
- Framework
- PyTorch
- Recurrent
- No
- Published
- WSDM 2018
- Cited by
- 2,383 (as of 19 October 2026)
- Authors
- Jiaxi Tang, Ke Wang
- 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
- m8595
- Graph hash
- b516c8bd2c7ddfaa3d6e30a4011b622aa8f54c0208f2cb3d64e3de389ae454e0
- Skeleton hash
- fff09b868edbbc27aa21fdefd5ea02e11a40aaa5a4a6613c222fafbc9312997d
- Architecture hash
- 3c6a378afc8c1d9055dc043ddf7fd1e15be1b0b4e1e2d7267737aec0c3c0f033
- Diagram SHA-256
- 4d13347120610487a9fb17ad04af14b8f96f91504ed4a41a5ecf72510a9f8a2c
- 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
Caser, the Convolutional Sequence Embedding Recommendation Model, is a sequential recommender proposed for top-N sequential recommendation. That task models each user as a sequence of items interacted in the past and aims to predict top-N ranked items that the user will likely interact with in a near future. The idea is to embed a sequence of recent items into an image in the time and latent spaces and learn sequential patterns as local features of that image using convolutional filters. Horizontal and vertical convolutional filters capture sequential patterns at point-level, union-level, and of skip behaviors.
The network consists of three components: Embedding Look-up, Convolutional Layers, and Fully-connected Layers. A vertical filter is an L × 1 matrix that slides over the columns of the embedding matrix. To capture a user's general preferences, the model also looks up a user embedding. Training minimizes a binary cross-entropy loss.
The paper's experiments cover four data sets: MovieLens, Gowalla, Foursquare and Tmall. Except for MovieLens, the paper reports that Caser improved the best baseline on all N tested by a large margin on the three metrics. On MovieLens, GRU4Rec achieved a performance close to Caser's but performed much worse on the other three data sets. The RecBole implementation does not use the sliding window to generate training instances as in the paper. For comparison with other models it sets the paper's parameter T to 1.
Key idea. Caser treats the embeddings of a user's recent items as an image and applies horizontal and vertical convolutional filters to extract sequential patterns.
- caser
- sequential recommendation
- convolutional sequence embedding
- top-n recommendation
- horizontal filters
- vertical filters
- skip behaviors
- recbole
- movielens
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{tang2018personalizedtopnsequentialrecommendation,
title={Personalized Top-N Sequential Recommendation via Convolutional Sequence Embedding},
author={Jiaxi Tang and Ke Wang},
year={2018},
eprint={1809.07426},
archivePrefix={arXiv},
primaryClass={cs.IR},
url={https://arxiv.org/abs/1809.07426},
}