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 条
  • [31] Physics students' answer on simple harmonic motion
    Nugraha, Dewanta Arya
    Cari, C.
    Suparmi, A.
    Sunarno, Widha
    9TH INTERNATIONAL CONFERENCE ON PHYSICS AND ITS APPLICATIONS (ICOPIA), 2019, 1153
  • [32] Investigating student understanding of simple harmonic motion
    Somroob, S.
    Wattanakasiwich, P.
    SIAM PHYSICS CONGRESS 2017 (SPC2017), 2017, 901
  • [33] HOW TO DO PHYSICS BY NUMBERS
    MADDOX, J
    NATURE, 1983, 303 (5915) : 279 - 279
  • [34] A Simple Method for Compensating the Harmonic Distortion Introduced by Voltage Transformers
    Faifer, Marco
    Laurano, Christian
    Ottoboni, Roberto
    Toscani, Sergio
    Zanoni, Michele
    2018 IEEE 9TH INTERNATIONAL WORKSHOP ON APPLIED MEASUREMENTS FOR POWER SYSTEMS (AMPS), 2018, : 183 - 188
  • [35] The 'Miracle' of Applicability? The Curious Case of the Simple Harmonic Oscillator
    Bangu, Sorin
    Moir, Robert H. C.
    FOUNDATIONS OF PHYSICS, 2018, 48 (05) : 507 - 525
  • [36] STRUCTURE OF XP MATRICES IN SIMPLE HARMONIC OSCILLATOR REPRESENTATION
    KILPATRI.JE
    SASS, RL
    JOURNAL OF CHEMICAL PHYSICS, 1965, 42 (07): : 2581 - &
  • [37] ANALOG COMPUTATION FOR QUANTIZED SIMPLE HARMONIC-OSCILLATOR
    OHLINE, RW
    JOURNAL OF CHEMICAL EDUCATION, 1974, 51 (02) : 144 - 144
  • [38] The ‘Miracle’ of Applicability? The Curious Case of the Simple Harmonic Oscillator
    Sorin Bangu
    Robert H. C. Moir
    Foundations of Physics, 2018, 48 : 507 - 525
  • [39] Dissipation-induced transition of a simple harmonic oscillator
    Shao, Zong-Qian
    Li, Yu-Qi
    Pan, Xiao-Yin
    JOURNAL OF CHEMICAL PHYSICS, 2014, 141 (22):
  • [40] Excitation and depression of coherent state of the simple harmonic oscillator
    Dehghani, A.
    Mojaveri, B.
    Alenabi, A. A.
    JOURNAL OF MATHEMATICAL PHYSICS, 2019, 60 (08)