LinWeizheDragon commited on
Commit
7ac7d85
1 Parent(s): 27f5d2f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +87 -120
README.md CHANGED
@@ -27,7 +27,7 @@ With the approval of the original author, this model is re-implemented with the
27
  - **Language(s) (NLP):** English
28
  - **License:** MIT License
29
 
30
- ### Model Sources [optional]
31
 
32
  <!-- Provide the basic links for the model. -->
33
 
@@ -43,37 +43,18 @@ With the approval of the original author, this model is re-implemented with the
43
 
44
  <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
45
 
46
- [More Information Needed]
47
 
48
- ### Downstream Use [optional]
49
 
50
  <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
51
 
52
- [More Information Needed]
53
-
54
- ### Out-of-Scope Use
55
-
56
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
57
-
58
- [More Information Needed]
59
-
60
- ## Bias, Risks, and Limitations
61
-
62
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
63
-
64
- [More Information Needed]
65
-
66
- ### Recommendations
67
-
68
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
69
-
70
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
71
 
72
  ## How to Get Started with the Model
73
 
74
- Use the code below to get started with the model.
75
 
76
- [More Information Needed]
77
 
78
  ## Training Details
79
 
@@ -81,26 +62,13 @@ Use the code below to get started with the model.
81
 
82
  <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
83
 
84
- [More Information Needed]
85
-
86
- ### Training Procedure
87
-
88
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
89
-
90
- #### Preprocessing [optional]
91
-
92
- [More Information Needed]
93
 
 
94
 
95
- #### Training Hyperparameters
96
-
97
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
98
-
99
- #### Speeds, Sizes, Times [optional]
100
-
101
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
102
 
103
- [More Information Needed]
104
 
105
  ## Evaluation
106
 
@@ -110,92 +78,91 @@ Use the code below to get started with the model.
110
 
111
  #### Testing Data
112
 
113
- <!-- This should link to a Dataset Card if possible. -->
114
-
115
- [More Information Needed]
116
-
117
- #### Factors
118
-
119
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
120
-
121
- [More Information Needed]
122
-
123
- #### Metrics
124
-
125
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
126
-
127
- [More Information Needed]
128
 
129
  ### Results
130
 
131
- [More Information Needed]
132
-
133
- #### Summary
134
-
135
 
136
 
137
- ## Model Examination [optional]
138
-
139
- <!-- Relevant interpretability work for the model goes here -->
140
-
141
- [More Information Needed]
142
-
143
- ## Environmental Impact
144
-
145
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
146
-
147
- Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
148
-
149
- - **Hardware Type:** [More Information Needed]
150
- - **Hours used:** [More Information Needed]
151
- - **Cloud Provider:** [More Information Needed]
152
- - **Compute Region:** [More Information Needed]
153
- - **Carbon Emitted:** [More Information Needed]
154
-
155
- ## Technical Specifications [optional]
156
-
157
- ### Model Architecture and Objective
158
-
159
- [More Information Needed]
160
-
161
- ### Compute Infrastructure
162
-
163
- [More Information Needed]
164
-
165
- #### Hardware
166
-
167
- [More Information Needed]
168
-
169
- #### Software
170
-
171
- [More Information Needed]
172
-
173
- ## Citation [optional]
174
 
175
  <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
176
 
177
  **BibTeX:**
178
 
