paper-with-me

Papers

Scaling Retrieval-Based Language Models with a Trillion-Token Datastore

2024-07-09 · Rulin Shao, Jacqueline He, Akari Asai, Weijia Shi, Tim Dettmers, Sewon Min, Luke Zettlemoyer, Pang Wei Koh

Scaling laws with respect to the amount of training data and the number of parameters allow us to predict the cost-benefit trade-offs of pretraining language models (LMs) in different configurations. In this paper, we consider another dimension of scaling: the amount of data available at inference time. Specifically, we find that increasing the size of the datastore used by a retrieval-based LM monotonically improves language modeling and several downstream tasks without obvious saturation, such that a smaller model augmented with a large datastore outperforms a larger LM-only model on knowledge-intensive tasks. By plotting compute-optimal scaling curves with varied datastore, model, and pretraining data sizes, we show that using larger datastores can significantly improve model performance for the same training compute budget. We carry out our study by constructing a 1.4 trillion-token datastore named MassiveDS, which is the largest and the most diverse open-sourced datastore for retrieval-based LMs to date, and designing an efficient pipeline for studying datastore scaling in a computationally accessible manner. Finally, we analyze the effect of improving the retriever, datastore quality filtering, and other design choices on our observed scaling trends. Overall, our results show that datastore size should be considered as an integral part of LM efficiency and performance trade-offs. To facilitate future research, we open-source our datastore and code at https://github.com/RulinShao/retrieval-scaling.

📄 PDF Abstract BibTeX arXiv:2407.12854

Code (1)

rulinshao/retrieval-scaling 공식 구현

Tasks

Language ModelingLanguage ModellingRetrieval

Similar Papers 제목 키워드 기반

Long-Tail Crisis in Nearest Neighbor Language Models

2025-03-28 · Yuto Nishida, Makoto Morishita, Hiroyuki Deguchi, Hidetaka Kamigaito 외

The $k$-nearest-neighbor language model ($k$NN-LM), one of the retrieval-augmented language models, improves the perplexity for given text by directly accessing a large datastore built from any text data during inference…

Language ModelingLanguage ModellingQuantizationRetrieval

Chunk-based Nearest Neighbor Machine Translation

2022-05-24 · Pedro Henrique Martins, Zita Marinho, André F. T. Martins

Semi-parametric models, which augment generation with retrieval, have led to impressive results in language modeling and machine translation, due to their ability to retrieve fine-grained information from a datastore of …

Domain AdaptationLanguage ModelingLanguage ModellingMachine Translation+2

CREST: Effectively Compacting a Datastore For Retrieval-Based Speculative Decoding

2024-08-08 · Sophia Ho, Jinsol Park, Patrick Wang

We present CREST (Compact Retrieval-Based Speculative Decoding), a redesign of REST that allows it to be effectively "compacted". REST is a drafting technique for speculative decoding based on retrieving exact n-gram mat…

HumanEvalRetrieval

Reliable, Adaptable, and Attributable Language Models with Retrieval

2024-03-05 · Akari Asai, Zexuan Zhong, Danqi Chen, Pang Wei Koh 외

Parametric language models (LMs), which are trained on vast amounts of web data, exhibit remarkable flexibility and capability. However, they still face practical challenges such as hallucinations, difficulty in adapting…

Question AnsweringRetrieval

Better Datastore, Better Translation: Generating Datastores from Pre-Trained Models for Nearest Neural Machine Translation

2022-12-17 · Jiahuan Li, Shanbo Cheng, Zewei Sun, Mingxuan Wang 외

Nearest Neighbor Machine Translation (kNNMT) is a simple and effective method of augmenting neural machine translation (NMT) with a token-level nearest neighbor retrieval mechanism. The effectiveness of kNNMT directly de…

Machine TranslationNMTRetrievalTranslation