Birth of a Transformer: A Memory Viewpoint

被引:0
|
作者
Bietti, Alberto [1 ,2 ]
Cabannes, Vivien [2 ]
Bouchacourt, Diane [2 ]
Jegou, Herve [2 ]
Bottou, Leon [2 ]
机构
[1] Flatiron Inst, New York, NY 10010 USA
[2] Meta, FAIR, Menlo Pk, CA USA
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Large language models based on transformers have achieved great empirical successes. However, as they are deployed more widely, there is a growing need to better understand their internal mechanisms in order to make them more reliable. These models appear to store vast amounts of knowledge from their training data, and to adapt quickly to new information provided in their context or prompt. We study how transformers balance these two types of knowledge by considering a synthetic setup where tokens are generated from either global or context-specific bigram distributions. By a careful empirical analysis of the training process on a simplified two-layer transformer, we illustrate the fast learning of global bigrams and the slower development of an "induction head" mechanism for the in-context bigrams. We highlight the role of weight matrices as associative memories, provide theoretical insights on how gradients enable their learning during training, and study the role of data-distributional properties.
引用
收藏
页数:29
相关论文
共 50 条
  • [21] Pre-birth memory
    Lim, Ai Ing
    Harrison, Oliver J.
    Belkaid, Yasmine
    NATURE IMMUNOLOGY, 2019, 20 (03) : 254 - 256
  • [22] Pre-birth memory
    Ai Ing Lim
    Oliver J. Harrison
    Yasmine Belkaid
    Nature Immunology, 2019, 20 : 254 - 256
  • [23] THE ACUTE EFFECTS OF ALCOHOL ON VIEWPOINT DEPENDENCE IN SPATIAL MEMORY AND CONTEXTUAL FEAR MEMORY
    Bisby, J. A.
    King, J. A.
    Brewin, C. R.
    Burgess, N.
    Curran, H., V
    JOURNAL OF PSYCHOPHARMACOLOGY, 2011, 25 (08) : A36 - A36
  • [24] THE MEMORY CARD - THE VIEWPOINT OF A LARGE USER - POSTAL CHECKS
    VEXIAU, T
    ONDE ELECTRIQUE, 1984, 64 (01): : 34 - 37
  • [25] Individualism and the field viewpoint: Cultural influences on memory perspective
    Martin, Maryanne
    Jones, Gregory V.
    CONSCIOUSNESS AND COGNITION, 2012, 21 (03) : 1498 - 1503
  • [26] THE EPISODIC MEMORY MODEL OF CONCEPTUAL DEVELOPMENT - AN INTEGRATIVE VIEWPOINT
    RICHARDS, DD
    GOLDFARB, J
    COGNITIVE DEVELOPMENT, 1986, 1 (03) : 183 - 219
  • [27] The Effects of the Gesture Viewpoint on the Students' Memory of Words and Stories
    Merola, Giorgio
    GESTURE-BASED HUMAN-COMPUTER INTERACTION AND SIMULATION, 2009, 5085 : 272 - 281
  • [28] PSYCHIATRY OF DEFECTIVE MEMORY FROM VIEWPOINT OF INFORMATIVE PSYCHOLOGY
    PETERS, UH
    KYBERNETIK, 1968, 4 (03): : 97 - &
  • [29] Perception and memory across viewpoint changes in moving images
    Hirose, Yoriko
    Kennedy, Alan
    Tatler, Benjamin W.
    JOURNAL OF VISION, 2010, 10 (04): : 1 - 19
  • [30] Full-Memory Transformer for Image Captioning
    Lu, Tongwei
    Wang, Jiarong
    Min, Fen
    SYMMETRY-BASEL, 2023, 15 (01):