deepctr_torch.DIFM
DIFM reweights each feature per input instance, at bit and vector level, before a factorization-machine prediction.
Tabular and recommender · 267 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
- 125.4K
- Operations
- 267
- Framework
- PyTorch
- Recurrent
- No
- Published
- IJCAI 2020
- Cited by
- 79 (as of 18 October 2026)
- Authors
- Wantong Lu, Yantao Yu, Yongzhe Chang and others
- 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
- m4135
- Graph hash
- 6d53394be9066b25229a509c1f9408231b329075edd67da6176ce8e4d9018c4e
- Skeleton hash
- e85b19a90a85d067b84995a58abf60c8badf13d6cae8b2c7b5902c079037ab9c
- Architecture hash
- 29a7170e2783c460da6b2254fdced8bf2bc13dc6827712f0f78b8453badfda04
- Diagram SHA-256
- 917f67af01327a868d3174a7fc9de7a93da77b5bbd2bf7cdaea588aff71a29ae
- 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
DIFM, the Dual Input-aware Factorization Machine, is a click-through-rate model built on the observation that the same feature should carry different levels of predictive power in different input instances. Standard factorization machines give every feature one fixed representation regardless of the instance, which the authors argue may limit a CTR model's expressive and predictive power. The paper takes its cue from Input-aware Factorization Machines, which learn more flexible representations of a feature according to the input it appears in.
The 'dual' in the name is the model's main move: it reweights the original feature representations at the bit-wise and vector-wise levels simultaneously. The vector-wise half adopts the Multi-Head Self-Attention mechanism of the Transformer to exploit the implicit relationship among the features in an instance. The bit-wise half is a stack of fully connected layers. A residual network adds the original feature embedding vector onto the attention output so that some information about the original embedding is preserved. The two halves are summed into one complete input-aware factor per field, which reweights both the scalar weight and the embedding vector of each feature before an FM-style prediction.
The paper reports comprehensive experiments on two real-world CTR prediction datasets where DIFM outperforms several state-of-the-art models consistently. One of those is Criteo, one month of ad click logs with 13 continuous features and 26 categorical ones. The traced member is the DeepCTR-Torch implementation, which lists DIFM among its models under IJCAI 2020.
Key idea. DIFM learns input-aware factors at the bit-wise and vector-wise levels simultaneously and uses them to reweight each feature's representation per instance. It does so by integrating Multi-Head Self-Attention, Residual Networks and DNNs into a unified end-to-end model.
- DIFM
- Dual Input-aware Factorization Machine
- dual input-aware factorization machines
- input-aware factorization machine
- IFM
- factorization machine
- CTR prediction
- click-through rate
- DeepCTR-Torch
- DeepCTR
- self-attention
- recommender
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@inproceedings{Lu_2020, series={IJCAI-PRICAI-2020}, title={A Dual Input-aware Factorization Machine for CTR Prediction}, url={http://dx.doi.org/10.24963/ijcai.2020/434}, DOI={10.24963/ijcai.2020/434}, booktitle={Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence}, publisher={International Joint Conferences on Artificial Intelligence Organization}, author={Lu, Wantong and Yu, Yantao and Chang, Yongzhe and Wang, Zhen and Li, Chenhui and Yuan, Bo}, year={2020}, month=July, pages={3139–3145}, collection={IJCAI-PRICAI-2020} }