Code Monkey home page Code Monkey logo

beam_retriever's Introduction

End-to-End Beam Retrieval for Multi-Hop Question Answering

This is the repository for our paper "End-to-End Beam Retrieval for Multi-Hop Question Answering".

Our repository is under construction, feel free to contact us if you have any questions.

Cheers! Our results have been published on MuSiQue-Ans , 2WikiMultihopQA and HotpotQA. Many thanks to the dataset authors.

Download Data and Model

We use three original datasets MuSiQue-Ans, HotpotQA and 2WikiMultihopQA for our main experiments and three paritial datasets sampled by IRCoT.

We use DeBERTa as our backbone model.

Beam Retrieval

The code for our Beam Retrieval is in directory retrieval. To train our Beam Retrieval, choose the script from run_train_retr_musique.sh, run_train_beam_retr.sh, run_train_2wiki.sh, which aim at MuSiQue-Ans, HotpotQA and 2WikiMultihopQA respectively. Note that you should edit your actual url of data and model in the script.

For open domain retrieval setting, we use the data produced by MDR, and we format them in directory fullwiki, then train our Beam Retrieval using script run_train_fullwiki_reranker.

Downstream Reader

The code for the supervised downstream reader is in directory qa, while the code for LLMs is llm_exp_long.py.

Results

All the results of retrieval and downstream reader are in directory results.

You can also obtain the scores through running test_model_tmp.py after training.

beam_retriever's People

Contributors

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