Skip to content

Official code repository of the paper "Constructing gauge-invariant neural networks for scientific applications".

License

Notifications You must be signed in to change notification settings

manosth/gauge-net

Repository files navigation

Constructing gauge-invariant neural networks for scientific applications

Official code repository for "Constructing gauge-invariant neural networks for scientific applications", an extended abstract accepted at the AI4Science and GRaM workshops at ICML 2024.

It consists of an gauge-invariant architecture for predicting the energy configuration in the 2D XY model. The repository contains a folder data_gen wuth various files to generate and test datasets:

    • gen_gauge is the main file: it generates a 2D XY model. It also, in the later part, adds a gauge field to the XY model, where the angles at each grid point are smoothly perturbed,
    • gen_dataset uses the logic of gen_gauge to generate a whole dataset of 2D XY samples (without the smooth gauge),
    • gen_dataset_gauge updates an already created dataset to have the smooth gauge,
    • sample_dataset randomly samples a created dataset, and
    • test_dataset is similar to sample_dataset, but iterates until a set number of high-, mid-, and low-energy states have been found.

The rest of the files are training and testing files for different architectures and they come in pairs. egnn_clean is from the official EGNN repo and is necessary for *_egnn. The models that are available are:

  • EGNN in train_egnn and test_egnn,
  • EMLP in train_emlp and test_emlp,
  • (Pretrained) ResNets in train_pretrained and test_pretrained, and
  • Our proposed architecture to estimate the energy in the 2D XY model in train_egnn_ours and test_egnn_ours.

About

Official code repository of the paper "Constructing gauge-invariant neural networks for scientific applications".

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages