Git Product home page Git Product logo

catsr-kdd's Introduction

CAT-SR

This is the official PyTorch implementation for the paper:

Chen Wang, Ziwei Fan, Liangwei Yang, Mingdai Yang, Xiaolong Liu, Zhiwei Liu, Philip Yu. Pre-Training with Transferable Attention for Addressing Market Shifts in Cross-Market Sequential Recommendation. KDD 2024.


Overview

In this study, we introduce the Cross-market Attention Transferring with Sequential Recommendation (CAT-SR) framework, tailored specifically for cross-market recommendation (CMR) scenarios. CMR poses unique challenges such as strict privacy regulations that limit data sharing, lack of user overlap, and consistent item sets across different international markets. These aspects are further compounded by market-specific variations in user preferences and item popularity, known as market shifts.

To effectively address these hurdles and enhance recommendation accuracy across disparate markets, CATSR employs a sophisticated approach that leverages a preconditioning strategy focusing on item-item correlations and incorporates an innovative selective self-attention mechanism. This mechanism facilitates the transfer of focused learning across markets. Additionally, the framework enhances adaptability through the integration of query and key adapters, which are designed to capture and adjust to market-specific nuances in user behavior.

Requirements

recbole==1.1.1
python==3.8.5
cudatoolkit==11.3.1
pytorch==1.12.1
pandas==1.3.0
transformers==4.18.0

1. Copy preprocessed XMRec dataset from FOREC or MA

Put data file into data directory. For example: data/ca_5core.txt

Category: Electronics

Data: metadata

Put dataset into data/Amazon/metadata directory. For example data/Amazon/metadata/meta_Electronics.json.gz

3. Process data

cd data
python data_process.py

4. Pretrain us market

python pretrain.py

5. Fine-tune

Take finetune Canada(ca) as an example

python finetune.py --dataset ca

catsr-kdd's People

Contributors

chenmetanoia avatar

Stargazers

 avatar Ziwei Fan avatar

Watchers

 avatar

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.