Skip to content
/ roma Public

ROMA: Renormalized Operators with Multiscale Attention

License

Notifications You must be signed in to change notification settings

nngabe/roma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Renormalized Operators with Multiscale Attention (ROMA)

This repository contains code and data accompanying the manuscript titled Connecting the geometry and dynamics of many-body complex systems with message passing neural operators

Abstract

The relationship between scale transformations and dynamics established by renormalization group techniques is a cornerstone of modern physical theories, from fluid mechanics to elementary particle physics. Integrating renormalization group methods into neural operators for many-body complex systems could provide a foundational inductive bias for learning their effective dynamics, while also uncovering multiscale organization. We introduce a scalable AI framework, ROMA (Renormalized Operators with Multiscale Attention), for learning multiscale evolution operators of many-body complex systems. In particular, we develop a renormalization procedure based on neural analogs of the geometric and laplacian renormalization groups, which can be co-learned with neural operators. An attention mechanism is used to model multiscale interactions by connecting geometric representations of local subgraphs and dynamical operators. We apply this framework in challenging conditions: large systems of more than 1M nodes, long-range interactions, and noisy input-output data for two contrasting examples: Kuramoto oscillators and Burgers-like social dynamics. We demonstrate that the ROMA framework improves scalability and positive transfer between forecasting and effective dynamics tasks compared to state-of-the-art operator learning techniques, while also giving insight into multiscale interactions. Additionally, we investigate power law scaling in the number of model parameters, and demonstrate a departure from typical power law exponents in the presence of hierarchical and multiscale interactions.

Installation

Dependencies can be installed with pip using the following commands:

pip3 install -U pip
pip3 install --upgrade jax jaxlib
pip3 install --upgrade -r requirements.txt

Then install the roma package by running the following command:

git clone https://github.com/nngabe/roma.git
cd roma
pip install -e .

Lastly, to set environmental variables run

bash set_env.sh

Datasets

All datasets with precomputed positional encodings can be found here.

Please place files in a data/ directory next to roma/ to use the default paths specified in train.py, i.e.,:

cd roma
mkdir ../data
cp path_to_dataset_download/* ../data

Experiments

Each set of experiments can be run with the following commands:

Data Scaling & Noise

bash batch.sh args/SN_KM38k.txt
bash batch.sh args/SN_KM314k.txt
bash batch.sh args/SN_KM3M.txt
bash batch.sh args/SN_KM3M_HN.txt

Effective Dynamics

bash batch.sh args/ED_KM3M.txt
bash batch.sh args/ED_BD3M.txt

ROMA Scaling

bash batch.sh args/BLH_KM3M.txt
bash batch.sh args/BLH_BD3M.txt

Citation

@article{gabriel2025connecting,
  title={Connecting the geometry and dynamics of many-body complex systems with message passing neural operators},
  author={Gabriel, Nicholas A and Johnson, Neil F and Karniadakis, George Em},
  journal={arXiv preprint arXiv:2502.15913},
  year={2025}
}

About

ROMA: Renormalized Operators with Multiscale Attention

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published