Giter Club home page Giter Club logo

dynamic-adaptation-network's Introduction

Paper:

Rui Wang*, Robin Walters*, Rose Yu; Meta-learning dynamics forecasting using task inference; Neural Information Processing Systems (Neurips) 2022.

Abstract:

Current deep learning models for dynamics forecasting struggle with generalization. They can only forecast in a specific domain and fail when applied to systems with different parameters, external forces, or boundary conditions. We propose a model-based meta-learning method called DyAd which can generalize across heterogeneous domains by partitioning them into different tasks. DyAd has two parts: an encoder which infers the time-invariant hidden features of the task with weak supervision, and a forecaster which learns the shared dynamics of the entire domain. The encoder adapts and controls the forecaster during inference using adaptive instance normalization and adaptive padding. Theoretically, we prove that the generalization error of such procedure is related to the task relatedness in the source domain, as well as the domain differences between source and target. Experimentally, we demonstrate that our model outperforms state-of-the-art approaches on both turbulent flow and real-world ocean data forecasting tasks.

Requirement

  • python 3.6
  • pytorch >= 1.0.0
  • matplotlib
  • phiflow v1.5

Setup

Install PhiFlow v1.0.1 and place the data_generation.py in the downloaded PhiFlow folder.

git clone -b 1.0.1 --single-branch https://github.com/tum-pbs/PhiFlow.git

Generate turbulent flow dataset with PhiFlow.

python data_generation.py

Running the model

Train the encoder.

python encoder_train.py

Train the forecaster.

python run_model.py

Evaluate the predictions on two test sets.

python evaluation.py

Cite

@article{wang2022meta,
title={Meta-learning dynamics forecasting using task inference},
author={Rui Wang and Robin Walters and Rose Yu},
journal={Neural Information Processing Systems},
year = {2022}
}

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.