Grammatical information in BERT sentence embeddings as two-dimensional arrays
Not on the map. Why?
Abstract (arXiv)
Sentence embeddings induced with various transformer architectures encode much semantic and syntactic information in a distributed manner in a one-dimensional array. We investigate whether specific grammatical information can be accessed in these distributed representations. Using data from a task developed to test rule-like generalizations, our experiments on detecting subject-verb agreement yield several promising results. First, we show that while the usual sentence representations encoded as one-dimensional arrays do not easily support extraction of rule-like regularities, a two-dimensional reshaping of these vectors allows various learning architectures to access such information. Next, we show that various architectures can detect patterns in these two-dimensional reshaped sentence embeddings and successfully learn a model based on smaller amounts of simpler training data, which performs well on more complex test data. This indicates that current sentence embeddings contain information that is regularly distributed, and which can be captured when the embeddings are reshaped into higher dimensional arrays. Our results cast light on representations produced by language models and help move towards developing few-shot learning approaches.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 25 of its 38 references that are in the map. First posted on arXiv 15 Dec 2023.
Builds on
25 of 38 references.
References · 25
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,474
- 2018Deep contextualized word representationscited by 2,290
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
- 2016Enriching Word Vectors with Subword Informationcited by 1,583
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
- 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 938
- 2015Variational Dropout and the Local Reparameterization Trickcited by 490
- 2018What you can cram into a single vector: Probing sentence embeddings for linguistic propertiescited by 457
- 2016Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependenciescited by 354
13 more
- 2019RAVEN: A Dataset for Relational and Analogical Visual rEasoNingcited by 226
- 2018Colorless green recurrent networks dream hierarchicallycited by 213
- 2019Assessing BERT's Syntactic Abilitiescited by 192
- 2020Syntactic Structure from Deep Learningcited by 99
- 2018Under the Hood: Using Diagnostic Classifiers to Investigate and Improve how Language Models Track Agreement Informationcited by 97
- 2022ChatGPT: The End of Online Exam Integrity?cited by 88
- 2022Probing for the Usage of Grammatical Numbercited by 59
- 2020Mechanisms for Handling Nested Dependencies in Neural-Network Language Models and Humanscited by 42
- 2018Revisiting the poverty of the stimulus: hierarchical generalization without a hierarchical bias in recurrent neural networkscited by 33
- 2020Investigating Novel Verb Learning in BERT: Selectional Preference Classes and Alternation-Based Syntactic Generalizationcited by 16
- 2018Distinct patterns of syntactic agreement errors in recurrent networks and humanscited by 13
- 2023Representation biases in sentence transformerscited by 7
- 2022Blackbird's language matrices (BLMs): a new benchmark to investigate disentangled generalisation in neural networkscited by 4
Built on by
Citing papers per year: 2024: 3; 2025: 0; 2026: 1.
4 papers.
- 2024Tracking linguistic information in transformer-based sentence embeddings through targeted sparsificationcited by 6
- 2024Exploring syntactic information in sentence embeddings through multilingual subject-verb agreementcited by 6
- 2024Exploring Italian sentence embeddings properties through multi-taskingcited by 6
- 2026RAGe: A Retrieval-Augmented Generation Evaluation Frameworkcited by 0
- 2026RAGe: A Retrieval-Augmented Generation Evaluation Framework23 May 2026
- 2024Exploring Italian sentence embeddings properties through multi-tasking10 Sep 2024
- 2024Exploring syntactic information in sentence embeddings through multilingual subject-verb agreement10 Sep 2024
- 2024Tracking linguistic information in transformer-based sentence embeddings through targeted sparsification25 Jul 2024