sewon commited on
Commit
6806f78
·
1 Parent(s): 60e161b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +48 -0
README.md CHANGED
@@ -1,3 +1,51 @@
1
  ---
2
  license: cc-by-nc-4.0
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-nc-4.0
3
  ---
4
+
5
+ # NPM
6
+
7
+ NPM is a nonparametric masked language model, pretrained on English text data.
8
+ It was introduced by ["Nonparametric Masked Language Modeling"][paper]
9
+ and first released in [facebookresearch/NPM][repo].
10
+
11
+ ### Model description
12
+
13
+ NPM consists of an encoder and a reference corpus, and models a nonparametric distribution over a reference corpus.
14
+ The key idea is to map all the phrases in the corpus into a dense vector space using the
15
+ encoder and, when given a query with a MASK at inference, use the encoder to locate the nearest
16
+ phrase from the corpus and fill in the MASK.
17
+
18
+ ### Intended uses & limitations
19
+ While this repo includes the encoder weights, NPM has to be used together with a datstore.
20
+ For more details on how to use NPM, please refer to the [original repo][repo].
21
+
22
+ Note that this model is primarily for filling in a MASK token. Future work can investigate how to use NPM for text generation.
23
+
24
+ ### Training procedure
25
+
26
+ NPM was trained on English Wikipedia (August 2019) and an English portion of CC-News (Mackenzie et al. (2020), February 2019), which contains 13B tokens in total.
27
+ NPM used the model architecture and initial weights of RoBERTa large (Liu et al., 2019), consisting of 354M parameters.
28
+ Training is done for 100,000 steps, using thirty-two 32GB GPUs.
29
+
30
+ More details about training can be found in the [paper][paper].
31
+ Code for training NPM can be found in the [original repo][repo].
32
+
33
+ ### Evaluation results
34
+ NPM is evaluated on nine closed-set tasks (tasks with a small set of options given)
35
+ and seven open-set tasks (tasks whose answers are arbitrary-length).
36
+ NPM consistently outperforms significantly larger models such as GPT-3, OPT and T5.
37
+ Detailed results can be found from the [paper][paper].
38
+
39
+ ### BibTeX entry and citation info
40
+ ```
41
+ @article{ min2022nonparametric,
42
+ title={ Nonparametric Masked Language Modeling },
43
+ author={ Min, Sewon and Shi, Weijia and Lewis, Mike and Chen, Xilun and Yih, Wen-tau and Hajishirzi, Hannaneh and Zettlemoyer, Luke },
44
+ year={ 2022 }
45
+ }
46
+ ```
47
+
48
+ [paper]: https://arxiv.org/abs/2212.01349
49
+ [repo]: https://github.com/facebookresearch/NPM
50
+
51
+