
DeepCTR-NFM
Tabular and recommender211 ops30.3K params
A factorization machine deepened with neural layers for prediction from sparse categorical features.
Tabular and recommender · 99 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.
Neural Factorization Machine (NFM) is a model for prediction under sparse settings, the kind that arise when categorical variables are one-hot encoded. The paper starts from Factorization Machines (FMs), which it says model feature interactions in a linear way that can be insufficient for real-world data. NFM combines the linearity of FM in modeling second-order feature interactions with the non-linearity of a neural network in modeling higher-order ones.
Its central operation is Bi-Interaction pooling, which turns a set of feature embedding vectors into one vector that encodes the second-order interactions between features. A stack of fully connected layers sits above the pooling layer. The authors point out that the pooling introduces no extra model parameter and can be computed in linear time. FM itself can be seen as a special case of NFM without hidden layers.
On two regression tasks, the paper reports that NFM with only one hidden layer outperforms FM with a 7.3% relative improvement. The authors' own implementation supports two tasks, regression and binary classification.
Key idea. NFM stacks non-linear layers above a Bi-Interaction pooling layer, so that a factorization machine's second-order feature interactions feed a neural network that models higher-order ones.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{he2017neuralfactorizationmachinessparse,
title={Neural Factorization Machines for Sparse Predictive Analytics},
author={Xiangnan He and Tat-Seng Chua},
year={2017},
eprint={1708.05027},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1708.05027},
}