File size: 2,707 Bytes
42f2cfa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
license: mit
language:
- en
library_name: transformers
base_model: microsoft/deberta-v3-base
tags:
- question-answering
- information-retrieval
- reranking
- query-expansion
- bm25
- deberta-v3
---

# EAR query reranker checkpoints

Official scorer checkpoints for **Expand, Rerank, and Retrieve: Query
Reranking for Open-Domain Question Answering** (Findings of ACL 2023).

EAR is a query Expansion And Reranking method. It samples diverse query
expansions and trains a reranker to select expansions that improve passage
retrieval.

## Contents

The repository preserves the original experiment directory names:

| Path | Dataset | Variant | Files |
| --- | --- | --- | ---: |
| best_nq/vanilla | Natural Questions | EAR-RI | 3 |
| best_nq/wtop1 | Natural Questions | EAR-RD | 3 |
| best_trivia/vanilla | TriviaQA | EAR-RI | 3 |
| best_trivia/wtop1 | TriviaQA | EAR-RD | 4 |

Each directory contains answer, sentence, and title scorer checkpoints.
best_trivia/wtop1 additionally preserves the historical
scorer-answer-best.bin file from the original release.

These are raw PyTorch checkpoint/state-dict files used by the EAR codebase.
They are not standalone AutoModel.from_pretrained repositories.

## Usage

Use these checkpoints with the official code:

    git clone https://github.com/voidism/EAR
    cd EAR

For EAR-RI:

    bash one_pass_eval_ri.sh nq /path/to/best_nq/vanilla
    bash one_pass_eval_ri.sh trivia /path/to/best_trivia/vanilla

For EAR-RD:

    bash one_pass_eval_rd.sh nq /path/to/best_nq/wtop1
    bash one_pass_eval_rd.sh trivia /path/to/best_trivia/wtop1

The original release used Python 3.7.13, PyTorch 1.10.1,
Transformers 4.24.0, Tokenizers 0.11.1, Pyserini, and Weights & Biases.
The rerankers were trained from microsoft/deberta-v3-base.

SOURCE_MANIFEST.sha256 contains a SHA-256 checksum for every checkpoint.
The source archive was models_ear.tar.gz with SHA-256
d756d111404fe8859fd094e313f1e2b95c489691228dfb05044c6471fe31c819.

No training or evaluation dataset is included in this model repository.

## Links

- Paper: https://aclanthology.org/2023.findings-acl.768/
- Code: https://github.com/voidism/EAR
- arXiv: https://arxiv.org/abs/2305.17080

## Citation

    @inproceedings{chuang-etal-2023-expand,
      title = {Expand, Rerank, and Retrieve: Query Reranking for Open-Domain Question Answering},
      author = {Chuang, Yung-Sung and Fang, Wei and Li, Shang-Wen and Yih, Wen-tau and Glass, James},
      booktitle = {Findings of the Association for Computational Linguistics: ACL 2023},
      year = {2023},
      pages = {12131--12147},
      doi = {10.18653/v1/2023.findings-acl.768},
      url = {https://aclanthology.org/2023.findings-acl.768/}
    }