Skip to content

Show reverse-mode adjoints in the neural network tutorial - #693

Merged
utkuyilmaz1903 merged 1 commit into
SciML:masterfrom
utkuyilmaz1903:ude-adjoint-docs
Sep 12, 2026
Merged

utkuyilmaz1903 merged 1 commit into
SciML:masterfrom
utkuyilmaz1903:ude-adjoint-docs

Conversation

@utkuyilmaz1903

Copy link
Copy Markdown
Member

The first neural network tutorial said reverse-mode adjoints through the PDE solution interface are not supported. Since SciMLSensitivity 7.119.6 (SciML/SciMLSensitivity.jl#1640, SciML/SciMLSensitivity.jl#1641) they work, so the sentence goes and a short section at the end shows the two changes the loss needs (wrap = Val(false) and the data as an array) with an adjoint gradient checked against ForwardDiff. The section also says what the measurement says: on this problem the adjoint is two orders of magnitude slower than ForwardDiff, and it pays off only for much larger networks.

The 2D Brusselator page plots every fifth point in its scatter; the full set made a 4.4 MB SVG.

SciMLSensitivity and ForwardDiff join the docs dependencies.

@utkuyilmaz1903
utkuyilmaz1903 marked this pull request as ready for review September 12, 2026 10:16
@utkuyilmaz1903
utkuyilmaz1903 merged commit 26cde19 into SciML:master Sep 12, 2026
5 checks passed
@utkuyilmaz1903
utkuyilmaz1903 deleted the ude-adjoint-docs branch September 12, 2026 10:16
ChrisRackauckas added a commit that referenced this pull request Sep 13, 2026
- Show reverse-mode adjoints in the neural network tutorial (#693)
- Hoist the row range out of the ntuple closure in spectral_array_derivative (#694)



Agent-Harness: Claude Code
Agent-Model: claude-opus-5[1m]
Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant