about
Visualizing and Measuring the Geometry of Bert (arxiv.org)
1 point by catacombs on Jul 10, 2019 | hide | past | pdf | discuss on HN

In plain words: They mapped how BERT stores language information inside its word representations and the links it draws between words, then measured the shapes those signals form. Meaning and grammar live in separate regions of that space, with word senses arranged in a fine-grained geometric pattern.

Abstract · Visualizing and Measuring the Geometry of BERT

Transformer architectures show significant promise for natural language processing. Given that a single pretrained model can be fine-tuned to perform well on many different tasks, these networks appear to extract generally useful linguistic features. A natural question is how such networks represent this information internally. This paper describes qualitative and quantitative investigations of one particularly effective model, BERT. At a high level, linguistic features seem to be represented in separate semantic and syntactic subspaces. We find evidence of a fine-grained geometric representation of word senses. We also present empirical descriptions of syntactic representations in both attention matrices and individual word embeddings, as well as a mathematical argument to explain the geometry of these representations.

Andy Coenen, Emily Reif, Ann Yuan, Been Kim, Adam Pearce, Fernanda Viégas, Martin Wattenberg
arXiv:1906.02715 · cs.LG, cs.CL, stat.ML · submitted Jun 6, 2019 · updated Oct 28, 2019
abstract · pdf · html · 8 pages, 5 figures

add comment on HN