arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.17682cs.CL
收藏

NextLevelBERT:面向长文档的基于更高层次表示的掩码语言建模

NextLevelBERT: Masked Language Modeling with Higher-Level Representations for Long Documents

Hasso Plattner Institute(哈索·普拉特纳研究院);University of Potsdam(波茨坦大学)

Tamara Czinczoll, Christoph Hönes, Maximilian Schall, Gerard de Melo

AI总结:

NextLevelBERT 通过在文本嵌入层面进行掩码语言建模处理长文档,在语义相似度、长文档分类和多项选择问答任务上以更小规模超越更大嵌入模型。

摘要:

尽管(大型)语言模型在过去几年中取得了显著进步,但由于底层注意力机制的二次方扩展问题,它们仍然难以合理地处理书籍等场景中的长序列。为了解决这一问题,我们提出了 NextLevelBERT,这是一种掩码语言模型,它不在词元(token)上操作,而是在以文本嵌入形式存在的高层次语义表示上操作。我们预训练 NextLevelBERT 来预测整个被掩码文本块的向量表示,并在三类任务上评估所得到的文档向量的有效性:1)通过零样本文档嵌入进行语义文本相似度计算,2)长文档分类,3)多项选择题问答。我们发现,只要所需的语义信息粒度不是太细,下一层次掩码语言建模是应对长文档使用场景的有效技术,并且可以优于规模大得多的嵌入模型。我们的模型和代码已公开发布在网上。

英文摘要:

While (large) language models have significantly improved over the last years, they still struggle to sensibly process long sequences found, e.g., in books, due to the quadratic scaling of the underlying attention mechanism. To address this, we propose NextLevelBERT, a Masked Language Model operating not on tokens, but on higher-level semantic representations in the form of text embeddings. We pretrain NextLevelBERT to predict the vector representation of entire masked text chunks and evaluate the effectiveness of the resulting document vectors on three types of tasks: 1) Semantic Textual Similarity via zero-shot document embeddings, 2) Long document classification, 3) Multiple-choice question answering. We find that next-level Masked Language Modeling is an effective technique to tackle long-document use cases and can outperfor much larger embedding models as long as the required level of detail of semantic information is not too fine. Our models and code are publicly available online.

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

↑