English

Regularized Contrastive Learning of Semantic Search

Machine Learning 2022-09-28 v1

Abstract

Semantic search is an important task which objective is to find the relevant index from a database for query. It requires a retrieval model that can properly learn the semantics of sentences. Transformer-based models are widely used as retrieval models due to their excellent ability to learn semantic representations. in the meantime, many regularization methods suitable for them have also been proposed. In this paper, we propose a new regularization method: Regularized Contrastive Learning, which can help transformer-based models to learn a better representation of sentences. It firstly augments several different semantic representations for every sentence, then take them into the contrastive objective as regulators. These contrastive regulators can overcome overfitting issues and alleviate the anisotropic problem. We firstly evaluate our approach on 7 semantic search benchmarks with the outperforming pre-trained model SRoBERTA. The results show that our method is more effective for learning a superior sentence representation. Then we evaluate our approach on 2 challenging FAQ datasets, Cough and Faqir, which have long query and index. The results of our experiments demonstrate that our method outperforms baseline methods.

Keywords

Cite

@article{arxiv.2209.13241,
  title  = {Regularized Contrastive Learning of Semantic Search},
  author = {Mingxi Tan and Alexis Rolland and Andong Tian},
  journal= {arXiv preprint arXiv:2209.13241},
  year   = {2022}
}

Comments

13 pages, 3 figures, paper accepted by NLPCC 2022

R2 v1 2026-06-28T02:10:45.907Z