Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check numerical stability properties when dG/d(u,p) is highly stiff #14

Open
gszep opened this issue Jun 14, 2021 · 2 comments
Open

check numerical stability properties when dG/d(u,p) is highly stiff #14

gszep opened this issue Jun 14, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@gszep
Copy link
Collaborator

gszep commented Jun 14, 2021

The implicit layers approach to calculating gradients requires solving a linear system with A::Matrix \ x::Vector where A is the Jacobian dG/d(u,p) where G = [ F, det(J) ]. Let's make a plot of the percentage error between finite difference and autodiff as the condition number for A is increased. @rveltz I use the same linear solvers as you, do you know what happens when your matrix J = dF/du is ill-conditioned?

@gszep gszep added the question Further information is requested label Jun 14, 2021
@gszep gszep self-assigned this Jun 14, 2021
@gszep gszep added the enhancement New feature or request label Jun 14, 2021
@gszep
Copy link
Collaborator Author

gszep commented Jun 14, 2021

problems with adjoints https://arxiv.org/abs/2103.15341

@rveltz
Copy link
Member

rveltz commented Jun 14, 2021

The continuation steps through it most likely. This solver is well described here:
Keller, Herbert B. “The Bordering Algorithm and Path Following Near Singular Points of Higher Nullity.” SIAM Journal on Scientific and Statistical Computing 4, no. 4 (December 1983): 573–82. https://doi.org/10.1137/0904039.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants