Code Monkey home page Code Monkey logo

rankformer's Introduction

Model implementation for "RankFormer: Listwise Learning-to-Rank Using Listwide Labels", published at KDD 2023.

Usage

The required pip packages are listed in requirements.txt.

The code for the RankFormer method is found in model.py. Please note it imports loss functions from a separate file, i.e. loss.py. However, both files can readily be merged if necessary.

The paper's experiments simulate noisy, implicit target labels for popular Learning-to-Rank datasets (which only contain explicit labels). An implementation of this simulation is given in label_simulation.py, but the paper is best consulted to understand the various assumptions that motivate it.

main.py provides an example of this code in a simple experiment pipeline. It expects to run on the MSLR-WEB30K dataset, which can be downloaded here: https://www.microsoft.com/en-us/research/project/mslr/.

Please note that the paper's original code used a simple loss-balancing strategy to put the listwise and listwide losses on the same scale. The only impact of this difference is that the α values in the paper are on a lower scale than the list_pred_strength hyperparameter in this implementation. To obtain the same results as reported in the paper, one would therefore have to choose higher list_pred_strength values (e.g. list_pred_strength = 1 for α = 0.25). We anyway suggest that list_pred_strength is carefully tuned per dataset.

Citation

If you found this method useful in your work, please cite the paper:

@inproceedings{buyl2023rankformer,
    title={RankFormer: Listwise Learning-to-Rank Using Listwide Labels},
    author={Buyl, Maarten and Missault, Paul and Sondag, Pierre-Antoine},
    publisher={Association for Computing Machinery},
    booktitle={Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
    series={KDD '23},
    pages={3762–3773},
    year={2023},
    doi={10.1145/3580305.3599892}
}

rankformer's People

Contributors

maartenbuyl avatar

Stargazers

Gaurav Pawar avatar Dinan Xiao avatar Finch avatar  avatar Mike avatar Roman Dusek avatar  avatar  avatar Alberto Castelo avatar  avatar John Palgut avatar Qinghong Chen avatar  avatar  avatar

Watchers

Mike avatar  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.