patrick-kidger / patrick-kidger/diffrax

[Proposal]: Add more Ito SDE Solvers

Open
#576 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
Python
Stars
2.1k
Forks
189
Avg merge
3d 18h
Merged PRs (30d)
1

Description

For better or worse the real world is an Ito SDE Ito SDE formulations are pretty common in physics/engineering problems. Right now, if you have a SDE you need the Ito solution to, you only have Euler or Milstein (neither of which has an embedded error estimate). And diffrax's milstein implementation doesn't support the levy area stuff you need to work on non-commutative noise processes. There's quite some nice options when it comes to Langevin or Strato solvers, and it would be nice to have some more Ito ones. (side note, I've often used strato ones with a correction, but noticed pretty poor performance, not sure if that's a expected heuristic or I'm just unlucky).

I am not one to raise a problem without a solution. We have some methods that could be cleaned up and put in diffrax, listed below, but I only want to put in the work to get them cleaned up if they are a fit for diffrax. There is a fair amount of focus on solver with high weak orders as well (really, who needs path wise convergence anyway).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named in the proposal. Start by reviewing the existing Euler and Milstein solver entry points, then assess the cited W2Ito1/2, MoraTaylor, MoraEuler, and weak adaptive-error-estimate methods for fit; done would require an agreed solver scope and validation criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.