Skip to content

KDEGroup/GenPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

GENPLUGIN

This repository provides a PyTorch reference implementation of the main models and training procedures described in our paper:

Kun Yang, Siyao Zheng, Tianyi Li, Xiaodong Li, Hui Li. GenPlugin: A Plug-and-Play Framework for Long-Tail Generative Recommendation with Exposure Bias Mitigation.

Within the code directory: the folders ending with "-RAR" use to the Retrieval-Augmented Fine-tuning section, while the rest are for the model pre-training.

You'll need to train a model first, then cache user embeddings before proceeding with the retrieval-augmented fine-tuning.

Requirements

transformers==4.46.0

torch==2.3.1+cu121

Pretrain and Cache

pretrain a model

run_train.sh

RAR finetune

retrival content aware users

python sparse.py

use sasrec train a cf model to retrival Collaborative users

run

run_rag.sh

cache user representations and rerank

cd -RAR

finetune model

run_train.sh

test

run_test.sh

Acknowledgements

We greatly appreciate the official LETTER and MQL4Rec repository. Our code is built on their framework.

About

Source code for DASFAA'26 paper "GenPlugin: A Plug-and-Play Framework for Long-Tail Generative Recommendation with Exposure Bias Mitigation".

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors