Completeness contract
This article follows 19 of 19 pages of5_Ch4-General-purpose gradient-based opt(1).pdf. Ledgers cover numbered and unnumbered displayed equations, meaningful inline mathematics, tables, figures, captions, multiple-choice questions,??, blanks, footnotes, references, and legible handwriting. Source blanks and suspected errors are preserved; completed and corrected expressions receive separate statuses.
Keep three layers distinct.
Separate the 2025 PDF reconstruction, editorial and mathematical verification, and the research update dated August 18, 2026.
#Ledger status
- PDF: 19 of 19 pages
- PDF SHA-256:
23272c39a5ad9c0dddf24eb7d42fdebe8575344f74bac3de761b7844fd81e58c - Total equation records: 211
- Source-derived equations: 188
- Displayed equations: 110; inline equations: 101
- Content records: 151
- Figures/tables: 10
- Handwritten annotations: 17
- Editorial completions/corrections: 23
#Reconstructing the PDF source
#4. General-purpose gradient-based optimization methods
Unconstrained optimization begins by minimizing cost function :
Source equation · PDF p. 1 · Eq. (1)
Explanation Core explanation
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Reference-quality follow-up
Explore this calculation further
Choose an initial estimate , construct iterates , and seek in a suitable norm.
The lecture uses to cover real or complex applications. Its focus is smooth convex objectives with Lipschitz-continuous gradients, including least squares as a special case.
#Motivating application: edge-preserving image recovery
With measurement model , combine data fidelity and a convex smooth regularizer to solve:
Source equation · PDF p. 1
Explanation and calculations 4 calculation steps · Numerical example · Checks included
The question this equation answers
How far are predictions from targets on average?
Key idea
Subtract targets from predictions, square each residual, and divide by sample count. Larger errors receive greater penalties.
Calculation walkthrough
Calculation steps
- 1
Calculate predictions
For linear regression, predictions are Xw or wᵀx.
- 2
Calculate residuals
- 3
Square the residuals
Remove signs and emphasize larger errors.
- 4
Sum and divide by sample count
Worked example
Work through the numbers — MSE for two samples
Compare predictions and targets directly.
- 1
Targets and predictions
- 2
Residual
- 3
Square
- 4
Average
Result: MSE is 5. The second sample's error of 3 substantially increases it.
Sanity check
Checks
- Check whether the expression divides by sample count or is merely a sum of squares.
- MSE has squared output units.
Reference-quality follow-up
Explore this calculation further
The regularizer sums potentials over transform coefficients in form .
11×11 uniform blur
additive noise · 60 dB blurred SNR
edge-preserving recovery
smooth convex regularization + gradient method
Lecture annotation — PDF p. 1. Brief notes connect contours, gradient directions, step sizes, and Lipschitz constants. Uncertain small handwriting is not expanded through guessing.
#4.1 Lipschitz continuity
A function is Lipschitz continuous if some finite satisfies:
Source equation · PDF p. 2
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far is a vector or error from the origin?
Key idea
The L2 norm sums squared components and takes the square root. Squared norm omits the final square root.
Formula-specific lesson
Products of Lipschitz functions: a counterexample and a bounded-product bound
Compare the x² counterexample with bounded tanh factors on the same axes. See why the product of two Lipschitz functions need not be Lipschitz, and calculate the bound that boundedness provides.
Calculation walkthrough
Calculation steps
- 1
Square each component
Turn both negative and positive components into nonnegative contributions.
- 2
Sum the squares
- 3
Take the square root for a norm
- 4
Distinguish the squared norm
Worked example
Work through the numbers — The 3–4–5 vector
A familiar Pythagorean example.
- 1
Vector
- 2
Sum of squares
- 3
Square root
Result: Thus ||x||₂=5 and ||x||₂²=25.
Sanity check
Checks
- A norm is always nonnegative.
- Confusing a norm with its square changes units and derivative coefficients.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
The smallest valid constant is the best Lipschitz constant. Unless stated otherwise, the lecture uses Euclidean norms.
Write the best constants for f and g as .
- Scaling:
- Translation:
- Addition:
- Composition:
- Affine transformation:
- Multiplication:
A true/false question asks whether products of Lipschitz functions are always Lipschitz on the full real line, leaving the answer blank.
Source notation requires review · PDF p. 2
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Products of Lipschitz functions: a counterexample and a bounded-product bound
Compare the x² counterexample with bounded tanh factors on the same axes. See why the product of two Lipschitz functions need not be Lipschitz, and calculate the bound that boundedness provides.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
A sufficient product condition and its proof are also left blank.
Source notation requires review · PDF p. 2
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Products of Lipschitz functions: a counterexample and a bounded-product bound
Compare the x² counterexample with bounded tanh factors on the same axes. See why the product of two Lipschitz functions need not be Lipschitz, and calculate the bound that boundedness provides.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Source notation requires review · PDF p. 2
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Products of Lipschitz functions: a counterexample and a bounded-product bound
Compare the x² counterexample with bounded tanh factors on the same axes. See why the product of two Lipschitz functions need not be Lipschitz, and calculate the bound that boundedness provides.
Reference-quality follow-up
Explore this calculation further
Source notation requires review · PDF p. 2
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far is a vector or error from the origin?
Key idea
The L2 norm sums squared components and takes the square root. Squared norm omits the final square root.
Formula-specific lesson
Products of Lipschitz functions: a counterexample and a bounded-product bound
Compare the x² counterexample with bounded tanh factors on the same axes. See why the product of two Lipschitz functions need not be Lipschitz, and calculate the bound that boundedness provides.
Calculation walkthrough
Calculation steps
- 1
Square each component
Turn both negative and positive components into nonnegative contributions.
- 2
Sum the squares
- 3
Take the square root for a norm
- 4
Distinguish the squared norm
Worked example
Work through the numbers — The 3–4–5 vector
A familiar Pythagorean example.
- 1
Vector
- 2
Sum of squares
- 3
Square root
Result: Thus ||x||₂=5 and ||x||₂²=25.
Sanity check
Checks
- A norm is always nonnegative.
- Confusing a norm with its square changes units and derivative coefficients.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
The next page asks whether boundedness is necessary: .
Lecture annotation — PDF p. 2. Handwritten additions indicate adding and subtracting terms before applying the triangle inequality, with boundedness marked. Uncertain small handwriting is not reconstructed speculatively.
#Smooth function: Lipschitz-continuous gradient
Here, smoothness means differentiability with gradient satisfying:
Source equation · PDF p. 3
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
Gradient Lipschitz ↔ Hessian spectral bound
Compare the gradient-difference ratio with λmax for the same quadratic Hessian, and verify the PDF’s rank-one example z=[1,2], for which ||2zzᵀ||₂=10.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Complex derivatives require more care, so this definition is first made in real space.
For least-squares example , gradient gives:
Source equation · PDF p. 3
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
Gradient Lipschitz ↔ Hessian spectral bound
Compare the gradient-difference ratio with λmax for the same quadratic Hessian, and verify the PDF’s rank-one example z=[1,2], for which ||2zzᵀ||₂=10.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction |
Reference-quality follow-up
Explore this calculation further
and hence:
Source equation · PDF p. 3
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far is a vector or error from the origin?
Key idea
The L2 norm sums squared components and takes the square root. Squared norm omits the final square root.
Formula-specific lesson
Gradient Lipschitz ↔ Hessian spectral bound
Compare the gradient-difference ratio with λmax for the same quadratic Hessian, and verify the PDF’s rank-one example z=[1,2], for which ||2zzᵀ||₂=10.
Calculation walkthrough
Calculation steps
- 1
Square each component
Turn both negative and positive components into nonnegative contributions.
- 2
Sum the squares
- 3
Take the square root for a norm
- 4
Distinguish the squared norm
Worked example
Work through the numbers — The 3–4–5 vector
A familiar Pythagorean example.
- 1
Vector
- 2
Sum of squares
- 3
Square root
Result: Thus ||x||₂=5 and ||x||₂²=25.
Sanity check
Checks
- A norm is always nonnegative.
- Confusing a norm with its square changes units and derivative coefficients.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Standard deviation or sigmoid notation | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
For twice-differentiable functions, a Hessian spectral-norm bound
Source equation · PDF p. 3
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
Gradient Lipschitz ↔ Hessian spectral bound
Compare the gradient-difference ratio with λmax for the same quadratic Hessian, and verify the PDF’s rank-one example z=[1,2], for which ||2zzᵀ||₂=10.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
is sufficient for a Lipschitz gradient. The proof uses Taylor’s integral form
Source equation · PDF p. 3
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
Gradient Lipschitz ↔ Hessian spectral bound
Compare the gradient-difference ratio with λmax for the same quadratic Hessian, and verify the PDF’s rank-one example z=[1,2], for which ||2zzᵀ||₂=10.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction |
Reference-quality follow-up
Explore this calculation further
and the norm bound
Source equation · PDF p. 3
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
Gradient Lipschitz ↔ Hessian spectral bound
Compare the gradient-difference ratio with λmax for the same quadratic Hessian, and verify the PDF’s rank-one example z=[1,2], for which ||2zzᵀ||₂=10.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
together. The lecture explicitly states sufficiency rather than necessity.
Quadratic examples include , rank-one form , , and:
Source equation · PDF p. 3
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
Gradient Lipschitz ↔ Hessian spectral bound
Compare the gradient-difference ratio with λmax for the same quadratic Hessian, and verify the PDF’s rank-one example z=[1,2], for which ||2zzᵀ||₂=10.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction |
Reference-quality follow-up
Explore this calculation further
Lecture annotation — PDF p. 3. Notes trace least-squares gradients, Hessian spectral norms, and singular-value/eigenvalue relationships. Uncertain small handwriting is not reconstructed speculatively.
#Fair potential and edge-preserving regularization
The Fair potential is:
Source equation · PDF p. 4
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Fair potential → chain rule → regularizer Lipschitz bound
Vary δ while viewing ψδ, ψ̇δ, and ψ̈δ together. For a first-difference matrix C, verify how Cᵀψ̇(Cx), ||C||₂², and the L∇R bound fit into one calculation.
Reference-quality follow-up
Explore this calculation further
It satisfies:
Source equation · PDF p. 4
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Fair potential → chain rule → regularizer Lipschitz bound
Vary δ while viewing ψδ, ψ̇δ, and ψ̈δ together. For a first-difference matrix C, verify how Cᵀψ̇(Cx), ||C||₂², and the L∇R bound fit into one calculation.
Reference-quality follow-up
Explore this calculation further
,
Source equation · PDF p. 4
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Fair potential → chain rule → regularizer Lipschitz bound
Vary δ while viewing ψδ, ψ̇δ, and ψ̈δ together. For a first-difference matrix C, verify how Cᵀψ̇(Cx), ||C||₂², and the L∇R bound fit into one calculation.
Reference-quality follow-up
Explore this calculation further
It is approximately quadratic near zero and grows like |x| for large |x|. A nonnegative second derivative makes it convex.
The lecture asks whether the potential itself is Lipschitz continuous, leaving .
An exercise derives the regularizer gradient and Lipschitz constant by composition, beginning with:
Source notation requires review · PDF p. 4 · Eq. (2)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
Fair potential → chain rule → regularizer Lipschitz bound
Vary δ while viewing ψδ, ψ̇δ, and ψ̈δ together. For a first-difference matrix C, verify how Cᵀψ̇(Cx), ||C||₂², and the L∇R bound fit into one calculation.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction | |
| Sum over all specified terms | |
| Total class count or a matrix; check context | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
and leaving and
Source notation requires review · PDF p. 4
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Fair potential → chain rule → regularizer Lipschitz bound
Vary δ while viewing ψδ, ψ̇δ, and ψ̈δ together. For a first-difference matrix C, verify how Cᵀψ̇(Cx), ||C||₂², and the L∇R bound fit into one calculation.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
,
Source notation requires review · PDF p. 4
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far is a vector or error from the origin?
Key idea
The L2 norm sums squared components and takes the square root. Squared norm omits the final square root.
Formula-specific lesson
Fair potential → chain rule → regularizer Lipschitz bound
Vary δ while viewing ψδ, ψ̇δ, and ψ̈δ together. For a first-difference matrix C, verify how Cᵀψ̇(Cx), ||C||₂², and the L∇R bound fit into one calculation.
Calculation walkthrough
Calculation steps
- 1
Square each component
Turn both negative and positive components into nonnegative contributions.
- 2
Sum the squares
- 3
Take the square root for a norm
- 4
Distinguish the squared norm
Worked example
Work through the numbers — The 3–4–5 vector
A familiar Pythagorean example.
- 1
Vector
- 2
Sum of squares
- 3
Square root
Result: Thus ||x||₂=5 and ||x||₂²=25.
Sanity check
Checks
- A norm is always nonnegative.
- Confusing a norm with its square changes units and derivative coefficients.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sum over all specified terms |
Reference-quality follow-up
Explore this calculation further
,
Source notation requires review · PDF p. 4 · Eq. (3)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
Fair potential → chain rule → regularizer Lipschitz bound
Vary δ while viewing ψδ, ψ̇δ, and ψ̈δ together. For a first-difference matrix C, verify how Cᵀψ̇(Cx), ||C||₂², and the L∇R bound fit into one calculation.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
,
Source notation requires review · PDF p. 4
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far is a vector or error from the origin?
Key idea
The L2 norm sums squared components and takes the square root. Squared norm omits the final square root.
Formula-specific lesson
Fair potential → chain rule → regularizer Lipschitz bound
Vary δ while viewing ψδ, ψ̇δ, and ψ̈δ together. For a first-difference matrix C, verify how Cᵀψ̇(Cx), ||C||₂², and the L∇R bound fit into one calculation.
Calculation walkthrough
Calculation steps
- 1
Square each component
Turn both negative and positive components into nonnegative contributions.
- 2
Sum the squares
- 3
Take the square root for a norm
- 4
Distinguish the squared norm
Worked example
Work through the numbers — The 3–4–5 vector
A familiar Pythagorean example.
- 1
Vector
- 2
Sum of squares
- 3
Square root
Result: Thus ||x||₂=5 and ||x||₂²=25.
Sanity check
Checks
- A norm is always nonnegative.
- Confusing a norm with its square changes units and derivative coefficients.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Total class count or a matrix; check context | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
as blanks.
Lecture annotation — PDF p. 4. Notes connect the Fair potential’s quadratic regime with edge preservation and mark chain-rule order beside the regularizer exercise. Uncertain small writing is not reconstructed speculatively.
#4.2 Gradient descent for smooth convex functions
Assume finite minimizer , Lipschitz gradient , and step size . The iteration is:
Source equation · PDF p. 5 · Eq. (4)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Where should parameters move next to reduce loss?
Key idea
Calculate the gradient at current parameters, multiply by the learning rate, and subtract to obtain new parameters.
Formula-specific lesson
GD step size, anisotropy, and corrected worst-case scaling
Vary αL in a two-dimensional quadratic. Compare the stability interval 0<α<2/L, objective decrease, and the bounds corrected during review along the same trajectory.
Calculation walkthrough
Calculation steps
- 1
Calculate the current loss gradient
- 2
Determine the step size
- 3
Move opposite the direction of increase
- 4
Check the new loss and repeat
Too large a learning rate can diverge; too small is very slow.
Worked example
Work through the numbers — One update
f(w)=(w-3)², current w=5, and learning rate α=0.1.
- 1
Gradient
- 2
Step size
- 3
Update
- 4
Compare losses
Result: One step reduces loss from 4 to 2.56.
Sanity check
Checks
- Check for the minus sign.
- Recording loss before and after updates alongside gradient norm helps detect divergence early.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Learning rate, mixture coefficient, or dual coefficient | |
| A gradient collecting derivatives in each variable direction |
Reference-quality follow-up
Explore this calculation further
Listed properties include monotone cost , monotone distance to a minimizer , and convergence to a minimizer. For , the lecture gives:
Source notation requires review · PDF p. 5
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far are predictions from targets on average?
Key idea
Subtract targets from predictions, square each residual, and divide by sample count. Larger errors receive greater penalties.
Formula-specific lesson
GD step size, anisotropy, and corrected worst-case scaling
Vary αL in a two-dimensional quadratic. Compare the stability interval 0<α<2/L, objective decrease, and the bounds corrected during review along the same trajectory.
Calculation walkthrough
Calculation steps
- 1
Calculate predictions
For linear regression, predictions are Xw or wᵀx.
- 2
Calculate residuals
- 3
Square the residuals
Remove signs and emphasize larger errors.
- 4
Sum and divide by sample count
Worked example
Work through the numbers — MSE for two samples
Compare predictions and targets directly.
- 1
Targets and predictions
- 2
Residual
- 3
Square
- 4
Average
Result: MSE is 5. The second sample's error of 3 substantially increases it.
Sanity check
Checks
- Check whether the expression divides by sample count or is merely a sum of squares.
- MSE has squared output units.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Learning rate, mixture coefficient, or dual coefficient | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
It conjectures that the same bound also holds for .
Convergence rates consider objective gap , gradient norm , and iterate error , globally or locally. GD with fixed α=1/L has tight worst-case objective bound:
Source notation requires review · PDF p. 5
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far are predictions from targets on average?
Key idea
Subtract targets from predictions, square each residual, and divide by sample count. Larger errors receive greater penalties.
Formula-specific lesson
GD step size, anisotropy, and corrected worst-case scaling
Vary αL in a two-dimensional quadratic. Compare the stability interval 0<α<2/L, objective decrease, and the bounds corrected during review along the same trajectory.
Calculation walkthrough
Calculation steps
- 1
Calculate predictions
For linear regression, predictions are Xw or wᵀx.
- 2
Calculate residuals
- 3
Square the residuals
Remove signs and emphasize larger errors.
- 4
Sum and divide by sample count
Worked example
Work through the numbers — MSE for two samples
Compare predictions and targets directly.
- 1
Targets and predictions
- 2
Residual
- 3
Square
- 4
Average
Result: MSE is 5. The second sample's error of 3 substantially increases it.
Sanity check
Checks
- Check whether the expression divides by sample count or is merely a sum of squares.
- MSE has squared output units.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Nesterov FGM achieves rate .
The slow least-squares example uses and . Even an optimal fixed step zigzags through elongated contours. The lecture proposes preconditioning and line search as practical acceleration routes.
Lecture annotation — PDF p. 5. Notes compare O(1/k) with O(1/k²) and link large condition numbers to zigzagging. Uncertain small writing is not reconstructed speculatively.
#4.3 Preconditioned steepest descent and PGD
PSD combines negative preconditioned gradient , one-dimensional line search , and update:
Source equation · PDF p. 6 · Eq. (5)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Where should parameters move next to reduce loss?
Key idea
Calculate the gradient at current parameters, multiply by the learning rate, and subtract to obtain new parameters.
Formula-specific lesson
Preconditioning and exact line-search orthogonality
Use P to make the geometry of an ill-conditioned quadratic more spherical. With d=-P∇Ψ, calculate the exact line-search step α and check that the next gradient is orthogonal to d.
Calculation walkthrough
Calculation steps
- 1
Calculate the current loss gradient
- 2
Determine the step size
- 3
Move opposite the direction of increase
- 4
Check the new loss and repeat
Too large a learning rate can diverge; too small is very slow.
Worked example
Work through the numbers — One update
f(w)=(w-3)², current w=5, and learning rate α=0.1.
- 1
Gradient
- 2
Step size
- 3
Update
- 4
Compare losses
Result: One step reduces loss from 4 to 2.56.
Sanity check
Checks
- Check for the minus sign.
- Recording loss before and after updates alongside gradient norm helps detect divergence early.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Learning rate, mixture coefficient, or dual coefficient |
Reference-quality follow-up
Explore this calculation further
Quadratics admit analytical line search . Under , strict decrease when needed gives , but nonquadratic objectives incur line-search costs each iteration.
The first-order condition for exact line search is:
Source equation · PDF p. 6
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Where should parameters move next to reduce loss?
Key idea
Calculate the gradient at current parameters, multiply by the learning rate, and subtract to obtain new parameters.
Formula-specific lesson
Preconditioning and exact line-search orthogonality
Use P to make the geometry of an ill-conditioned quadratic more spherical. With d=-P∇Ψ, calculate the exact line-search step α and check that the next gradient is orthogonal to d.
Calculation walkthrough
Calculation steps
- 1
Calculate the current loss gradient
- 2
Determine the step size
- 3
Move opposite the direction of increase
- 4
Check the new loss and repeat
Too large a learning rate can diverge; too small is very slow.
Worked example
Work through the numbers — One update
f(w)=(w-3)², current w=5, and learning rate α=0.1.
- 1
Gradient
- 2
Step size
- 3
Update
- 4
Compare losses
Result: One step reduces loss from 4 to 2.56.
Sanity check
Checks
- Check for the minus sign.
- Recording loss before and after updates alongside gradient norm helps detect divergence early.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Learning rate, mixture coefficient, or dual coefficient | |
| A gradient collecting derivatives in each variable direction | |
| Partial derivative with respect to a particular variable |
Reference-quality follow-up
Explore this calculation further
Thus the next gradient is orthogonal to the current search direction. Inexact searches give only approximate orthogonality.
Fixed-step PGD uses:
Source equation · PDF p. 6 · Eq. (6)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Where should parameters move next to reduce loss?
Key idea
Calculate the gradient at current parameters, multiply by the learning rate, and subtract to obtain new parameters.
Formula-specific lesson
Preconditioning and exact line-search orthogonality
Use P to make the geometry of an ill-conditioned quadratic more spherical. With d=-P∇Ψ, calculate the exact line-search step α and check that the next gradient is orthogonal to d.
Calculation walkthrough
Calculation steps
- 1
Calculate the current loss gradient
- 2
Determine the step size
- 3
Move opposite the direction of increase
- 4
Check the new loss and repeat
Too large a learning rate can diverge; too small is very slow.
Worked example
Work through the numbers — One update
f(w)=(w-3)², current w=5, and learning rate α=0.1.
- 1
Gradient
- 2
Step size
- 3
Update
- 4
Compare losses
Result: One step reduces loss from 4 to 2.56.
Sanity check
Checks
- Check for the minus sign.
- Recording loss before and after updates alongside gradient norm helps detect divergence early.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Learning rate, mixture coefficient, or dual coefficient | |
| A gradient collecting derivatives in each variable direction |
Reference-quality follow-up
Explore this calculation further
With and coordinate change , transform the original problem into:
Source equation · PDF p. 6
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Preconditioning and exact line-search orthogonality
Use P to make the geometry of an ill-conditioned quadratic more spherical. With d=-P∇Ψ, calculate the exact line-search step α and check that the next gradient is orthogonal to d.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Event probability |
Reference-quality follow-up
Explore this calculation further
Lecture annotation — PDF p. 6. Marks indicate post-search gradient/direction orthogonality and note that FGM/OGM need no line search when L is known. Uncertain small writing is not reconstructed speculatively.
The chain rule gives transformed-coordinate GD:
Source equation · PDF p. 7
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
Preconditioning and exact line-search orthogonality
Use P to make the geometry of an ill-conditioned quadratic more spherical. With d=-P∇Ψ, calculate the exact line-search step α and check that the next gradient is orthogonal to d.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Learning rate, mixture coefficient, or dual coefficient | |
| A gradient collecting derivatives in each variable direction |
Reference-quality follow-up
Explore this calculation further
Multiplying by T gives PGD. The lecture leaves this equivalence as .
For least squares, α=1 and give , motivating as an ideal preconditioner. A good preconditioner creates coordinates with nearly spherical level sets.
#Descent direction
Definition 4.5 defines local decrease by:
Source equation · PDF p. 7 · Eq. (7)
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Preconditioning and exact line-search orthogonality
Use P to make the geometry of an ill-conditioned quadratic more spherical. With d=-P∇Ψ, calculate the exact line-search step α and check that the next gradient is orthogonal to d.
Reference-quality follow-up
Explore this calculation further
The zero vector is also a degenerate descent direction. In real space, with the earlier positive-definite P, a nonzero
Source equation · PDF p. 7 · Eq. (8)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
Preconditioning and exact line-search orthogonality
Use P to make the geometry of an ill-conditioned quadratic more spherical. With d=-P∇Ψ, calculate the exact line-search step α and check that the next gradient is orthogonal to d.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction |
Reference-quality follow-up
Explore this calculation further
is a descent direction, with proof sketch:
Source equation · PDF p. 7
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
Preconditioning and exact line-search orthogonality
Use P to make the geometry of an ill-conditioned quadratic more spherical. With d=-P∇Ψ, calculate the exact line-search step α and check that the next gradient is orthogonal to d.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Learning rate, mixture coefficient, or dual coefficient | |
| A gradient collecting derivatives in each variable direction |
Reference-quality follow-up
Explore this calculation further
Representative choices include positive diagonal and:
Source notation requires review · PDF p. 7
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Preconditioning and exact line-search orthogonality
Use P to make the geometry of an ill-conditioned quadratic more spherical. With d=-P∇Ψ, calculate the exact line-search step α and check that the next gradient is orthogonal to d.
Reference-quality follow-up
Explore this calculation further
For circulant structure, the latter permits fast preconditioned-gradient products through FFTs.
Lecture annotation — PDF p. 7. Marks show the ellipse-to-circle coordinate change, ideal inverse-Hessian preconditioning, and unitary diagonalization. Uncertain small handwriting is not reconstructed speculatively.
#Descent direction: complex case
Although is not holomorphic, for positive-definite P,
Source equation · PDF p. 8
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Complex descent, finite-difference spectrum, and safe fixed step
Calculate the spectrum of the periodic first-difference operator. Connect the source error for odd N with the corrected value 2cos(π/2N), the transformed Lipschitz upper bound, and a safe step size.
Reference-quality follow-up
Explore this calculation further
is a descent direction. The source uses as a gradient-like quantity producing negative descent rather than an ordinary complex derivative, then prints stationarity as .
#4.4 Descent directions for complex edge-preserving regularizers
The complex regularizer is:
Source equation · PDF p. 8 · Eq. (9)
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Complex descent, finite-difference spectrum, and safe fixed step
Calculate the spectrum of the periodic first-difference operator. Connect the source error for odd N with the corrected value 2cos(π/2N), the transformed Lipschitz upper bound, and a safe step size.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sum over all specified terms | |
| Total class count or a matrix; check context |
Reference-quality follow-up
Explore this calculation further
Assume f is real-valued, nondecreasing on nonnegative arguments, and differentiable; is well-defined even at zero and satisfies . For the Fair potential, .
The claim is that
Source equation · PDF p. 8 · Eq. (10)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
Complex descent, finite-difference spectrum, and safe fixed step
Calculate the spectrum of the periodic first-difference operator. Connect the source error for odd N with the corrected value 2cos(π/2N), the transformed Lipschitz upper bound, and a safe step size.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction | |
| Total class count or a matrix; check context |
Reference-quality follow-up
Explore this calculation further
is a descent direction. Its intuition is .
For one row, the proof uses and contraction:
Source equation · PDF p. 8
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far is a vector or error from the origin?
Key idea
The L2 norm sums squared components and takes the square root. Squared norm omits the final square root.
Formula-specific lesson
Complex descent, finite-difference spectrum, and safe fixed step
Calculate the spectrum of the periodic first-difference operator. Connect the source error for odd N with the corrected value 2cos(π/2N), the transformed Lipschitz upper bound, and a safe step size.
Calculation walkthrough
Calculation steps
- 1
Square each component
Turn both negative and positive components into nonnegative contributions.
- 2
Sum the squares
- 3
Take the square root for a norm
- 4
Distinguish the squared norm
Worked example
Work through the numbers — The 3–4–5 vector
A familiar Pythagorean example.
- 1
Vector
- 2
Sum of squares
- 3
Square root
Result: Thus ||x||₂=5 and ||x||₂²=25.
Sanity check
Checks
- A norm is always nonnegative.
- Confusing a norm with its square changes units and derivative coefficients.
Reference-quality follow-up
Explore this calculation further
The step interval is , and the source writes the final comparison as .
Lecture annotation — PDF p. 8. Notes reuse gradient notation for negative descent without directly introducing Wirtinger derivatives and mark Hermitian transpose. Uncertain small writing is not reconstructed speculatively.
#Lipschitz constants and practical bounds for a complex descent field
The lecture decomposes into . It leaves blank for real arguments and conjectures and for complex arguments from numerical evidence. These remain research-in-progress source statements, not established theorems.
A periodic 1D finite-difference operator is circulant and normal, allowing spectral radius:
Source notation requires review · PDF p. 9
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Complex descent, finite-difference spectrum, and safe fixed step
Calculate the spectrum of the periodic first-difference operator. Connect the source error for odd N with the corrected value 2cos(π/2N), the transformed Lipschitz upper bound, and a safe step size.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Total class count or a matrix; check context |
Reference-quality follow-up
Explore this calculation further
For nonperiodic boundaries, use:
Source equation · PDF p. 9
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far is a vector or error from the origin?
Key idea
The L2 norm sums squared components and takes the square root. Squared norm omits the final square root.
Formula-specific lesson
Complex descent, finite-difference spectrum, and safe fixed step
Calculate the spectrum of the periodic first-difference operator. Connect the source error for odd N with the corrected value 2cos(π/2N), the transformed Lipschitz upper bound, and a safe step size.
Calculation walkthrough
Calculation steps
- 1
Square each component
Turn both negative and positive components into nonnegative contributions.
- 2
Sum the squares
- 3
Take the square root for a norm
- 4
Distinguish the squared norm
Worked example
Work through the numbers — The 3–4–5 vector
A familiar Pythagorean example.
- 1
Vector
- 2
Sum of squares
- 3
Square root
Result: Thus ||x||₂=5 and ||x||₂²=25.
Sanity check
Checks
- A norm is always nonnegative.
- Confusing a norm with its square changes units and derivative coefficients.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Total class count or a matrix; check context |
Reference-quality follow-up
Explore this calculation further
and the convenient 1-norm bound:
Source equation · PDF p. 9
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far are predictions from targets on average?
Key idea
Subtract targets from predictions, square each residual, and divide by sample count. Larger errors receive greater penalties.
Formula-specific lesson
Complex descent, finite-difference spectrum, and safe fixed step
Calculate the spectrum of the periodic first-difference operator. Connect the source error for odd N with the corrected value 2cos(π/2N), the transformed Lipschitz upper bound, and a safe step size.
Calculation walkthrough
Calculation steps
- 1
Calculate predictions
For linear regression, predictions are Xw or wᵀx.
- 2
Calculate residuals
- 3
Square the residuals
Remove signs and emphasize larger errors.
- 4
Sum and divide by sample count
Worked example
Work through the numbers — MSE for two samples
Compare predictions and targets directly.
- 1
Targets and predictions
- 2
Residual
- 3
Square
- 4
Average
Result: MSE is 5. The second sample's error of 3 substantially increases it.
Sanity check
Checks
- Check whether the expression divides by sample count or is merely a sum of squares.
- MSE has squared output units.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Total class count or a matrix; check context |
Reference-quality follow-up
Explore this calculation further
This gives practical choice .
For preconditioned fixed steps, calculate transformed objective , gradient , and Lipschitz bound:
Source notation requires review · PDF p. 9
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
Complex descent, finite-difference spectrum, and safe fixed step
Calculate the spectrum of the periodic first-difference operator. Connect the source error for odd N with the corrected value 2cos(π/2N), the transformed Lipschitz upper bound, and a safe step size.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Lecture annotation — PDF p. 9. Notes supplement periodic/circulant differences, spectral radius near two, and a matrix 1-norm calculation yielding four. Uncertain small writing is not reconstructed speculatively.
Returning transformed-coordinate GD to x-space gives:
Source equation · PDF p. 10
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Where should parameters move next to reduce loss?
Key idea
Calculate the gradient at current parameters, multiply by the learning rate, and subtract to obtain new parameters.
Formula-specific lesson
Complex descent, finite-difference spectrum, and safe fixed step
Calculate the spectrum of the periodic first-difference operator. Connect the source error for odd N with the corrected value 2cos(π/2N), the transformed Lipschitz upper bound, and a safe step size.
Calculation walkthrough
Calculation steps
- 1
Calculate the current loss gradient
- 2
Determine the step size
- 3
Move opposite the direction of increase
- 4
Check the new loss and repeat
Too large a learning rate can diverge; too small is very slow.
Worked example
Work through the numbers — One update
f(w)=(w-3)², current w=5, and learning rate α=0.1.
- 1
Gradient
- 2
Step size
- 3
Update
- 4
Compare losses
Result: One step reduces loss from 4 to 2.56.
Sanity check
Checks
- Check for the minus sign.
- Recording loss before and after updates alongside gradient norm helps detect divergence early.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Learning rate, mixture coefficient, or dual coefficient | |
| A gradient collecting derivatives in each variable direction |
Reference-quality follow-up
Explore this calculation further
A valid fixed step is:
Source notation requires review · PDF p. 10
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
Complex descent, finite-difference spectrum, and safe fixed step
Calculate the spectrum of the periodic first-difference operator. Connect the source error for odd N with the corrected value 2cos(π/2N), the transformed Lipschitz upper bound, and a safe step size.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Learning rate, mixture coefficient, or dual coefficient | |
| A gradient collecting derivatives in each variable direction | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Preconditioning therefore does not require line search.
#4.5 General inverse problems with efficient line search
A representative inverse problem is:
Source equation · PDF p. 10 · Eq. (11)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far are predictions from targets on average?
Key idea
Subtract targets from predictions, square each residual, and divide by sample count. Larger errors receive greater penalties.
Formula-specific lesson
General inverse problem: cached products make line search cheap
Compute Bᵢx and Bᵢd once, then reuse trial products through Bᵢ(x+αd)=zᵢ+αqᵢ. Verify the cache update after an accepted step.
Calculation walkthrough
Calculation steps
- 1
Calculate predictions
For linear regression, predictions are Xw or wᵀx.
- 2
Calculate residuals
- 3
Square the residuals
Remove signs and emphasize larger errors.
- 4
Sum and divide by sample count
Worked example
Work through the numbers — MSE for two samples
Compare predictions and targets directly.
- 1
Targets and predictions
- 2
Residual
- 3
Square
- 4
Average
Result: MSE is 5. The second sample's error of 3 substantially increases it.
Sanity check
Checks
- Check whether the expression divides by sample count or is merely a sum of squares.
- MSE has squared output units.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sum over all specified terms | |
| Total class count or a matrix; check context |
Reference-quality follow-up
Explore this calculation further
The source leaves its containing general form as:
Source notation requires review · PDF p. 10 · Eq. (12)
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
General inverse problem: cached products make line search cheap
Compute Bᵢx and Bᵢd once, then reuse trial products through Bᵢ(x+αd)=zᵢ+αqᵢ. Verify the cache update after an accepted step.
Reference-quality follow-up
Explore this calculation further
Each B_i has shape M_i×N and f_i is usually convex.
The special-case mapping is:
Source equation · PDF p. 10
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far are predictions from targets on average?
Key idea
Subtract targets from predictions, square each residual, and divide by sample count. Larger errors receive greater penalties.
Formula-specific lesson
General inverse problem: cached products make line search cheap
Compute Bᵢx and Bᵢd once, then reuse trial products through Bᵢ(x+αd)=zᵢ+αqᵢ. Verify the cache update after an accepted step.
Calculation walkthrough
Calculation steps
- 1
Calculate predictions
For linear regression, predictions are Xw or wᵀx.
- 2
Calculate residuals
- 3
Square the residuals
Remove signs and emphasize larger errors.
- 4
Sum and divide by sample count
Worked example
Work through the numbers — MSE for two samples
Compare predictions and targets directly.
- 1
Targets and predictions
- 2
Residual
- 3
Square
- 4
Average
Result: MSE is 5. The second sample's error of 3 substantially increases it.
Sanity check
Checks
- Check whether the expression divides by sample count or is merely a sum of squares.
- MSE has squared output units.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Total class count or a matrix; check context |
Reference-quality follow-up
Explore this calculation further
For the Fair potential, the exercise asks for f₂’s best gradient constant:
Source notation requires review · PDF p. 10
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
General inverse problem: cached products make line search cheap
Compute Bᵢx and Bᵢd once, then reuse trial products through Bᵢ(x+αd)=zᵢ+αqᵢ. Verify the cache update after an accepted step.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction | |
| Total class count or a matrix; check context | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Naive line search repeats B_i products at every trial. Precomputing them gives:
Source equation · PDF p. 10
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
General inverse problem: cached products make line search cheap
Compute Bᵢx and Bᵢd once, then reuse trial products through Bᵢ(x+αd)=zᵢ+αqᵢ. Verify the cache update after an accepted step.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Learning rate, mixture coefficient, or dual coefficient | |
| Sum over all specified terms |
Reference-quality follow-up
Explore this calculation further
The outer update then allows recursive reuse through:
Source equation · PDF p. 10
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
General inverse problem: cached products make line search cheap
Compute Bᵢx and Bᵢd once, then reuse trial products through Bᵢ(x+αd)=zᵢ+αqᵢ. Verify the cache update after an accepted step.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Learning rate, mixture coefficient, or dual coefficient |
Reference-quality follow-up
Explore this calculation further
In this simplified form, the line derivative’s Lipschitz constant does not directly require B_i operator norms.
Lecture annotation — PDF p. 10. The diagram caches B_i x and B_i d before line search and recursively updates them afterward. Uncertain small writing is not reconstructed speculatively.
#4.6 Convergence rates
Under local strict convexity and twice differentiability, PGD, PSD, and PCG asymptotics are summarized by:
Source equation · PDF p. 11
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Where should parameters move next to reduce loss?
Key idea
Calculate the gradient at current parameters, multiply by the learning rate, and subtract to obtain new parameters.
Formula-specific lesson
S-Lipschitz PGD: anisotropic norm, decrease, and rate
Run generalized PGD in the geometry defined by S and P. Compare objective decrease, weighted Fejér monotonicity, and the scales of the O(1/k) and O(1/k²) guarantees.
Calculation walkthrough
Calculation steps
- 1
Calculate the current loss gradient
- 2
Determine the step size
- 3
Move opposite the direction of increase
- 4
Check the new loss and repeat
Too large a learning rate can diverge; too small is very slow.
Worked example
Work through the numbers — One update
f(w)=(w-3)², current w=5, and learning rate α=0.1.
- 1
Gradient
- 2
Step size
- 3
Update
- 4
Compare losses
Result: One step reduces loss from 4 to 2.56.
Sanity check
Checks
- Check for the minus sign.
- Recording loss before and after updates alongside gradient norm helps detect divergence early.
Reference-quality follow-up
Explore this calculation further
with root-convergence factor and preconditioned Hessian/condition number .
The lecture then states and says these ρ values match lower bounds.
Lecture annotation — PDF p. 11. The comparison 0.99, 0.98, and 0.82 at κ=100 highlights preconditioning and PCG. Uncertain small writing is not reconstructed speculatively.
#Generalized S-Lipschitz PGD analysis
Definition 4.7 specifies anisotropic smoothness by:
Source equation · PDF p. 11 · Eq. (13)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
S-Lipschitz PGD: anisotropic norm, decrease, and rate
Run generalized PGD in the geometry defined by S and P. Compare objective decrease, weighted Fejér monotonicity, and the scales of the O(1/k) and O(1/k²) guarantees.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction |
Reference-quality follow-up
Explore this calculation further
The classical condition returns at . Theorem 4.8 assumes matrix condition:
Source equation · PDF p. 11 · Eq. (14)
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
S-Lipschitz PGD: anisotropic norm, decrease, and rate
Run generalized PGD in the geometry defined by S and P. Compare objective decrease, weighted Fejér monotonicity, and the scales of the O(1/k) and O(1/k²) guarantees.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Learning rate, mixture coefficient, or dual coefficient |
Reference-quality follow-up
Explore this calculation further
For the following PGD:
Source equation · PDF p. 11 · Eq. (15)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Where should parameters move next to reduce loss?
Key idea
Calculate the gradient at current parameters, multiply by the learning rate, and subtract to obtain new parameters.
Formula-specific lesson
S-Lipschitz PGD: anisotropic norm, decrease, and rate
Run generalized PGD in the geometry defined by S and P. Compare objective decrease, weighted Fejér monotonicity, and the scales of the O(1/k) and O(1/k²) guarantees.
Calculation walkthrough
Calculation steps
- 1
Calculate the current loss gradient
- 2
Determine the step size
- 3
Move opposite the direction of increase
- 4
Check the new loss and repeat
Too large a learning rate can diverge; too small is very slow.
Worked example
Work through the numbers — One update
f(w)=(w-3)², current w=5, and learning rate α=0.1.
- 1
Gradient
- 2
Step size
- 3
Update
- 4
Compare losses
Result: One step reduces loss from 4 to 2.56.
Sanity check
Checks
- Check for the minus sign.
- Recording loss before and after updates alongside gradient norm helps detect divergence early.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Learning rate, mixture coefficient, or dual coefficient | |
| A gradient collecting derivatives in each variable direction |
Reference-quality follow-up
Explore this calculation further
it gives decrease:
Source equation · PDF p. 11
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Where should parameters move next to reduce loss?
Key idea
Calculate the gradient at current parameters, multiply by the learning rate, and subtract to obtain new parameters.
Formula-specific lesson
S-Lipschitz PGD: anisotropic norm, decrease, and rate
Run generalized PGD in the geometry defined by S and P. Compare objective decrease, weighted Fejér monotonicity, and the scales of the O(1/k) and O(1/k²) guarantees.
Calculation walkthrough
Calculation steps
- 1
Calculate the current loss gradient
- 2
Determine the step size
- 3
Move opposite the direction of increase
- 4
Check the new loss and repeat
Too large a learning rate can diverge; too small is very slow.
Worked example
Work through the numbers — One update
f(w)=(w-3)², current w=5, and learning rate α=0.1.
- 1
Gradient
- 2
Step size
- 3
Update
- 4
Compare losses
Result: One step reduces loss from 4 to 2.56.
Sanity check
Checks
- Check for the minus sign.
- Recording loss before and after updates alongside gradient norm helps detect divergence early.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Learning rate, mixture coefficient, or dual coefficient |
Reference-quality follow-up
Explore this calculation further
and convergence of gradient norms.
With SPD P, the condition is and weighted distance decreases. The choice matches an MM method and gives the classical bound:
Source equation · PDF p. 12 · Eq. (16)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far are predictions from targets on average?
Key idea
Subtract targets from predictions, square each residual, and divide by sample count. Larger errors receive greater penalties.
Formula-specific lesson
S-Lipschitz PGD: anisotropic norm, decrease, and rate
Run generalized PGD in the geometry defined by S and P. Compare objective decrease, weighted Fejér monotonicity, and the scales of the O(1/k) and O(1/k²) guarantees.
Calculation walkthrough
Calculation steps
- 1
Calculate predictions
For linear regression, predictions are Xw or wᵀx.
- 2
Calculate residuals
- 3
Square the residuals
Remove signs and emphasize larger errors.
- 4
Sum and divide by sample count
Worked example
Work through the numbers — MSE for two samples
Compare predictions and targets directly.
- 1
Targets and predictions
- 2
Residual
- 3
Square
- 4
Average
Result: MSE is 5. The second sample's error of 3 substantially increases it.
Sanity check
Checks
- Check whether the expression divides by sample count or is merely a sum of squares.
- MSE has squared output units.
Reference-quality follow-up
Explore this calculation further
, 2014 tight bound
Source equation · PDF p. 12
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far are predictions from targets on average?
Key idea
Subtract targets from predictions, square each residual, and divide by sample count. Larger errors receive greater penalties.
Formula-specific lesson
S-Lipschitz PGD: anisotropic norm, decrease, and rate
Run generalized PGD in the geometry defined by S and P. Compare objective decrease, weighted Fejér monotonicity, and the scales of the O(1/k) and O(1/k²) guarantees.
Calculation walkthrough
Calculation steps
- 1
Calculate predictions
For linear regression, predictions are Xw or wᵀx.
- 2
Calculate residuals
- 3
Square the residuals
Remove signs and emphasize larger errors.
- 4
Sum and divide by sample count
Worked example
Work through the numbers — MSE for two samples
Compare predictions and targets directly.
- 1
Targets and predictions
- 2
Residual
- 3
Square
- 4
Average
Result: MSE is 5. The second sample's error of 3 substantially increases it.
Sanity check
Checks
- Check whether the expression divides by sample count or is merely a sum of squares.
- MSE has squared output units.
Reference-quality follow-up
Explore this calculation further
A Huber-like function makes the bound tight.
A diagonal A with heterogeneous physical units illustrates the scalar Lipschitz constant’s units:
Source notation requires review · PDF p. 12
English rendering translates prose within this source formula. Copy retains the original TeX.
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
S-Lipschitz PGD: anisotropic norm, decrease, and rate
Run generalized PGD in the geometry defined by S and P. Compare objective decrease, weighted Fejér monotonicity, and the scales of the O(1/k) and O(1/k²) guarantees.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction | |
| Total class count or a matrix; check context | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
#Generalized Nesterov fast gradient method(FGM)
Generalized FGM combines , , and as:
Source equation · PDF p. 12
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Where should parameters move next to reduce loss?
Key idea
Calculate the gradient at current parameters, multiply by the learning rate, and subtract to obtain new parameters.
Formula-specific lesson
S-Lipschitz PGD: anisotropic norm, decrease, and rate
Run generalized PGD in the geometry defined by S and P. Compare objective decrease, weighted Fejér monotonicity, and the scales of the O(1/k) and O(1/k²) guarantees.
Calculation walkthrough
Calculation steps
- 1
Calculate the current loss gradient
- 2
Determine the step size
- 3
Move opposite the direction of increase
- 4
Check the new loss and repeat
Too large a learning rate can diverge; too small is very slow.
Worked example
Work through the numbers — One update
f(w)=(w-3)², current w=5, and learning rate α=0.1.
- 1
Gradient
- 2
Step size
- 3
Update
- 4
Compare losses
Result: One step reduces loss from 4 to 2.56.
Sanity check
Checks
- Check for the minus sign.
- Recording loss before and after updates alongside gradient norm helps detect divergence early.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction |
Reference-quality follow-up
Explore this calculation further
Setting every t=1 recovers ordinary GD. For convex S-Lipschitz objectives:
Source equation · PDF p. 12
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far are predictions from targets on average?
Key idea
Subtract targets from predictions, square each residual, and divide by sample count. Larger errors receive greater penalties.
Formula-specific lesson
S-Lipschitz PGD: anisotropic norm, decrease, and rate
Run generalized PGD in the geometry defined by S and P. Compare objective decrease, weighted Fejér monotonicity, and the scales of the O(1/k) and O(1/k²) guarantees.
Calculation walkthrough
Calculation steps
- 1
Calculate predictions
For linear regression, predictions are Xw or wᵀx.
- 2
Calculate residuals
- 3
Square the residuals
Remove signs and emphasize larger errors.
- 4
Sum and divide by sample count
Worked example
Work through the numbers — MSE for two samples
Compare predictions and targets directly.
- 1
Targets and predictions
- 2
Residual
- 3
Square
- 4
Average
Result: MSE is 5. The second sample's error of 3 substantially increases it.
Sanity check
Checks
- Check whether the expression divides by sample count or is merely a sum of squares.
- MSE has squared output units.
Reference-quality follow-up
Explore this calculation further
gives an O(1/k²) worst-case rate. For quadratics in R^N, CG can terminate within N steps in exact arithmetic, so worst-case bounds may be pessimistic for particular applications.
Newton’s method is the second-order baseline:
Source equation · PDF p. 12
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Where should parameters move next to reduce loss?
Key idea
Calculate the gradient at current parameters, multiply by the learning rate, and subtract to obtain new parameters.
Formula-specific lesson
S-Lipschitz PGD: anisotropic norm, decrease, and rate
Run generalized PGD in the geometry defined by S and P. Compare objective decrease, weighted Fejér monotonicity, and the scales of the O(1/k) and O(1/k²) guarantees.
Calculation walkthrough
Calculation steps
- 1
Calculate the current loss gradient
- 2
Determine the step size
- 3
Move opposite the direction of increase
- 4
Check the new loss and repeat
Too large a learning rate can diverge; too small is very slow.
Worked example
Work through the numbers — One update
f(w)=(w-3)², current w=5, and learning rate α=0.1.
- 1
Gradient
- 2
Step size
- 3
Update
- 4
Compare losses
Result: One step reduces loss from 4 to 2.56.
Sanity check
Checks
- Check for the minus sign.
- Recording loss before and after updates alongside gradient norm helps detect divergence early.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction |
Reference-quality follow-up
Explore this calculation further
Large problems make full Hessian construction/inversion impractical, motivating first-order methods.
Lecture annotation — PDF p. 12. Notes compare O(1/k), O(1/k²), momentum, and Newton inverse-Hessian costs. Uncertain small writing is not reconstructed speculatively.
#4.7 Accelerated first-order methods
The general first-order class is:
Source equation · PDF p. 13
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Where should parameters move next to reduce loss?
Key idea
Calculate the gradient at current parameters, multiply by the learning rate, and subtract to obtain new parameters.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Calculation walkthrough
Calculation steps
- 1
Calculate the current loss gradient
- 2
Determine the step size
- 3
Move opposite the direction of increase
- 4
Check the new loss and repeat
Too large a learning rate can diverge; too small is very slow.
Worked example
Work through the numbers — One update
f(w)=(w-3)², current w=5, and learning rate α=0.1.
- 1
Gradient
- 2
Step size
- 3
Update
- 4
Compare losses
Result: One step reduces loss from 4 to 2.56.
Sanity check
Checks
- Check for the minus sign.
- Recording loss before and after updates alongside gradient norm helps detect divergence early.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction |
Reference-quality follow-up
Explore this calculation further
The fixed-coefficient FO class is:
Source equation · PDF p. 13
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Where should parameters move next to reduce loss?
Key idea
Calculate the gradient at current parameters, multiply by the learning rate, and subtract to obtain new parameters.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Calculation walkthrough
Calculation steps
- 1
Calculate the current loss gradient
- 2
Determine the step size
- 3
Move opposite the direction of increase
- 4
Check the new loss and repeat
Too large a learning rate can diverge; too small is very slow.
Worked example
Work through the numbers — One update
f(w)=(w-3)², current w=5, and learning rate α=0.1.
- 1
Gradient
- 2
Step size
- 3
Update
- 4
Compare losses
Result: One step reduces loss from 4 to 2.56.
Sanity check
Checks
- Check for the minus sign.
- Recording loss before and after updates alongside gradient norm helps detect divergence early.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction | |
| Sum over all specified terms | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
The source asks which algorithms belong to FO:
Source notation requires review · PDF p. 13
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Total class count or a matrix; check context |
Reference-quality follow-up
Explore this calculation further
Barzilai–Borwein combines , , and in:
Source equation · PDF p. 13
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Where should parameters move next to reduce loss?
Key idea
Calculate the gradient at current parameters, multiply by the learning rate, and subtract to obtain new parameters.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Calculation walkthrough
Calculation steps
- 1
Calculate the current loss gradient
- 2
Determine the step size
- 3
Move opposite the direction of increase
- 4
Check the new loss and repeat
Too large a learning rate can diverge; too small is very slow.
Worked example
Work through the numbers — One update
f(w)=(w-3)², current w=5, and learning rate α=0.1.
- 1
Gradient
- 2
Step size
- 3
Update
- 4
Compare losses
Result: One step reduces loss from 4 to 2.56.
Sanity check
Checks
- Check for the minus sign.
- Recording loss before and after updates alongside gradient norm helps detect divergence early.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Learning rate, mixture coefficient, or dual coefficient | |
| A gradient collecting derivatives in each variable direction |
Reference-quality follow-up
Explore this calculation further
It belongs to GFO but not fixed-step FO, since its coefficients depend on the trajectory.
Research questions include rates for given coefficients, coefficient optimization, efficient recursions, L-independent universal designs, and possible advantages of GFO.
#Recursive and FO forms of Nesterov FGM1
Nesterov’s iteration uses GD step , momentum factor , and updates and :
Source equation · PDF p. 13
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Where should parameters move next to reduce loss?
Key idea
Calculate the gradient at current parameters, multiply by the learning rate, and subtract to obtain new parameters.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Calculation walkthrough
Calculation steps
- 1
Calculate the current loss gradient
- 2
Determine the step size
- 3
Move opposite the direction of increase
- 4
Check the new loss and repeat
Too large a learning rate can diverge; too small is very slow.
Worked example
Work through the numbers — One update
f(w)=(w-3)², current w=5, and learning rate α=0.1.
- 1
Gradient
- 2
Step size
- 3
Update
- 4
Compare losses
Result: One step reduces loss from 4 to 2.56.
Sanity check
Checks
- Check for the minus sign.
- Recording loss before and after updates alongside gradient norm helps detect divergence early.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Implementation is recursive, while analysis can expand it into FO coefficients.
Lecture annotation — PDF p. 13. Marks show FO/GFO inclusion and Barzilai–Borwein’s use of previous iterate and gradient differences. Uncertain small writing is not reconstructed speculatively.
FGM1’s fixed-step coefficients are:
Source notation requires review · PDF p. 14
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Reference-quality follow-up
Explore this calculation further
A lower-triangular numerical coefficient matrix is shown for n=0,…,5.
The primary-sequence bound is:
Source equation · PDF p. 14 · Eq. (17)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far is a vector or error from the origin?
Key idea
The L2 norm sums squared components and takes the square root. Squared norm omits the final square root.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Calculation walkthrough
Calculation steps
- 1
Square each component
Turn both negative and positive components into nonnegative contributions.
- 2
Sum the squares
- 3
Take the square root for a norm
- 4
Distinguish the squared norm
Worked example
Work through the numbers — The 3–4–5 vector
A familiar Pythagorean example.
- 1
Vector
- 2
Sum of squares
- 3
Square root
Result: Thus ||x||₂=5 and ||x||₂²=25.
Sanity check
Checks
- A norm is always nonnegative.
- Confusing a norm with its square changes units and derivative coefficients.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Nesterov’s worst-function lower bound is:
Source equation · PDF p. 14
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far is a vector or error from the origin?
Key idea
The L2 norm sums squared components and takes the square root. Squared norm omits the final square root.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Calculation walkthrough
Calculation steps
- 1
Square each component
Turn both negative and positive components into nonnegative contributions.
- 2
Sum the squares
- 3
Take the square root for a norm
- 4
Distinguish the squared norm
Worked example
Work through the numbers — The 3–4–5 vector
A familiar Pythagorean example.
- 1
Vector
- 2
Sum of squares
- 3
Square root
Result: Thus ||x||₂=5 and ||x||₂²=25.
Sanity check
Checks
- A norm is always nonnegative.
- Confusing a norm with its square changes units and derivative coefficients.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
The secondary-sequence bound is:
Source equation · PDF p. 14 · Eq. (18)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far is a vector or error from the origin?
Key idea
The L2 norm sums squared components and takes the square root. Squared norm omits the final square root.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Calculation walkthrough
Calculation steps
- 1
Square each component
Turn both negative and positive components into nonnegative contributions.
- 2
Sum the squares
- 3
Take the square root for a norm
- 4
Distinguish the squared norm
Worked example
Work through the numbers — The 3–4–5 vector
A familiar Pythagorean example.
- 1
Vector
- 2
Sum of squares
- 3
Square root
Result: Thus ||x||₂=5 and ||x||₂²=25.
Sanity check
Checks
- A norm is always nonnegative.
- Confusing a norm with its square changes units and derivative coefficients.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Both upper bounds are asymptotically tight, but their leading constants leave room for improvement.
The exercise asks for iterations needed for ε accuracy:
Source notation requires review · PDF p. 14
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Total class count or a matrix; check context |
Reference-quality follow-up
Explore this calculation further
#Optimized gradient method(OGM)
D. Kim introduces optimized coefficients:
Source equation · PDF p. 14
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Where should parameters move next to reduce loss?
Key idea
Calculate the gradient at current parameters, multiply by the learning rate, and subtract to obtain new parameters.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Calculation walkthrough
Calculation steps
- 1
Calculate the current loss gradient
- 2
Determine the step size
- 3
Move opposite the direction of increase
- 4
Check the new loss and repeat
Too large a learning rate can diverge; too small is very slow.
Worked example
Work through the numbers — One update
f(w)=(w-3)², current w=5, and learning rate α=0.1.
- 1
Gradient
- 2
Step size
- 3
Update
- 4
Compare losses
Result: One step reduces loss from 4 to 2.56.
Sanity check
Checks
- Check for the minus sign.
- Recording loss before and after updates alongside gradient norm helps detect divergence early.
Reference-quality follow-up
Explore this calculation further
with horizon-dependent θ recurrence:
Source notation requires review · PDF p. 14
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Reference-quality follow-up
Explore this calculation further
The analytical bound:
Source equation · PDF p. 14 · Eq. (19)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far is a vector or error from the origin?
Key idea
The L2 norm sums squared components and takes the square root. Squared norm omits the final square root.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Calculation walkthrough
Calculation steps
- 1
Square each component
Turn both negative and positive components into nonnegative contributions.
- 2
Sum the squares
- 3
Take the square root for a norm
- 4
Distinguish the squared norm
Worked example
Work through the numbers — The 3–4–5 vector
A familiar Pythagorean example.
- 1
Vector
- 2
Sum of squares
- 3
Square root
Result: Thus ||x||₂=5 and ||x||₂²=25.
Sanity check
Checks
- A norm is always nonnegative.
- Confusing a norm with its square changes units and derivative coefficients.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
retains O(1/N²) while improving FGM’s leading constant by a factor of two.
Lecture annotation — PDF p. 14. Notes compare FGM coefficients with OGM’s special final-horizon coefficient and mark a square root beside ε complexity. Uncertain small writing is not reconstructed speculatively.
Efficient OGM recursion combines GD step , horizon-aware , and a two-momentum update:
Source equation · PDF p. 15
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Where should parameters move next to reduce loss?
Key idea
Calculate the gradient at current parameters, multiply by the learning rate, and subtract to obtain new parameters.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Calculation walkthrough
Calculation steps
- 1
Calculate the current loss gradient
- 2
Determine the step size
- 3
Move opposite the direction of increase
- 4
Check the new loss and repeat
Too large a learning rate can diverge; too small is very slow.
Worked example
Work through the numbers — One update
f(w)=(w-3)², current w=5, and learning rate α=0.1.
- 1
Gradient
- 2
Step size
- 3
Update
- 4
Compare losses
Result: One step reduces loss from 4 to 2.56.
Sanity check
Checks
- Check for the minus sign.
- Recording loss before and after updates alongside gradient norm helps detect divergence early.
Reference-quality follow-up
Explore this calculation further
Removing the new final momentum recovers Nesterov FGM. The drawback is choosing N beforehand for the final bound.
The primary sequence satisfies:
Source equation · PDF p. 15
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far is a vector or error from the origin?
Key idea
The L2 norm sums squared components and takes the square root. Squared norm omits the final square root.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Calculation walkthrough
Calculation steps
- 1
Square each component
Turn both negative and positive components into nonnegative contributions.
- 2
Sum the squares
- 3
Take the square root for a norm
- 4
Distinguish the squared norm
Worked example
Work through the numbers — The 3–4–5 vector
A familiar Pythagorean example.
- 1
Vector
- 2
Sum of squares
- 3
Square root
Result: Thus ||x||₂=5 and ||x||₂²=25.
Sanity check
Checks
- A norm is always nonnegative.
- Confusing a norm with its square changes units and derivative coefficients.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
The newer OGM′ uses standard recurrence and overrelaxed gradient plus FGM momentum:
Source equation · PDF p. 15
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Where should parameters move next to reduce loss?
Key idea
Calculate the gradient at current parameters, multiply by the learning rate, and subtract to obtain new parameters.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Calculation walkthrough
Calculation steps
- 1
Calculate the current loss gradient
- 2
Determine the step size
- 3
Move opposite the direction of increase
- 4
Check the new loss and repeat
Too large a learning rate can diverge; too small is very slow.
Worked example
Work through the numbers — One update
f(w)=(w-3)², current w=5, and learning rate α=0.1.
- 1
Gradient
- 2
Step size
- 3
Update
- 4
Compare losses
Result: One step reduces loss from 4 to 2.56.
Sanity check
Checks
- Check for the minus sign.
- Recording loss before and after updates alongside gradient norm helps detect divergence early.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
It avoids fixing N in advance. The lecture also gives in a footnote.
The intuition uses overrelaxed gradient multiplier .
#OGM’s GFO worst-case optimality
OGM uses optimized h within fixed-step class to satisfy:
Source equation · PDF p. 16 · Eq. (20)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far is a vector or error from the origin?
Key idea
The L2 norm sums squared components and takes the square root. Squared norm omits the final square root.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Calculation walkthrough
Calculation steps
- 1
Square each component
Turn both negative and positive components into nonnegative contributions.
- 2
Sum the squares
- 3
Take the square root for a norm
- 4
Distinguish the squared norm
Worked example
Work through the numbers — The 3–4–5 vector
A familiar Pythagorean example.
- 1
Vector
- 2
Sum of squares
- 3
Square root
Result: Thus ||x||₂=5 and ||x||₂²=25.
Sanity check
Checks
- A norm is always nonnegative.
- Confusing a norm with its square changes units and derivative coefficients.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Drori proves a lower bound over the full GFO class in large-scale settings with d>N:
Source equation · PDF p. 16
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far is a vector or error from the origin?
Key idea
The L2 norm sums squared components and takes the square root. Squared norm omits the final square root.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Calculation walkthrough
Calculation steps
- 1
Square each component
Turn both negative and positive components into nonnegative contributions.
- 2
Sum the squares
- 3
Take the square root for a norm
- 4
Distinguish the squared norm
Worked example
Work through the numbers — The 3–4–5 vector
A familiar Pythagorean example.
- 1
Vector
- 2
Sum of squares
- 3
Square root
Result: Thus ||x||₂=5 and ||x||₂²=25.
Sanity check
Checks
- A norm is always nonnegative.
- Confusing a norm with its square changes units and derivative coefficients.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Within this oracle model, OGM therefore has optimal worst-case complexity.
Huber-like worst case
Quadratic worst case
Lecture annotation — PDF p. 16. Notes emphasize worst-case optimality in the GFO oracle model as well as fixed-step FO and mark Huber/quadratic worst-case paths. Uncertain small writing is not reconstructed speculatively.
For both worst-case families:
Source equation · PDF p. 17
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far is a vector or error from the origin?
Key idea
The L2 norm sums squared components and takes the square root. Squared norm omits the final square root.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Calculation walkthrough
Calculation steps
- 1
Square each component
Turn both negative and positive components into nonnegative contributions.
- 2
Sum the squares
- 3
Take the square root for a norm
- 4
Distinguish the squared norm
Worked example
Work through the numbers — The 3–4–5 vector
A familiar Pythagorean example.
- 1
Vector
- 2
Sum of squares
- 3
Square root
Result: Thus ||x||₂=5 and ||x||₂²=25.
Sanity check
Checks
- A norm is always nonnegative.
- Confusing a norm with its square changes units and derivative coefficients.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
However, in general FGM/OGM satisfy:
Source equation · PDF p. 17
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Where should parameters move next to reduce loss?
Key idea
Calculate the gradient at current parameters, multiply by the learning rate, and subtract to obtain new parameters.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Calculation walkthrough
Calculation steps
- 1
Calculate the current loss gradient
- 2
Determine the step size
- 3
Move opposite the direction of increase
- 4
Check the new loss and repeat
Too large a learning rate can diverge; too small is very slow.
Worked example
Work through the numbers — One update
f(w)=(w-3)², current w=5, and learning rate α=0.1.
- 1
Gradient
- 2
Step size
- 3
Update
- 4
Compare losses
Result: One step reduces loss from 4 to 2.56.
Sanity check
Checks
- Check for the minus sign.
- Recording loss before and after updates alongside gradient norm helps detect divergence early.
Reference-quality follow-up
Explore this calculation further
A bound decreasing with k does not make actual iterate costs monotone.
#4.8 Machine learning: Binary classification with logistic regression
For feature vectors v_m∈R^N, labels y_m∈{±1}, and regularization β>0, minimize:
Source equation · PDF p. 17 · Eq. (21)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far are predictions from targets on average?
Key idea
Subtract targets from predictions, square each residual, and divide by sample count. Larger errors receive greater penalties.
Formula-specific lesson
Logistic regression: margin, surrogate curvature, gradient, L bound
For two-dimensional samples labeled ±1, calculate the margin, logistic loss, gradient, and curvature σ(1-σ)≤1/4 at the same weights, then connect them to a practical Lipschitz bound.
Calculation walkthrough
Calculation steps
- 1
Calculate predictions
For linear regression, predictions are Xw or wᵀx.
- 2
Calculate residuals
- 3
Square the residuals
Remove signs and emphasize larger errors.
- 4
Sum and divide by sample count
Worked example
Work through the numbers — MSE for two samples
Compare predictions and targets directly.
- 1
Targets and predictions
- 2
Residual
- 3
Square
- 4
Average
Result: MSE is 5. The second sample's error of 3 substantially increases it.
Sanity check
Checks
- Check whether the expression divides by sample count or is merely a sum of squares.
- MSE has squared output units.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sum over all specified terms |
Reference-quality follow-up
Explore this calculation further
Desired classifier margins satisfy:
Source equation · PDF p. 17
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Where should parameters move next to reduce loss?
Key idea
Calculate the gradient at current parameters, multiply by the learning rate, and subtract to obtain new parameters.
Formula-specific lesson
Logistic regression: margin, surrogate curvature, gradient, L bound
For two-dimensional samples labeled ±1, calculate the margin, logistic loss, gradient, and curvature σ(1-σ)≤1/4 at the same weights, then connect them to a practical Lipschitz bound.
Calculation walkthrough
Calculation steps
- 1
Calculate the current loss gradient
- 2
Determine the step size
- 3
Move opposite the direction of increase
- 4
Check the new loss and repeat
Too large a learning rate can diverge; too small is very slow.
Worked example
Work through the numbers — One update
f(w)=(w-3)², current w=5, and learning rate α=0.1.
- 1
Gradient
- 2
Step size
- 3
Update
- 4
Compare losses
Result: One step reduces loss from 4 to 2.56.
Sanity check
Checks
- Check for the minus sign.
- Recording loss before and after updates alongside gradient norm helps detect divergence early.
Reference-quality follow-up
Explore this calculation further
Use sign(⟨x,v_m⟩) for class decisions.
The logistic surrogate has , derivative , and curvature:
Source equation · PDF p. 17
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How can a linear score become interpretable as a probability?
Key idea
Negate score z, exponentiate, and take the reciprocal of 1+e^{-z}.
Formula-specific lesson
Logistic regression: margin, surrogate curvature, gradient, L bound
For two-dimensional samples labeled ±1, calculate the margin, logistic loss, gradient, and curvature σ(1-σ)≤1/4 at the same weights, then connect them to a practical Lipschitz bound.
Calculation walkthrough
Calculation steps
- 1
Calculate the linear score z
- 2
Calculate the negative exponential
- 3
Add one
- 4
Take the reciprocal
Worked example
Work through the numbers — When z=2
Observe how a positive score becomes an output value.
- 1
Exponentiation
- 2
Denominator
- 3
Reciprocal
Result: The output is approximately 0.881.
Sanity check
Checks
- At z=0, it is exactly 0.5.
- Large positive scores approach one; large negative scores approach zero.
Reference-quality follow-up
Explore this calculation further
These permit computing a gradient Lipschitz constant.
Surrogate losses
Decision boundary update
The exercise leaves the general inverse-form correspondence as:
Source notation requires review · PDF p. 17
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How can a linear score become interpretable as a probability?
Key idea
Negate score z, exponentiate, and take the reciprocal of 1+e^{-z}.
Formula-specific lesson
Logistic regression: margin, surrogate curvature, gradient, L bound
For two-dimensional samples labeled ±1, calculate the margin, logistic loss, gradient, and curvature σ(1-σ)≤1/4 at the same weights, then connect them to a practical Lipschitz bound.
Calculation walkthrough
Calculation steps
- 1
Calculate the linear score z
- 2
Calculate the negative exponential
- 3
Add one
- 4
Take the reciprocal
Worked example
Work through the numbers — When z=2
Observe how a positive score becomes an output value.
- 1
Exponentiation
- 2
Denominator
- 3
Reciprocal
Result: The output is approximately 0.881.
Sanity check
Checks
- At z=0, it is exactly 0.5.
- Large positive scores approach one; large negative scores approach zero.
Reference-quality follow-up
Explore this calculation further
,
Source notation requires review · PDF p. 17
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How can a linear score become interpretable as a probability?
Key idea
Negate score z, exponentiate, and take the reciprocal of 1+e^{-z}.
Formula-specific lesson
Logistic regression: margin, surrogate curvature, gradient, L bound
For two-dimensional samples labeled ±1, calculate the margin, logistic loss, gradient, and curvature σ(1-σ)≤1/4 at the same weights, then connect them to a practical Lipschitz bound.
Calculation walkthrough
Calculation steps
- 1
Calculate the linear score z
- 2
Calculate the negative exponential
- 3
Add one
- 4
Take the reciprocal
Worked example
Work through the numbers — When z=2
Observe how a positive score becomes an output value.
- 1
Exponentiation
- 2
Denominator
- 3
Reciprocal
Result: The output is approximately 0.881.
Sanity check
Checks
- At z=0, it is exactly 0.5.
- Large positive scores approach one; large negative scores approach zero.
Reference-quality follow-up
Explore this calculation further
It defines . The gradient and practical constant are:
Source equation · PDF p. 17
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
Logistic regression: margin, surrogate curvature, gradient, L bound
For two-dimensional samples labeled ±1, calculate the margin, logistic loss, gradient, and curvature σ(1-σ)≤1/4 at the same weights, then connect them to a practical Lipschitz bound.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Practical notes normalize V’s columns to unit norm to reduce exponential overflow, tune β through cross-validation, and use the smooth convex objective with FGM/OGM. For very large N and sparse classifiers, replace ℓ₂ with ℓ₁ and use FISTA or POGM.
The sparse variant changes the regularizer to .
The numerical example compares initial, optimized, and ideal boundaries for M=100, N=7 labeled samples. The source itself asks “large scale?”
Lecture annotation — PDF p. 17. Notes compare logistic, hinge, exponential, and 0–1 surrogates and stack data as V=[y₁v₁,…]. Uncertain small writing is not reconstructed speculatively.
Lecture annotation — PDF p. 18. Column normalization, cross-validation, and sparse ℓ₁ variants are emphasized beside implementation notes. Uncertain small writing is not reconstructed speculatively.
#4.9 Summary
The chapter surveys gradient methods for differentiable unconstrained objectives. Gradient computation is often the costliest part of each iteration.
PSD and PCG add line search, itself a 1D optimization with repeated cost/gradient evaluations. For equation (12)‘s structure, cached products and recursive updates from §4.5 reduce this cost.
The final question asks whether the general form is a strict subset of all Lipschitz-gradient objectives:
Source notation requires review · PDF p. 18
Explanation and calculations 4 calculation steps · Numerical example · Checks included
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction | |
| Sum over all specified terms | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
#References in the lecture material
- R. C. Fair, “On the robust estimation of econometric models,” Annals of Economic and Social Measurement, 1974.
- K. Lange, “Convergence of EM image reconstruction algorithms with Gibbs smoothing,” IEEE Transactions on Medical Imaging, 1990.
- X. Zheng et al., “Sparse-view X-ray CT reconstruction using ℓ1 prior with learned transform,” submitted 2019; arXiv:1711.00905.
- B. T. Polyak, Introduction to Optimization, 1987.
- Y. Drori and M. Teboulle, “Performance of first-order methods for smooth convex minimization: a novel approach,” Mathematical Programming, 2014.
- A. B. Taylor, J. M. Hendrickx, and F. Glineur, “Smooth strongly convex interpolation and exact worst-case performance of first-order methods,” Mathematical Programming, 2017.
- D. Kim and J. A. Fessler, “Optimized first-order methods for smooth convex minimization,” Mathematical Programming, 2016.
- Y. Nesterov, Lectures on Convex Optimization, 2018.
- I. Y. Chun and J. A. Fessler, “Convolutional analysis operator learning: Acceleration and convergence,” IEEE Transactions on Image Processing, 2020.
- J. Barzilai and J. M. Borwein, “Two-point step size gradient methods,” IMA Journal of Numerical Analysis, 1988.
- Y. Nesterov, “A method for unconstrained convex minimization problem with the rate of convergence O(1/k²),” 1983.
- Y. Nesterov, “Smooth minimization of non-smooth functions,” Mathematical Programming, 2005.
- O. Güler, “New proximal point algorithms for convex minimization,” SIAM Journal on Optimization, 1992.
- D. Kim and J. A. Fessler, “On the convergence analysis of the optimized gradient method,” Journal of Optimization Theory and Applications, 2017.
- Y. Drori, “The exact information-based complexity of smooth convex minimization,” Journal of Complexity, 2017.
- A. Beck and M. Teboulle, “A fast iterative shrinkage-thresholding algorithm for linear inverse problems,” SIAM Journal on Imaging Sciences, 2009.
- A. B. Taylor, J. M. Hendrickx, and F. Glineur, “Exact worst-case performance of first-order methods for composite convex optimization,” SIAM Journal on Optimization, 2017.
#Editorial and mathematical audit
This section preserves source-suspect and blank equations above. Completions and corrections are separately recorded through corrects links rather than overwriting the PDF.
#Products of Lipschitz functions: the global claim is false; boundedness suffices
A counterexample is:
Mathematically corrected variant · PDF p. 2
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Which side of the decision boundary contains input x?
Key idea
Calculate wᵀx+b: positive assigns one class, negative the other, and zero lies on the boundary.
Formula-specific lesson
Products of Lipschitz functions: a counterexample and a bounded-product bound
Compare the x² counterexample with bounded tanh factors on the same axes. See why the product of two Lipschitz functions need not be Lipschitz, and calculate the bound that boundedness provides.
Calculation walkthrough
Calculation steps
- 1
Multiply corresponding features and weights
- 2
Sum the products and add bias
- 3
Check the sign
- 4
Calculate boundary distance if needed
Worked example
Work through the numbers — Classifying one point
w=[1,-2], x=[3,1], and b=0.5.
- 1
Weighted sum
- 2
Class
- 3
Distance to the boundary
Result: The point is on the positive-class side, approximately 0.67 from the boundary.
Sanity check
Checks
- w and x must have the same dimension.
- Geometric distance requires |g(x)|, while signed distance may retain its sign.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
If |f|≤fmax and |g|≤gmax, the decomposition:
Completed source placeholder · PDF p. 2
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Products of Lipschitz functions: a counterexample and a bounded-product bound
Compare the x² counterexample with bounded tanh factors on the same axes. See why the product of two Lipschitz functions need not be Lipschitz, and calculate the bound that boundedness provides.
Reference-quality follow-up
Explore this calculation further
gives the bound:
Completed source placeholder · PDF p. 2
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Products of Lipschitz functions: a counterexample and a bounded-product bound
Compare the x² counterexample with bounded tanh factors on the same axes. See why the product of two Lipschitz functions need not be Lipschitz, and calculate the bound that boundedness provides.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Boundedness is sufficient but not necessary. Weaker cases, such as a bounded factor multiplied by a constant factor, can also be Lipschitz.
#Completing Fair-potential and real-regularizer blanks
The potential itself has constant:
Completed source placeholder · PDF p. 4
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Fair potential → chain rule → regularizer Lipschitz bound
Vary δ while viewing ψδ, ψ̇δ, and ψ̈δ together. For a first-difference matrix C, verify how Cᵀψ̇(Cx), ||C||₂², and the L∇R bound fit into one calculation.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
The real chain rule gives:
Completed source placeholder · PDF p. 4
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
Fair potential → chain rule → regularizer Lipschitz bound
Vary δ while viewing ψδ, ψ̇δ, and ψ̈δ together. For a first-difference matrix C, verify how Cᵀψ̇(Cx), ||C||₂², and the L∇R bound fit into one calculation.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction | |
| Total class count or a matrix; check context |
Reference-quality follow-up
Explore this calculation further
Component constants and vector bounds are:
Completed source placeholder · PDF p. 4
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far is a vector or error from the origin?
Key idea
The L2 norm sums squared components and takes the square root. Squared norm omits the final square root.
Formula-specific lesson
Fair potential → chain rule → regularizer Lipschitz bound
Vary δ while viewing ψδ, ψ̇δ, and ψ̈δ together. For a first-difference matrix C, verify how Cᵀψ̇(Cx), ||C||₂², and the L∇R bound fit into one calculation.
Calculation walkthrough
Calculation steps
- 1
Square each component
Turn both negative and positive components into nonnegative contributions.
- 2
Sum the squares
- 3
Take the square root for a norm
- 4
Distinguish the squared norm
Worked example
Work through the numbers — The 3–4–5 vector
A familiar Pythagorean example.
- 1
Vector
- 2
Sum of squares
- 3
Square root
Result: Thus ||x||₂=5 and ||x||₂²=25.
Sanity check
Checks
- A norm is always nonnegative.
- Confusing a norm with its square changes units and derivative coefficients.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Total class count or a matrix; check context | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
,
Completed source placeholder · PDF p. 4
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far is a vector or error from the origin?
Key idea
The L2 norm sums squared components and takes the square root. Squared norm omits the final square root.
Formula-specific lesson
Fair potential → chain rule → regularizer Lipschitz bound
Vary δ while viewing ψδ, ψ̇δ, and ψ̈δ together. For a first-difference matrix C, verify how Cᵀψ̇(Cx), ||C||₂², and the L∇R bound fit into one calculation.
Calculation walkthrough
Calculation steps
- 1
Square each component
Turn both negative and positive components into nonnegative contributions.
- 2
Sum the squares
- 3
Take the square root for a norm
- 4
Distinguish the squared norm
Worked example
Work through the numbers — The 3–4–5 vector
A familiar Pythagorean example.
- 1
Vector
- 2
Sum of squares
- 3
Square root
Result: Thus ||x||₂=5 and ||x||₂²=25.
Sanity check
Checks
- A norm is always nonnegative.
- Confusing a norm with its square changes units and derivative coefficients.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
The final regularizer-gradient constant is:
Completed source placeholder · PDF p. 4
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
Fair potential → chain rule → regularizer Lipschitz bound
Vary δ while viewing ψδ, ψ̇δ, and ψ̈δ together. For a first-difference matrix C, verify how Cᵀψ̇(Cx), ||C||₂², and the L∇R bound fit into one calculation.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction | |
| Total class count or a matrix; check context | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
When Ldotψ≤1, the source multiple-choice answer is C.
#Completing preconditioning blanks
The coordinate-change answer is:
Completed source placeholder · PDF p. 7
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Preconditioning and exact line-search orthogonality
Use P to make the geometry of an ill-conditioned quadratic more spherical. With d=-P∇Ψ, calculate the exact line-search step α and check that the next gradient is orthogonal to d.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Event probability | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Unitary diagonalization is:
Completed source placeholder · PDF p. 7
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Preconditioning and exact line-search orthogonality
Use P to make the geometry of an ill-conditioned quadratic more spherical. With d=-P∇Ψ, calculate the exact line-search step α and check that the next gradient is orthogonal to d.
Reference-quality follow-up
Explore this calculation further
#Correcting complex transposes and the proof’s final comparison
Complex least-squares stationarity requires Hermitian rather than ordinary transpose:
Mathematically corrected variant · PDF p. 8
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Complex descent, finite-difference spectrum, and safe fixed step
Calculate the spectrum of the periodic first-difference operator. Connect the source error for odd N with the corrected value 2cos(π/2N), the transformed Lipschitz upper bound, and a safe step size.
Reference-quality follow-up
Explore this calculation further
The single-term proof ends with the correction:
Mathematically corrected variant · PDF p. 8
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Complex descent, finite-difference spectrum, and safe fixed step
Calculate the spectrum of the periodic first-difference operator. Connect the source error for odd N with the corrected value 2cos(π/2N), the transformed Lipschitz upper bound, and a safe step size.
Reference-quality follow-up
Explore this calculation further
The real symmetric derivative blank is:
Completed source placeholder · PDF p. 9
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Complex descent, finite-difference spectrum, and safe fixed step
Calculate the spectrum of the periodic first-difference operator. Connect the source error for odd N with the corrected value 2cos(π/2N), the transformed Lipschitz upper bound, and a safe step size.
Reference-quality follow-up
Explore this calculation further
#Completing the general inverse form and line-search exercise
Equation (12)‘s blank becomes:
Completed source placeholder · PDF p. 10
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
General inverse problem: cached products make line search cheap
Compute Bᵢx and Bᵢd once, then reuse trial products through Bᵢ(x+αd)=zᵢ+αqᵢ. Verify the cache update after an accepted step.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sum over all specified terms |
Reference-quality follow-up
Explore this calculation further
The normalized Fair-potential multiple-choice answer is:
Completed source placeholder · PDF p. 10
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
General inverse problem: cached products make line search cheap
Compute Bᵢx and Bᵢd once, then reuse trial products through Bᵢ(x+αd)=zᵢ+αqᵢ. Verify the cache update after an accepted step.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Thus the answer is B.
#Distinguishing PCG’s “quadratic convergence” wording
The source phrase can be confused with quadratic convergence in general numerical-analysis terminology. A safer correction is:
Mathematically corrected variant · PDF p. 11
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How can a nonlinear relationship become a similarity score usable by a linear model?
Key idea
Use input distances or feature-space inner products to produce scalar similarity κ(u,v).
Formula-specific lesson
S-Lipschitz PGD: anisotropic norm, decrease, and rate
Run generalized PGD in the geometry defined by S and P. Compare objective decrease, weighted Fejér monotonicity, and the scales of the O(1/k) and O(1/k²) guarantees.
Calculation walkthrough
Calculation steps
- 1
Calculate the difference between inputs
- 2
Calculate squared distance
- 3
Divide by the kernel-width factor
- 4
Apply a negative exponential for similarity
Worked example
Work through the numbers — The RBF kernel
u=[0,0], v=[1,1], and σ=1.
- 1
Squared distance
- 2
Exponentiation
Result: The points' RBF similarity is approximately 0.368.
Sanity check
Checks
- For u=v, the RBF kernel equals one.
- Very small σ makes most distinct points nearly zero in similarity; very large σ makes them similar.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A kernel returning similarity between two inputs | |
| Total class count or a matrix; check context |
Reference-quality follow-up
Explore this calculation further
#Multiple-choice answers and the OGM recurrence correction
The heterogeneous-unit example’s answer is:
Completed source placeholder · PDF p. 12
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
S-Lipschitz PGD: anisotropic norm, decrease, and rate
Run generalized PGD in the geometry defined by S and P. Compare objective decrease, weighted Fejér monotonicity, and the scales of the O(1/k) and O(1/k²) guarantees.
Reference-quality follow-up
Explore this calculation further
The fixed-coefficient FO answer is:
Completed source placeholder · PDF p. 13
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Reference-quality follow-up
Explore this calculation further
The ε complexity is:
Completed source placeholder · PDF p. 14
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
The corrected final-horizon OGM index is:
Mathematically corrected variant · PDF p. 14
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
FGM → OGM: recurrence, momentum, and worst-case constants
Expand the FGM t-recurrence and OGM’s extra momentum on the same quadratic. Check β⁽⁰⁾=0, the lower bound on tₙ, and the difference in the O(1/k²) constants.
Reference-quality follow-up
Explore this calculation further
#Completing the logistic-regression mapping
Equation (21) is ; its exact mapping is:
Completed source placeholder · PDF p. 17
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How can a linear score become interpretable as a probability?
Key idea
Negate score z, exponentiate, and take the reciprocal of 1+e^{-z}.
Formula-specific lesson
Logistic regression: margin, surrogate curvature, gradient, L bound
For two-dimensional samples labeled ±1, calculate the margin, logistic loss, gradient, and curvature σ(1-σ)≤1/4 at the same weights, then connect them to a practical Lipschitz bound.
Calculation walkthrough
Calculation steps
- 1
Calculate the linear score z
- 2
Calculate the negative exponential
- 3
Add one
- 4
Take the reciprocal
Worked example
Work through the numbers — When z=2
Observe how a positive score becomes an output value.
- 1
Exponentiation
- 2
Denominator
- 3
Reciprocal
Result: The output is approximately 0.881.
Sanity check
Checks
- At z=0, it is exactly 0.5.
- Large positive scores approach one; large negative scores approach zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sum over all specified terms |
Reference-quality follow-up
Explore this calculation further
#The final strict-subset question
If f_i can be arbitrary Lipschitz-gradient functions, I=1 and B₁=I represent every Ψ, giving:
Completed source placeholder · PDF p. 18
Explanation Core explanation
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
It is a proper subset only when further structural restrictions apply.
#Research update: August 18, 2026
This is not 2025 lecture material. It extends GD, FGM, and OGM through peer-reviewed proceedings and public preprints available by August 18, 2026, keeping their claims separate.
#1. Worst-case analysis expands into PEP/SDP-based algorithm design
Drori–Teboulle’s Performance Estimation Problem asks for the worst function and iterates under a specified oracle model as an optimization problem. The original paper develops tight smooth-convex first-order analysis and coefficient design; PEPit automates gradient, proximal, and projection-oracle analysis through Python and SDP.
The 2025 Numerical Design of Optimized First-Order Algorithms uses PEP to design memoryless/full-memory coefficients. OGM is one instance of optimizing algorithms under stated function classes, oracles, metrics, and horizons, rather than an endpoint.
PEP provides worst-case certificates under explicit assumptions. Stochastic noise, mixed precision, finite batches, or distributed communication require new PEP formulations or separate stability models.
#2. Acceleration also concerns oscillation, restart, and monotonicity
FGM/OGM objectives need not decrease every iteration. Adaptive Restart for Accelerated Gradient Schemes detects excess-momentum oscillations with function- or gradient-based restarts. The 2025 Restarts Subject to Approximate Sharpness extends parameter-free analysis to approximately known sharpness.
Monitor objective spikes, gradient norms, validation, restart counts, wall-clock time, and overflow alongside theoretical rates. Separate iteration count from each iteration’s cost and stability.
#3. Large-model optimizers diversify into diagonal adaptation, low-rank state, and matrix geometry
Elementwise Adam moments are not the only option. ICLR 2025’s SPAM detects gradient spikes and combines momentum resets with clipping; LDAdam reduces memory using low-dimensional gradient statistics and projection-aware state transport.
ICLR 2026’s Muon Outperforms Adam in Tail-End Associative Memory Learning reports more isotropic singular spectra and improved tail-class learning in heavy-tailed associative-memory tasks. This extends preconditioning into neural matrix geometry without proving universal superiority across architectures or datasets.
#4. Nonconvex and distributed settings change guarantee targets
Deep-network training generally targets stationarity, gradient norms, stochastic variance, and communication complexity rather than convex-minimizer guarantees. BnB-PEP addresses convex/nonconvex method design through branch and bound; ICLR 2026’s Error Feedback for Muon and Friends connects non-Euclidean matrix optimizers with stochastic/distributed compression.
Do not transfer the lecture’s 0 < α < 2/L theorem directly into LLM training. Specify objective class, norm geometry, stochastic oracle, optimizer state, and distributed operators first.
#5. Higher-order methods trade iteration count against step cost
ICLR 2025’s OPTAMI provides global superlinear analysis and PyTorch implementations for high-order convex methods. Hessian/higher-order information can reduce iterations while increasing derivative, solve, memory, and accelerator-mapping costs.
Optimizer selection is not choosing a name among GD, FGM, OGM, Adam, Muon, and Newton. It is a quality–cost–stability trade-off involving curvature access, batch noise, matrix shape, memory, communication, horizon, and target accuracy.
#Key terms
- L-smoothness: first-order regularity bounding gradient changes by input changes.
- Performance Estimation Problem: a framework for calculating and designing worst-case performance through methods such as SDP.
- Restart: resetting momentum to reduce oscillation and local mismatch in accelerated methods.
- Preconditioning: changing coordinates or norm geometry to reduce curvature anisotropy and condition numbers.
- Matrix optimizer: an update family directly using parameter-matrix singular spectra or non-Euclidean norms.
- Optimizer-state efficiency: reducing memory and communication of moments or preconditioners.
#Research questions
- Do PEP-designed finite-horizon optimizers preserve their rankings under stochastic minibatches and mixed precision?
- Which objective, gradient, or validation restart triggers give stable wall-clock cost and final generalization?
- How can diagonal Adam, low-rank adaptive methods, and Muon-style geometry be compared fairly under equal compute and memory budgets?