This repository contains the compiled report (Report.pdf), analysis scripts, experiment notebooks, cluster execution scripts, and stored numerical results investigating when spatial nonlinearity is needed in Latent Dynamics Networks (LDNets) and how accuracy scales with network capacity, quasi-Newton iterations, FLOPs, and multi-core wall-clock time across partial differential equation (PDE) benchmarks.
It builds upon the upstream LDNets codebase by Regazzoni et al. (2024) [1].
The full technical report is provided at the root of this repository:
Report.pdf— On the Role of Nonlinear Spatial Reconstruction and the Computational Scalability of Latent Dynamics Networks for Partial Differential Equations (Giulio Donninelli, Politecnico di Milano).
.
├── Report.pdf # Full compiled technical report
├── README.md
├── requirements.txt # Workstation Python 3.9 pins (TensorFlow 2.8)
├── requirements-macos.txt # Apple Silicon macOS pins
├── requirements-cluster.txt # CINECA Leonardo Python 3.11.7 pins (TensorFlow 2.13.1)
│
├── Study_I/ # Study I: Spatial reconstructor ablation (816 runs)
│ ├── README.md # Detailed Study I narrative and tables
│ ├── protocol.md # Experimental protocol
│ ├── report_analysis.py # Pure-NumPy verification, metrics, and figure generator
│ ├── figures/ # Study I figures (fig1..fig9) and tables.md
│ ├── Case_A_ADR-1b/ # 1D periodic linear advection–diffusion–reaction (Fourier basis)
│ ├── Case_B_2D-Stokes/ # 2D incompressible Navier–Stokes cavity flow (Vector POD basis)
│ └── Case_C_AP1D/ # 1D Aliev–Panfilov electrophysiology (Weighted-QR Legendre basis)
│
├── Study_II/ # Study II: 10,000-iter BFGS capacity & HPC timing (126 cluster runs)
│ ├── README.md # Detailed Study II narrative and tables
│ ├── protocol.md # Experimental protocol
│ ├── report_analysis.py # Pure-NumPy verification, rank/Jacobian SVD, and figure generator
│ ├── figures/ # Study II figures (fig1..fig9) and tables.md
│ ├── Case_B_2D-Stokes/ # 2D cavity flow (results/, executed_timing.ipynb, notebook & workers)
│ ├── Case_C_AP1D/ # 1D Aliev–Panfilov fronts (results/, executed_timing.ipynb, notebook & workers)
│ └── cluster/ # CINECA Leonardo Slurm scripts (sbatch_sweep.sh, sbatch_timing.sh, logs)
│
├── paper/ # Post-processing scripts & FLOP/throughput figures used in Report.pdf
│ ├── generate_flops_plots.py # Generates continuous FLOP/wall-time trajectories & throughput figures
│ └── figures/ # fig_flops_trajectories.png, fig_flops_arithmetic_intensity.png
│
└── src/ # Upstream LDNet baseline scripts and notebooks
| Study | Scope | Benchmarks | Key Result |
|---|---|---|---|
Study I (Study_I/) |
Four reconstructor architectures (L0], L1], L2], L3]) under Frozen-Latent (R1) and End-to-End (R2) training (816 runs) |
Case A (Case_A_ADR-1b), Case B (Case_B_2D-Stokes), Case C (Case_C_AP1D) |
Fixed-basis linear decoders match or beat |
Study II (Study_II/) |
Pure BFGS up to 10,000 iterations on CINECA Leonardo DCGP (dcgp_usr_prod, dual-socket Intel Xeon Platinum 8480+, 112 cores/node) + exclusive-node Pass-T timing (126 cluster runs) |
Case B (Case_B_2D-Stokes), Case C (Case_C_AP1D) |
Case B: replacing |
Two structural rank bounds proved in Report.pdf are verified to machine precision:
-
Reconstructor Rank Bound (for
$\mathcal{R}_{\mathrm{aff}}$ ):
- Dynamics Hidden-Width Bottleneck Bound:
under exact rest-state equilibrium subtraction (and
For workstations (Python 3.9):
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt # or requirements-macos.txt on Apple SiliconFor HPC clusters (Linux, Python 3.11.7, used on CINECA Leonardo):
pip install -r requirements-cluster.txtTraining, validation, and test datasets (data/ADR/, data/NS/, data/AP1D/) are not tracked in Git (~7.9 GB) and can be downloaded from the upstream Zenodo archive:
curl -L https://zenodo.org/records/10436827/files/data.zip -o data.zip
unzip data.zip -d data
rm data.zipAll CSV metrics (runs.csv, predictions.csv, curves.csv, timing.csv, modes.csv) and cluster figures are included in Study_I/ and Study_II/. Note that binary .npy/.npz model weights are excluded by .gitignore; with data/ and saved weights present locally, the pure-NumPy verification and plotting pipelines can be re-run via:
python Study_I/report_analysis.py > Study_I/figures/tables.md
python Study_II/report_analysis.py > Study_II/figures/tables.md
python paper/generate_flops_plots.py[1] F. Regazzoni, S. Pagani, M. Salvador, L. Dedè, A. Quarteroni, "Learning the intrinsic dynamics of spatio-temporal processes through Latent Dynamics Networks", Nature Communications 15, 1834 (2024). DOI: 10.1038/s41467-024-45323-x.