All models

DeepCTR-Torch DeepFM

A factorization machine and a deep network sharing one embedding to predict clicks from raw features.

Tabular and recommender · 213 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 (15 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
74.6K
Operations
213
Framework
PyTorch
Recurrent
No
Published
IJCAI 2017
Cited by
529 (as of 5 October 2026)
Authors
Huifeng Guo, Ruiming Tang, Yunming Ye and others
License
Apache-2.0
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
m652
Graph hash
a83cc20fd540c552d817dec78e7dfcd292a37ff3d9678f21c1b89638062d46da
Skeleton hash
5a829cfaac6bfb46a8f162a0ac36cbac6afb62752b6a24acc0c76ef27fa812c1
Architecture hash
949ea77712af4a9335305a868194c1f06a4c489bee656ff65b28e7249c62e4b0
Diagram SHA-256
7da06ff53d5ca92416618b280a8d0c79845fea2a3f5604eab4bfc7c163cdc20f
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

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.

  • DeepFM
  • Deep Factorization Machine
  • DeepCTR-Torch
  • DeepCTR
  • CTR prediction
  • click-through rate
  • recommender
  • factorization machine
  • Criteo

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