In standard constrained optimization, we often think about the "position" of our solution. If a gradient step takes us outside the feasible region, we perform a global projection: we search the entire feasible set to find the point closest to our current iterate. While mathematically sound, this is computationally ruinous for complex, nonlinear, or high-dimensional constraints.
A growing body of research, led by Michael Muehlebach and Michael I. Jordan, suggests a more efficient alternative. Instead of constraining where the iterate is, we should constrain where the iterate is going. By shifting constraints from the "position level" to the "velocity level," we can replace expensive global searches with simple, local linear approximations.
The Bottleneck of Global Projections
To understand why this shift matters, consider a robot navigating a room with curved walls. In traditional projected gradient descent, if the robot's update step puts it inside a wall, the algorithm must solve a nonlinear optimization problem to find the nearest valid point on the wall's surface.
As noted in Accelerated first-order optimization under nonlinear constraints, these global operations become a bottleneck when dealing with millions of variables. The difficulty isn't the gradient descent itself; it's the "wrench in the gears" thrown by the requirement to stay perfectly within a complex boundary at every step.
From Position to Velocity
The core intuition of this research direction is to treat the optimization iterate like a physical particle in a non-smooth dynamical system. In On Constraints in First-Order Optimization: A View from Non-Smooth Dynamical Systems, Michael Muehlebach and Michael I. Jordan argue that we should focus on the update direction (the velocity) rather than the absolute location.
If the current iterate $x$ is near a constraint boundary $g(x) \leq 0$, we don't need to know the entire shape of $g$. We only need to ensure that our update vector $v$ doesn't point "into" the wall. By linearizing the constraint at our current location—using a first-order Taylor expansion—we define a local "safe zone" for our velocity: $$g(x) + \nabla g(x)^T v \leq 0$$ This transformation allows the algorithm to navigate along the boundary of the feasible set using only local sensitivity information, as explored by Verena Häberle and colleagues in the context of feedback optimization.
Linearizing the Feasible Boundary
By linearizing constraints, the problem of "projecting onto a complex set" becomes "projecting onto a local polytope." This is a much easier task.
- Local Polyhedral Sets: Yichen Chen and Mengdi Wang 0001 showed that even with millions of constraints, we can sample a small subset and construct a local polyhedral approximation. Projecting onto this intersection of half-spaces is computationally cheap but geometrically accurate enough to make progress Random Multi-Constraint Projection.
- Quadratic Programming Subproblems: In the Constrained Gradient Method (CGM) proposed by Liang Zhang, Michael Muehlebach, and Niao He, the update direction is found by solving a simple quadratic program (QP) based on active or near-active constraints Primal Methods for Variational Inequality Problems with Functional Constraints.
- Closed-Form Approximations: For some problems, like those in Proximity Variational Inference, the Taylor expansion of the constraint leads to a closed-form update rule, making the cost of handling constraints nearly identical to unconstrained gradient descent.
The Geometry of the Tangent Cone
Why does this work so well? The intuition lies in the tangent cone. At any point on the boundary of a feasible set, the tangent cone represents all the directions you can move without immediately leaving the set.
Michael Muehlebach and Michael I. Jordan demonstrate that even if the global feasible set is non-convex, its local tangent cone is often convex. By "lifting" the optimization to the velocity domain, we can use efficient convex solvers to navigate non-convex geometries Accelerated first-order optimization under nonlinear constraints. This is particularly useful in robotics, where separating overlapping non-convex objects requires finding a "minimal separation velocity" A Fast and Practical Algorithm for Generalized Penetration Depth Computation.
Applications in Dynamics and Learning
This "velocity-first" perspective is proving transformative across several domains:
- Neural Differential Equations: Avik Pal and Christopher Rackauckas use these projections to prevent "numerical drift" in Neural ODEs. By projecting the state back onto a physical manifold at each step, they ensure the system respects conservation laws Semi-Explicit Neural DAEs.
- Online Learning: In adversarial environments where constraints change over time, algorithms like CVV-Pro (Constraint Violation Velocity Projection) use local linearizations to ensure the learner eventually satisfies all constraints without needing to know the full feasible set in advance Online Learning under Adversarial Nonlinear Constraints.
- Physical Simulations: For Neural PDE solvers, Gilles Louppe and Omer Rochman show that "nudging" predictions back onto a linearized physical manifold can recover fine-scale details that standard models miss Enforcing governing equation constraints in neural PDE solvers via training-free projections.
By focusing on the local "velocity" of our updates rather than the global "position" of our iterates, we can solve constrained problems with the speed and simplicity of unconstrained ones.