What Does BERT Learn about the Structure of Language?

Ganesh Jawahar, Benoît Sagot, Djamé Seddah

2019 · 1.2K citations · 25 references

DOIFull text

Open access

Concepts

TL;DR

BERT is a recent language representation model that has performed well across diverse benchmarks, suggesting it captures structural information about language. The study aims to provide novel support for this claim by unpacking the elements of English language structure learned by BERT. The authors conduct a series of experiments to analyze BERT’s layers and representations of English structure. BERT’s lower layers encode phrase‑level information, intermediate layers build a hierarchy from surface to syntactic to semantic features, deeper layers are required for subject‑verb agreement over long distances, and its compositional scheme mimics classical tree‑like structures.

Abstract

BERT is a recent language representation model that has surprisingly performed well in diverse language understanding benchmarks. This result indicates the possibility that BERT networks capture structural information about language. In this work, we provide novel support for this claim by performing a series of experiments to unpack the elements of English language structure learned by BERT. Our findings are fourfold. BERT’s phrasal representation captures the phrase-level information in the lower layers. The intermediate layers of BERT compose a rich hierarchy of linguistic information, starting with surface features at the bottom, syntactic features in the middle followed by semantic features at the top. BERT requires deeper layers while tracking subject-verb agreement to handle long-term dependency problem. Finally, the compositional scheme underlying BERT mimics classical, tree-like structures.

References

25