deepctr_torch.IFM
IFM lets a small network rescale each feature's factorization-machine weights per instance, at FM's linear cost.
Tabular and recommender · 215 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.
At a glance
- Parameters
- 74.5K
- Operations
- 215
- Framework
- PyTorch
- Recurrent
- No
- Published
- IJCAI 2019
- Cited by
- 55 (as of 18 October 2026)
- Authors
- Yantao Yu, Zhen Wang, Bo Yuan
- Source
- deepctr-torch 0.3.0
- 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 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.
Details
- Stable ID
- m4137
- Graph hash
- a7878bfae24315f360418afdb1cff18ba31cc35941e75d53886fe75b5fc090f3
- Skeleton hash
- 0e5e9eb5501add308e4fbc87eec836e88314c8abf6bca4c99d97c9e4254d8046
- Architecture hash
- b0b0d0e6625d37d59a08cdda6d150650a2f3983d126e6ff9b7bdf3a79950ecc4
- Diagram SHA-256
- bf6ca1c9d9ab505be7a11d829638de4eb22cba8d3fcc6907e5a7f300464c1fdf
- 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
IFM, the Input-aware Factorization Machine, is a factorization machine in which the same feature can carry a different weight and embedding depending on the instance it appears in, with the adjustment learned by a neural network. The motivation is that standard FMs train one fixed representation per feature, yet the same feature is usually not equally predictive and useful in different instances. The traced member comes from DeepCTR-Torch, a package of deep-learning based CTR models with reusable component layers.
The architecture stacks the embeddings of an instance's non-zero features and feeds them to a Factor Estimating Network, a stack of fully connected layers that learns information unique to that input. Its output is projected to one scalar per active feature and softmax-normalized so the factors sum to h, the number of non-zero features. A reweighting layer then uses those factors to refine each feature's weight and embedding vector for the current input, and the result goes through an ordinary FM prediction layer. The trick keeps FM's linear time complexity, since the reweighted interaction can be reformulated to O(kn) just as in a plain FM. The authors credit memory networks, from question answering, for the idea of letting each stored record contribute differently per query. Set every factor to 1 and IFM collapses back to the original FM.
Across three datasets the authors report IFM significantly outperforming classical FM and the deep baselines Wide&Deep, AFM, NFM and DeepFM on regression and classification tasks. They read this as a shallow model with accurate feature representations outdoing deeper ones that chase high-order interactions. The authors' code release adds experiments not included in the paper, including an AUC test on the Avazu dataset.
Key idea. An input-aware factor, estimated per instance by a small neural network, rescales each feature's FM weight and embedding so a feature's predictive power adapts to the instance it appears in.
- IFM
- Input-aware Factorization Machine
- input-aware FM
- factorization machine
- FM
- factor estimating network
- FEN
- sparse prediction
- CTR prediction
- recommendation
- DeepCTR-Torch
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@inproceedings{Yu_2019, series={IJCAI-2019}, title={An Input-aware Factorization Machine for Sparse Prediction}, url={http://dx.doi.org/10.24963/ijcai.2019/203}, DOI={10.24963/ijcai.2019/203}, booktitle={Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence}, publisher={International Joint Conferences on Artificial Intelligence Organization}, author={Yu, Yantao and Wang, Zhen and Yuan, Bo}, year={2019}, month=Aug, pages={1466–1472}, collection={IJCAI-2019} }