Investigating Semantic Subspaces of Transformer Sentence Embeddings through Linear Structural Probing

Dmitry Nikolaev, Sebastian Padó

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

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.
Original languageEnglish
Title of host publicationProceedings of the 6th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP
EditorsYonatan Belinkov, Sophie Hao, Jaap Jumelet, Najoung Kim, Arya McCarthy, Hosein Mohebbi
PublisherAssociation for Computational Linguistics
Pages142–154
DOIs
Publication statusPublished - Dec 2023
Externally publishedYes
Event6th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP - , Singapore
Duration: 7 Dec 2023 → …

Conference

Conference6th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP
Country/TerritorySingapore
Period7/12/23 → …

Fingerprint

Dive into the research topics of 'Investigating Semantic Subspaces of Transformer Sentence Embeddings through Linear Structural Probing'. Together they form a unique fingerprint.

Cite this