Hiformer: Heterogeneous Feature Interactions Learning with Transformers for Recommender Systems

Huan Gui, Ruoxi Wang, Ke Yin, Long Jin, Maciej Kula +3 more
11/10/2023
cs.IRcs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Learning feature interaction is the critical backbone to building recommender systems. In web-scale applications, learning feature interaction is extremely challenging due to the sparse and large input feature space; meanwhile, manually crafting effective feature interactions is infeasible because of the exponential solution space. We propose to leverage a Transformer-based architecture with attention layers to automatically capture feature interactions. Transformer architectures have witnessed great success in many domains, such as natural language processing and computer vision. However, there has not been much adoption of Transformer architecture for feature interaction modeling in industry. We aim at closing the gap. We identify two key challenges for applying the vanilla Transformer architecture to web-scale recommender systems: (1) Transformer architecture fails to capture the heterogeneous feature interactions in the self-attention layer; (2) The serving latency of Transformer architecture might be too high to be deployed in web-scale recommender systems. We first propose a heterogeneous self-attention layer, which is a simple yet effective modification to the self-attention layer in Transformer, to take into account the heterogeneity of feature interactions. We then introduce \textsc{Hiformer} (\textbf{H}eterogeneous \textbf{I}nteraction Trans\textbf{former}) to further improve the model expressiveness. With low-rank approximation and model pruning, \hiformer enjoys fast inference for online deployment. Extensive offline experiment results corroborates the effectiveness and efficiency of the \textsc{Hiformer} model. We have successfully deployed the \textsc{Hiformer} model to a real world large scale App ranking model at Google Play, with significant improvement in key engagement metrics (up to +2.66\%).

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{gui2023hiformer,
  title  = {Hiformer: Heterogeneous Feature Interactions Learning with Transformers for Recommender Systems},
  author = {Huan Gui and Ruoxi Wang and Ke Yin and Long Jin and Maciej Kula and Taibai Xu and Lichan Hong and Ed H. Chi},
  year   = {2023},
  eprint = {2311.05884},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.05884v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.05884.svg)](https://codeofpaper.com/paper/2311.05884)

Discussion