
recbole.DeepFM
Tabular and recommender75 ops73.1K params
A factorization machine and a deep network sharing one embedding to predict clicks from raw features.
Tabular and recommender · 213 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.
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.
About this model's family
DeepFM is a click-through-rate model for recommender systems, where learning the feature interactions behind user behaviour is what drives performance. The paper's complaint about earlier methods is that they lean towards either low-order or high-order interactions, or need expert feature engineering. DeepFM answers by combining a factorization machine for recommendation with deep learning for feature learning in one architecture. Unlike Google's Wide & Deep model, its wide and deep parts share one input, so raw features need no extra engineering.
Each feature gets a scalar weight for its order-1 importance and a latent vector for its interactions with other features. That same latent vector goes to the FM component for order-2 interactions and to the deep component for high-order ones. The FM side models pairwise interactions as inner products of the feature latent vectors, while the deep side is a feed-forward network. The two outputs are summed and passed through a sigmoid to give the click probability. Because the FM is part of the network rather than an initializer, there is no pre-training step and everything trains end-to-end.
The paper reports experiments on both benchmark data and commercial data. The traced members are the DeepFM from DeepCTR-Torch, the PyTorch version of DeepCTR, a package of deep-learning based CTR models. They run on a batch of sparse field ids and dense features and return one score per row.
Key idea. DeepFM joins a factorization machine and a deep network over a shared embedding so low- and high-order feature interactions are learned end-to-end from raw features, with no feature engineering or FM pre-training.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{guo2017deepfmfactorizationmachinebasedneural,
title={DeepFM: A Factorization-Machine based Neural Network for CTR Prediction},
author={Huifeng Guo and Ruiming Tang and Yunming Ye and Zhenguo Li and Xiuqiang He},
year={2017},
eprint={1703.04247},
archivePrefix={arXiv},
primaryClass={cs.IR},
url={https://arxiv.org/abs/1703.04247},
}