Investigating semantic subspaces of Transformer sentence embeddings through linear structural probing
The question of what kinds of linguistic information are encoded in different layers of Transformer-based language models is of considerable interest for the NLP community. Existing work, however, has overwhelmingly focused on word-level representations and encoder-only language models with the masked-token training objective. In this paper, we present experiments with semantic structural probing, a method for studying sentence-level representations via finding a subspace of the embedding space that provides suitable task-specific pairwise distances between data-points. We apply our method to language models from different families (encoder-only, decoder-only, encoder-decoder) and of different sizes in the context of two tasks, semantic textual similarity and natural-language inference. We find that model families differ substantially in their performance and layer dynamics, but that the results are largely model-size invariant.
Code (1)
Tasks
DecoderNatural Language InferenceSemantic Textual SimilaritySentenceSentence EmbeddingsSimilar Papers 제목 키워드 기반
Static Word Embeddings for Sentence Semantic Representation
We propose new static word embeddings optimised for sentence semantic representation. We first extract word embeddings from a pre-trained Sentence Transformer, and improve them with sentence-level principal component ana…
Contrastive LearningKnowledge DistillationSentenceWord EmbeddingsEfficient Sentence Embedding via Semantic Subspace Analysis
A novel sentence embedding method built upon semantic subspace analysis, called semantic subspace sentence embedding (S3E), is proposed in this work. Given the fact that word embeddings can capture semantic relationship …
SentenceSentence EmbeddingSentence-EmbeddingWord EmbeddingsRevisiting Language Encoding in Learning Multilingual Representations
Transformer has demonstrated its great power to learn contextual word representations for multiple languages in a single model. To process multilingual sentences in the model, a learnable vector is usually assigned to ea…
SentenceWord EmbeddingsTransformer over Pre-trained Transformer for Neural Text Segmentation with Enhanced Topic Coherence
This paper proposes a transformer over transformer framework, called Transformer$^2$, to perform neural text segmentation. It consists of two components: bottom-level sentence encoders using pre-trained transformers, and…
SegmentationSentenceSentence EmbeddingsText SegmentationA Bilingual Generative Transformer for Semantic Sentence Embedding
Semantic sentence embedding models encode natural language sentences into vectors, such that closeness in embedding space indicates closeness in the semantics between the sentences. Bilingual data offers a useful signal …
Semantic SimilaritySemantic Textual SimilaritySentenceSentence Embedding+2