Amortized reparametrization: Efficient and Scalable Variational Inference for Latent SDEs
Accompanying code for the NeurIPS 2023 paper by Kevin Course and Prasanth B. Nair.
Tutorials and documentation coming soon!
1. Installation
Installing the package
The package can be installed from PyPI:
pip install arlatentsde
Reproducing the experiment environment
We ran experiments on a Linux machine with CUDA 11.8. We used poetry to manage dependencies.
If you prefer a different environment manager, all dependencies are listed
in the pyproject.toml.
To reproduce the experiment environment, first navigate to branch named
neurips-freeze.
Then install all optional dependencies required to run experiments,
poetry install --with dev,exps
To download all pretrained models, datasets, and figures we use repopacker:
repopacker download models-data-figs.zip
repopacker unpack models-data-figs.zip
2. Usage
The numerical studies can be rerun from the experiments
directory using the command-line script main.py. All numerical
studies follow the same basic structure:
(i) generate / download,
(ii) train model, and
(iii) post process for plots and tables.
The script has the following syntax:
python main.py [experiment] [action]
The choices of experiments and actions are provided below:
- Experiments:
predprey: Orders of magnitude magnitude fewer NFEs experimentlorenz: Adjoint instabilities experimentmocap: Motion capture benchmarknsde-video: Neural SDE from video experimentgrad-variance: Gradient variance experiment
- Actions:
get-data: Download / generate datatrain: Train modelspost-process: Post process for plots and tables
3. Reference
Course, K., Nair, P.B. Amortized Reparametrization: Efficient and Scalable Variational Inference for Latent SDEs.
In Proc. Advances in Neural Information Processing Systems, (2023).
@inproceedings{
course2023amortized,
title={Amortized Reparametrization: Efficient and Scalable Variational Inference for Latent {SDE}s},
author={Kevin Course and Prasanth B. Nair},
booktitle={Thirty-seventh Conference on Neural Information Processing Systems},
year={2023},
url={https://openreview.net/forum?id=5yZiP9fZNv}
}
Metadata
Release files for arlatentsde 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| arlatentsde-0.2.0.tar.gz | 35.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arlatentsde-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 76.8 kB
Release files / arlatentsde-0.2.0.tar.gz
| Download URL | arlatentsde-0.2.0.tar.gz |
|---|---|
| Size | 35.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f73d6559432b140843697c1297e12f8e57b07f3c931a0a46f8a8405d9e23d9cd
|
|
BLAKE2b-256 checksum How to use checksums |
8cefd196560cd28132f141ae67b2159f38238e512326db67134eecbd126e802d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.10 Darwin/23.0.0
|
Release files / arlatentsde-0.2.0-py3-none-any.whl
| Download URL | arlatentsde-0.2.0-py3-none-any.whl |
|---|---|
| Size | 40.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d018784aef72b68746b687cc1991d066236e99ba26bd0594a4fe63376bd46ccf
|
|
BLAKE2b-256 checksum How to use checksums |
687175f23a7d0ad5e320e27365682f7f723aef99950ff8161ef4b78098404066
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.10 Darwin/23.0.0
|
Security for arlatentsde 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.