All models

recbole.DeepFM

A factorization machine and a deep network sharing one feature embedding, predicting click-through rate.

Tabular and recommender · 75 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 (23 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

Family
DeepFM
Parameters
73.1K
Operations
75
Framework
PyTorch
Recurrent
No
Published
IJCAI 2017
Cited by
2,609 (as of 22 October 2026)
Authors
Huifeng Guo, Ruiming Tang, Yunming Ye 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
m8604
Graph hash
969ebacbedc11bf69d8c9bfa91cf57a9cefd0b31a051169f44ccb0a143c19601
Skeleton hash
3c9ef2003548e8280d857af3ec25244fcf41062e4399e2cf7ee87f26eb962cfe
Architecture hash
c210f4b297afc26b112a17aab78aba3f7c168a716b19bc225c17c0b837912cc1
Diagram SHA-256
72f96bd0902b1cc71d92e88e712a168cb512223978b11e14798a6fb310d64bd7
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

DeepFM is a click-through rate (CTR) model for recommender systems that combines the power of factorization machines for recommendation and deep learning for feature learning in one network, here in RecBole's implementation.

DeepFM has two components, an FM component and a deep component, that share the same input. A scalar per feature weighs its order-1 importance and a latent vector feeds the FM component for order-2 interactions and the deep component for high-order ones. The final prediction is a sigmoid of the sum of the two component outputs, and all parameters are trained jointly. The deep component is a feed-forward network preceded by an embedding layer that compresses the sparse, high-dimensional, field-grouped input into a low-dimensional dense vector. Unlike Google's Wide & Deep model, which needs two inputs and feature engineering for its wide part, DeepFM's wide and deep parts share one input and one embedding.

The paper evaluates with AUC and Logloss on the Criteo dataset and a company dataset of 7 consecutive days of game center click records. Against models that learn low- and high-order interactions with separate embeddings, it reports gains of more than 0.48% and 0.33% AUC on the company and Criteo datasets.

Key idea. DeepFM feeds one shared feature embedding to both a factorization machine and a deep network, learning low- and high-order interactions end to end without feature engineering.

  • deepfm
  • factorization machine
  • ctr prediction
  • click-through rate
  • recommender system
  • feature interactions
  • recbole
  • wide and deep
  • deep fm
  • context-aware recommendation

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

Cite the paper

@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}, 
}