Saved in:
Bibliographic Details
Main Authors: Hanna, Michael, Mueller, Aaron
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2412.05353
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916512589152256
author Hanna, Michael
Mueller, Aaron
author_facet Hanna, Michael
Mueller, Aaron
contents Autoregressive transformer language models (LMs) possess strong syntactic abilities, often successfully handling phenomena from agreement to NPI licensing. However, the features they use to incrementally process language inputs are not well understood. In this paper, we fill this gap by studying the mechanisms underlying garden path sentence processing in LMs. We ask: (1) Do LMs use syntactic features or shallow heuristics to perform incremental sentence processing? (2) Do LMs represent only one potential interpretation, or multiple? and (3) Do LMs reanalyze or repair their initial incorrect representations? To address these questions, we use sparse autoencoders to identify interpretable features that determine which continuation - and thus which reading - of a garden path sentence the LM prefers. We find that while many important features relate to syntactic structure, some reflect syntactically irrelevant heuristics. Moreover, while most active features correspond to one reading of the sentence, some features correspond to the other, suggesting that LMs assign weight to both possibilities simultaneously. Finally, LMs do not re-use features from garden path sentence processing to answer follow-up questions.
format Preprint
id arxiv_https___arxiv_org_abs_2412_05353
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Incremental Sentence Processing Mechanisms in Autoregressive Transformer Language Models
Hanna, Michael
Mueller, Aaron
Computation and Language
Autoregressive transformer language models (LMs) possess strong syntactic abilities, often successfully handling phenomena from agreement to NPI licensing. However, the features they use to incrementally process language inputs are not well understood. In this paper, we fill this gap by studying the mechanisms underlying garden path sentence processing in LMs. We ask: (1) Do LMs use syntactic features or shallow heuristics to perform incremental sentence processing? (2) Do LMs represent only one potential interpretation, or multiple? and (3) Do LMs reanalyze or repair their initial incorrect representations? To address these questions, we use sparse autoencoders to identify interpretable features that determine which continuation - and thus which reading - of a garden path sentence the LM prefers. We find that while many important features relate to syntactic structure, some reflect syntactically irrelevant heuristics. Moreover, while most active features correspond to one reading of the sentence, some features correspond to the other, suggesting that LMs assign weight to both possibilities simultaneously. Finally, LMs do not re-use features from garden path sentence processing to answer follow-up questions.
title Incremental Sentence Processing Mechanisms in Autoregressive Transformer Language Models
topic Computation and Language
url https://arxiv.org/abs/2412.05353