Giter Site home page Giter Site logo

yushenli807 / www24-rat Goto Github PK

View Code? Open in Web Editor NEW
18.0 3.0 2.0 287 KB

The code for the paper "RAT: Retrieval-Augmented Transformer for Click-Through Rate Prediction" (WWW 24 short paper)

Python 100.00%
recommendations recommender-system retrieval-augmented www cross-sample-interaction ctr-prediction www2024

www24-rat's Introduction

RAT: Retrieval-Augmented Transformer for Click-Through Rate Prediction

This repository is the official PyTorch implementation of our WWW 2024 short paper.

Catalogue

Getting Started

1. Clone this repository:

git clone https://github.com/YushenLi807/RAT.git
cd RAT

2. Install the dependencies:

  • cuda 11.7
  • python 3.7.8
  • pytorch 1.13.1
  • numpy 1.21.6
  • h5py 2.10.0
pip install -r requirements.txt

3. Download Datasets: Tmall_002 is the full dataset of Tmall. You can download them from Baiduyun disk.

Dataset Link
Movielenslatest Baidu disk
Movielenslatest_10fold_retrieval Baidu disk
KKBox Baidu disk
KKBox_10fold_retrieval Baidu disk
Tmall Baidu disk
Tmall_002 Baidu disk
Tmall_002_retrieval Baidu disk

Train/Test

RAT_m0:RATJM.

RAT_m1:RATCE.

RAT_m2:The default RAT.

RAT_m3:RATPA.

To train/test RAT on Movielenslatest_10fold_retrieval:

python run_expid.py --config ./configs/RAT_m2/movielenslatest_x1 --expid RAT_m2_movielenslatest_x1_10fold_retrieval --gpu 0

To train/test RAT on KKBox_10fold_retrieval:

python run_expid.py --config ./configs/RAT_m2/kkbox_x1 --expid  RAT_m2_kkbox_x1_10fold_retrieval --gpu 0

To train/test RAT on Tmall_002_retrieval:

python run_expid.py --config ./configs/RAT_m2/tmall_x1_002 --expid  RAT_m2_tmall_x1_002_retrieval --gpu 0

Trained Models

We provide trained RAT checkpoints. You can download them from Baiduyun disk.

Dataset Link
Movielenslatest_10fold_retrieval Baidu disk
KKBox_10fold_retrieval Baidu disk
Tmall_002_retrieval Baidu disk

Results

For this repository, the expected performance is:

Model ML-Tag KKBox Tmall
AUC Logloss AUC Logloss AUC Logloss
RATJM 0.9667 0.2003 0.8415 0.4917 0.9581 0.3110
RATCE 0.9736 0.1731 0.8483 0.4831 0.9575 0.3182
RATPA 0.9777 0.1557 0.8484 0.4828 0.9582 0.3177
RAT 0.9809 0.1421 0.8500 0.4812 0.9589 0.3091

Citation

If you find this repository useful, please consider citing our work:

@inproceedings{li2024rat,
  title={RAT: Retrieval-augmented Transformer for Click-through Rate Prediction},
  author={Yushen Li and Jinpeng Wang and Tao Dai and Jieming Zhu and Jun Yuan and Rui Zhang and Shu-Tao Xia},
  booktitle={Companion Proceedings of the ACM Web Conference 2024},
  year={2024}
}

Acknowledgements

Our code is based on the implementation of FuxiCTR and BARS.

www24-rat's People

Contributors

yushenli807 avatar

Stargazers

 avatar Travis Brady avatar  avatar  avatar  avatar Robert avatar Mike avatar chenxia avatar Shitty Girl avatar  avatar  avatar  avatar Dan Baird avatar  avatar  avatar zhujiem avatar  avatar Jinpeng Wang avatar

Watchers

Mike avatar Kostas Georgiou avatar  avatar

Forkers

gimpong jarkjiao

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.