It is well-known that Hamilton's equations $$\dot{x}^\mu=\Omega^{\mu\nu} \frac{\partial H(x)}{\partial x^\mu}\tag{1}$$ where $\Omega$ is the symplectic form and $x^\mu=(q,p)$ follow from a Lagrangian, namely $$L(x)=\dot{q}p-H(x).\tag{2}$$
Gradient descent is given by the equation $$\dot{x}^\mu=-G^{\mu\nu}\frac{\partial f(x)}{\partial x^\mu},\tag{3}$$ where $G$ is a Riemannian metric and the flow decreases $f(x)$. My intuition is that there is no way to get the gradient descent equations from a Lagrangian action, but I'm curious if this is true and why not?