EulerNet: Adaptive Feature Interaction Learning via Euler's Formula for CTR Prediction

Zhen Tian, Ting Bai, Wayne Xin Zhao, Ji-Rong Wen, Zhao Cao

Abstract

Click-Through Rate (CTR) prediction is a cornerstone of modern recommendation systems and online advertising. The primary challenge in this field is effectively capturing high-order feature interactions—complex relationships between multiple attributes like user demographics and item categories. Traditional models often struggle with the "combinatorial explosion" of these interactions or rely on opaque neural networks. This paper introduces EulerNet, a novel architecture that models feature interactions in a complex vector space. By leveraging Euler’s formula, EulerNet transforms computationally expensive interaction operations into efficient linear combinations, enabling the adaptive learning of interactions of arbitrary, even fractional, orders.

Introduction

In the context of online platforms, predicting whether a user will click on a specific item is essential for personalization. These predictions rely heavily on "feature interactions." For instance, a user's age and their current location might combinedly influence their interest in a specific product more than either feature would individually.

Capturing these interactions, especially high-order ones (involving three or more features), is computationally demanding. Most existing models either manually cap the interaction order (e.g., focusing only on pairs) or use Multi-Layer Perceptrons (MLPs) to model interactions implicitly. However, fixed-order models often miss nuanced patterns, and MLPs are frequently criticized as "black boxes" that struggle to capture specific cross-feature relationships efficiently. EulerNet addresses these limitations by providing a mathematically principled and computationally efficient framework for explicit interaction learning.

Methodology: Feature Learning in Complex Space

EulerNet shifts feature learning from the standard real-valued space into a complex vector space. This transition is facilitated by three key components:

1. Complex Space Mapping

Each feature embedding is represented as a complex number. The model treats the original feature embedding as the phase ($\theta$) and introduces a learnable, field-specific parameter as the modulus ($\lambda$). This dual-representation allows the model to capture more information than standard real-valued embeddings.

2. The Euler Transformation and Log-Sum Trick

By applying Euler’s formula ($e^{i\theta} = \cos\theta + i\sin\theta$), the model represents feature interactions as multiplications of complex numbers. In polar form, multiplying features is equivalent to adding their phases and adding the logarithms of their moduli. This "log-sum" trick is the core of EulerNet's efficiency: it turns the operation of interacting features (multiplication and exponentiation) into a simple linear operation (addition). Consequently, learning high-order interactions becomes as computationally efficient as learning a simple linear layer.

3. Adaptive Order Learning

Unlike traditional models that are restricted to integer orders (e.g., 2nd or 3rd order), EulerNet learns a weight vector $\alpha$ that can consist of any real number. This allows the model to learn fractional-order interactions adaptively from the data. For example, the model might determine that an interaction order of 1.12 or 0.67 provides the best fit for a specific dataset, offering a level of granularity that fixed-order models cannot match.

4. Unified Architecture

EulerNet integrates both explicit interactions (mathematically defined crosses) and implicit interactions (neural-network-driven fusion) into a single "Euler Interaction Layer." These layers can be stacked to increase the model's capacity and depth, allowing it to capture increasingly complex patterns.

Experimental Evaluation

The authors evaluated EulerNet against several competitive baselines, including DeepFM, DCNV2, and AutoInt+, using three major public benchmarks and a synthetic dataset:

  • Criteo: A massive industry dataset containing user logs over seven days.
  • Avazu: A large-scale dataset from a CTR prediction competition.
  • MovieLens-1M: A popular benchmark for movie recommendations.
  • Synthetic Dataset: Used specifically to verify if the model could recover known, ground-truth interaction patterns.

Key Results

  • State-of-the-Art Accuracy: EulerNet consistently outperformed all baselines in terms of Area Under Curve (AUC) and Logloss across all datasets.
  • Inference Efficiency: Compared to other adaptive models like AFN+, EulerNet achieved superior results with significantly lower latency—reducing inference time by over 90% in certain scenarios.
  • Parameter Economy: The model achieves high performance with a relatively small parameter footprint, making it highly practical for real-world industrial deployment where memory and latency are critical constraints.

Insights and Discussion

One of the most significant findings of the EulerNet study is the importance of fractional orders. Visualization of the learned weights showed that the "optimal" interaction order is rarely a simple integer. By allowing for non-integer orders, EulerNet provides a more nuanced fit for real-world data.

Furthermore, the model offers a degree of interpretability through its complex representation. Visualization of the "phase" component suggests it effectively captures feature importance; features with more concentrated phase distributions (lower variance) tended to have higher mutual information with the target label, acting as a proxy for the feature's predictive power.

Conclusion and Future Work

EulerNet represents a significant step forward in CTR prediction by combining the mathematical elegance of Euler's formula with the flexibility of deep learning. While highly effective, the authors note several avenues for future research:

  • Temporal Dynamics: Integrating user behavior sequences to model how interests change over time.
  • Attention Mechanisms: Incorporating attention within the complex vector space to further refine feature correlation learning.
  • Scaling: Further investigating the memory overhead of high-dimensional complex embeddings in massive-scale production environments.

By transforming the way we calculate feature interactions, EulerNet provides a robust, efficient, and adaptive framework for the next generation of recommendation systems.

Summary updated

BibTeX
@inproceedings{tian2023eulernet,
  author = {Zhen Tian and Ting Bai and Wayne Xin Zhao and Ji-Rong Wen and Zhao Cao},
  title = {{EulerNet: Adaptive Feature Interaction Learning via Euler's Formula for CTR Prediction}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2023},
}
Figure