arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.02402cs.CLcs.LG

Fusing Sentence Embeddings Into LSTM-based Autoregressive Language Models

Universität des Saarlandes(萨尔大学)

Vilém Zouhar, Marius Mosbach, Dietrich Klakow

英文摘要:

Although masked language models are highly performant and widely adopted by NLP practitioners, they can not be easily used for autoregressive language modelling (next word prediction and sequence probability estimation). We present an LSTM-based autoregressive language model which uses prefix embeddings (from a pretrained masked language model) via fusion (e.g. concatenation) to obtain a richer context representation for language modelling. We find that fusion helps reliably in lowering the perplexity (16.74 $\rightarrow$ 15.80), which is even preserved after a transfer to a dataset from a different domain than the training data. We also evaluate the best-performing fusion model by correlating its next word surprisal estimates with human reading times. Contradicting our expectation, and despite the improvement in perplexity overall, the correlation remains the same as for the baseline model. Lastly, while we focus on language models pre-trained on text as the sources for the fusion, our approach can be possibly extended to fuse any information represented as a fixed-size vector into an auto-regressive language model. These include e.g. sentence external information retrieved for a knowledge base or representations of multi-modal encoders.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