Personalized Behavior-Aware Transformer for Multi-Behavior Sequential Recommendation

Jiajie Su, Chaochao Chen, Zibin Lin, Xi Li, Weiming Liu, Xiaolin Zheng

TL;DR

PBAT (Personalized Behavior-Aware Transformer) is a novel recommendation framework that moves beyond simple "purchase" histories by modeling the complex, personalized relationships between different user actions like clicking, favoriting, and adding to a cart. By representing users and items as Gaussian distributions and employing a "Tri-Adaptive" attention mechanism, it captures the uncertainty and temporal dynamics of multi-behavior sequences, significantly outperforming existing state-of-the-art models.

What Problem Does This Paper Address?

Most sequential recommendation (SR) systems focus on a single type of interaction—usually the "target" behavior like a purchase. However, real-world user journeys are messy. Before buying, a user might click several items, "like" a few, and add one to their cart. Relying only on the final purchase leads to the data sparsity problem, especially for new users or short sessions.

While Multi-Behavior Sequential Recommendation (MBSR) exists, the authors identify three major gaps:

  1. Personalization (Ch1): Different users have different habits. "Mike" might add everything to his cart before buying, while "Anna" only adds items she is unsure about.
  2. Multifaceted Collaborations (Ch2): The relationship between behaviors is complex. Adding a phone to a cart might increase the likelihood of buying headphones (complementary), but adding one pair of headphones might decrease the likelihood of buying another (competitive).
  3. Temporal Effects (Ch3): The time interval between actions matters. A click from five minutes ago is usually more relevant to a current purchase than a click from last week.
A motivating example showing how Mike and Anna have different behavioral patterns and how temporal distance affects collaboration intensity.

Methods

The PBAT framework consists of two primary modules designed to handle the complexity of multi-behavior data:

1. Personalized Behavior Pattern Generator

Instead of using fixed vectors (embeddings), PBAT uses Dynamic Representation Encoding. Every entity—user, item, behavior, and position—is represented as a Gaussian distribution (mean and covariance). This allows the model to capture the inherent uncertainty and "fuzziness" of user intent.

To handle personalization, they introduce Self-Adaptive Gaussian Production (SAGP). This fusions general behavior patterns with specific user traits, ensuring the model understands that a "cart" action means something different for Mike than it does for Anna.

2. Behavior-Aware Collaboration Extractor

This module replaces standard self-attention. It uses the Wasserstein distance—a mathematically robust way to measure the distance between probability distributions—to calculate attention scores.

  • Behavioral Collaboration Impact Factor: It calculates how much one behavior (e.g., "add-to-cart") influences another (e.g., "purchase") based on the specific items involved.
  • TriSAGP (Fused Attention): This novel mechanism simultaneously integrates item features, behavioral patterns, and temporal (positional) impacts into a single attention score, capturing the "ternary" relationship between what was done, how it was done, and when it happened.
The overall PBAT architecture, highlighting the Pattern Generator and the Collaboration Extractor.

Datasets

The authors evaluated PBAT on three large-scale benchmark datasets:

  • Taobao: A massive E-commerce dataset featuring page views, favorites, cart adds, and purchases.
  • IJCAI: Another E-commerce dataset from an online B2C platform with similar behavior types.
  • Yelp: A business review dataset where behaviors are categorized by rating (like, neutral, dislike) plus a "tip" behavior.

Key Insights and Ideas

  • Uncertainty is a Feature, Not a Bug: By using Gaussian distributions, the model acknowledges that user behavior isn't deterministic. The covariance matrix effectively acts as a "confidence" measure for the recommendation.
  • Behavioral Personalization: The "aha moment" here is that personalization shouldn't just be about what items a user likes, but how they interact with the platform.
  • The Power of "Page Views": Ablation studies (Figure 3) revealed that "page view" is often the most informative auxiliary behavior. Even though it's the "weakest" signal of intent, its high frequency provides the densest signal for learning user patterns.
  • Interpretable Intent: As shown in Figure 4, the model can actually visualize the dependency between behaviors for specific users, making the "black box" of the transformer slightly more transparent.
Case studies showing personalized behavior dependency matrices for different users.

Key Results

PBAT consistently outperformed state-of-the-art baselines (including MBHT and MB-STR) across all metrics:

  • Taobao: Improved HR@5 by 6.37% and NDCG@5 by 10.3% over the best baseline.
  • IJCAI: Improved HR@5 by 8.20% and NDCG@5 by 12.9%.
  • Yelp: Showed steady improvements, though less dramatic than E-commerce, likely due to the different nature of "review" behaviors versus "shopping" behaviors.

Ablation studies confirmed that removing either the personalized pattern generator or the behavior-aware attention led to significant performance drops, proving that both "who the user is" and "how behaviors interact" are vital.

Limitations and Future Work

While the paper demonstrates strong results, a few areas remain for exploration:

  • Computational Complexity: Using Gaussian distributions and Wasserstein distances is more computationally expensive than standard dot-product attention. Scaling this to billions of users in real-time environments would require significant optimization.
  • Long-Term vs. Short-Term: While the model uses positional encoding, it doesn't explicitly model very long-term user profiles (e.g., years of history) which might provide even deeper personalization.
  • Cross-Domain Potential: The authors suggest that this behavior-aware approach could be extended to cross-domain recommendations (e.g., using movie-watching behavior to predict book-buying).

Summary updated

BibTeX
@inproceedings{su2023personalized,
  author = {Jiajie Su and Chaochao Chen and Zibin Lin and Xi Li and Weiming Liu and Xiaolin Zheng},
  title = {{Personalized Behavior-Aware Transformer for Multi-Behavior Sequential Recommendation}},
  booktitle = {ACM Multimedia},
  year = {2023},
  doi = {10.1145/3581783.3611723},
}
Figure