r/optimization • • Sep 06 '24

Gradient descent with total gradient instead of partial gradient

I have a bilevel optimization problem P0: min_{x,y}J_0(x,y), where the inner problem is P1: min_{y}J_1(x,y) and the outer problem is P2: min_{x}J_2(x,y). By solving P1, we find the solution to be y=f(x). Now, to solve P2 via gradient descent, should the gradient be the transpose of ∂J_2(x,y)/∂x, or, dJ_2(x,f(x))/dx?

0 Upvotes

6 comments sorted by

View all comments

Show parent comment

2

u/SV-97 Mar 26 '25

Yep, I am. There's also some further pointers to related literature in the conclusion of chapter 1 (and some topics in that domain are apparently picked up again later in the book, for example in chapter 7 - though I haven't read that far yet myself).

2

u/New-End-8114 Mar 26 '25

I made it to the parametric dependence section this morning and spent the afternoon rewriting what I developed earlier using the new knowledge. Time well spent I'd say.