可用于构建多标准推荐系统,解决图稀疏、标准独立性及语义信息利用不足问题。通过构建用户-物品-标准三方图,结合轻量级图神经网络与语言模型生成的语义嵌入,利用对比学习对齐嵌入空间,提升推荐准确性。【此简介由AI生成】
Access rate limit exceeded. Please log in to continue.
LMiLG: Language Model-Infused Graph Framework for Ranking in Multi-Criteria Recommendation
Overview
Multi-criteria recommender systems (MCRSs) effectively capture the multidimensional nature of user preferences by considering multiple evaluation criteria rather than relying on a single overall rating. However, existing MCRSs often suffer from graph sparsity, criterion independence, and limited utilization of textual or semantic information. In this paper, we propose the Language Model-Infused Lightweight Graph (LMiLG) approach to address these challenges. Specifically, LMiLG constructs a tripartite graph incorporating users, items, and criteria, and extends a lightweight graph neural network (GNN) to learn collaborative embeddings from multi-criteria data. In parallel, large language models (LLMs) generate textual user and item profiles, which are further refined by a finetuned smaller language model (LM), producing semantic embeddings. A contrastive learning framework that maximizes mutual information between the two embedding spaces aligns these collaborative and semantic embeddings, bridging representation gaps and enhancing recommendation accuracy. Experimental results on three public MCRS datasets demonstrate that LMiLG outperforms state-of-the-art models, achieving a maximum of 13.29% improvements in recall. These results highlight the advantage of integrating multi-criteria graph modeling with LLM-derived semantic information.
Prerequisites
Before setting up the project, ensure you have the following installed:
System Requirements
- Python 3.8+
- CUDA (if running on GPU, ensure you have a compatible NVIDIA driver installed)
Libraries
The project requires the following Python libraries:
- torch (PyTorch for deep learning)
- recbole (for recommendation system utilities)
- openai (to access OpenAI's API for embedding generation)
- roberta-base (download link for the smaller language model roberta-base)
Usage
Run the Full Pipeline
Execute the entire pipeline by running main.py:
python main.py
Customize Configurations
Modify config.py to customize:
- Dataset paths
- Embedding sizes
- Training hyperparameters
Output
Processed data and results are stored in the specified output directory (e.g., User_TA/).
Example Dataset
Place your dataset in the unprocess_dataset/ folder. For example:
multi_TA.csv: Raw multi-criteria dataset containing columns likeUserID,ItemID, and criteria ratings.
Refer to preprocess.py for the expected dataset structure and preprocessing logic.
Code Under Development
While this repository provides the core functionalities for multi-criteria recommendation systems, the current codebase is still under development and may require further refinement. We are actively working on these improvements and aim to provide a more robust and user-friendly codebase in future updates.
Future Updates
Our team is committed to iteratively enhancing the code and functionality. Updates will be uploaded periodically to this repository, including:
- Bug fixes and performance optimizations.
- New features and experimental modules.
- Extended documentation and example use cases.
We appreciate your understanding as we continue to refine the implementation. Stay tuned for updates, and feel free to reach out with feedback or suggestions to help us improve.
Acknowledgement
We appreciate Jin-Duk Park (jindeok6@yonsei.ac.kr) for providing the original multi-criteria recommendation datasets for us!
Contact
If you encounter any issues or have suggestions for improvement, please contact me at zhmeng@bupt.edu.cn.
Introduction
可用于构建多标准推荐系统,解决图稀疏、标准独立性及语义信息利用不足问题。通过构建用户-物品-标准三方图,结合轻量级图神经网络与语言模型生成的语义嵌入,利用对比学习对齐嵌入空间,提升推荐准确性。【此简介由AI生成】
Customize your domain