How Do Transformers Model Physics? Investigating the Simple Harmonic Oscillator

被引:0
|
作者
Kantamneni, Subhash [1 ]
Liu, Ziming [1 ]
Tegmark, Max [1 ]
机构
[1] MIT, Inst Artificial Intelligence & Fundamental Interac, Cambridge, MA 02139 USA
关键词
mechanistic intepretability; AI for science; physics;
D O I
10.3390/e26110997
中图分类号
O4 [物理学];
学科分类号
0702 ;
摘要
How do transformers model physics? Do transformers model systems with interpretable analytical solutions or do they create an "alien physics" that is difficult for humans to decipher? We have taken a step towards demystifying this larger puzzle by investigating the simple harmonic oscillator (SHO), x<spacing diaeresis>+2 gamma x(center dot)+omega 02x=0, one of the most fundamental systems in physics. Our goal was to identify the methods transformers use to model the SHO, and to do so we hypothesized and evaluated possible methods by analyzing the encoding of these methods' intermediates. We developed four criteria for the use of a method within the simple test bed of linear regression, where our method was y=wx and our intermediate was w: (1) Can the intermediate be predicted from hidden states? (2) Is the intermediate's encoding quality correlated with the model performance? (3) Can the majority of variance in hidden states be explained by the intermediate? (4) Can we intervene on hidden states to produce predictable outcomes? Armed with these two correlational (1,2), weak causal (3), and strong causal (4) criteria, we determined that transformers use known numerical methods to model the trajectories of the simple harmonic oscillator, specifically, the matrix exponential method. Our analysis framework can conveniently extend to high-dimensional linear systems and nonlinear systems, which we hope will help reveal the "world model" hidden in transformers.
引用
收藏
页数:21
相关论文
共 50 条
  • [21] GAUGE-INVARIANCE FOR A SIMPLE-MODEL - CHARGED HARMONIC-OSCILLATOR
    WEN, CT
    KOBE, DH
    BULLETIN OF THE AMERICAN PHYSICAL SOCIETY, 1980, 25 (04): : 569 - 569
  • [22] A back-to-front derivation: the equal spacing of quantum levels is a proof of simple harmonic oscillator physics
    Andrews, David L.
    Romero, Luciana C. Davila
    EUROPEAN JOURNAL OF PHYSICS, 2009, 30 (06) : 1371 - 1380
  • [23] Simple harmonic oscillator with fractional electric potential
    Jaradat, A.
    Obeidat, A.
    Gharaibeh, M.
    Aledealat, K.
    Khasawinah, K.
    Qaseer, M.
    Rousan, A. A.
    REVISTA MEXICANA DE FISICA, 2017, 63 (01) : 1 - 5
  • [24] A completely algebraic solution of the simple harmonic oscillator
    Rushka, M.
    Freericks, J. K.
    AMERICAN JOURNAL OF PHYSICS, 2020, 88 (11) : 976 - 985
  • [25] Equity prices as a simple harmonic oscillator with noise
    Business School, Loughborough University, Leicestershire LE11 3TU, United Kingdom
    Phys A Stat Mech Appl, 2 (557-564):
  • [26] Analysis of the simple harmonic oscillator with fractional damping
    Mickens, RE
    Oyedeji, KO
    Rucker, SA
    JOURNAL OF SOUND AND VIBRATION, 2003, 268 (04) : 839 - 842
  • [27] CLASSICAL GREENS FUNCTIONS AND SIMPLE HARMONIC OSCILLATOR
    PATTERSO.JD
    AMERICAN JOURNAL OF PHYSICS, 1971, 39 (02) : 222 - &
  • [28] Equity prices as a simple harmonic oscillator with noise
    Ataullah, Ali
    Tippett, Mark
    PHYSICA A-STATISTICAL MECHANICS AND ITS APPLICATIONS, 2007, 382 (02) : 557 - 564
  • [29] A PT-symmetric simple harmonic oscillator
    Singh, Astha
    Jain, Sudhir R.
    PRAMANA-JOURNAL OF PHYSICS, 2019, 92 (04):
  • [30] COMMENT ON ENERGY QUANTIZATION AND SIMPLE HARMONIC OSCILLATOR
    INTEMANN, RL
    AMERICAN JOURNAL OF PHYSICS, 1973, 41 (05) : 717 - 718