TL;DR
This paper re-examines the effectiveness of Hadamard Product (HP) in CTR prediction by framing it within the context of Quadratic Neural Networks (QNNs). They propose QNN-alpha, a novel architecture that uses a Multi-Head Khatri-Rao Product for feature interactions and a Self-Ensemble Loss, achieving state-of-the-art results on multiple datasets with improved efficiency.
What Problem Does This Paper Address?
Click-through rate (CTR) prediction is crucial for online advertising and recommendation systems, aiming to predict the probability of a user clicking on an item. A key challenge in CTR prediction is effectively modeling feature interactions, which capture how different user, item, and context features combine to influence click probability. The Hadamard Product (HP) is a widely used, simple, and effective method for modeling these interactions. However, the theoretical underpinnings of why HP works so well have remained unclear. This paper aims to demystify HP's success by analyzing it through the lens of Quadratic Neural Networks (QNNs) and proposing an improved QNN-based architecture for CTR prediction.
Methods
The authors approach this problem by:
- Revisiting HP through QNNs: They analyze HP's operation within the framework of QNNs, which explicitly model quadratic feature interactions. This perspective reveals that HP's effectiveness stems from its ability to expand the feature space and provide smooth, non-linear approximations without relying on activation functions.
- Investigating Activation Functions: They empirically demonstrate that traditional post-activation functions do not significantly improve QNN performance and can sometimes degrade it. Instead, they find that "mid-activation" (applying activations within a QNN layer before the interaction) is more beneficial.
- Proposing Multi-Head Khatri-Rao Product (MH-KRP): To address the scalability limitations of HP and the computational cost of the Khatri-Rao Product (KRP), they introduce MH-KRP. This method leverages the multi-head attention mechanism from Transformers to reduce parameters and computational complexity.
- Introducing Self-Ensemble Loss (SE Loss): To combat overfitting in sparse data scenarios and improve generalization without adding computational overhead, they propose SE Loss. This loss function dynamically ensembles predictions from two forward passes of the same network, encouraging consistency.
- Developing QNN-alpha: They combine these ideas into a novel neuron format, QNN-alpha, specifically tailored for CTR prediction.
Datasets
The authors evaluated their proposed QNN-alpha model on six public CTR prediction datasets:
- Tenrec
- Criteo
- ML-1M
- Frappe
- iPinYou
- KKBox
These datasets represent a range of sizes and characteristics commonly used in CTR research.
Key Insights and Ideas
- HP's power lies in feature space expansion and smooth non-linearity: The paper convincingly argues that HP's effectiveness isn't magic but a consequence of its inherent ability to create new interaction features and provide smooth approximations, making activation functions less critical for its core function.
- Post-activation is often detrimental to QNNs: This is a counter-intuitive finding. It suggests that the inherent properties of QNNs make them robust, and adding standard post-activations can disrupt this balance.
- Mid-activation is the sweet spot: Applying activations before the quadratic interaction (mid-activation) seems to be the key to leveraging both the smooth approximation of QNNs and the sharp approximation of activation functions.
- Khatri-Rao Product offers better expressiveness than Hadamard Product: While HP is simple, KRP can model more complex interactions. The MH-KRP innovation makes this powerful interaction method computationally feasible.
- Self-Ensemble Loss is a clever way to boost generalization: Achieving ensemble benefits without extra model parameters or inference time is a significant practical advantage for real-world deployment.
Key Results
- State-of-the-Art Performance: QNN-alpha achieved new state-of-the-art results on all six public datasets tested, outperforming numerous strong baselines.
- Improved Efficiency: QNN-alpha demonstrates low inference latency and good scalability, making it suitable for production environments.
- Activation Function Findings: Experiments showed that QNNs perform better without post-activation in 64% of cases, and mid-activation (as used in QNN-alpha) is superior.
- MH-KRP Superiority: The proposed MH-KRP significantly outperformed HP and was crucial for QNN-alpha's performance.
- SE Loss Effectiveness: The SE Loss component consistently improved performance across datasets, contributing to better generalization.
- Ablation Studies: All components of QNN-alpha (residual connections, mid-activation, KRP, SE Loss) were shown to be essential for its performance.
Limitations and Future Work
- Hyperparameter Sensitivity: While QNN-alpha shows strong performance, like most deep learning models, its performance can be sensitive to hyperparameter tuning. The paper mentions setting the search space for network depth (L) to {1, 2, 3, 4} as a good practice.
- Computational Cost of KRP: Although MH-KRP mitigates the cost, KRP inherently requires more computation than HP. The paper suggests that further research could explore more efficient KRP variants.
- Integration with Sequential Models: The paper briefly mentions a follow-up work, the Quadratic Interest Network, which integrates QNN with user behavior sequences, achieving impressive results. This suggests a promising direction for future research in combining QNNs with temporal data.
- Broader Applicability: While QNN-alpha is tailored for CTR prediction, exploring its applicability to other recommendation or prediction tasks could be a future avenue.
Summary updated