Investigating semantic subspaces of Transformer sentence embeddings through linear structural probing

Dmitry Nikolaev, Sebastian Padó
10/18/2023
cs.CL

No confident code implementation found for this paper.

Abstract

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.

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. Any repos shown below are weak matches — 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{nikolaev2023investigating,
  title  = {Investigating semantic subspaces of Transformer sentence embeddings through linear structural probing},
  author = {Dmitry Nikolaev and Sebastian Padó},
  year   = {2023},
  eprint = {2310.11923},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.11923v1}
}

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

Discussion