RepoAmazon (Nova)Amazon (Nova)published Mar 7, 2026seen 5d

amazon-science/probharde2e

Jupyter Notebook

Open original ↗

Captured source

source ↗
published Mar 7, 2026seen 5dcaptured 18hhttp 200method plain

amazon-science/probharde2e

Description: Official Implementation of ProbHardE2E: End-to-End Probabilistic Framework for Learning with Hard Constraints

Language: Jupyter Notebook

License: Apache-2.0

Stars: 7

Forks: 0

Open issues: 0

Created: 2026-03-07T00:38:27Z

Pushed: 2026-03-08T03:57:20Z

Default branch: main

Fork: no

Archived: no

README:

ProbHardE2E

This repository contains code and notebooks to reproduce ProbHardE2E PDE benchmarks. The methods are applied to both linear and nonlinear PDEs, enforcing hard constraints, e.g., initial conditions, mass conservation, and total variation diminishing (TVD).

Directory Structure

├── FNO_HardC.ipynb
├── FNO_OrthoC.ipynb
├── ProbHardE2E_Linear.ipynb
├── ProbHardE2E_Soft.ipynb
├── ProbHardE2E_TVD.ipynb
├── ProbhardE2E_Nonlinear_PME.ipynb
├── plot_timing.ipynb
├── models/
│ ├── FNO1d.py, FNO2d.py, UncertainNO.py, DiverseFNO2d.py
├── utils.py
├── datasets.py
├── probconserv.py
├── nonlinear_projection.py
├── commands.sh
├── requirements.txt
└── results/

Installation

To set up the environment, clone the repository and install the required packages:

pip install -r requirements.txt

Reproducing Experimental Results

The following notebooks can be used to reproduce the tables presented in the paper:

  • Table 1 (Linear Constraints and Other Baselines):
  • FNO_HardC.ipynb
  • FNO_OrthoC.ipynb
  • ProbHardE2E_Linear.ipynb
  • ProbHardE2E_Soft.ipynb
  • Table 2 (Total Variation Diminishing (TVD) Constraint):
  • ProbHardE2E_TVD.ipynb
  • Table 3 (Nonlinear Porous Medium Equation Constraints):
  • ProbhardE2E_Nonlinear_PME.ipynb

To run these notebooks:

jupyter notebook

Sources

This repo contains modified versions of the code found in the following repos:

https://github.com/zongyi-li/fourier_neural_operator: For implementation of the Fourier Neural Operator (FNO) (MIT license)

https://github.com/amazon-science/operator-probconserv: For implementation of Variance-NO (Apache 2.0 license)

https://github.com/amazon-science/probconserv: For implementation of ProbConserv (Apache 2.0 license)

Citation

If you use this code, or our work, please cite:

@inproceedings{utkarsh2026_probharde2e,
title={End-to-end probabilistic framework for learning with hard constraints},
author={Utkarsh ., Maddix, D.C., Ma, R., Mahoney, M.W., Wang, Y.},
booktitle={The Fourteenth International Conference on Learning Representations},
year={2026},
url={https://openreview.net/forum?id=teE4pl9ftK}
}

Security

See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.

License

This project is licensed under the Apache-2.0 License.

Notability

notability 3.0/10

New repo, low traction