# Compositional and Lexical Semantics in RoBERTa, BERT and DistilBERT: A Case Study on CoQA

Source: [Compositional and Lexical Semantics in RoBERTa, BERT and DistilBERT: A Case Study on CoQA](<https://www.sota2.com/research/paper/68fa68501e209131cea1b5b4>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-25T22:34:00.401Z

Authors: Ieva Stali\\=unait\\.e, Ignacio Iacobacci

Published: 2020-09-17T13:00:13.000Z

## Abstract

Many NLP tasks have benefited from transferring knowledge from contextualized word embeddings, however the picture of what type of knowledge is transferred is incomplete. This paper studies the types of linguistic phenomena accounted for by language models in the context of a Conversational Question Answering (CoQA) task. We identify the problematic areas for the finetuned RoBERTa, BERT and DistilBERT models through systematic error analysis - basic arithmetic (counting phrases), compositional semantics (negation and Semantic Role Labeling), and lexical semantics (surprisal and antonymy). When enhanced with the relevant linguistic knowledge through multitask learning, the models improve in performance. Ensembles of the enhanced models yield a boost between 2.2 and 2.7 points in F1 score overall, and up to 42.1 points in F1 on the hardest question classes. The results show differences in ability to represent compositional and lexical information between RoBERTa, BERT and DistilBERT.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2009.08257>)

[PDF](<https://arxiv.org/pdf/2009.08257.pdf>)
