Syntactic Perturbations Reveal Representational Correlates of Hierarchical Phrase Structure in Pretrained Language Models
Matteo Alleman Jonathan Mamou Miguel A Del Rio Affiliation: Columbia University Intel Labs Affiliation: MIT-IBM Watson AI Massachusetts Institute of Technology Hanlin Tang Yoon Kim SueYeon Chung Affiliation: Columbia University Intel Labs Affiliation: MIT-IBM Watson AI Massachusetts Institute of Technology Affiliation: MIT-IBM Watson AI Massachusetts Institute of Technology
Abstract
While vector-based language representations from pretrained language models have set a new standard for many NLP tasks, there is not yet a complete accounting of their inner workings. In particular, it is not entirely clear what aspects of sentence-level syntax are captured by these representations, nor how (if at all) they are built along the stacked layers of the network. In this paper, we aim to address such questions with a general class of interventional, input perturbation-based analyses of representations from pretrained language models. Importing from computational and cognitive neuroscience the notion of representational invariance, we perform a series of probes designed to test the sensitivity of these representations to several kinds of structure in sentences. Each probe involves swapping words in a sentence and comparing the representations from perturbed sentences against the original. We experiment with three different perturbations: (1) random permutations of $n$ -grams of varying width, to test the scale at which a representation is sensitive to word position; (2) swapping of two spans which do or do not form a syntactic phrase, to test sensitivity to global phrase
原文 arXiv:2104.07578;中英对照 + 大白话阅读 https://aha.fim.ai/paper/2104.07578v1