How does projected gradient descent handle a closed convex constraint set , what is the Euclidean projection onto (a) a box and (b) the non-negative orthant , and what does one step from with give for ?
Linear algebra and optimisation, Constrained optimisation
Level L2 Elementary. Length Medium. Nature Th+Mat Both.
What's being asked
Whether you can apply the gradient-then-clip projected gradient step and check when a boundary point is optimal.
Key idea
Take an ordinary unconstrained gradient step and then project to the nearest feasible point in Euclidean distance: . For boxes and non-negative constraints, this projection is simple coordinate-wise clipping.
Steps
- Write the update: . Because the feasible region is closed and convex (a convex set containing its boundary), a unique nearest point always exists.
- Give the coordinate-wise clipping formulas: because squared Euclidean distance splits by coordinate, (a) projecting onto a box clips each entry to via , and (b) projecting onto the non-negative orthant (all vectors with every coordinate ) clips negatives to zero via .
- Compute the gradient at : , so .
- Take the unconstrained step: .
- Project onto : . Notice is already the constrained minimum: , so clips right back to even though the gradient is not zero.
Common mistakes
- Stopping only when ; at a boundary optimum the gradient usually points inward so points outward, and the right check is .
- Assuming projection is always cheap; clipping works for boxes and , whereas complex constraints may need a separate solver per step.
How long your answer should be
Half a page; 4 minutes.
Read this
Previous in Linear algebra and optimisation: Using Lagrange multipliers, find the point on the line that minimises , and what is the minimum value?
Next in Linear algebra and optimisation: Find all stationary points of , and use the Hessian at each stationary point to classify it as a local minimum, local maximum or saddle point. What happens if gradient descent is initialised at versus ?