Are ELECTRA's Sentence Embeddings Beyond Repair? The Case of Semantic Textual Similarity

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Rep, Ivan, Dukić, David, Šnajder, Jan
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910631603470336
author Rep, Ivan
Dukić, David
Šnajder, Jan
author_facet Rep, Ivan
Dukić, David
Šnajder, Jan
contents While BERT produces high-quality sentence embeddings, its pre-training computational cost is a significant drawback. In contrast, ELECTRA provides a cost-effective pre-training objective and downstream task performance improvements, but worse sentence embeddings. The community tacitly stopped utilizing ELECTRA's sentence embeddings for semantic textual similarity (STS). We notice a significant drop in performance for the ELECTRA discriminator's last layer in comparison to prior layers. We explore this drop and propose a way to repair the embeddings using a novel truncated model fine-tuning (TMFT) method. TMFT improves the Spearman correlation coefficient by over $8$ points while increasing parameter efficiency on the STS Benchmark. We extend our analysis to various model sizes, languages, and two other tasks. Further, we discover the surprising efficacy of ELECTRA's generator model, which performs on par with BERT, using significantly fewer parameters and a substantially smaller embedding size. Finally, we observe boosts by combining TMFT with word similarity or domain adaptive pre-training.
format Preprint
id arxiv_https___arxiv_org_abs_2402_13130
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Are ELECTRA's Sentence Embeddings Beyond Repair? The Case of Semantic Textual Similarity
Rep, Ivan
Dukić, David
Šnajder, Jan
Computation and Language
While BERT produces high-quality sentence embeddings, its pre-training computational cost is a significant drawback. In contrast, ELECTRA provides a cost-effective pre-training objective and downstream task performance improvements, but worse sentence embeddings. The community tacitly stopped utilizing ELECTRA's sentence embeddings for semantic textual similarity (STS). We notice a significant drop in performance for the ELECTRA discriminator's last layer in comparison to prior layers. We explore this drop and propose a way to repair the embeddings using a novel truncated model fine-tuning (TMFT) method. TMFT improves the Spearman correlation coefficient by over $8$ points while increasing parameter efficiency on the STS Benchmark. We extend our analysis to various model sizes, languages, and two other tasks. Further, we discover the surprising efficacy of ELECTRA's generator model, which performs on par with BERT, using significantly fewer parameters and a substantially smaller embedding size. Finally, we observe boosts by combining TMFT with word similarity or domain adaptive pre-training.
title Are ELECTRA's Sentence Embeddings Beyond Repair? The Case of Semantic Textual Similarity
topic Computation and Language
url https://arxiv.org/abs/2402.13130