Action Space Learning for Heterogeneous User Behavior Prediction

Dongha Lee, Chanyoung Park, Hyunjun Ju, Junyoung Hwang, Hwanjo Yu

Abstract

Predicting heterogeneous user behaviors, such as clicking, adding to a cart, or purchasing, is a critical challenge in modern e-commerce. Traditional methods often fail to capture the complex geometric relationships between users and items or rely on naive similarity metrics that do not reflect deep behavioral patterns. We present METAS (METric learning for Action Space), a novel framework that jointly embeds users, items, and action types into two distinct latent spaces. By decoupling high-level entity similarities from specific action interactions and employing an efficient hard triplet mining algorithm, METAS significantly outperforms state-of-the-art tensor factorization and collaborative metric learning methods, particularly in predicting rare but high-value actions like purchases.

Introduction

In modern web applications, user interaction is multi-faceted. A typical customer journey involves a sequence of heterogeneous actions: clicking a product, favoriting it, adding it to a cart, and finally purchasing. Modeling these behaviors accurately is difficult due to two primary limitations in existing literature:

  1. The Score Learning Limitation: Traditional Matrix Factorization (MF) and Tensor Factorization (TF) focus on predicting scalar preference scores. These approaches often fail to preserve the geometric properties of the latent space, such as the triangle inequality, which is essential for capturing meaningful user-user and item-item similarities.
  2. The Naive Similarity Trap: Existing Collaborative Metric Learning (CML) methods typically handle only a single action type. When extended, they often fall into "naive" similarity, where users are placed close together based on isolated shared actions rather than comprehensive behavioral patterns.

The METAS Framework

METAS addresses these challenges through a dual-space architecture that separates entity representation from action modeling.

Dual-Space Architecture

  • Entity Space: This latent space embeds users, items, and action types to capture high-level, indirect similarities. It serves as the foundational representation layer.
  • Action Space: A separate space where the actual behavioral modeling occurs. Here, an action vector (representing a specific user-item-action triple) is compared against a behavior model vector (representing a user's typical behavior for a specific action type).
The METAS dual-space architecture: mapping entities from a high-level Entity Space to a functional Action Space for behavior modeling.

Non-linear Mapping and Objective

Rather than using simple linear projections, METAS employs Multi-Layer Perceptrons (MLPs) to map entities from the Entity Space to the Action Space. This allows the model to capture complex, non-linear interactions. The training objective is distance-based: the model minimizes the Euclidean distance between a user’s behavior model and their observed actions while maintaining a predefined margin ($\alpha$) from unobserved actions.

Efficient Training via Hard Triplet Mining

Training metric learning models on sparse e-commerce data is often slow because random negative samples frequently provide zero gradient. To accelerate convergence, the authors developed an efficient hard triplet mining algorithm. This algorithm identifies "hard" negatives—unobserved actions that the model currently misclassifies as being close to the user—ensuring that every training iteration contributes meaningfully to model refinement.

Performance comparison between METAS and its naive version, demonstrating faster convergence and higher accuracy across HR@10 and NDCG@10 metrics.

Experimental Evaluation

METAS was evaluated on two large-scale Alibaba datasets, Tmall (~2.1M actions) and Taobao (~5.2M actions). Both datasets are characterized by extreme skewness, where "clicks" account for over 83% of the data, making the prediction of rare actions like "purchases" a significant challenge.

Key Results

  • Superior Accuracy: METAS consistently outperformed state-of-the-art methods like SPTF (Tensor Factorization) and CML. It achieved up to a 20% improvement in Hit Ratio (H@10) compared to SPTF.
  • Cross-Action Synergy: By sharing entity embeddings across action types, METAS leverages high-volume data (clicks) to improve the representation of low-volume data (purchases). This synergy allows for much more accurate minority action prediction than single-action models.
  • Geometric Clustering: Latent space analysis reveals that METAS naturally forms fine-grained clusters or "colonies," suggesting it successfully identifies distinct user segments and item categories rather than producing a generic distribution.

Conclusion

METAS demonstrates that decoupling entity similarity from action interactions is vital for modeling heterogeneous user behavior. While the use of MLPs introduces some computational overhead, the efficiency gains from hard triplet mining and the significant boosts in predictive accuracy make it a powerful framework for modern recommendation systems. Future work may involve incorporating temporal dynamics and auxiliary features to further refine the Entity Space.

Summary updated

BibTeX
@inproceedings{lee2019action,
  author = {Dongha Lee and Chanyoung Park and Hyunjun Ju and Junyoung Hwang and Hwanjo Yu},
  title = {{Action Space Learning for Heterogeneous User Behavior Prediction}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/392},
}
Figure