All models

recbole.CORE

A session-based recommender that encodes a session as a weighted sum of its item embeddings.

Tabular and recommender · 98 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 (21 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
4.5M
Operations
98
Framework
PyTorch
Recurrent
No
Published
SIGIR 2022
Cited by
124 (as of 22 October 2026)
Authors
Yupeng Hou, Binbin Hu, Zhiqiang Zhang, Wayne Xin Zhao
License
MIT
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
m8594
Graph hash
42b052a49b22a40a9271d0c6c8b38e74f0167a59642e7ef8686a9917258edc0a
Skeleton hash
fcd93fb7ef93f89a7751af8a15cfb6e66b0d66ed3e8c7ae92e45bc2c1da3ad59
Architecture hash
3f0d84afd55aef0eb27f66aa84f73aea00165614f9dd9a54de59eaded14dc653
Diagram SHA-256
d649a563185a71799812f667fc63bc42b5c3b4177706ebcc97c49f219cdc5404
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

CORE is a session-based recommender: it predicts the next item from the short run of items in an anonymous session. The paper argues that a session embedding produced by a non-linear encoder is usually not in the same representation space as the item embeddings it is compared against, which makes predictions inconsistent.

CORE's encoder therefore outputs a weighted sum of the session's own item embeddings, so sessions and items stay in one space. A neural network is still used, but only to learn the weights, and the paper builds two versions: CORE-ave with mean pooling and CORE-trm with Transformers. For scoring candidate items, the paper adds a robust distance measuring method meant to prevent overfitting of the embeddings. It applies dropout directly to the candidate item embeddings and measures distance by cosine distance.

The paper reports experiments on five public datasets: Diginetica, Nowplaying, RetailRocket, Tmall and Yoochoose. It notes that CORE-ave considers neither the order of items in a session nor their importance, yet still outperformed all of the paper's baselines on 3 metrics.

Key idea. CORE encodes a session as a linear combination of its item embeddings, keeping sessions and items in one representation space for both encoding and decoding.

  • CORE
  • session-based recommendation
  • sequential recommendation
  • next-item prediction
  • consistent representation space
  • representation-consistent encoder
  • robust distance measuring
  • RecBole CORE
  • CORE-trm
  • CORE-ave

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{hou2022coresimpleeffectivesessionbased,
      title={CORE: Simple and Effective Session-based Recommendation within Consistent Representation Space}, 
      author={Yupeng Hou and Binbin Hu and Zhiqiang Zhang and Wayne Xin Zhao},
      year={2022},
      eprint={2204.11067},
      archivePrefix={arXiv},
      primaryClass={cs.IR},
      url={https://arxiv.org/abs/2204.11067}, 
}