Giter VIP home page Giter VIP logo

diff-msr's Introduction

WSDM24_Diff-MSR

Code for Diff-MSR accepted to WSDM 2024. Take FNN as an example and the Music domain is the cold-start domain on Douban dataset.

Stage 1

Goal: Pre-train the backbone model on all domains and we get the FNN backbone model 'douban_fnn_train_v2_6.pt' in chkpt folder.

Run: python douban_main_all.py --model_name fnn --job 6

Stage 2

Goal: Train the diffusion model for the sparse domain, and We get two diffusion models for unclick and click data, i.e., 'fnn_douban_music_diff0_0.001_500_0.0002_other_pred_v_0_v2_2.pt' and 'fnn_douban_music_diff1_0.001_500_0.0002_other_pred_v_0_v2_2.pt' in chkpt folder.

Run: python douban_diff.py --indexx 0 --batch_size 512 --learning_rate 1e-3 --T 500 --beta 0.0002 --schedule other --objective pred_v --auto_normalize 0 --job 2 --model_name fnn

python douban_diff1.py --indexx 0 --batch_size 512 --learning_rate 1e-3 --T 500 --beta 0.0002 --schedule other --objective pred_v --auto_normalize 0 --job 2 --model_name fnn

Stage 3

Goal: Train the classifier and we get the 'fnn_douban_classifier_500_0.0002_other_pred_v_0_v2_2.pt' in chkpt folder.

Run: python douban_classifier_adversarial.py --beta 0.0002 --schedule other --objective pred_v --step 70 --T 500 --job 2 --model_name fnn --learning_rate 1e-3

Stage 4

Goal: Improve the model on the sparse domain.

Run: python douban_augment_final_v3.py --indexx 0 --learning_rate 2e-3 --T 500 --beta 0.0002 --schedule other --objective pred_v --auto_normalize 0 --job 1 --step1 30 --step2 50 --model_name fnn

diff-msr's People

Contributors

wyhwhy 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.