Augmented SBERT: Data Augmentation Method for Improving Bi-Encoders for Pairwise Sentence Scoring Tasks

Nandan Thakur, Nils Reimers, Johannes Daxenberger, Iryna Gurevych
10/16/2020
cs.CL

Official code: huggingface/sentence-transformers (19,291 stars, Python, Apache-2.0, last commit 2026-10-20).

Abstract

There are two approaches for pairwise sentence scoring: Cross-encoders, which perform full-attention over the input pair, and Bi-encoders, which map each input independently to a dense vector space. While cross-encoders often achieve higher performance, they are too slow for many practical use cases.

Show full abstract

Bi-encoders, on the other hand, require substantial training data and fine-tuning over the target task to achieve competitive performance. We present a simple yet efficient data augmentation strategy called Augmented SBERT, where we use the cross-encoder to label a larger set of input pairs to augment the training data for the bi-encoder. We show that, in this process, selecting the sentence pairs is non-trivial and crucial for the success of the method. We evaluate our approach on multiple tasks (in-domain) as well as on a domain adaptation task. Augmented SBERT achieves an improvement of up to 6 points for in-domain and of up to 37 points for domain adaptation tasks compared to the original bi-encoder performance.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

State-of-the-Art Embeddings, Retrieval, and Reranking

19,2913,036Python, MakefileJul 24, 20191 months agoApache-2.0

Similar Papers

Cite this paper

@article{thakur2020augmented,
  title  = {Augmented SBERT: Data Augmentation Method for Improving Bi-Encoders for Pairwise Sentence Scoring Tasks},
  author = {Nandan Thakur and Nils Reimers and Johannes Daxenberger and Iryna Gurevych},
  year   = {2020},
  eprint = {2010.08240},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.08240}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.08240.svg)](https://codeofpaper.com/paper/2010.08240)

Discussion