Past exam of the optimisation for data science course of the University of Oxford 2023 2 b Solution 2026-10-25
For the linear least-squares problem objective function, direct expansion with givesIts gradient is , so the middle term equals .
Use the supplied thin singular value decomposition . Since , the linear map preserves the Euclidean norm. The square matrix is an orthogonal matrix, so . ConsequentlySubstitution into the expansion provesThus is a strongly convex function with modulus . This modulus is sharp: choose for an index attaining the smallest singular value. The Hessian matrix is , so the same conclusion says that its smallest eigenvalue is .
Past exam of the optimisation for data science course of the University of Oxford 2023 3 c Solution 2026-10-25
For arbitrary , write the Bregman divergencePart (b), with its supporting affine function constructed at this , implies the coordinate derivative bound by Bregman divergenceFor a nonempty block , set and . Sum the coordinate inequalities:Since in part (b) was arbitrary, interchange and to obtain the same left side bounded by . Adding the two inequalities and dividing by two givesNow require that have zero coordinates outside . The last dot product is then . By the Cauchy-Schwarz inequality,If , the desired estimate is immediate; otherwise divide by its Euclidean norm. We have proved the stronger block Lipschitz constant from coordinate smoothness estimateIn particular, take for any real . This proves (6), with a valid choiceThe least admissible Lipschitz constant is therefore no larger than this choice. For the empty block, the block coordinate gradient vanishes identically and its least nonnegative Lipschitz constant is zero. The proof uses only differentiability, convexity and coordinate Lipschitz continuity, with no assumed Hessian matrix.
Ignoring a factor independent of the parameters, the likelihood function isSince every count is positive, a boundary value has zero likelihood. At an interior optimum, a Lagrange multiplier for gives . Summing the resulting gives , soThe log likelihood function is strictly concave on the positive simplex, because its Hessian matrix is diagonal with entries . Hence this critical point is the unique global maximum-likelihood estimate.
A second-order nondivergence-form elliptic operator on a domain has the formOnly the symmetric part of affects the Hessian matrix term, so one may take symmetric. The operator is a uniformly elliptic operator if there is a constant , independent of , such thatA common bounded-coefficient convention additionally requires an upper bound with . The lower bound says that the principal quadratic form cannot degenerate in any direction or at any location.
For an explicit stochastic example, standard -dimensional Brownian motion has infinitesimal generatorIts principal quadratic form is , so it is uniformly elliptic with . More generally, a sufficiently regular stochastic differential equation has diffusion generator ; it is uniformly elliptic when has a uniformly positive lower bound. A conservative diffusion process has no zeroth-order term, since its infinitesimal generator annihilates constants.
At an arbitrary nonzero vacuum write , where . The Hessian matrix of the potential isOn the vacuum circle this reduces toIt has eigenvalue along and eigenvalue zero along the one perpendicular direction. Rotating the vacuum conjugates this matrix by an orthogonal matrix and cannot change its eigenvalues. Thus every point on the circle has exactly one tangential massless Goldstone boson.
Geometrically, motion along the circle costs no potential energy whereas motion normal to it does. The circle's dimension, equivalently , is independent of its point. Counting the number of real field components would instead give two and would incorrectly count the massive radial direction as a Goldstone mode.
Goldstone's theorem states that a spontaneously broken continuous internal global symmetry in field theory of a local relativistic quantum field theory produces massless Goldstone bosons. For a Lorentz invariance vacuum breaking to its stabilizer , there are independent symmetry-required massless directions. Additional accidentally massless modes are possible. A gauge redundancy does not obey this physical-state counting, and nonrelativistic systems need not have one independent mode per broken generator.
For the classical proof, consider real scalar fields with a positive canonical kinetic term and an invariant smooth scalar potential . An infinitesimal generator satisfiesLet be a stationary vacuum and differentiate this identity with respect to . At , the term proportional to vanishes, leavingThe Hessian matrix is the scalar mass matrix. An unbroken generator has ; broken generators span the tangent space of the vacuum manifold . Each independent nonzero tangent vector is a zero eigenvector of . The quadratic Euler-Lagrange equations in these directions are , giving the massless dispersion relation . This proves the classical result and explains why the Goldstone bosons describe motion along the degenerate minima rather than against a restoring curvature.
A critical point requires . Since for every real , the first partial derivative forces . The second then reduces to , so the only critical points are and .
At these points the Hessian matrix is diagonal:The first is a positive-definite matrix, giving a strict local minimum; the second is an indefinite matrix, giving a saddle point. Their values are and . HenceThe minimum is local: along , is unbounded below as .
Solving gives . Substitution into gives . Therefore is always a critical point. When as well as the printed restriction , there is a second critical pointAt , the Hessian matrix is with determinant . The second-derivative test gives a strict local minimum when and a saddle point of a scalar function when .
The allowed value requires higher-order terms. With , completing the square gives the exact identityThe coordinate change is invertible, so the Hessian at a critical point under a change of coordinates preserves the classification. At , this is a cubic degenerate saddle: along , the difference from the critical value is and takes both signs. Thus, throughout the printed parameter range,There is no local maximum. When the second point is distinct, it is a local minimum for and a saddle point of a scalar function for : in the coordinates its Hessian matrix is . The printed instruction to split only at misses the negative-parameter cases.
Put and . At , the value is , the gradient is , and the Hessian matrix is . Thus the quadratic Taylor expansion isThe exact remainder is , since the original polynomial has only the cubic term beyond degree two.
The gradient vanishes when and . Subtracting these equations gives , so the unique critical point is , with .
The Hessian matrix isIt is indefinite, so the critical point is a saddle point. Explicitly, around that point the change is exactly : it is positive for and negative for . Thus arbitrarily close points have both larger and smaller values.
The critical points satisfy both first partial derivatives equal to zero:Substitute into the second equation to get . Thus the candidates are and .
The Hessian matrix and its determinant areAt the determinant is , so the Hessian matrix is indefinite and the point is a saddle point. At the determinant is and , so the Hessian matrix is positive definite and the point is a strict local minimum, with valueThere is no local maximum. Along , is unbounded above and below, so there are no global extrema either.
The gradient equations areThus gives , while gives . The Hessian matrix isAt both critical points the determinant is , so the Hessian is indefinite and the second-derivative test classifies both as saddle points. Direct substitution givesThe factorization also shows the crossing level-set branches through each saddle.
The gradient vanishes exactly when and , giving the four points . The Hessian matrix is . It is positive definite at , negative definite at , and indefinite at the two mixed-sign points. Thus is a strict local minimum, a strict local maximum, and are saddle points by the second-derivative test. Their respective function values are , , and zero at both saddle points.
At , gradient descent and full BFGS are practical candidates; a dense Newton method can also be feasible, but its extra work and indefinite curvature need attention. The number of examples , data sparsity and conditioning still matter.
For dense , a gradient evaluation costs arithmetic, with working storage beyond the data and accumulation buffers. Gradient descent is inexpensive per iteration and, with an appropriate line search, follows a descent direction, but poor conditioning can make it slow.
Forming the Hessian matrix explicitly costs arithmetic, and a dense Newton method solve costs . A -square double-precision matrix uses about MB, so storage alone is manageable, but repeated factorization may be expensive. Because the Hessian matrix can be indefinite or singular, an unmodified Newton step need not decrease the loss; a modified Hessian, damping or a trust region is appropriate.
Full BFGS uses gradients and an curvature approximation, avoiding explicit second derivatives. Its rank-two updates and direction calculation cost per step and require roughly the same matrix storage. A positive-definite initial approximation with safeguarded curvature updates and a suitable line search preserves descent directions. For this scale it is often a good compromise, without guaranteeing a global minimum.[ref]
Quasi-Newton Methods by NEOS Guide. Secant condition, positive-definite updating, and quadratic per-step operation/storage costs
Differentiating the gradient term by term gives the Hessian matrixTake row of to be . ThenIndeed, entry of this product is , exactly the entry of the displayed sum of outer products. Explicitly,These coefficients may have either sign, so a positive-definite Hessian matrix cannot be assumed. This is an instance of the Hessian of a sum of functions of linear forms.
At , gradient descent remains a plausible large-scale choice; dense Newton method and full-memory BFGS are generally impractical. A dense double-precision matrix alone contains entries, about TB. Dense factorization also has order arithmetic work. Full BFGS avoids factorization but retains quadratic storage and update work, so it does not solve that scaling problem.
Gradient descent uses linear working storage in , though the cost of reading the data and evaluating the gradient is still for dense . Sparsity or streaming can be important. Limited-memory BFGS, a distinct limited-memory variant, stores only a fixed number of recent update pairs and uses storage and update work, making it a realistic alternative to full BFGS.[ref]
Quasi-Newton Methods by NEOS Guide. Final paragraphs: implicit inverse-Hessian products and stored-pair limited-memory methods
The available Hessian matrix factorization also permits a matrix-free Hessian-vector product:It costs for dense data without forming . A suitable iterative, safeguarded Newton method can exploit this structure, so the conclusion rules out the dense implementation rather than every possible second-order algorithm.
These methods seek a local solution and require convergence checks appropriate to nonconvex optimization. The formula does not even ensure a finite minimizer exists: with one positive coefficient and nonzero , the positive exponential loss approaches zero along an unbounded direction without attaining it. Dimension alone cannot supply a convergence guarantee.
Differentiate the column gradient . The Jacobian matrix product rule gives one term from differentiating the scalar exponential function and one from differentiating , whose Jacobian matrix is the identity matrix:In particular, for any nonzero vector ,Thus the Hessian matrix is positive definite everywhere. This calculation proves strict convexity and supplies the derivatives needed for sums of these terms.
Here a dense -by- matrix has entries, about GB even with eight-byte storage per entry. Use limited-memory BFGS on the negative of the objective, or equivalently its positive-definite approximate-metric form of gradient ascent. It stores only a fixed small number of vector pairs, costing memory rather than .
Let and put . Direct use of the chain rule givesIf denotes the positive-definite inverse-Hessian matrix approximation for , the iteration iswith a line search increasing and the usual safeguarded limited-memory updates. No exact Hessian matrix is required. With fixed memory and the usual bounded-metric and line search hypotheses, expect local linear convergence near a nondegenerate strict maximum; fixed-memory limited-memory BFGS does not generally inherit the superlinear theorem for full-memory BFGS.
Unlike the preceding objective, is not generally a concave function. Thus this is a method for finding a local maximum; comparison of different converged candidates or a global search is needed to certify a global maximum for arbitrary centres. The symbolic problem supplies no assumption that would justify an unconditional global-convergence claim.[ref]
Quasi-Newton Methods by NEOS Guide. Final paragraphs: storing only recent secant vectors, linear-in-dimension memory, and the L-BFGS implementation
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Discrete mathematics, continuous mathematics, and probability 6 b i Solution Created 2026-10-25 Updated 2026-10-31
A practical choice is a BFGS method, using exact gradients and a line search. At dimension , its -by- inverse-Hessian matrix approximation is small, whereas forming a million rank-one contributions to the exact Hessian matrix is expensive. If , the explicit derivatives areThe positive-definite Hessian matrix and coercivity show that the objective has one global minimizer.
For numerical stability one can minimize instead, which has exactly the same minimizer. Put , , and . Then the logarithmic gradient of an exponential squared-distance sum givesEvaluate the weights as to avoid floating-point overflow. A quasi-Newton method step iswhere is the positive-definite inverse-Hessian matrix approximation updated by BFGS, and is chosen by a line search, for example one satisfying the Wolfe conditions. Under the standard smoothness and nondegeneracy assumptions at this strongly convex minimizer, full-memory BFGS has local superlinear convergence. An exact Newton's method in optimization would have local quadratic convergence, but pays for those much more expensive exact second derivatives.[ref]
Quasi-Newton Methods by NEOS Guide. Opening construction and BFGS update: approximate Hessians from gradients; dense update cost of order d squared
Writing , the gradient and Hessian matrix areConsequently, for any nonzero ,In particular the Hessian matrix is a positive semidefinite matrix everywhere, so the Hessian criterion for convexity proves is convex. The strict inequality along every nonconstant line also proves strict convexity.
