TL;DR
ELCRec introduces an end-to-end learnable clustering framework that unifies user behavior representation and intent discovery into a single optimization process. By treating intent centers as learnable parameters rather than static targets, it eliminates the need for expensive, non-scalable alternating optimization (Expectation-Maximization) steps. This results in significant gains in both recommendation accuracy and computational efficiency, making it highly suitable for industrial-scale deployment.
The Problem: Bottlenecks in Intent Learning
In sequential recommendation, "intent learning" aims to group a user's disparate actions (e.g., buying a racket, shoes, and a bag) into a coherent latent intent (e.g., "playing badminton").
The current state-of-the-art typically relies on a generalized Expectation-Maximization (EM) framework. In the E-step, a clustering algorithm (like K-Means) runs on the entire dataset to find latent intents. In the M-step, these intents are used to supervise the learning of behavior embeddings. This approach has two major flaws:
- Scalability: Running clustering on the full dataset is memory-intensive and slow, often leading to "out-of-memory" errors in industrial settings with millions or billions of users.
- Sub-optimality: Separating representation learning from clustering prevents the two processes from fully co-optimizing, leading to a "lag" in how the model adapts to changing user behaviors.
The ELCRec Approach
The authors propose ELCRec, which moves away from alternating optimization in favor of a unified, end-to-end approach.
- End-to-end Learnable Cluster Module (ELCM): Instead of performing offline clustering, ELCRec initializes cluster centers (latent intents) as learnable neural network parameters.
- Dual-Purpose Clustering Loss: The module uses a novel loss function with two terms:
- Intent Decoupling: Pushes different cluster centers away from each other to ensure intents remain distinct.
- Intent-behavior Alignment: Pulls user behavior embeddings toward their assigned cluster centers, forcing the network to learn behavior representations that map clearly to specific intents.
- Intent-assisted Contrastive Learning (ICL): The model uses these learnable cluster centers as self-supervision signals. It performs contrastive learning by pulling together different augmented views of the same behavior sequence while using the assigned intent to further refine the representation.
Because the cluster centers are just parameters in the network, the entire system can be trained using standard mini-batch gradient descent, making it highly scalable.
Key Insights
- Clustering as a Layer: The core "aha moment" is treating clustering not as a post-processing step, but as a learnable component of the architecture. This allows the model to "learn how to cluster" simultaneously with "learning what to recommend."
- Mini-batch Scalability: By making cluster centers learnable tensors, the model no longer needs to see the whole dataset to update its understanding of user intents. This solves the primary bottleneck for industrial deployment.
- Adversarial-like Dynamics: The clustering loss acts somewhat like an adversarial setup—the model tries to condense behaviors into tight intent groups while simultaneously trying to keep those intent groups as far apart as possible to avoid overlap.
Key Results
ELCRec was evaluated on public benchmarks (Sports, Beauty, Toys, Yelp, MovieLens 1M, MIND-small) and consistently outperformed nine state-of-the-art baselines.
- Accuracy: On the Beauty dataset, ELCRec improved NDCG@5 by 8.9% compared to the best-performing baseline.
- Efficiency: The method reduced computational costs by 22.5% on the Beauty dataset and decreased average GPU memory usage by nearly 10%.
- Industrial Impact: In real-world A/B testing on an Alipay live-streaming recommendation system serving 130 million page views, the model achieved a 2.45% increase in Page View Click-Through Rate (PVCTR) and a 2.28% increase in Video View (VV) metrics.
- Ablation Success: Both the ELCM and ICL modules are critical; removing either leads to a drop in performance across all tested domains.
Limitations and Future Work
Despite its strengths, the authors note a few areas for improvement:
- Fixed Cluster Count: The number of clusters ($k$) is currently a pre-defined hyperparameter. In the future, the authors hope to implement density-based clustering or reinforcement learning to allow the model to determine the optimal number of intents dynamically.
- Update Sensitivity: While the model updates intents per batch, controlling the "update rate" to prevent intents from shifting too wildly during training remains a challenge.
- Domain Expansion: The authors plan to test the framework on even more diverse recommendation tasks, such as music and group-buying recommendations.
Summary updated