Skip to main content
QUICK REVIEW

[Paper Review] Kalman Filtering Attention for User Behavior Modeling in CTR Prediction

Hu Liu, Jing Lu|arXiv (Cornell University)|Oct 2, 2020
Recommender Systems and TechniquesComputer Science28 references9 citations
TL;DR

This paper proposes Kalman Filtering Attention (KFAtt), a novel attention mechanism that models user behavior for CTR prediction by treating weighted pooling as a maximum a posteriori (MAP) estimation. By incorporating global priors and frequency capping, KFAtt overcomes limitations of conventional attention—restricted attention fields and bias toward frequent behaviors—achieving a 4.4% CTR gain in online A/B testing on a 10B-scale production dataset at JD.com.

ABSTRACT

Click-through rate (CTR) prediction is one of the fundamental tasks for e-commerce search engines. As search becomes more personalized, it is necessary to capture the user interest from rich behavior data. Existing user behavior modeling algorithms develop different attention mechanisms to emphasize query-relevant behaviors and suppress irrelevant ones. Despite being extensively studied, these attentions still suffer from two limitations. First, conventional attentions mostly limit the attention field only to a single user's behaviors, which is not suitable in e-commerce where users often hunt for new demands that are irrelevant to any historical behaviors. Second, these attentions are usually biased towards frequent behaviors, which is unreasonable since high frequency does not necessarily indicate great importance. To tackle the two limitations, we propose a novel attention mechanism, termed Kalman Filtering Attention (KFAtt), that considers the weighted pooling in attention as a maximum a posteriori (MAP) estimation. By incorporating a priori, KFAtt resorts to global statistics when few user behaviors are relevant. Moreover, a frequency capping mechanism is incorporated to correct the bias towards frequent behaviors. Offline experiments on both benchmark and a 10 billion scale real production dataset, together with an Online A/B test, show that KFAtt outperforms all compared state-of-the-arts. KFAtt has been deployed in the ranking system of a leading e commerce website, serving the main traffic of hundreds of millions of active users everyday.

Motivation & Objective

  • To address the limitation of conventional attention mechanisms that restrict attention to a single user’s historical behaviors, which fails when users search for new, unrelated demands.
  • To correct the bias toward frequent behaviors in existing attention mechanisms, which can overshadow rare but relevant queries.
  • To develop a theoretically grounded attention mechanism that leverages global statistics and frequency capping for more robust user interest modeling.
  • To design an efficient, low-latency behavior modeling module suitable for industrial-scale online CTR prediction systems.

Proposed method

  • KFAtt models user interest estimation as a MAP problem, where historical behaviors are treated as noisy measurements of unobserved user interest.
  • The KFAtt-base variant introduces a global prior to stabilize predictions when few relevant behaviors exist, enabling unbiased estimation in low-data scenarios.
  • The KFAtt-freq extension models behaviors under the same query as repeated measurements from a single sensor, applying frequency capping to correct bias toward high-frequency queries.
  • The system error variance in the MAP formulation is adjusted based on query frequency and behavior relevance, enabling dynamic attention weighting.
  • A two-stage behavior modeling module is proposed: a Transformer encoder for sequence modeling and a KFAtt decoder for target-specific interest extraction.
  • The KFAtt-based module is optimized for low-latency inference, achieving performance comparable to DIN and Transformer while outperforming them in accuracy.

Experimental results

Research questions

  • RQ1Can a global prior in attention mechanisms improve user interest estimation when historical behaviors are sparse or irrelevant?
  • RQ2Does frequency capping in attention reduce bias toward high-frequency, potentially irrelevant queries in user behavior modeling?
  • RQ3Can the MAP formulation of weighted pooling via Kalman filtering outperform standard attention mechanisms in CTR prediction?
  • RQ4How does KFAtt perform in real-world, large-scale industrial settings with high-velocity traffic and strict latency constraints?

Key findings

  • KFAtt-freq achieved a 4.4% CTR gain in online A/B testing on JD.com’s production system, translating to an additional $0.1 billion in annual ad revenue.
  • On a 10 billion-scale real dataset, KFAtt-trans-freq outperformed all baselines, including Transformer, with a 0.017 AUC gain over the base model.
  • Offline experiments showed that KFAtt-trans-freq achieved the highest AUC (0.766) on the production dataset, significantly outperforming sum pooling (0.749) and other state-of-the-art models.
  • The KFAtt-based module maintained low latency, with TP99 latency comparable to DIN and Transformer, and significantly lower than DIEN, making it production-ready.
  • Plugging KFAtt into vanilla, DIN, and Transformer attention mechanisms consistently improved performance, validating its strong adaptability.
  • The method effectively mitigates performance degradation on new and infrequent queries, which are common in real e-commerce systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.