Show simple item record

dc.contributor.authorKantamneni, Subhash
dc.contributor.authorLiu, Ziming
dc.contributor.authorTegmark, Max
dc.date.accessioned2024-11-27T17:40:36Z
dc.date.available2024-11-27T17:40:36Z
dc.date.issued2024-11-19
dc.identifier.urihttps://hdl.handle.net/1721.1/157692
dc.description.abstractow 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), 𝑥¨+2𝛾𝑥˙+𝜔20𝑥=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 𝑦=𝑤𝑥 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.en_US
dc.publisherMultidisciplinary Digital Publishing Instituteen_US
dc.relation.isversionof10.3390/e26110997en_US
dc.rightsCreative Commons Attributionen_US
dc.rights.urihttps://creativecommons.org/licenses/by/4.0/en_US
dc.sourceMultidisciplinary Digital Publishing Instituteen_US
dc.titleHow Do Transformers Model Physics? Investigating the Simple Harmonic Oscillatoren_US
dc.typeArticleen_US
dc.identifier.citationKantamneni, S.; Liu, Z.; Tegmark, M. How Do Transformers Model Physics? Investigating the Simple Harmonic Oscillator. Entropy 2024, 26, 997.en_US
dc.contributor.departmentMassachusetts Institute of Technology. Department of Physicsen_US
dc.relation.journalEntropyen_US
dc.identifier.mitlicensePUBLISHER_CC
dc.eprint.versionFinal published versionen_US
dc.type.urihttp://purl.org/eprint/type/JournalArticleen_US
eprint.statushttp://purl.org/eprint/status/PeerRevieweden_US
dc.date.updated2024-11-26T17:43:08Z
dspace.date.submission2024-11-26T17:43:08Z
mit.journal.volume26en_US
mit.journal.issue11en_US
mit.licensePUBLISHER_CC
mit.metadata.statusAuthority Work and Publication Information Neededen_US


Files in this item

Thumbnail

This item appears in the following Collection(s)

Show simple item record