179
- [More Information Needed]
180
-
181
- **APA:**
182
-
183
- [More Information Needed]
184
-
185
- ## Glossary [optional]
186
-
187
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
188
-
189
- [More Information Needed]
190
-
191
- ## More Information [optional]
192
-
193
- [More Information Needed]
194
-
195
- ## Model Card Authors [optional]
196
-
197
- [More Information Needed]
198
-
199
- ## Model Card Contact
200
-
201
- [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  - **Language(s) (NLP):** English
28
  - **License:** MIT License
29
 
30
+ ### Model Sources
31
 
32
  <!-- Provide the basic links for the model. -->
33
 
 
43
 
44
  <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
45
 
46
+ This model can be used directly to retrieve documents from a large corpus using text queries. The retrieval usage can be found in the [PreFLMR implementation](https://github.com/LinWeizheDragon/FLMR).
47
 
48
+ ### Downstream Use
49
 
50
  <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
51
 
52
+ This model can be used combined with language models to create a retrieval-augmented language model.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
 
54
  ## How to Get Started with the Model
55
 
56
+ For details of training, indexing, and performing retrieval, please refer to [here](https://github.com/LinWeizheDragon/FLMR).
57
 
 
58
 
59
  ## Training Details
60
 
 
62
 
63
  <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
64
 
65
+ The model was trained on [MS MARCO Passage Ranking](https://github.com/microsoft/MSMARCO-Passage-Ranking)
 
 
 
 
 
 
 
 
66
 
67
+ More details can be found in the [official ColBERT repository](https://github.com/stanford-futuredata/ColBERT?tab=readme-ov-file)
68
 
69
+ ### Training Procedure
 
 
 
 
 
 
70
 
71
+ The training details can be found in the [official ColBERT repository](https://github.com/stanford-futuredata/ColBERT?tab=readme-ov-file) and the [ColBERTv2 paper](https://arxiv.org/abs/2112.01488)
72
 
73
  ## Evaluation
74
 
 
78
 
79
  #### Testing Data
80
 
81
+ The model is evaluated on a range of retrieval tasks, such as:
82
+ - [MS MARCO Passage Ranking](https://github.com/microsoft/MSMARCO-Passage-Ranking)
83
+ - [BEIR](https://arxiv.org/abs/2104.08663)
84
+ - [LoTTE](https://github.com/stanford-futuredata/ColBERT/blob/main/LoTTE.md)
85
+ - [OOD Wikipedia Open QA](https://arxiv.org/abs/2112.01488)
 
 
 
 
 
 
 
 
 
 
86
 
87
  ### Results
88
 
89
+ Find the evaluation results in the [ColBERTv2 paper](https://arxiv.org/abs/2112.01488)
 
 
 
90
 
91
 
92
+ ## Citation
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
 
94
  <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
95
 
96
  **BibTeX:**
97
 
98
+ Please cite the original papers:
99
+ ```
100
+ @inproceedings{10.1145/3397271.3401075,
101
+ author = {Khattab, Omar and Zaharia, Matei},
102
+ title = {ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERT},
103
+ year = {2020},
104
+ isbn = {9781450380164},
105
+ publisher = {Association for Computing Machinery},
106
+ address = {New York, NY, USA},
107
+ url = {https://doi.org/10.1145/3397271.3401075},
108
+ doi = {10.1145/3397271.3401075},
109
+ abstract = {Recent progress in Natural Language Understanding (NLU) is driving fast-paced advances in Information Retrieval (IR), largely owed to fine-tuning deep language models (LMs) for document ranking. While remarkably effective, the ranking models based on these LMs increase computational cost by orders of magnitude over prior approaches, particularly as they must feed each query-document pair through a massive neural network to compute a single relevance score. To tackle this, we present ColBERT, a novel ranking model that adapts deep LMs (in particular, BERT) for efficient retrieval. ColBERT introduces a late interaction architecture that independently encodes the query and the document using BERT and then employs a cheap yet powerful interaction step that models their fine-grained similarity. By delaying and yet retaining this fine-granular interaction, ColBERT can leverage the expressiveness of deep LMs while simultaneously gaining the ability to pre-compute document representations offline, considerably speeding up query processing. Crucially, ColBERT's pruning-friendly interaction mechanism enables leveraging vector-similarity indexes for end-to-end retrieval directly from millions of documents. We extensively evaluate ColBERT using two recent passage search datasets. Results show that ColBERT's effectiveness is competitive with existing BERT-based models (and outperforms every non-BERT baseline), while executing two orders-of-magnitude faster and requiring up to four orders-of-magnitude fewer FLOPs per query.},
110
+ booktitle = {Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval},
111
+ pages = {39–48},
112
+ numpages = {10},
113
+ keywords = {bert, deep language models, efficiency, neural ir},
114
+ location = {Virtual Event, China},
115
+ series = {SIGIR '20}
116
+ }
117
+
118
+ @inproceedings{santhanam-etal-2022-colbertv2,
119
+ title = "{C}ol{BERT}v2: Effective and Efficient Retrieval via Lightweight Late Interaction",
120
+ author = "Santhanam, Keshav and
121
+ Khattab, Omar and
122
+ Saad-Falcon, Jon and
123
+ Potts, Christopher and
124
+ Zaharia, Matei",
125
+ editor = "Carpuat, Marine and
126
+ de Marneffe, Marie-Catherine and
127
+ Meza Ruiz, Ivan Vladimir",
128
+ booktitle = "Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies",
129
+ month = jul,
130
+ year = "2022",
131
+ address = "Seattle, United States",
132
+ publisher = "Association for Computational Linguistics",
133
+ url = "https://aclanthology.org/2022.naacl-main.272",
134
+ doi = "10.18653/v1/2022.naacl-main.272",
135
+ pages = "3715--3734",
136
+ abstract = "Neural information retrieval (IR) has greatly advanced search and other knowledge-intensive language tasks. While many neural IR methods encode queries and documents into single-vector representations, late interaction models produce multi-vector representations at the granularity of each token and decompose relevance modeling into scalable token-level computations. This decomposition has been shown to make late interaction more effective, but it inflates the space footprint of these models by an order of magnitude. In this work, we introduce ColBERTv2, a retriever that couples an aggressive residual compression mechanism with a denoised supervision strategy to simultaneously improve the quality and space footprint of late interaction. We evaluate ColBERTv2 across a wide range of benchmarks, establishing state-of-the-art quality within and outside the training domain while reducing the space footprint of late interaction models by 6{--}10x.",
137
+ }
138
+
139
+ @inproceedings{10.1145/3511808.3557325,
140
+ author = {Santhanam, Keshav and Khattab, Omar and Potts, Christopher and Zaharia, Matei},
141
+ title = {PLAID: An Efficient Engine for Late Interaction Retrieval},
142
+ year = {2022},
143
+ isbn = {9781450392365},
144
+ publisher = {Association for Computing Machinery},
145
+ address = {New York, NY, USA},
146
+ url = {https://doi.org/10.1145/3511808.3557325},
147
+ doi = {10.1145/3511808.3557325},
148
+ abstract = {Pre-trained language models are increasingly important components across multiple information retrieval (IR) paradigms. Late interaction, introduced with the ColBERT model and recently refined in ColBERTv2, is a popular paradigm that holds state-of-the-art status across many benchmarks. To dramatically speed up the search latency of late interaction, we introduce the Performance-optimized Late Interaction Driver (PLAID) engine. Without impacting quality, PLAID swiftly eliminates low-scoring passages using a novel centroid interaction mechanism that treats every passage as a lightweight bag of centroids. PLAID uses centroid interaction as well as centroid pruning, a mechanism for sparsifying the bag of centroids, within a highly-optimized engine to reduce late interaction search latency by up to 7x on a GPU and 45x on a CPU against vanilla ColBERTv2, while continuing to deliver state-of-the-art retrieval quality. This allows the PLAID engine with ColBERTv2 to achieve latency of tens of milliseconds on a GPU and tens or just few hundreds of milliseconds on a CPU at large scale, even at the largest scales we evaluate with 140M passages.},
149
+ booktitle = {Proceedings of the 31st ACM International Conference on Information \& Knowledge Management},
150
+ pages = {1747–1756},
151
+ numpages = {10},
152
+ keywords = {colbert, dynamic pruning, efficient search, late interaction, neural information retrieval},
153
+ location = {Atlanta, GA, USA},
154
+ series = {CIKM '22}
155
+ }
156
+ ```
157
+
158
+
159
+ If the implementation helps your research, please cite:
160
+ ```
161
+ @article{Lin_Mei_Chen_Byrne_2024,
162
+ title={PreFLMR: Scaling Up Fine-Grained Late-Interaction Multi-modal Retrievers},
163
+ url={http://arxiv.org/abs/2402.08327},
164
+ number={arXiv:2402.08327},
165
+ publisher={arXiv},
166
+ author={Lin, Weizhe and Mei, Jingbiao and Chen, Jinghong and Byrne, Bill},
167
+ year={2024}}
168
+ ```