Giter Club home page Giter Club logo

nodepint's Introduction

NodePinT

Parallel-in-time integration of Neural ODEs with reduced basis approximation.

Features

  • Neural ordinary differential equations for a wide family of problems
  • Time-parallelisation (or layer parallelisation if compared to ResNets)
  • Reduced order modelling as a by-product of the the training process

Benchmarks

Dataset TrainingTime (Epochs) TrainingAcc TestAcc PeakMemory NetworkSize Language Hyperparams/Script
MNIST 4 mins 30 secs (420) 98.172% 97.117% 10.657 GB - Julia Link
16 mins 53 secs (420) 99.39% 2.06 GiB Jax Link
20 mins 33 secs (5 epochs !) 89.48% 5.89 GiB NodePinT Link
SPH 3.5 hours 92% 88% 6 GB 4 layers NodePinT hyperparameters4.json

Getting started

pip install nodepint

Flowcharts

Click to expand/collapse
NodePinT General Logic Encode-Process-Decode Logic
Flowchart Logic

ToDos

Click to expand/collapse
  • Massive parallelisation by combining time with data
  • Stochastic ODEs and diffusion models time parallelisation
  • Parallelism accross the projection absis. Since the PinT problem is projected on a lower dimensional space, this allows for further parallelism (2nd level):
    • If we always project on a randomly sampled 1D space, we can also solve the ODEs in parallel and average the NN weights without having to re(jit)compile
    • If we project on an increasingly bigger randomly sampled spaces, we can still do it, but we need to re(jit)compile the PinT processes
    • If we construct our space in a deterministic way (via sensitivity analysis wrt the latest added vector), then we can't parallelise since it will be sequential.
  • For optimal control (OC) while training a neural ODE, we propose several combinations:
    • DP for training, and DAL for OC
    • DP both for training and OC (a bit like PINN)
    • Same as above, but DAL for training

Dependencies

  • JAX
  • Equinox
  • Datasets (the "jax" extra)
  • Julia bindings to Python for SPH (all papers should benchmark NODEs on physical data upon us realeasing the SPHPC dataset)

nodepint's People

Contributors

ddrous avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.