All models

recbole.FFM

A field-aware factorization machine for click-through rate prediction, in RecBole's implementation.

Tabular and recommender · 223 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 (25 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
227.3K
Operations
223
Framework
PyTorch
Recurrent
No
Published
RecSys 2016
Cited by
729 (as of 23 October 2026)
Authors
Yuchin Juan, Yong Zhuang, Wei-Sheng Chin, Chih-Jen Lin
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
m8611
Graph hash
e78f16f127e0c7b468069e9c9dd64981df949714df2af62b7d0ad5ecec6c989b
Skeleton hash
ba9ce0d8df16699feda8eb0110e4d61855c01553f2e375f06fd23499e778643d
Architecture hash
7f0c84aa6f8cff21ccbef508789eb07d24b10bc6e9aea9041f5ddd3811906ef8
Diagram SHA-256
8803112d1b5391dd9c12c04ac5b4e771f7d1ce10d341bd24822c76b2e28ef1d8
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

Field-aware Factorization Machines (FFMs) are a variant of factorization machines (FMs) for click-through rate (CTR) prediction, a task that plays an important role in computational advertising. The authors used FFM as their major model to win two CTR competitions, hosted by Criteo and Avazu.

The idea rests on grouping features into fields: in the paper's example, the features ESPN, Vogue and NBC belong to the field Publisher. In an FM, every feature has only one latent vector, used to learn its latent effect with any other feature. In an FFM each feature has several latent vectors, and the one used in an inner product depends on the field of the other feature.

Training in the paper uses stochastic gradient methods with the AdaGrad learning-rate schedule. The paper concludes that for certain kinds of data sets FFMs outperform a linear model, degree-2 polynomial mappings and FMs in terms of logloss, at the cost of longer training time. The authors released their implementation as LIBFFM, a library for field-aware factorization machines.

Key idea. The paper establishes field-aware factorization machines, where each feature keeps several latent vectors chosen by the other feature's field, as an effective approach for CTR prediction.

  • FFM
  • field-aware factorization machines
  • field-aware factorization machine
  • CTR prediction
  • click-through rate
  • computational advertising
  • LIBFFM
  • feature conjunctions
  • RecBole

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

Cite the paper

@inproceedings{Juan_2016, series={RecSys ’16}, title={Field-aware Factorization Machines for CTR Prediction}, url={http://dx.doi.org/10.1145/2959100.2959134}, DOI={10.1145/2959100.2959134}, booktitle={Proceedings of the 10th ACM Conference on Recommender Systems}, publisher={ACM}, author={Juan, Yuchin and Zhuang, Yong and Chin, Wei-Sheng and Lin, Chih-Jen}, year={2016}, month=Sept, pages={43–50}, collection={RecSys ’16} }