Solutions to all three questions of the optimisation for data science course of the University of Oxford Part B examination, sat on 7 June 2023. Source: original released PDF, bundle pages 300–303; paper pages 1–4. The original question numbering is retained without reproducing the question statements. Two printing errors on paper page 3 are addressed explicitly in parts 2(c) and 2(f).
Unless a subscript indicates the L1 norm, denotes the Euclidean norm. In Question 1, the regularization weight is and the step size is positive. The big O notation in part 1(d) is interpreted for fixed as the step size tends to zero, with the necessary subdifferential qualification explained there.
Put and . The proximal operator for the L1 norm separates into independent scalar minimization problems:The subgradient optimality condition is . By the subgradient of the absolute value, a positive solution must satisfy , and a negative solution must satisfy . At zero, the subgradient optimality condition holds exactly when . The squared term makes the objective function a strictly convex function, so these cases give its unique minimiser.
Thus the proximal operator is the soft-thresholding operatorConsequently the requested proximal gradient mapping, rather than just the proximal operator, isThe corresponding proximal gradient method update is . Small coordinates are set exactly to zero. When , the soft-thresholding operator is the identity and the proximal gradient mapping reduces to .
Again write and , and let denote its th block of coordinates. The block mixed norm in this part makes the proximal operator separate over blocks. For a single block, its minimiser solvesAt a nonzero , the gradient of the Euclidean norm is . The subgradient optimality condition therefore becomesThus points in the direction of and . This yields when .
At zero, the subdifferential of the Euclidean norm is the closed Euclidean unit ball: the subgradient inequality is for every , which is equivalent to by the Cauchy-Schwarz inequality and the choice . Hence zero solves the subgradient optimality condition exactly when . This also covers and avoids division by zero.
The resulting radial soft thresholding isIf is the corresponding block of , the required proximal gradient mapping isWhole blocks can become zero, while nonzero blocks retain their direction after the gradient step. For a block of size one, radial soft thresholding agrees with the soft-thresholding operator in part (a).
Set , and . Here is the proximal gradient mapping, is a squared Euclidean distance, and because is a global minimizer. The update gives .
First use the supplied inequality (1) with :Thus the objective function values, and hence the errors , are nonincreasing. Next use (1) with :Expansion of the squared Euclidean norm givesso the last bound is exactly .
The telescoping sum over therefore givesSince each summand is at least , we obtain the proximal gradient objective error boundThe bound holds for the last iterate. The monotonicity of the objective function values is what converts an averaged estimate into this last-iterate estimate.
Fix , and write and . The supplied subgradient relation gives with . The evaluation point in is , whereas is a subgradient at the new point .
Apply the subgradient inequality at , with comparison point :The descent lemma for the -Lipschitz gradient of givesAdding these estimates proves the stronger, explicit inequalityIn particular, the objective function decreases for whenever the proximal gradient mapping is nonzero.
To justify the requested big O notation, we must check that , which depends on , stays bounded. Suppose is nonempty, and choose a fixed in this subdifferential. This holds for a finite-valued convex function on , including both norms in parts (a) and (b). By monotonicity of a convex subdifferential,Substituting and , and then using the Cauchy-Schwarz inequality, yieldsThus , uniformly in . This local boundedness of the proximal gradient mapping makes the remainder at most , soNo differentiability of is needed. If an proper extended-real function is allowed as the regularization term, the subdifferential condition at is a qualification for this uniform remainder; the preceding explicit descent inequality remains the useful statement whenever its quantities are finite.
Let and take . Rearrange the defining inequality for a strongly convex function, applied to :Because is differentiable at , its directional derivative in direction isTaking the limit in the rearranged inequality givesThis is the supporting affine function inequality strengthened by a positive squared Euclidean distance. Differentiability at alone suffices; no derivative at is used.
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 .
There is a summation-index misprint. On the native PDF, paper page 3, equation (4) has inside a sum indexed by . The intended telescoping estimate has inside that sum; this is the estimate proved below and used in part (d). The index mismatch is present in the original PDF, rather than being introduced by the transcription.
Take the expectation of the supplied conditional expectation bound (3), using the tower property:Rearranging and forming a telescoping sum givesBecause is a global minimizer, for every realisation. Hence the corrected equation (4) isAll expectations at a finite iteration are finite here: a deterministic starting point and finitely many choices of the sampled index produce only finitely many possible iterates. The bound controls accumulated squared gradients, with an additive contribution from the stochastic gradient noise floor.
Write . Dividing the corrected estimate from part (c) by gives the averaged stationarity bound for stochastic gradient descentThe Cauchy-Schwarz inequality, first within each expectation and then over the indices, givesThusEquivalently, if is chosen independently of the run with the discrete uniform distribution on , then . The same bound for the expected Euclidean norm follows by the Cauchy-Schwarz inequality.
The guarantee is averaged or best-iterate stationarity. It does not assert that every last iterate converges, or that the limiting Euclidean norm equals . The squared gradient bound has excess above ; the displayed expected Euclidean norm bound is within of , including the zero-noise case. For fixed , it is sharper:For example, to ensure with , it suffices that . The big O notation here concerns these upper bounds, rather than an asserted asymptotic equality for the stochastic gradient noise floor.
Condition on , and set , and . Since the sampled index is independent of and has the discrete uniform distribution, is an unbiased stochastic gradient:Write . Expanding and using the zero conditional mean of proves the stochastic gradient second-moment identityThe stochastic gradient descent update is . Expanding the squared Euclidean distance and using the preceding identities givesThe subgradient inequality for the differentiable convex function gives . Combining this with (3),Removing the temporary notation for the conditioning point yieldsThe noise contributes twice in this argument: once in the supplied bound (3), and once in converting the expected squared step into the squared gradient. Each contribution is at most .
The printed distance needs a square. The native PDF, paper page 3, prints in the final bound, but the general conclusion from (5) contains . We first prove the corrected statement and then show that the printed version can fail.
Take the expectation in (5), use the tower property, and sum over . The squared Euclidean distances form a telescoping sum:Discard the final nonnegative squared Euclidean distance. The smallest of numbers is at most their arithmetic mean, soThis is an bound above the stochastic gradient noise floor for the best expected objective function value. By Jensen's inequality, it also bounds for the averaged iterate , because is a convex function.
To test the printed version, take one component function, , with , and . This convex quadratic function has , hence it has a -Lipschitz gradient. The stochastic gradient descent update is deterministic, its conditional variance is zero, and the assumed positive bound is valid. At , the new iterate is , soThus the printed inequality is false under its stated assumptions. The squared Euclidean distance in the corrected bound resolves the defect.
Fix and put , the block coordinate gradient. For , define the one-variable function . By the chain rule,The last equality holds because the coordinates of outside are zero. The fundamental theorem of calculus and the Cauchy-Schwarz inequality therefore giveFor , the supplied condition (6), applied at the fixed starting point with parameter , bounds the integrand by . Integration yieldsThis argument needs only the given directional Lipschitz continuity and continuous differentiability; convexity is not needed for this part. If the block coordinate gradient is zero, the inequality is equality.
The subgradient inequality for the differentiable convex function givesThus is a global minimizer of with value zero. Subtracting an affine function preserves convexity.
We must also justify using part (a) for , since its partial derivative can differ from that of . First show that condition (6) for a singleton block implies the full coordinate Lipschitz continuity estimateIf , choose in (6). If it is zero but , apply the same argument starting at and reverse the displacement. If both partial derivatives are zero, the estimate is immediate. The availability of all real in (6) justifies these choices.
Now , so differences of this partial derivative along coordinate lines are unchanged. Hence has the same coordinate Lipschitz continuity constant and satisfies the singleton version of (6). Apply part (a) to with step size :Combining with its already established nonnegativity provesThe coordinate estimate survives subtraction of the supporting affine function. This is the step that allows the arbitrary comparison point to be exploited in part (c).
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.
The supporting inequality in part 2(a) bounds below by an affine function plus a positive squared Euclidean norm, making it a coercive function. Its continuity gives a global minimizer , which is unique by strict convexity. Let , and . Here is the block size, so its role differs from the number of component functions in Question 2. Use randomized block coordinate descent with uniformly sampled blocks of size , independently at each update. Sampling uniformly from a fixed partition into equal-sized blocks gives the same calculation, since each coordinate has inclusion probability .
Let be a common upper bound on the block Lipschitz constants. Part (c) permits . With step size , part (a) givesSumming squared partial derivatives according to their inclusion probabilities,For a strongly convex function, part 2(a) also yields the strong convexity gradient inequalityIndeed, substitute into the supporting inequality and complete the square in : the expression is at least for every .
Combining the last three estimates gives a contraction in conditional expectation:By the tower property and repeated application,An optimization epoch counts coordinate partial derivative evaluations: it comprises block updates or one full gradient update. With sampling with replacement, an optimization epoch is this work measure; it need not visit every coordinate. Consequently the block method needsto bring the expected objective function gap below , for , up to integer rounding.
For the steepest descent method, use a global Lipschitz gradient constant . Part (c) with the full block permits . The descent lemma with step size , together with the strong convexity gradient inequality, givesAn exact line search along the negative gradient does at least as well in objective function decrease per update. Ignoring its additional work, the resulting epoch complexity isThe common coordinate-based guarantees favour blocks by a factor in epochs. In fact, with the conservative constants and , both methods have the same guaranteed contraction per update, while a block update uses only coordinate partial derivatives.
This compares the bounds justified by the given constants. For a particular objective function, sharper constants give the comparison against ; an actual speedup of is not universal. Computing a block coordinate gradient also need not cost exactly of a full gradient evaluation. The epoch complexity comparison assumes that coordinate partial derivative counts are a useful measure of work, and does not itself establish a wall-clock comparison.
Articles by others on the same topic
There are currently no matching articles.