[Paper Review] Neural Factorization Machines for Sparse Predictive Analytics
NFM combines the linear second-order interactions of Factorization Machines with neural networks to model higher-order, non-linear feature interactions for sparse data; it outperforms FM and competitive deep models with a shallower, trainable architecture.
Many predictive tasks of web applications need to model categorical variables, such as user IDs and demographics like genders and occupations. To apply standard machine learning techniques, these categorical predictors are always converted to a set of binary features via one-hot encoding, making the resultant feature vector highly sparse. To learn from such sparse data effectively, it is crucial to account for the interactions between features. Factorization Machines (FMs) are a popular solution for efficiently using the second-order feature interactions. However, FM models feature interactions in a linear way, which can be insufficient for capturing the non-linear and complex inherent structure of real-world data. While deep neural networks have recently been applied to learn non-linear feature interactions in industry, such as the Wide&Deep by Google and DeepCross by Microsoft, the deep structure meanwhile makes them difficult to train. In this paper, we propose a novel model Neural Factorization Machine (NFM) for prediction under sparse settings. NFM seamlessly combines the linearity of FM in modelling second-order feature interactions and the non-linearity of neural network in modelling higher-order feature interactions. Conceptually, NFM is more expressive than FM since FM can be seen as a special case of NFM without hidden layers. Empirical results on two regression tasks show that with one hidden layer only, NFM significantly outperforms FM with a 7.3% relative improvement. Compared to the recent deep learning methods Wide&Deep and DeepCross, our NFM uses a shallower structure but offers better performance, being much easier to train and tune in practice.
Motivation & Objective
- Motivate better modeling of interactions among sparse, categorical features without heavy feature engineering.
- Introduce Bi-Interaction pooling as a neural-network equivalent to FM’s second-order interactions.
- Develop Neural Factorization Machines (NFM) that deepen FM with non-linear hidden layers.
- Demonstrate NFM’s effectiveness against FM, Wide&Deep, and DeepCross on real-world datasets.
Proposed method
- Embed features into dense vectors per feature with an embedding layer.
- Apply Bi-Interaction pooling to capture second-order feature interactions in the embedding space.
- Stack fully connected layers on top of Bi-Interaction outputs to learn higher-order interactions.
- Use a prediction layer to map the final hidden representation to the target score.
- Show that NFM generalizes FM when there are no hidden layers (NFM-0).
- Regularize with dropout on the Bi-Interaction layer and hidden layers, and apply batch normalization after Bi-Interaction and subsequent layers.
Experimental results
Research questions
- RQ1Can Bi-Interaction pooling effectively capture second-order feature interactions?
- RQ2Do hidden layers in NFM improve expressive power for higher-order interactions?
- RQ3How does NFM compare to higher-order FMs and state-of-the-art deep models like Wide&Deep and DeepCross?
- RQ4What optimization and regularization strategies (dropout, batch normalization) aid NFM training?
- RQ5Is FM subsumed as a special case within the NFM framework?
Key findings
- NFM with one hidden layer significantly outperforms FM with a 7.3% relative improvement on the tested tasks.
- NFM achieves competitive or better performance than Wide&Deep and DeepCross while using a shallower, easier-to-train structure.
- Bi-Interaction pooling provides a linear-time mechanism to model second-order interactions, facilitating learning of higher-order interactions in subsequent layers.
- Dropout on the Bi-Interaction layer and on hidden layers helps regularize NFM and can outperform standard L2 regularization.
- NFM-0 exactly recovers FM when no hidden layers are used, illustrating FM as a special case of NFM.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.