Breaking the Clusters: Uniformity-Optimization for Text-Based Sequential Recommendation

Wuhan Chen, Zongwei Wang, Min Gao, Xin Xia, Feng Jiang, Junhao WenarXiv 2025 · OpenReview

Abstract

Traditional sequential recommendation (SR) methods heavily rely on explicit item IDs to capture user preferences over time. This reliance introduces critical limitations in cold-start scenarios and domain transfer tasks, where unseen items and new contexts often lack established ID mappings. To overcome these limitations, recent studies have shifted towards leveraging text-only information for recommendation, thereby improving model generalization and adaptability across domains. Although promising, text-based SR faces unique difficulties: items' text descriptions often share semantic similarities that lead to clustered item representations, compromising their uniformity, a property essential for promoting diversity and enhancing generalization in recommendation systems. In this paper, we explore a novel framework to improve the uniformity of item representations in text-based SR. Our analysis reveals that items within a sequence exhibit marked semantic similarity, meaning they are closer in representation than items overall, and that this effect is more pronounced for less popular items, which form tighter clusters compared to their more popular counterparts. Based on these findings, we propose UniT, a framework that employs three pairwise item sampling strategies: Unified General Sampling Strategy, Sequence-Driven Sampling Strategy, and Popularity-Driven Sampling Strategy. Each strategy applies varying degrees of repulsion to selectively adjust the distances between item pairs, thereby refining representation uniformity while considering both sequence context and item popularity. Extensive experiments on multiple real-world datasets demonstrate that our proposed approach outperforms state-of-the-art models, validating the effectiveness of UniT in enhancing both representation uniformity and recommendation accuracy.

Introduction: The Shift to Text-Based Recommendation

Sequential Recommendation (SR) systems have traditionally operated under an ID-based paradigm, where unique identifiers are assigned to every item. While effective for learning specific user-item interactions, this approach fails in "cold-start" scenarios—where new items lack interaction history—and in cross-domain tasks where ID mappings do not transfer.

To address this, the industry is moving toward text-based SR. By representing items through their textual descriptions processed via Pre-trained Language Models (PLMs) like BERT, systems can generalize across domains and handle new items immediately. However, this transition introduces a new challenge: anisotropy. Because many items share similar textual descriptions, their mathematical representations tend to "cluster" too tightly in the vector space, making it difficult for models to distinguish between them and reducing recommendation diversity.

KDE plots comparing ID-based SR (a, b) with text-based SR (c, d), illustrating the increased clustering (anisotropy) in text-based representations.

Methodology: The UniT Framework

The proposed UniT (Uniforming Text-based Sequential Recommendation) framework is designed to "break these clusters" by selectively adjusting the distances between item representations. Rather than applying a uniform repulsion force, UniT utilizes three nuanced sampling strategies to optimize representation uniformity without losing the underlying signal of user interest.

1. Unified General Sampling Strategy

This strategy provides a baseline repulsion force across all items in a batch. It encourages a globally uniform distribution, ensuring that the entire item space is utilized effectively rather than collapsing into a narrow semantic ring.

2. Sequence-Driven Sampling Strategy

Analysis shows that items within a single user's history are naturally more similar—often having only ~86% of the average distance found in the total dataset. Forcing these items too far apart would destroy the context of user behavior. Consequently, this strategy applies less repulsion to items within the same sequence, preserving the semantic coherence of a user's journey.

3. Popularity-Driven Sampling Strategy

Research indicates a "long-tail uniformity gap": non-popular items cluster much more tightly than popular ones. UniT applies stronger uniformity constraints to these niche items, giving them more "breathing room" in the vector space and helping the system capture their distinct characteristics.

The UniT framework architecture, showing the flow from user sequences through PLM encoders to the specialized sampling and loss functions.

Experimental Results and Key Insights

UniT was evaluated on three real-world datasets: Amazon Office Products, Amazon Musical Instruments, and MovieLens-1M. The framework was tested against several state-of-the-art backbones, including SASRec and BERT4Rec.

  • Performance Gains: UniT consistently outperformed vanilla text-based models. On the Office dataset, Hit Rate (HR@20) improved by up to 4.13% and NDCG@20 by 5.15%.
  • Backbone Versatility: The framework showed particularly strong results when paired with BERT4Rec, suggesting that bidirectional models benefit significantly from improved representation spacing.
  • Visual Confirmation: T-SNE and KDE visualizations confirmed that UniT successfully transformed "clumpy" text-based distributions into more uniform patterns, matching or exceeding the distribution quality of traditional ID-based systems.

Conclusion

By addressing the inherent anisotropy of text-based representations, UniT bridges the gap between the flexibility of text-based SR and the representational clarity of ID-based systems. The combination of sequence-aware and popularity-aware sampling ensures that the model remains sensitive to user intent while promoting the diversity and uniformity necessary for high-quality recommendations.

Summary updated

BibTeX
@misc{chen2025breaking,
  author = {Wuhan Chen and Zongwei Wang and Min Gao and Xin Xia and Feng Jiang and Junhao Wen},
  title = {{Breaking the Clusters: Uniformity-Optimization for Text-Based Sequential Recommendation}},
  year = {2025},
  eprint = {2502.13530},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.13530},
}
Figure