All models

recbole.SimpleX

SimpleX fuses a user embedding with pooled interaction history and trains with a cosine contrastive loss.

Tabular and recommender · 58 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 (12 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
172.2K
Operations
58
Framework
PyTorch
Recurrent
No
Published
CIKM 2021
Cited by
25 (as of 22 October 2026)
Authors
Kelong Mao, Jieming Zhu, Jinpeng Wang and others
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
m8673
Graph hash
d3c956b1f459fa0860c1faadfa63e80137eb9f99263adbdba1878fcaaa0f3c3b
Skeleton hash
b17b591d1a93abe595fa3cad8339b59e22595fa27cd8fc098f5802e023f96dd6
Architecture hash
a67b9e99304ea1faea63760c983dd164d126bc049e76a5e38bf4e49ea3883381
Diagram SHA-256
81a654504e0f625c51e27dc79254084ba2ca77e2675082538e83d8b0d147a38a
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

SimpleX is a collaborative filtering model for recommendation, designed with simplicity in mind and with ideas borrowed from several existing studies. The paper argues that the choice of loss function and the negative sampling ratio are as important as the interaction encoder that many earlier studies concentrated on.

The model combines matrix factorization with user behavior modeling. A behavior aggregation layer, such as average pooling, turns the items a user has interacted with into a preference vector, which is fused with the user's embedding vector by a weighted sum. The similarity between a user and an item is measured with cosine similarity. The loss, called cosine contrastive loss (CCL), maximizes the cosine similarity of a positive user-item pair and minimizes the similarity of a negative pair down to a margin. Uninformative negative samples get zero loss when their cosine similarity is below that margin.

When the fusion weight g is set to 1, SimpleX reduces to a matrix factorization model trained with CCL. With average pooling it can also be seen as a simplified YouTubeNet without side features. The experiments cover 11 benchmark datasets and 29 existing CF models. The paper reports up to 48.5% improvement in NDCG at 20 over LightGCN on Amazon-Books.

Key idea. The paper proposes the cosine contrastive loss and reports that SimpleX, a simple model trained with it and many negative samples, surpasses most of the more sophisticated models compared.

  • SimpleX
  • cosine contrastive loss
  • CCL
  • collaborative filtering
  • recommender system
  • matrix factorization
  • negative sampling
  • CF baseline

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

Cite the paper

@misc{mao2023simplexsimplestrongbaseline,
      title={SimpleX: A Simple and Strong Baseline for Collaborative Filtering}, 
      author={Kelong Mao and Jieming Zhu and Jinpeng Wang and Quanyu Dai and Zhenhua Dong and Xi Xiao and Xiuqiang He},
      year={2023},
      eprint={2109.12613},
      archivePrefix={arXiv},
      primaryClass={cs.IR},
      url={https://arxiv.org/abs/2109.12613}, 
}