torchsde and torchcde

These two tools are complements, as `torchsde` provides differentiable stochastic differential equation (SDE) solvers while `torchcde` offers differentiable controlled differential equation (CDE) solvers, addressing different mathematical formalisms that can arise in the "neural-differential-equations" domain and potentially be used in conjunction for more complex systems.

torchsde
72
Verified
torchcde
65
Established
Maintenance 0/25
Adoption 25/25
Maturity 25/25
Community 22/25
Maintenance 2/25
Adoption 21/25
Maturity 25/25
Community 17/25
Stars: 1,708
Forks: 223
Downloads: 1,988,417
Commits (30d): 0
Language: Python
License: Apache-2.0
Stars: 475
Forks: 50
Downloads: 45,514
Commits (30d): 0
Language: Python
License: Apache-2.0
Stale 6m
Stale 6m

About torchsde

google-research/torchsde

Differentiable SDE solvers with GPU support and efficient sensitivity analysis.

Implements multiple SDE solver algorithms (Euler, Milstein, adaptive-step) with configurable noise types (scalar, diagonal, general) and supports both Itô and Stratonovich calculus. Enables end-to-end learning of latent SDEs and neural SDE-based generative models through PyTorch autograd, with adjoint-based sensitivity analysis for memory-efficient backpropagation. Integrates seamlessly with PyTorch's `nn.Module` API and demonstrated on applications including VAE-style latent dynamics and adversarial SDE training.

About torchcde

patrick-kidger/torchcde

Differentiable controlled differential equation solvers for PyTorch with GPU support and memory-efficient adjoint backpropagation.

Scores updated daily from GitHub, PyPI, and npm data. How scores work