Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Sentence-T5: Scalable Sentence Encoders from Pre-trained Text-to-Text Models

About

We provide the first exploration of sentence embeddings from text-to-text transformers (T5). Sentence embeddings are broadly useful for language processing tasks. While T5 achieves impressive performance on language tasks cast as sequence-to-sequence mapping problems, it is unclear how to produce sentence embeddings from encoder-decoder models. We investigate three methods for extracting T5 sentence embeddings: two utilize only the T5 encoder and one uses the full T5 encoder-decoder model. To support our investigation, we establish a new sentence representation transfer benchmark, SentGLUE, which extends the SentEval toolkit to nine tasks from the GLUE benchmark. Our encoder-only models outperforms Sentence-BERT and SimCSE sentence embeddings on both SentEval and SentGLUE transfer tasks, including semantic textual similarity (STS). Scaling up T5 from millions to billions of parameters is found to produce consistent further improvements. Finally, our encoder-decoder method achieves a new state-of-the-art on STS when using sentence embeddings. Our models are released at https://tfhub.dev/google/collections/sentence-t5/1.

Jianmo Ni, Gustavo Hern\'andez \'Abrego, Noah Constant, Ji Ma, Keith B. Hall, Daniel Cer, Yinfei Yang• 2021

Related benchmarks

TaskDatasetResultRank
Semantic Textual SimilaritySTS tasks (STS12, STS13, STS14, STS15, STS16, STS-B, SICK-R) various (test)
STS12 Score80.1
393
Sentence Classification Transfer TasksSentEval transfer tasks
Average Accuracy0.9163
99
Semantic Textual SimilarityEnglish STS
Average Score58.02
68
Semantic Textual SimilaritySTS (Semantic Textual Similarity) 2012-2016 (test)
STS-12 Score34.97
57
Sentence Embedding EvaluationMTEB (test)
Re-Rank Score56.4
48
Information RetrievalNQ320k
Hits@124.3
32
Document RetrievalNQ 100K
Hits@124.1
23
Transfer LearningSentEval Transfer tasks (test)
MR90.83
23
Document RetrievalNQ10K
Hits@122.1
23
Semantic Textual Similarity (STS)MTEB English 2023 (test)
BIO80.43
19
Showing 10 of 17 rows

Other info

Follow for update