You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In _proximal_jvp_f_pure, we use SVD, which is what makes up over 90% of the time spent. It should be possible to use similar QR implementation. I checked the matrix that we try to invert in test_proximal_jacobian and its condition number is actually pretty low, so I don't think we need much regularisation. The bad part is Gxh.
The text was updated successfully, but these errors were encountered:
YigitElma
changed the title
Use QR in Proximal
Use QR in ProximalProjection
Feb 5, 2025
Even if we don't change it, I think it would help for future devs to put some comments why we use SVD over other methods. For example, in perturb, I think SVD is overall better, because it requires 1 decomposition and then trust_region_exact_svd is basically free but trust_region_exact_qr is very expensive in most cases. Also, we call trust region subproblem solver multiple times for the same matrix.
what did you use to check the condition number? In general the condition number varies a ton across the optimization space and depends on the particular combination of objectives. The regularization in the SVD was added to reduce stalling out like in #802
dpanici
added
the
P2
Medium Priority, not urgent but should be on the near-term agend
label
Feb 10, 2025
Originally posted by @YigitElma in #1409 (comment)
In
_proximal_jvp_f_pure
, we use SVD, which is what makes up over 90% of the time spent. It should be possible to use similar QR implementation. I checked the matrix that we try to invert intest_proximal_jacobian
and its condition number is actually pretty low, so I don't think we need much regularisation. The bad part isGxh
.The text was updated successfully, but these errors were encountered: