recbole.FEARec
Transformer sequential recommender whose attention works in the frequency domain to capture periodic behavior.
Tabular and recommender · 847 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
- 877.8K
- Operations
- 847
- Framework
- PyTorch
- Recurrent
- No
- Published
- SIGIR 2023
- Cited by
- 154 (as of 19 October 2026)
- Authors
- Xinyu Du, Huanhuan Yuan, Pengpeng Zhao and others
- 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
- m8610
- Graph hash
- fd57ef6b53cb78e430bb5c26c62f4532db6b205b1a31aba6fd4f1810119b2e53
- Skeleton hash
- f34dd3f70a639a07ba273f52856fb515b7d06aca2dba77db926452cfaf453879
- Architecture hash
- 05dba1ce8aa50570ec5815e70b68190fa4d956e819a2c6f1aad279331e7f2523
- Diagram SHA-256
- 1f25305c9facdfc0aaa118d095fb40626dc3a38852a6ad86558d9ef37b1453df
- 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
FEARec is a sequential recommender, a model that forecasts the next item from the ordered sequence of items a user has interacted with. The paper's premise is that the self-attention in Transformer-based recommenders behaves as a low-pass filter that erases high-frequency information.
After an embedding layer, the model transforms the embeddings of each item sequence from the time domain to the frequency domain with a Fast Fourier Transform. A frequency ramp extracts only a subset of frequencies for each layer so that different attention blocks focus on different parts of the spectrum. A second attention branch calculates auto-correlation in the frequency domain to discover period-based dependencies in a user's behavior. The time-level and frequency-level attention are fused in one union model. Because both attention operations are linear, each block ends with a two-layer feed-forward network with a GELU activation.
Training adds contrastive learning and a frequency-domain regularization so that multiple views are aligned in both domains. The paper reports experiments on four publicly available benchmark datasets. FEARec outperformed the competing methods on both sparse and dense datasets across all the metrics. In the paper's experiments the maximum sequence length is set to 50, the item embedding size to 64, and the number of hybrid attention blocks to 2.
Key idea. FEARec fuses frequency-domain self-attention with an auto-correlation attention that captures periodic characteristics of user behavior in one union model.
- fearec
- frequency enhanced hybrid attention network
- sequential recommendation
- frequency domain attention
- auto-correlation attention
- fourier transform recommender
- next item recommendation
- recbole
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{du2023frequencyenhancedhybridattention,
title={Frequency Enhanced Hybrid Attention Network for Sequential Recommendation},
author={Xinyu Du and Huanhuan Yuan and Pengpeng Zhao and Jianfeng Qu and Fuzhen Zhuang and Guanfeng Liu and Victor S. Sheng},
year={2023},
eprint={2304.09184},
archivePrefix={arXiv},
primaryClass={cs.IR},
url={https://arxiv.org/abs/2304.09184},
}