Dissecting Recall of Factual Associations in Auto-Regressive Language Models

被引:0
|
作者
Geval, Mor [1 ]
Bastings, Jasmijn [1 ]
Filippoval, Katja [1 ]
Globerson, Amir [2 ,3 ]
机构
[1] Google DeepMind, London, England
[2] Tel Aviv Univ, Tel Aviv, Israel
[3] Google Res, Mountain View, CA USA
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Transformer-based language models (LMs) are known to capture factual knowledge in their parameters. While previous work looked into where factual associations are stored, only little is known about how they are retrieved internally during inference. We investigate this question through the lens of information flow. Given a subject-relation query, we study how the model aggregates information about the subject and relation to predict the correct attribute. With interventions on attention edges, we first identify two critical points where information propagates to the prediction: one from the relation positions followed by another from the subject positions. Next, by analyzing the information at these points, we unveil a three-step internal mechanism for attribute extraction. First, the representation at the last-subject position goes through an enrichment process, driven by the early MLP sublayers, to encode many subject-related attributes. Second, information from the relation propagates to the prediction. Third, the prediction representation "queries" the enriched subject to extract the attribute. Perhaps surprisingly, this extraction is typically done via attention heads, which often encode subject-attribute mappings in their parameters. Overall, our findings introduce a comprehensive view of how factual associations are stored and extracted internally in LMs, facilitating future research on knowledge localization and editing.1
引用
收藏
页码:12216 / 12235
页数:20
相关论文
共 50 条
  • [21] Locally adaptive spatial smoothing using conditional auto-regressive models
    Lee, Duncan
    Mitchell, Richard
    JOURNAL OF THE ROYAL STATISTICAL SOCIETY SERIES C-APPLIED STATISTICS, 2013, 62 (04) : 593 - 608
  • [22] Estimation of the order of an auto-regressive model
    Rao, NS
    Moharir, PS
    SADHANA-ACADEMY PROCEEDINGS IN ENGINEERING SCIENCES, 1995, 20 : 749 - 758
  • [23] Non-Parametric Sparse Additive Auto-Regressive Network Models
    Zhou, Hao Henry
    Raskutti, Garvesh
    IEEE TRANSACTIONS ON INFORMATION THEORY, 2019, 65 (03) : 1473 - 1492
  • [24] Penalized estimation of threshold auto-regressive models with many components and thresholds
    Zhang, Kunhui
    Safikhani, Abolfazl
    Tank, Alex
    Shojaie, Ali
    ELECTRONIC JOURNAL OF STATISTICS, 2022, 16 (01): : 1891 - 1951
  • [25] Correcting Multivariate Auto-Regressive Models for the Influence of Unobserved Common Input
    Gomez, Vicenc
    Gheshlaghi Azar, Mohammad
    Kappen, Hilbert J.
    ARTIFICIAL INTELLIGENCE RESEARCH AND DEVELOPMENT, 2016, 288 : 177 - 186
  • [26] Testing for high-dimensional network parameters in auto-regressive models
    Zheng, Lili
    Raskutti, Garvesh
    ELECTRONIC JOURNAL OF STATISTICS, 2019, 13 (02): : 4977 - 5043
  • [27] Auto-regressive extractive summarization with replacement
    Tianyu Zhu
    Wen Hua
    Jianfeng Qu
    Saeid Hosseini
    Xiaofang Zhou
    World Wide Web, 2023, 26 : 2003 - 2026
  • [28] AN ALGORITHM FOR THE ESTIMATION OF PARAMETERS OF ARMA (AUTO-REGRESSIVE MOVING AVERAGE) MODELS
    DONCARLI, C
    RAIRO-AUTOMATIQUE-SYSTEMS ANALYSIS AND CONTROL, 1982, 16 (01): : 39 - 48
  • [29] Bootstrapping the portmanteau tests in weak auto-regressive moving average models
    Zhu, Ke
    JOURNAL OF THE ROYAL STATISTICAL SOCIETY SERIES B-STATISTICAL METHODOLOGY, 2016, 78 (02) : 463 - 485
  • [30] Spatial auto-correlation and auto-regressive models estimation from sample survey data
    Benedetti, Roberto
    Suesse, Thomas
    Piersimoni, Federica
    BIOMETRICAL JOURNAL, 2020, 62 (06) : 1494 - 1507