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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Czinczoll, Tamara, Hönes, Christoph, Schall, Maximilian, de Melo, Gerard
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866913389433847808
author Czinczoll, Tamara
Hönes, Christoph
Schall, Maximilian
de Melo, Gerard
author_facet Czinczoll, Tamara
Hönes, Christoph
Schall, Maximilian
de Melo, Gerard
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_17682
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle NextLevelBERT: Masked Language Modeling with Higher-Level Representations for Long Documents
Czinczoll, Tamara
Hönes, Christoph
Schall, Maximilian
de Melo, Gerard
Computation and Language
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.
title NextLevelBERT: Masked Language Modeling with Higher-Level Representations for Long Documents
topic Computation and Language
url https://arxiv.org/abs/2402.17682