Introduction
Sequential recommendation systems are designed to predict a user's future preferences by analyzing their historical interaction sequences. Traditional approaches primarily leverage collaborative filtering to identify behavioral patterns or utilize knowledge graphs (KGs) to incorporate explicit, human-defined relationships (e.g., "same brand" or "same category"). However, these methods often struggle with data sparsity. Explicit relations in KGs are frequently too rigid or sparse to capture the nuanced, common-sense reasons behind sequential purchases—what we might call the "hidden why." For instance, while a KG might see a printer and a folder as unrelated categories, a human understands they are both essential components of a "document processing" workflow.
The Latent Relation Discovery (LRD) Framework
To address these limitations, we propose the Latent Relation Discovery (LRD) framework. LRD moves beyond predefined rules by using Large Language Models (LLMs) to uncover latent semantic connections between items.
The framework consists of three primary components:
- Semantic Extraction via LLM: Item metadata, such as titles and descriptions, are processed through an LLM (e.g., GPT-3) to generate high-dimensional language knowledge representations. This step injects broad "world knowledge" into the recommendation pipeline.
- Self-Supervised Discovery: Drawing inspiration from Discrete-state Variational Autoencoders (DVAE), the model employs a relation extraction module to infer a latent relation between two items. To ensure these relations are semantically grounded, an item reconstruction module attempts to recreate the target item's representation using only the source item and the inferred relation.
- Joint Optimization: The discovery process is trained in tandem with the recommendation task. This ensures that the identified latent relations are not just semantically plausible but are also optimized to improve prediction accuracy.
LRD is designed to be model-agnostic, allowing it to enhance existing relation-aware recommendation architectures like RCF and KDA.
Experimental Evaluation
The framework was evaluated on three datasets with varying degrees of density: MovieLens-100k (dense), Amazon Office Products (sparse), and Amazon Electronics (highly sparse). Performance was measured using Hit Ratio (HR@5) and Normalized Discounted Cumulative Gain (NDCG@5).
Key Results
The LRD-enhanced models consistently outperformed state-of-the-art baselines. The improvements were particularly pronounced in sparse data environments. For example, on the Amazon Office dataset, the LRD-enhanced KDA model achieved an 8.83% improvement in NDCG@5 over its vanilla counterpart.
Ablation studies (shown in the figure above) highlight the critical role of each component. Removing the LLM-based embeddings ("w/o LLM") or the latent relation discovery mechanism ("w/o LRD") consistently resulted in performance degradation. This confirms that the synergy between LLM-derived world knowledge and self-supervised relation discovery is vital for overcoming the sparsity gap.
Conclusion
The LRD framework demonstrates that LLMs can serve as powerful "common sense engines" for recommendation systems. By uncovering latent relations that bridge the gap between disparate items, LRD provides the necessary context for accurate predictions even when user interaction data is thin. Future work will explore the use of more advanced LLMs and aim to improve the interpretability of the discovered latent relations.
Summary updated