Suffix Retrieval-Augmented Language Modeling

Zecheng Wang, Yik-Cheung Tam
11/6/2022
cs.CL
rag

Official code: Victor-wang-902/SUREALM (6 stars, Python, last commit 2024-05-26).

Abstract

Causal language modeling (LM) uses word history to predict the next word. BERT, on the other hand, makes use of bi-directional word information in a sentence to predict words at masked positions.

Show full abstract

While BERT is effective in sequence encoding, it is non-causal by nature and is not designed for sequence generation. In this paper, we propose a novel language model, SUffix REtrieval-Augmented LM (SUREALM), that simulates a bi-directional contextual effect in an autoregressive manner. SUREALM employs an embedding retriever to search for training sentences in a data store that share similar word history during sequence generation. In particular, the suffix portions of the retrieved sentences mimick the "future" context. We evaluated our proposed model on the DSTC9 spoken dialogue corpus and showed promising word perplexity reduction on the validation and test set compared to competitive baselines.

View on arXivView PDF

Code Implementations(1)

Code for paper Suffix Retrieval-augmented Language Modeling

60Python, ShellNov 3, 20222 years ago

Similar Papers

Cite this paper

@article{wang2022suffix,
  title  = {Suffix Retrieval-Augmented Language Modeling},
  author = {Zecheng Wang and Yik-Cheung Tam},
  year   = {2022},
  eprint = {2211.03053},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.03053}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.03053.svg)](https://codeofpaper.com/paper/2211.03053)

Discussion