Optax vs Cvxpy #881
-
Hi All, Given that one can solve almost any convex optimization problem by writing down the objective function in Jax, and optimizing it using an appropriate gradient descent algorithm in Optax; is there any inherent benefit of using Cvxpy over Jax+Optax? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
cvxpy comes with convergence guarantees, which, at the moment, optax lacks. Also, currently most of the solvers in optax require some hyperparameter tuning (like the learning rate). I think most of the solvers in cvxpy on the other hand, don't require hyperparameter tuning. The downside of cvxpy is that it's not applicable to nonconvex problems, and that if often scales worse than optax for very large problems |
Beta Was this translation helpful? Give feedback.
cvxpy comes with convergence guarantees, which, at the moment, optax lacks. Also, currently most of the solvers in optax require some hyperparameter tuning (like the learning rate). I think most of the solvers in cvxpy on the other hand, don't require hyperparameter tuning.
The downside of cvxpy is that it's not applicable to nonconvex problems, and that if often scales worse than optax for very large problems