Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Mini-Project 1 Proposal - Probing Localization with a Transformer
## Background
The Sine-Gordon equation with an added global coupling parameter is a differential equation that is known to host discrete breathers and chaotic phases. While the standard Sine-Gordon system is well studied our modified version is less explored and serves as a great testbed to investigate machine learning applications to science (particularly physics)!

[![Torsional pendulum chain modulational instability](https://img.youtube.com/vi/1-BOMA5wk78/hqdefault.jpg)](https://youtu.be/1-BOMA5wk78)

Previous work has focused on developing deep learning models to predict at which pendulum localization would occur. We found that our deep learning model predicted localization with higher accuracy than traditional physics approaches. Later, efforts were made to update our model to a traditional transformer architecture in order to do analysis on its attention. We found this new architecture slightly out performed our old model and that it did so by predominantly focusing on nearest neighbor interactions and characterisitics. This result is bizarre because it challenges the assumption that where localization occurs in our system is chaotic. After this machine learning based discovery additional physics analysis was done to try and make sense of the result. Quickly, a road block was hit in our ability to do the theory work and new tests need to be run with our transformer.

- We will investigate the Lyapunov exponent of the system be decreasing the percision of our data and tracking the change in performance.
- We will investigate if our transformer can correctly predict localization with only near-neighbors.
- We will follow our newest physics analysis and see if predicitions improve with a different feature space.
-

## Tractable & Retriveable data
We are interested in investigating ML use in physics. As such, we plan to use ML to answer model based physics questions that have escaped traditional attempts to solve. All the data we need can be simulated from the differential equation that governs our system. In this way, we can run multuiple physics simulations, save the data, and perform manipulations to look at the desired physical quantities.

## Model
We make use of a Spatiotemporal Transformer Encoder with a custom 2D Rotary Positional Embedding that encodes our temporal and spaital dimensions separately using rotational matrices. Hyperparameters my be adjusted for simplicity and easier interpretation but currently we have 8 layers of size 64 and 4 attention heads.

## Implications for stakeholders and Societal Implications
This is basic science research and the implications are for all of humanity. Notably this model and spontaneous energy localization in an otherwise thermalized system is responsible for great tragedies like the Tacoma Bridge Collapse in 1940. Better understanding these systems will allow engineers to design future structures more mindfully allowing them to prevent future catastrophe.
[![bridge collapse](https://img.youtube.com/vi/XggxeuFDaDU/hqdefault.jpg)](https://www.youtube.com/watch?v=XggxeuFDaDU&t=48s)

Many systems important to people lives and society are also chaotic. These include financial markets and the weather. Understanding and characterizing localization in this toy model my grow humanities understanding of these other systems allowing for markets to work more efficently and for the weatherman to be more accurate. This is even more true if we can classify some element of this chaotic system that is actually nonchaotic.

Finally, this model the Sine-Gordon equation with a global coupling parameter models dynamics in Josephson Junction arrays, the technology that is the foundation for superconducting qubit based quantum computing. Progress understanding this work may be directly applicable to improving quantum computing capabilities.


Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html><html><head><meta charset="utf-8"><title>Mini-Project 1 Proposal - Probing Localization with a Transformer.md</title><style></style></head><body id="preview">
<h1 class="code-line" data-line-start=0 data-line-end=1 ><a id="MiniProject_1_Proposal__Probing_Localization_with_a_Transformer_0"></a>Mini-Project 1 Proposal - Probing Localization with a Transformer</h1>
<h2 class="code-line" data-line-start=1 data-line-end=2 ><a id="Background_1"></a>Background</h2>
<p class="has-line-data" data-line-start="2" data-line-end="3">The Sine-Gordon equation with an added global coupling parameter is a differential equation that is known to host discrete breathers and chaotic phases. While the standard Sine-Gordon system is well studied our modified version is less explored and serves as a great testbed to investigate machine learning applications to science (particularly physics)!</p>
<p class="has-line-data" data-line-start="4" data-line-end="5"><a href="https://youtu.be/1-BOMA5wk78"><img src="https://img.youtube.com/vi/1-BOMA5wk78/hqdefault.jpg" alt="Torsional pendulum chain modulational instability"></a></p>
<p class="has-line-data" data-line-start="6" data-line-end="7">Previous work has focused on developing deep learning models to predict at which pendulum localization would occur. We found that our deep learning model predicted localization with higher accuracy than traditional physics approaches. Later, efforts were made to update our model to a traditional transformer architecture in order to do analysis on its attention. We found this new architecture slightly out performed our old model and that it did so by predominantly focusing on nearest neighbor interactions and characterisitics. This result is bizarre because it challenges the assumption that where localization occurs in our system is chaotic. After this machine learning based discovery additional physics analysis was done to try and make sense of the result. Quickly, a road block was hit in our ability to do the theory work and new tests need to be run with our transformer.</p>
<ul>
<li class="has-line-data" data-line-start="8" data-line-end="9">We will investigate the Lyapunov exponent of the system be decreasing the percision of our data and tracking the change in performance.</li>
<li class="has-line-data" data-line-start="9" data-line-end="10">We will investigate if our transformer can correctly predict localization with only near-neighbors.</li>
<li class="has-line-data" data-line-start="10" data-line-end="11">We will follow our newest physics analysis and see if predicitions improve with a different feature space.</li>
<li class="has-line-data" data-line-start="11" data-line-end="13"></li>
</ul>
<h2 class="code-line" data-line-start=13 data-line-end=14 ><a id="Tractable__Retriveable_data_13"></a>Tractable &amp; Retriveable data</h2>
<p class="has-line-data" data-line-start="14" data-line-end="15">We are interested in investigating ML use in physics. As such, we plan to use ML to answer model based physics questions that have escaped traditional attempts to solve. All the data we need can be simulated from the differential equation that governs our system. In this way, we can run multuiple physics simulations, save the data, and perform manipulations to look at the desired physical quantities.</p>
<h2 class="code-line" data-line-start=16 data-line-end=17 ><a id="Model_16"></a>Model</h2>
<p class="has-line-data" data-line-start="17" data-line-end="18">We make use of a Spatiotemporal Transformer Encoder with a custom 2D Rotary Positional Embedding that encodes our temporal and spaital dimensions separately using rotational matrices. Hyperparameters my be adjusted for simplicity and easier interpretation but currently we have 8 layers of size 64 and 4 attention heads.</p>
<h2 class="code-line" data-line-start=19 data-line-end=20 ><a id="Implications_for_stakeholders_and_Societal_Implications_19"></a>Implications for stakeholders and Societal Implications</h2>
<p class="has-line-data" data-line-start="20" data-line-end="22">This is basic science research and the implications are for all of humanity. Notably this model and spontaneous energy localization in an otherwise thermalized system is responsible for great tragedies like the Tacoma Bridge Collapse in 1940. Better understanding these systems will allow engineers to design future structures more mindfully allowing them to prevent future catastrophe.<br>
<a href="https://www.youtube.com/watch?v=XggxeuFDaDU&amp;t=48s"><img src="https://img.youtube.com/vi/XggxeuFDaDU/hqdefault.jpg" alt="bridge collapse"></a></p>
<p class="has-line-data" data-line-start="23" data-line-end="24">Many systems important to people lives and society are also chaotic. These include financial markets and the weather. Understanding and characterizing localization in this toy model my grow humanities understanding of these other systems allowing for markets to work more efficently and for the weatherman to be more accurate. This is even more true if we can classify some element of this chaotic system that is actually nonchaotic.</p>
<p class="has-line-data" data-line-start="25" data-line-end="26">Finally, this model the Sine-Gordon equation with a global coupling parameter models dynamics in Josephson Junction arrays, the technology that is the foundation for superconducting qubit based quantum computing. Progress understanding this work may be directly applicable to improving quantum computing capabilities.</p>

</body></html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Mini-Project 2 Proposal - What Features Best Predict High Temperature Superconductors?
-

## Tractable & Retriveable data
The Dataset is taken originally from The National Institute for Materials Science in Japan however it has been cleaned and processed even further and published on Kaggle making the data easily accessible and ready to use.

## Model
We will use a XGBoost decision-tree ensemble to parse which features are most important in predicting high temperature superconductors.

## Implications for stakeholders and Societal Implications
Finding high Tc superconductors is the holy grail of condensed matter physics. Such a technology could revolutionize our world by making power grids 30% more efficient to allowing for levitating trains and reducing waste heat during computing. However despite materials being found on the verge of what would be considered room temperature for humans, for the last 100 years a truly room temperature superconductor has remained elusive. When scientists do manage to find one in the lab it will rapidly be deeply integrated into some of our most productive high value industries as a technological neccessity to reman competitive.

Room temperature superconductors will benefit society by reducing the amount of energy humans consume by up to one third! They will also allow for faster devices, cheaper electronics, and much longer battery life allowing for vast industry and commerical use.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html><html><head><meta charset="utf-8"><title>Mini-Project 2 Proposal - What Features Best Predict High Temperature Superconductors?.md</title><style></style></head><body id="preview">
<h1 class="code-line" data-line-start=0 data-line-end=1 ><a id="MiniProject_2_Proposal__What_Features_Best_Predict_High_Temperature_Superconductors_0"></a>Mini-Project 2 Proposal - What Features Best Predict High Temperature Superconductors?</h1>
<ul>
<li class="has-line-data" data-line-start="1" data-line-end="3"></li>
</ul>
<h2 class="code-line" data-line-start=3 data-line-end=4 ><a id="Tractable__Retriveable_data_3"></a>Tractable &amp; Retriveable data</h2>
<p class="has-line-data" data-line-start="4" data-line-end="5">The Dataset is taken originally from The National Institute for Materials Science in Japan however it has been cleaned and processed even further and published on Kaggle making the data easily accessible and ready to use.</p>
<h2 class="code-line" data-line-start=6 data-line-end=7 ><a id="Model_6"></a>Model</h2>
<p class="has-line-data" data-line-start="7" data-line-end="8">We will use a XGBoost decision-tree ensemble to parse which features are most important in predicting high temperature superconductors.</p>
<h2 class="code-line" data-line-start=9 data-line-end=10 ><a id="Implications_for_stakeholders_and_Societal_Implications_9"></a>Implications for stakeholders and Societal Implications</h2>
<p class="has-line-data" data-line-start="10" data-line-end="11">Finding high Tc superconductors is the holy grail of condensed matter physics. Such a technology could revolutionize our world by making power grids 30% more efficient to allowing for levitating trains and reducing waste heat during computing. However despite materials being found on the verge of what would be considered room temperature for humans, for the last 100 years a truly room temperature superconductor has remained elusive. When scientists do manage to find one in the lab it will rapidly be deeply integrated into some of our most productive high value industries as a technological neccessity to reman competitive.</p>
<p class="has-line-data" data-line-start="12" data-line-end="13">Room temperature superconductors will benefit society by reducing the amount of energy humans consume by up to one third! They will also allow for faster devices, cheaper electronics, and much longer battery life allowing for vast industry and commerical use.</p>

</body></html>
21 changes: 21 additions & 0 deletions presentations/test1xaringan.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: "Noah's First Cool Slide Show"
subtitle: "⚔ with xaringan"
author: "Noah Lape"
institute: "Dickinson College"
date: "2026/01/23"
output:
xaringan::moon_reader:
lib_dir: libs
nature:
highlightStyle: github
highlightLines: true
countIncrementalSlides: false
---

background-image: url(https://upload.wikimedia.org/wikipedia/commons/4/4f/Black_hole_-_Messier_87_crop_max_res.jpg)
background-size: cover

```{r setup, include=FALSE}
options(htmltools.dir.version = FALSE)
```
316 changes: 316 additions & 0 deletions presentations/test1xaringan.html

Large diffs are not rendered by default.