All models

recbole.HRM

HRM pools user and last-transaction item vectors in two layers to recommend the next basket.

Tabular and recommender · 15 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 (18 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
168.1K
Operations
15
Framework
PyTorch
Recurrent
No
Published
SIGIR 2015
Authors
Pengfei Wang, Jiafeng Guo, Yanyan Lan 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
m8626
Graph hash
d718b194dbaaa8c04ebad57c48a1edc31b9ed62f5114d92d9b6af8f3619fca8e
Skeleton hash
e925fcb0b8d8d81a49f615a9eb2fa4456ac280710beb8a656f27f0ef5ad3b493
Architecture hash
64937394ae4bbaf2cddb01317e088fa75c2611f429c86a6e7082363bec05566a
Diagram SHA-256
1ec64002e3a8ab73f11234ccc9db788e07e920764dfb910f99ed84d4765ab89b
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

HRM, the hierarchical representation model, is a next basket recommender: given a user's purchase history as a sequence of transactions, it predicts the next few items the user would most probably like. The paper's motivation is that earlier hybrid models such as FPMC combine sequential behavior and general taste linearly, which assumes the factors influence the next purchase independently.

HRM represents each user and item as a vector in a continuous space and uses a two-layer structure to build a hybrid representation from the user and the items in the last transaction. The first layer aggregates the item vectors of the last transaction into a transaction representation, and the second aggregates that with the user vector. The aggregation can be average pooling, a linear operation, or max pooling, a nonlinear one that keeps only the most significant features and so models interactions among factors. Training adopts the negative sampling technique for efficient optimization, since the full softmax over all items is impractical.

The experiments use three real-world transaction datasets: two retail datasets, Ta-Feng and BeiRen, and one e-commerce dataset, T-Mall. Of the four versions, the one with max pooling at both layers outperformed the other three on all three evaluation measures. Against FPMC on Ta-Feng at dimensionality 200, the paper reports relative improvements of around 13.1, 11.1 and 12.5 percent in F1-score, Hit-Ratio and NDCG at 5.

Key idea. HRM captures both sequential behavior and users' general taste by involving transaction and user representations in next basket prediction.

  • hrm
  • hierarchical representation model
  • next basket recommendation
  • sequential recommendation
  • max pooling recommender
  • transaction representation
  • recbole

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

Cite the paper

@inproceedings{Wang_2015, series={SIGIR ’15}, title={Learning Hierarchical Representation Model for NextBasket Recommendation}, url={http://dx.doi.org/10.1145/2766462.2767694}, DOI={10.1145/2766462.2767694}, booktitle={Proceedings of the 38th International ACM SIGIR Conference on Research and Development in Information Retrieval}, publisher={ACM}, author={Wang, Pengfei and Guo, Jiafeng and Lan, Yanyan and Xu, Jun and Wan, Shengxian and Cheng, Xueqi}, year={2015}, month=Aug, pages={403–412}, collection={SIGIR ’15} }