Transformer-based language models have shown an excellent ability to effectively capture and utilize contextual information. Although various analysis techniques have been used to quantify and trace the contribution of single contextual cues to a target task such as subject-verb agreement or coreference resolution, scenarios in which multiple relevant cues are available in the context remain underexplored. In this paper, we investigate how language models handle gender agreement when multiple gender cue words are present, each capable of independently disambiguating a target gender pronoun. We analyze two widely used Transformer-based models: BERT, an encoder-based, and GPT-2, a decoder-based model. Our analysis employs two complementary approaches: context mixing analysis, which tracks information flow within the model, and a variant of activation patching, which measures the impact of cues on the model's prediction. We find that BERT tends to prioritize the first cue in the context to form both the target word representations and the model's prediction, while GPT-2 relies more on the final cue. Our findings reveal striking differences in how encoder-based and decoder-based models prioritize and use contextual information for their predictions.
Grammatical cues to subjecthood are redundant in a majority of simple clauses across languages
The University of Texas at Austin(德克萨斯大学奥斯汀分校);Vanderbilt University(范德堡大学);Massachusetts Institute of Technology(麻省理工学院);University of California, Irvine(加州大学欧文分校)
Voice, Bias, and Coreference: An Interpretability Study of Gender in Speech Translation
Fondazione Bruno Kessler(布鲁诺·科塞拉基金会);University of Trento(特伦托大学);Laboratoire de Linguistique Formelle, Université Paris Cité, CNRS(巴黎城市大学语言学实验室,法国国家科学研究中心)
Prompting Fairness: Integrating Causality to Debias Large Language Models
Google DeepMind(谷歌DeepMind);Carnegie Mellon University(卡内基梅隆大学);University of Maryland, College Park(马里兰大学帕克分校);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);University of Texas at Austin(德克萨斯大学奥斯汀分校);University of California, Santa Cruz(加州大学圣克鲁兹分校)