All models

recbole.HGN

A sequential recommender that gates item features and items instead of using an RNN or CNN.

Tabular and recommender · 25 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 (29 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
41.5K
Operations
25
Framework
PyTorch
Recurrent
No
Published
KDD 2019
Cited by
336 (as of 19 October 2026)
Authors
Chen Ma, Peng Kang, Xue Liu
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
m8625
Graph hash
b151ffcc9a76365031ecb0cef900b7fad0715949cdc439d6718b8245205baa4f
Skeleton hash
54092e9cfb8d57b02b50f3001f2c3be901ce5d29ddeee919da321678bbaeb3ac
Architecture hash
d58238aadbde936c6fc6b798b2ce799a66e3a4253970a3c6a4a595226631d6ca
Diagram SHA-256
d94183261ba3014b868fddf62b909fd01f0b9d8cac53c61031c6cdd8bfecd286
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

HGN, the Hierarchical Gating Network, is a sequential recommender that captures both long-term and short-term user interests without recurrent or convolutional networks. The paper frames two problems: modeling long-term interests from sparse implicit feedback, and capturing short-term interests from the several items a user just accessed. HGN consists of a feature gating module, an instance gating module and an item-item product module, integrated with Bayesian Personalized Ranking. Feature gating selects which latent features of each item pass downstream, and instance gating then weights which recent items matter.

The item-item product module takes the inner product between input item embeddings and output item embeddings to capture relations between accessed items and future items. The final score for a user and item sums a matrix factorization term for long-term interest, the gated group representation for short-term interest, and the accumulated item-item scores. The paper reports HGN achieving the best results on all five of its datasets in recall at 10 and NDCG at 10. With embedding size 50, the paper counts 5,350 learnable parameters in its gating network against 15,300 for a one-layer GRU and 26,154 for the CNN in Caser.

This RecBole version keeps the feature and instance gating and sums the user embedding, the gated sequence representation and the plain sum of item embeddings, scoring against a separate prediction embedding table.

Key idea. HGN replaces recurrence and convolution with personalized feature and instance gating plus an item-item product, capturing long-term and short-term interests with fewer parameters.

  • hgn
  • hierarchical gating networks
  • sequential recommendation
  • feature gating
  • instance gating
  • item-item product
  • bayesian personalized ranking
  • top-n recommendation
  • gated linear unit
  • recbole

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

Cite the paper

@misc{ma2019hierarchicalgatingnetworkssequential,
      title={Hierarchical Gating Networks for Sequential Recommendation}, 
      author={Chen Ma and Peng Kang and Xue Liu},
      year={2019},
      eprint={1906.09217},
      archivePrefix={arXiv},
      primaryClass={cs.IR},
      url={https://arxiv.org/abs/1906.09217}, 
}