The Language Model Understood the Prompt was Ambiguous: Probing Syntactic Uncertainty Through Generation

Laura Aina, Tal Linzen


Abstract
Temporary syntactic ambiguities arise when the beginning of a sentence is compatible with multiple syntactic analyses. We inspect to which extent neural language models (LMs) exhibit uncertainty over such analyses when processing temporarily ambiguous inputs, and how that uncertainty is modulated by disambiguating cues. We probe the LM’s expectations by generating from it: we use stochastic decoding to derive a set of sentence completions, and estimate the probability that the LM assigns to each interpretation based on the distribution of parses across completions. Unlike scoring-based methods for targeted syntactic evaluation, this technique makes it possible to explore completions that are not hypothesized in advance by the researcher. We apply this method to study the behavior of two LMs (GPT2 and an LSTM) on three types of temporary ambiguity, using materials from human sentence processing experiments. We find that LMs can track multiple analyses simultaneously; the degree of uncertainty varies across constructions and contexts. As a response to disambiguating cues, the LMs often select the correct interpretation, but occasional errors point to potential areas of improvement
Anthology ID:
2021.blackboxnlp-1.4
Volume:
Proceedings of the Fourth BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP
Month:
November
Year:
2021
Address:
Punta Cana, Dominican Republic
Editors:
Jasmijn Bastings, Yonatan Belinkov, Emmanuel Dupoux, Mario Giulianelli, Dieuwke Hupkes, Yuval Pinter, Hassan Sajjad
Venue:
BlackboxNLP
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
42–57
Language:
URL:
https://aclanthology.org/2021.blackboxnlp-1.4
DOI:
10.18653/v1/2021.blackboxnlp-1.4
Bibkey:
Cite (ACL):
Laura Aina and Tal Linzen. 2021. The Language Model Understood the Prompt was Ambiguous: Probing Syntactic Uncertainty Through Generation. In Proceedings of the Fourth BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP, pages 42–57, Punta Cana, Dominican Republic. Association for Computational Linguistics.
Cite (Informal):
The Language Model Understood the Prompt was Ambiguous: Probing Syntactic Uncertainty Through Generation (Aina & Linzen, BlackboxNLP 2021)
Copy Citation:
PDF:
https://preview.aclanthology.org/improve-issue-templates/2021.blackboxnlp-1.4.pdf
Video:
 https://preview.aclanthology.org/improve-issue-templates/2021.blackboxnlp-1.4.mp4