patrick-kidger / patrick-kidger/diffrax

Questions on NeuralCDEs

Offen
#653 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Python
Sterne
2.1k
Forks
189
Ø Merge
3 T. 18 Std.
Gemergte PRs (30 T.)
1

Beschreibung

Hi!

First of all, thank you for creating this amazing library!

I'm new to neural CDEs, control theory and JAX ecosystem, so please excuse me if these are basic questions. My ultimate goal is to train a model on some time series data (physical quantities $[y_1(t), y_2(t)]$ that evolve in time and can be controlled by actuators $[C_1(t), C_2(t)]$) to replicate it and then use this model to fit PID parameters or RL policies to control the physical quantities of interest. Both control and physical quantities are normalized such that they are bound in the interval [0, 1].

Has anyone in the community attempted this before or is aware of literature where this has been done?

Initially, I decided to train RNNs, but the problem is that the time spacing of my control signal is different from my physical quantities (even the time interval of sampling between physical quantities is different). Neural differential equations seem to handle this problem better. I'm using neural CDEs for regression on some data, and I was able to overfit a neural CDE on a time series. I'm first uplifting the physical state into the hidden state of size 4, $\boldsymbol{y}$. Here's how my vector field and control interaction looks like:

Image

$C_1$ and $C_2$ are obtained by interpolation as in the tutorial, and $mlp_i$ are small MLPs (width=4 depth=3 <10) that output a scalar value from -1 to 1. This consistently overfits the time series (checked on other trajectories as well), but it takes ~20s/train_step (in train_step, I compute loss and update model parameters).

Can Multiple Shooting #302 improve my training speed? Btw @allen-adastra, my work is mostly inspired by your paper !

I'm aware of Patrick's thesis on this topic, but any other literature recommendations on this topic are highly appreciated!

Sincerely,
Vadim

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Start by reading the linked Neural CDE tutorial and the referenced Multiple Shooting issue. The post does not identify a repository file, test, or concrete change, and it does not define what completion would look like beyond answering questions about training speed and related literature.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
machine-learning
Issue-Typ
Dokumentation
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
15/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.