On the Dimensionality of Sentence Embeddings

Hongwei Wang, Hongming Zhang, Dong Yu
10/23/2023
cs.CL

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

Learning sentence embeddings is a fundamental problem in natural language processing. While existing research primarily focuses on enhancing the quality of sentence embeddings, the exploration of sentence embedding dimensions is limited. Here we present a comprehensive and empirical analysis of the dimensionality of sentence embeddings. First, we demonstrate that the optimal dimension of sentence embeddings is usually smaller than the default value. Subsequently, to compress the dimension of sentence embeddings with minimum performance degradation, we identify two components contributing to the overall performance loss: the encoder's performance loss and the pooler's performance loss. Therefore, we propose a two-step training method for sentence representation learning models, wherein the encoder and the pooler are optimized separately to mitigate the overall performance loss in low-dimension scenarios. Experimental results on seven STS tasks and seven sentence classification tasks demonstrate that our method significantly improves the performance of low-dimensional sentence embeddings.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2023dimensionality,
  title  = {On the Dimensionality of Sentence Embeddings},
  author = {Hongwei Wang and Hongming Zhang and Dong Yu},
  year   = {2023},
  eprint = {2310.15285},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.15285v1}
}

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/2310.15285.svg)](https://codeofpaper.com/paper/2310.15285)

Discussion