paper-with-me

Papers

Grammatical information in BERT sentence embeddings as two-dimensional arrays

2023-12-15 · Vivi Nastase, Paola Merlo

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.

📄 PDF Abstract BibTeX arXiv:2312.09890

Code (1)

clcl-geneva/blm-snfdisentangling 공식 구현 pytorch

Tasks

Few-Shot LearningSentenceSentence Embeddings

Similar Papers 제목 키워드 기반

Deep Subjecthood: Higher-Order Grammatical Features in Multilingual BERT

2021-01-26 · EACL 2021 2 · Isabel Papadimitriou, Ethan A. Chi, Richard Futrell, Kyle Mahowald

We investigate how Multilingual BERT (mBERT) encodes grammar by examining how the high-order grammatical feature of morphosyntactic alignment (how different languages define what counts as a "subject") is manifested acro…

Sentence

Disambiguating Grammatical Number and Gender With BERT

2021-09-01 · RANLP 2021 9 · Annegret Janzso

Accurately dealing with any type of ambiguity is a major task in Natural Language Processing, with great advances recently reached due to the development of context dependent language models and the use of word or senten…

SentenceSentence Embeddings

Chinese Grammatical Error Diagnosis Based on RoBERTa-BiLSTM-CRF Model

2020-12-01 · AACL (NLP-TEA) 2020 12 · Yingjie Han, Yingjie Yan, Yangchao Han, Rui Chao 외

Chinese Grammatical Error Diagnosis (CGED) is a natural language processing task for the NLPTEA6 workshop. The goal of this task is to automatically diagnose grammatical errors in Chinese sentences written by L2 learners…

A Paragraph-level Multi-task Learning Model for Scientific Fact-Verification

2020-12-28 · Xiangci Li, Gully Burns, Nanyun Peng

Even for domain experts, it is a non-trivial task to verify a scientific claim by providing supporting or refuting evidence rationales. The situation worsens as misinformation is proliferated on social media or news webs…

Fact VerificationMisinformationMulti-Task LearningSentence+1

When classifying grammatical role, BERT doesn't care about word order... except when it matters

2021-11-16 · ACL ARR November 2021 11 · Anonymous

Because meaning can often be inferred from lexical semantics alone, word order is often a redundant cue in natural language. For example, the words cut, chef, and onion are more likely used to convey "The chef cut the on…