Efficient Long Sequential User Data Modeling for Click-Through Rate Prediction

Qiwei Chen, Yue Xu, Changhua Pei, Shanshan Lv, Tao Zhuang, Junfeng GearXiv 2022 · DOI

Abstract

Modeling long-term user behavior is crucial for Click-Through Rate (CTR) prediction but computationally prohibitive for real-time systems. We present ETA-Net (Efficient Target Attention Network), an end-to-end framework that replaces traditional dot-product attention with SimHash-based binary fingerprints and bit-wise operations. This approach reduces computational complexity while maintaining high accuracy. Evaluated on massive industrial datasets at Alibaba, ETA-Net demonstrates significant improvements in both CTR and Gross Merchandise Value (GMV) with lower inference latency than existing two-stage methods.

Introduction

In recommendation systems, a user’s past actions—such as clicks and purchases—serve as the most reliable predictors of future behavior. While short-term sequences (the last 50-100 actions) are computationally manageable, long-term sequences (1,000+ actions) provide a much richer picture of a user's evolving interests.

However, standard Target Attention (TA) scales linearly with sequence length, making it too slow for production environments with strict latency requirements. To address this, industry leaders previously relied on "two-stage" methods: a separate model retrieves a small subset of relevant items, which are then fed into the CTR model. The drawback is that these stages are trained separately; as the CTR model learns new item representations, the retrieval stage becomes "stale," leading to sub-optimal recommendations.

The ETA-Net Architecture

ETA-Net enables end-to-end long-sequence modeling by drastically reducing the cost of the attention mechanism through several key innovations:

  1. SimHash Fingerprinting: Instead of high-dimensional dot products, ETA-Net uses the SimHash algorithm to project item embeddings into short binary fingerprints (e.g., 64-bit integers).
  2. Hamming Distance Retrieval: Similarity is calculated using the Hamming distance via fast bit-wise XOR operations. This reduces similarity comparison complexity from $O(L \cdot d)$ to $O(L)$, where $L$ is sequence length and $d$ is embedding dimension.
  3. Top-K Target Attention: The model retrieves only the top-$K$ most similar items from the long-term history and performs standard multi-head attention exclusively on these items.
  4. End-to-End Training: Unlike two-stage methods, hashing and attention are part of the same gradient-descent process. As item embeddings update, their binary fingerprints update in sync, ensuring retrieval remains accurate.
The architecture of ETA-Net, featuring the Signature Module for SimHash fingerprinting and the Efficient Target Attention module.

Experimental Evaluation

The model was evaluated on two massive datasets:

  • Public Taobao Dataset: Over 100 million instances of user behaviors.
  • Industrial Dataset: An internal Alibaba dataset involving 0.4 billion users, 0.7 billion items, and 142 billion instances, representing one of the largest scales reported in CTR research.

Key Results and Industrial Impact

ETA-Net demonstrates that binary approximations are sufficient for the retrieval phase of attention, providing massive speed gains without sacrificing precision. On the industrial dataset, ETA-Net outperformed the previous state-of-the-art (SIM) by 0.34% in AUC. In the context of large-scale CTR systems, a 0.1% lift is often considered significant enough to justify redeployment.

In live A/B testing on Taobao, ETA-Net delivered a 1.8% lift in CTR and a 3.1% lift in Gross Merchandise Value (GMV). Remarkably, despite modeling much longer sequences, ETA-Net achieved an inference latency of 19ms, outperforming the 21ms required by the two-stage SIM model. It currently handles peak traffic of 120,000 queries per second (QPS).

Comparison of online performance metrics and inference time between SIM and ETA-Net.

Limitations and Future Work

While highly effective, ETA-Net's performance is sensitive to the bit-length of fingerprints; longer fingerprints increase accuracy but also latency. Additionally, while the system is attribute-free and potentially useful for unstructured data like video tags, current experiments have focused primarily on e-commerce. Future work may explore the robustness of SimHash retrieval in noisier feature spaces and address memory bottlenecks for "extreme" sequences exceeding tens of thousands of items.

Summary updated

BibTeX
@misc{chen2022efficient,
  author = {Qiwei Chen and Yue Xu and Changhua Pei and Shanshan Lv and Tao Zhuang and Junfeng Ge},
  title = {{Efficient Long Sequential User Data Modeling for Click-Through Rate Prediction}},
  year = {2022},
  eprint = {2209.12212},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.12212},
}
Figure