Skip to main content

· Translation updated

Modern Artificial Intelligence IV — Gradient-Based Optimization: From GD to OGM

A complete ledger of nineteen ECE5992 optimization pages, text, equations, tables, figures, questions, and annotations, connecting Lipschitz continuity, GD/PSD/PGD/FGM/OGM, complex descent directions, efficient line search, and logistic regression to research through 2026.

한국어 원문

Completeness contract
This article follows 19 of 19 pages of 5_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 Ψ:FN→R\Psi:\mathbb{F}^{N}\to\mathbb{R}:

Source equation · PDF p. 1 · Eq. (1)

Identify the equation's role and symbols
x^=arg min⁡x∈FNΨ(x)\widehat{x}=\operatorname*{arg\,min}_{x\in\mathbb{F}^{N}}\Psi(x)
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
PDF p. 1 · Eq. (1) · 4. General-purpose gradient-based optimization methods Identifier: MAI-P4-001

Choose an initial estimate x(0)x^{(0)}, construct iterates {x(k)}k≥0\{x^{(k)}\}_{k\ge 0}, and seek ∥x(k)−x^∥→0(k→∞)\|x^{(k)}-\widehat{x}\|\to 0\quad(k\to\infty) in a suitable norm.

The lecture uses F∈{R,C}\mathbb{F}\in\{\mathbb{R},\mathbb{C}\} to cover real or complex applications. Its focus is smooth convex objectives with Lipschitz-continuous gradients, including least squares as a special case.

nonsmoothcompositedifferentiableLipschitzgradientboundedcurvaturequadratic LS
PDF p. 1 Venn diagram, reconstructed. Within convex functions, assumptions strengthen through nonsmooth, composite, differentiable, Lipschitz-gradient, bounded-curvature, and quadratic least-squares classes.

#Motivating application: edge-preserving image recovery

With measurement model y=Ax+εy=Ax+\varepsilon, combine data fidelity and a convex smooth regularizer to solve:

Source equation · PDF p. 1

MSE has three steps: residuals, squares, and averaging
x^=arg min⁡x∈FN12∥Ax−y∥22+βR(x)\widehat{x}=\operatorname*{arg\,min}_{x\in\mathbb{F}^{N}}\frac{1}{2}\|Ax-y\|_{2}^{2}+\beta R(x)
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
Intermediate calculations included
  1. 1

    Calculate predictions

    For linear regression, predictions are Xw or wᵀx.

    y^=Xw\hat y=Xw
  2. 2

    Calculate residuals

    r=y^−yr=\hat y-y
  3. 3

    Square the residuals

    Remove signs and emphasize larger errors.

    ri2r_i^2
  4. 4

    Sum and divide by sample count

    MSE=1L∑i=1Lri2\mathrm{MSE}=\frac{1}{L}\sum_{i=1}^{L}r_i^2

Worked example

Work through the numbers — MSE for two samples

Compare predictions and targets directly.

  1. 1

    Targets and predictions

    y=[3,1],y^=[2,4]y=[3,1],\quad\hat y=[2,4]
  2. 2

    Residual

    y^−y=[−1,3]\hat y-y=[-1,3]
  3. 3

    Square

    [−1,3]2=[1,9][-1,3]^2=[1,9]
  4. 4

    Average

    (1+9)/2=5(1+9)/2=5

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
PDF p. 1 · Motivating application: edge-preserving image recovery Identifier: MAI-P4-008

The regularizer sums potentials over transform coefficients in form R(x)=∑jψ([Cx]j)R(x)=\sum_{j}\psi([Cx]_{j}).

11×11 uniform blur

additive noise · 60 dB blurred SNR

edge-preserving recovery

smooth convex regularization + gradient method

Figure 1 structure, reconstructed from PDF pp. 1–2. Preserve degradation conditions and the contrast with restoration results without copying the original photographs.

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 g:FN→FMg:\mathbb{F}^{N}\to\mathbb{F}^{M} is Lipschitz continuous if some finite L<∞L<\infty satisfies:

Source equation · PDF p. 2

A norm summarizes many components as one magnitude
∥g(x)−g(z)∥≤L∥x−z∥,∀x,z∈FN\|g(x)-g(z)\|\le L\|x-z\|,\qquad \forall x,z\in\mathbb{F}^{N}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Square each component

    Turn both negative and positive components into nonnegative contributions.

  2. 2

    Sum the squares

    ∑ixi2\sum_i x_i^2
  3. 3

    Take the square root for a norm

    ∥x∥2=∑ixi2\lVert x\rVert_2=\sqrt{\sum_i x_i^2}
  4. 4

    Distinguish the squared norm

    ∥x∥22=∑ixi2\lVert x\rVert_2^2=\sum_i x_i^2

Worked example

Work through the numbers — The 3–4–5 vector

A familiar Pythagorean example.

  1. 1

    Vector

    x=[3,4]Tx=[3,4]^T
  2. 2

    Sum of squares

    32+42=9+16=253^2+4^2=9+16=25
  3. 3

    Square root

    25=5\sqrt{25}=5

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
SymbolMeaning
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 2 · 4.1 Lipschitz continuity Identifier: MAI-P4-011

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 Lf, LgL_f,\,L_g.

  • Scaling: h(x)=αf(x)+β⟹Lh=∣α∣Lfh(x)=\alpha f(x)+\beta\quad\Longrightarrow\quad L_h=|\alpha|L_f
  • Translation: h(x)=f(x−x0)⟹Lh=Lfh(x)=f(x-x_0)\quad\Longrightarrow\quad L_h=L_f
  • Addition: h(x)=f(x)+g(x)⟹Lh≤Lf+Lgh(x)=f(x)+g(x)\quad\Longrightarrow\quad L_h\le L_f+L_g
  • Composition: h(x)=f(g(x))⟹Lh≤LfLgh(x)=f(g(x))\quad\Longrightarrow\quad L_h\le L_fL_g
  • Affine transformation: h(x)=Ax+b⟹Lh=∥A∥2h(x)=Ax+b\quad\Longrightarrow\quad L_h=\|A\|_2
  • Multiplication: h(x)=f(x)g(x)⟹Lh=??h(x)=f(x)g(x)\quad\Longrightarrow\quad L_h=\boxed{\text{??}}

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

Identify the equation's role and symbols
f,g Lipschitz on R ⟹ fg Lipschitz on R ???f,g\text{ Lipschitz on }\mathbb{R}\ \Longrightarrow\ fg\text{ Lipschitz on }\mathbb{R}\ ?\quad\boxed{\text{??}}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Symbols

Symbols used in this equation
SymbolMeaning
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 2 · 4.1 Lipschitz continuity Identifier: MAI-P4-020

A sufficient product condition and its proof are also left blank.

Source notation requires review · PDF p. 2

Identify the equation's role and symbols
f,g Lipschitz,??,⟹??f,g\text{ Lipschitz},\qquad \boxed{\text{??}},\qquad \Longrightarrow\qquad \boxed{\text{??}}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Symbols

Symbols used in this equation
SymbolMeaning
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 2 · 4.1 Lipschitz continuity Identifier: MAI-P4-021

Source notation requires review · PDF p. 2

Identify the equation's role and symbols
f(x)g(x)−f(z)g(z)=f(x)(g(x)−g(z))−??f(x)g(x)-f(z)g(z)=f(x)(g(x)-g(z))-\boxed{\text{??}}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Reference-quality follow-up

Explore this calculation further
PDF p. 2 · 4.1 Lipschitz continuity Identifier: MAI-P4-022

Source notation requires review · PDF p. 2

A norm summarizes many components as one magnitude
∥h(x)−h(z)∥≤??≤fmax⁡Lg∥x−z∥+gmax⁡Lf∥x−z∥\|h(x)-h(z)\|\le \boxed{\text{??}}\le f_{\max}L_g\|x-z\|+g_{\max}L_f\|x-z\|
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Square each component

    Turn both negative and positive components into nonnegative contributions.

  2. 2

    Sum the squares

    ∑ixi2\sum_i x_i^2
  3. 3

    Take the square root for a norm

    ∥x∥2=∑ixi2\lVert x\rVert_2=\sqrt{\sum_i x_i^2}
  4. 4

    Distinguish the squared norm

    ∥x∥22=∑ixi2\lVert x\rVert_2^2=\sum_i x_i^2

Worked example

Work through the numbers — The 3–4–5 vector

A familiar Pythagorean example.

  1. 1

    Vector

    x=[3,4]Tx=[3,4]^T
  2. 2

    Sum of squares

    32+42=9+16=253^2+4^2=9+16=25
  3. 3

    Square root

    25=5\sqrt{25}=5

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
SymbolMeaning
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 2 · 4.1 Lipschitz continuity Identifier: MAI-P4-023

The next page asks whether boundedness is necessary: f,gmust both be bounded???f,g\text{must both be bounded?}\quad\boxed{\text{??}}.

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

A gradient describes the direction and rate of loss change
∥∇f(x)−∇f(z)∥2≤L∥x−z∥2,∀x,z∈RN\|\nabla f(x)-\nabla f(z)\|_2\le L\|x-z\|_2,\qquad \forall x,z\in\mathbb{R}^{N}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 3 · Smooth function: Lipschitz-continuous gradient Identifier: MAI-P4-025

Complex derivatives require more care, so this definition is first made in real space.

For least-squares example f(x)=12∥Ax−y∥22f(x)=\frac12\|Ax-y\|_2^2, gradient ∇f(x)=AT(Ax−y)\nabla f(x)=A^{\mathsf T}(Ax-y) gives:

Source equation · PDF p. 3

A gradient describes the direction and rate of loss change
∥∇f(x)−∇f(z)∥2=∥ATA(x−z)∥2≤∥ATA∥2∥x−z∥2\|\nabla f(x)-\nabla f(z)\|_2=\|A^{\mathsf T}A(x-z)\|_2\le\|A^{\mathsf T}A\|_2\|x-z\|_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

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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction

Reference-quality follow-up

Explore this calculation further
PDF p. 3 · Smooth function: Lipschitz-continuous gradient Identifier: MAI-P4-028

and hence:

Source equation · PDF p. 3

A norm summarizes many components as one magnitude
L=∥ATA∥2=∥A∥22=σmax⁡2(A)=ρmax⁡(ATA)L=\|A^{\mathsf T}A\|_2=\|A\|_2^2=\sigma_{\max}^2(A)=\rho_{\max}(A^{\mathsf T}A)
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Square each component

    Turn both negative and positive components into nonnegative contributions.

  2. 2

    Sum the squares

    ∑ixi2\sum_i x_i^2
  3. 3

    Take the square root for a norm

    ∥x∥2=∑ixi2\lVert x\rVert_2=\sqrt{\sum_i x_i^2}
  4. 4

    Distinguish the squared norm

    ∥x∥22=∑ixi2\lVert x\rVert_2^2=\sum_i x_i^2

Worked example

Work through the numbers — The 3–4–5 vector

A familiar Pythagorean example.

  1. 1

    Vector

    x=[3,4]Tx=[3,4]^T
  2. 2

    Sum of squares

    32+42=9+16=253^2+4^2=9+16=25
  3. 3

    Square root

    25=5\sqrt{25}=5

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
SymbolMeaning
σ\sigmaStandard deviation or sigmoid notation
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 3 · Smooth function: Lipschitz-continuous gradient Identifier: MAI-P4-029

For twice-differentiable functions, a Hessian spectral-norm bound

Source equation · PDF p. 3

A gradient describes the direction and rate of loss change
∥∇2f(x)∥2≤L,∀x∈RN\|\nabla^2 f(x)\|_2\le L,\qquad \forall x\in\mathbb{R}^{N}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 3 · Smooth function: Lipschitz-continuous gradient Identifier: MAI-P4-030

is sufficient for a Lipschitz gradient. The proof uses Taylor’s integral form

Source equation · PDF p. 3

A gradient describes the direction and rate of loss change
∇f(x)−∇f(z)=(∫01∇2f(x+τ(z−x)) dτ)(x−z)\nabla f(x)-\nabla f(z)=\left(\int_0^1\nabla^2f(x+\tau(z-x))\,d\tau\right)(x-z)
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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction

Reference-quality follow-up

Explore this calculation further
PDF p. 3 · Smooth function: Lipschitz-continuous gradient Identifier: MAI-P4-031

and the norm bound

Source equation · PDF p. 3

A gradient describes the direction and rate of loss change
∥∇f(x)−∇f(z)∥2≤(∫01L dτ)∥x−z∥2=L∥x−z∥2\|\nabla f(x)-\nabla f(z)\|_2\le\left(\int_0^1L\,d\tau\right)\|x-z\|_2=L\|x-z\|_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

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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 3 · Smooth function: Lipschitz-continuous gradient Identifier: MAI-P4-032

together. The lecture explicitly states sufficiency rather than necessity.

Quadratic examples include ∇2f=ATA,∥∇2f∥2=∥A∥22\nabla^2f=A^{\mathsf T}A,\qquad \|\nabla^2f\|_2=\|A\|_2^2, rank-one form f(x)=xT[1224]xf(x)=x^{\mathsf T}\begin{bmatrix}1&2\\2&4\end{bmatrix}x, zT=[12]z^{\mathsf T}=\begin{bmatrix}1&2\end{bmatrix}, and:

Source equation · PDF p. 3

A gradient describes the direction and rate of loss change
∇2f=2zzT,∥∇2f∥2=2∥z∥22=10\nabla^2f=2zz^{\mathsf T},\qquad \|\nabla^2f\|_2=2\|z\|_2^2=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

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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction

Reference-quality follow-up

Explore this calculation further
PDF p. 3 · Smooth function: Lipschitz-continuous gradient Identifier: MAI-P4-036

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

Identify the equation's role and symbols
ψδ(x)=δ2(∣xδ∣−log⁡(1+∣xδ∣))\psi_\delta(x)=\delta^2\left(\left|\frac{x}{\delta}\right|-\log\left(1+\left|\frac{x}{\delta}\right|\right)\right)
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Reference-quality follow-up

Explore this calculation further
PDF p. 4 · The Fair potential and edge-preserving regularization Identifier: MAI-P4-037

It satisfies:

Source equation · PDF p. 4

Identify the equation's role and symbols
ψ˙δ(x)=x1+∣x/δ∣\dot\psi_\delta(x)=\frac{x}{1+|x/\delta|}
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Reference-quality follow-up

Explore this calculation further
PDF p. 4 · The Fair potential and edge-preserving regularization Identifier: MAI-P4-038

,

Source equation · PDF p. 4

Identify the equation's role and symbols
ψ¨δ(x)=1(1+∣x/δ∣)2≤1\ddot\psi_\delta(x)=\frac{1}{(1+|x/\delta|)^2}\le1
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Reference-quality follow-up

Explore this calculation further
PDF p. 4 · The Fair potential and edge-preserving regularization Identifier: MAI-P4-039

It is approximately quadratic near zero and grows like |x| for large |x|. A nonnegative second derivative makes it convex.

approximately |x|quadratic near 0
PDF p. 4 curve, reconstructed. A new SVG shows both regimes for δ=1.

The lecture asks whether the potential itself is Lipschitz continuous, leaving ψδ itself Lipschitz continuous???\psi_\delta\text{ itself Lipschitz continuous?}\quad\boxed{\text{??}}.

An exercise derives the regularizer gradient and Lipschitz constant by composition, beginning with:

Source notation requires review · PDF p. 4 · Eq. (2)

A gradient describes the direction and rate of loss change
R(x)=∑j=1Jψ([Cx]j)⟹∇R(x)=??R(x)=\sum_{j=1}^{J}\psi([Cx]_j)\quad\Longrightarrow\quad\nabla R(x)=\boxed{\text{??}}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction
∑\sumSum over all specified terms
CCTotal class count or a matrix; check context
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 4 · Eq. (2) · The Fair potential and edge-preserving regularization Identifier: MAI-P4-041

and leaving f(x)=Cx,g(u)=ψ˙⋅(u),h(v)=CTvf(x)=Cx,\qquad g(u)=\dot\psi_{\cdot}(u),\qquad h(v)=C^{\mathsf T}v and

Source notation requires review · PDF p. 4

Identify the equation's role and symbols
Lf=??,Lh=??L_f=\boxed{\text{??}},\qquad L_h=\boxed{\text{??}}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Symbols

Symbols used in this equation
SymbolMeaning
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 4 · The Fair potential and edge-preserving regularization Identifier: MAI-P4-043

,

Source notation requires review · PDF p. 4

A norm summarizes many components as one magnitude
∥g(u)−g(v)∥22=∑j=1J??≤??\|g(u)-g(v)\|_2^2=\sum_{j=1}^{J}\boxed{\text{??}}\le\boxed{\text{??}}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Square each component

    Turn both negative and positive components into nonnegative contributions.

  2. 2

    Sum the squares

    ∑ixi2\sum_i x_i^2
  3. 3

    Take the square root for a norm

    ∥x∥2=∑ixi2\lVert x\rVert_2=\sqrt{\sum_i x_i^2}
  4. 4

    Distinguish the squared norm

    ∥x∥22=∑ixi2\lVert x\rVert_2^2=\sum_i x_i^2

Worked example

Work through the numbers — The 3–4–5 vector

A familiar Pythagorean example.

  1. 1

    Vector

    x=[3,4]Tx=[3,4]^T
  2. 2

    Sum of squares

    32+42=9+16=253^2+4^2=9+16=25
  3. 3

    Square root

    25=5\sqrt{25}=5

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
SymbolMeaning
∑\sumSum over all specified terms

Reference-quality follow-up

Explore this calculation further
PDF p. 4 · The Fair potential and edge-preserving regularization Identifier: MAI-P4-044

,

Source notation requires review · PDF p. 4 · Eq. (3)

A gradient describes the direction and rate of loss change
L∇R=??L_{\nabla R}=\boxed{\text{??}}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 4 · Eq. (3) · The Fair potential and edge-preserving regularization Identifier: MAI-P4-045

,

Source notation requires review · PDF p. 4

A norm summarizes many components as one magnitude
Lψ˙≤1:A:1B:∥C∥2C:∥CTC∥2D:∥C∥24E:None??L_{\dot\psi}\le1:\quad A:1\quad B:\|C\|_2\quad C:\|C^{\mathsf T}C\|_2\quad D:\|C\|_2^4\quad E:\text{None}\quad\boxed{\text{??}}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Square each component

    Turn both negative and positive components into nonnegative contributions.

  2. 2

    Sum the squares

    ∑ixi2\sum_i x_i^2
  3. 3

    Take the square root for a norm

    ∥x∥2=∑ixi2\lVert x\rVert_2=\sqrt{\sum_i x_i^2}
  4. 4

    Distinguish the squared norm

    ∥x∥22=∑ixi2\lVert x\rVert_2^2=\sum_i x_i^2

Worked example

Work through the numbers — The 3–4–5 vector

A familiar Pythagorean example.

  1. 1

    Vector

    x=[3,4]Tx=[3,4]^T
  2. 2

    Sum of squares

    32+42=9+16=253^2+4^2=9+16=25
  3. 3

    Square root

    25=5\sqrt{25}=5

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
SymbolMeaning
CCTotal class count or a matrix; check context
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 4 · The Fair potential and edge-preserving regularization Identifier: MAI-P4-046

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 −∞<Ψ(x^)≤Ψ(x),∀x∈RN-\infty<\Psi(\widehat{x})\le\Psi(x),\qquad \forall x\in\mathbb{R}^{N}, Lipschitz gradient ∥∇Ψ(x)−∇Ψ(z)∥2≤L∥x−z∥2\|\nabla\Psi(x)-\nabla\Psi(z)\|_2\le L\|x-z\|_2, and step size 0<α<2L0<\alpha<\frac{2}{L}. The iteration is:

Source equation · PDF p. 5 · Eq. (4)

Gradient descent steps opposite the gradient from the current point
x(k+1)=x(k)−α∇Ψ(x(k))x^{(k+1)}=x^{(k)}-\alpha\nabla\Psi(x^{(k)})
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the current loss gradient

    gk=∇J(wk)g_k=\nabla J(w_k)
  2. 2

    Determine the step size

    Δw=αgk\Delta w=\alpha g_k
  3. 3

    Move opposite the direction of increase

    wk+1=wk−αgkw_{k+1}=w_k-\alpha g_k
  4. 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. 1

    Gradient

    g=2(5−3)=4g=2(5-3)=4
  2. 2

    Step size

    αg=0.1⋅4=0.4\alpha g=0.1\cdot4=0.4
  3. 3

    Update

    wnew=5−0.4=4.6w_{new}=5-0.4=4.6
  4. 4

    Compare losses

    f(5)=4,f(4.6)=2.56f(5)=4,\qquad f(4.6)=2.56

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
SymbolMeaning
α\alphaLearning rate, mixture coefficient, or dual coefficient
∇\nablaA gradient collecting derivatives in each variable direction

Reference-quality follow-up

Explore this calculation further
PDF p. 5 · Eq. (4) · 4.2 Gradient descent for smooth convex functions Identifier: MAI-P4-050

Listed properties include monotone cost Ψ(x(k+1))≤Ψ(x(k))\Psi(x^{(k+1)})\le\Psi(x^{(k)}), monotone distance to a minimizer ∥x(k+1)−x^∥2≤∥x(k)−x^∥2\|x^{(k+1)}-\widehat{x}\|_2\le\|x^{(k)}-\widehat{x}\|_2, and convergence to a minimizer. For 0<α≤1/L0<\alpha\le1/L, the lecture gives:

Source notation requires review · PDF p. 5

MSE has three steps: residuals, squares, and averaging
Ψ(x(k))−Ψ(x^)≤L∥x(0)−x^∥222max⁡{12kα+1,(1−α)2k}\Psi(x^{(k)})-\Psi(\widehat{x})\le\frac{L\|x^{(0)}-\widehat{x}\|_2^2}{2}\max\left\{\frac{1}{2k\alpha+1},(1-\alpha)^{2k}\right\}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate predictions

    For linear regression, predictions are Xw or wᵀx.

    y^=Xw\hat y=Xw
  2. 2

    Calculate residuals

    r=y^−yr=\hat y-y
  3. 3

    Square the residuals

    Remove signs and emphasize larger errors.

    ri2r_i^2
  4. 4

    Sum and divide by sample count

    MSE=1L∑i=1Lri2\mathrm{MSE}=\frac{1}{L}\sum_{i=1}^{L}r_i^2

Worked example

Work through the numbers — MSE for two samples

Compare predictions and targets directly.

  1. 1

    Targets and predictions

    y=[3,1],y^=[2,4]y=[3,1],\quad\hat y=[2,4]
  2. 2

    Residual

    y^−y=[−1,3]\hat y-y=[-1,3]
  3. 3

    Square

    [−1,3]2=[1,9][-1,3]^2=[1,9]
  4. 4

    Average

    (1+9)/2=5(1+9)/2=5

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
SymbolMeaning
α\alphaLearning rate, mixture coefficient, or dual coefficient
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 5 · 4.2 Gradient descent for smooth convex functions Identifier: MAI-P4-053

It conjectures that the same bound also holds for 1L<α<2L\frac1L<\alpha<\frac2L.

Convergence rates consider objective gap Ψ(x(k))→Ψ(x^)\Psi(x^{(k)})\to\Psi(\widehat{x}), gradient norm ∥∇Ψ(x(k))∥→0\|\nabla\Psi(x^{(k)})\|\to0, and iterate error ∥x(k)−x^∥→0\|x^{(k)}-\widehat{x}\|\to0, globally or locally. GD with fixed α=1/L has tight worst-case objective bound:

Source notation requires review · PDF p. 5

MSE has three steps: residuals, squares, and averaging
Ψ(x(k))−Ψ(x^)≤∥x(0)−x^∥22L(2k+2)=O(k−1)\Psi(x^{(k)})-\Psi(\widehat{x})\le\frac{\|x^{(0)}-\widehat{x}\|_2^2}{L(2k+2)}=O(k^{-1})
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate predictions

    For linear regression, predictions are Xw or wᵀx.

    y^=Xw\hat y=Xw
  2. 2

    Calculate residuals

    r=y^−yr=\hat y-y
  3. 3

    Square the residuals

    Remove signs and emphasize larger errors.

    ri2r_i^2
  4. 4

    Sum and divide by sample count

    MSE=1L∑i=1Lri2\mathrm{MSE}=\frac{1}{L}\sum_{i=1}^{L}r_i^2

Worked example

Work through the numbers — MSE for two samples

Compare predictions and targets directly.

  1. 1

    Targets and predictions

    y=[3,1],y^=[2,4]y=[3,1],\quad\hat y=[2,4]
  2. 2

    Residual

    y^−y=[−1,3]\hat y-y=[-1,3]
  3. 3

    Square

    [−1,3]2=[1,9][-1,3]^2=[1,9]
  4. 4

    Average

    (1+9)/2=5(1+9)/2=5

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
SymbolMeaning
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 5 · 4.2 Gradient descent for smooth convex functions Identifier: MAI-P4-059

Nesterov FGM achieves rate O(k−2)O(k^{-2}).

The slow least-squares example uses A=[1002]A=\begin{bmatrix}1&0\\0&2\end{bmatrix} and y=0y=0. Even an optimal fixed step zigzags through elongated contours. The lecture proposes preconditioning and line search as practical acceleration routes.

x⁽⁰⁾x̂=0
Figure 2, reconstructed from PDF pp. 5–6. Preserve the alternating gradient directions and slow unpreconditioned convergence in anisotropic least squares.

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 d(k)=−P∇Ψ(x(k))d^{(k)}=-P\nabla\Psi(x^{(k)}), one-dimensional line search α(k)=arg min⁡αΨ(x(k)+αd(k))\alpha^{(k)}=\operatorname*{arg\,min}_{\alpha}\Psi(x^{(k)}+\alpha d^{(k)}), and update:

Source equation · PDF p. 6 · Eq. (5)

Gradient descent steps opposite the gradient from the current point
x(k+1)=x(k)+α(k)d(k)x^{(k+1)}=x^{(k)}+\alpha^{(k)}d^{(k)}
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the current loss gradient

    gk=∇J(wk)g_k=\nabla J(w_k)
  2. 2

    Determine the step size

    Δw=αgk\Delta w=\alpha g_k
  3. 3

    Move opposite the direction of increase

    wk+1=wk−αgkw_{k+1}=w_k-\alpha g_k
  4. 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. 1

    Gradient

    g=2(5−3)=4g=2(5-3)=4
  2. 2

    Step size

    αg=0.1⋅4=0.4\alpha g=0.1\cdot4=0.4
  3. 3

    Update

    wnew=5−0.4=4.6w_{new}=5-0.4=4.6
  4. 4

    Compare losses

    f(5)=4,f(4.6)=2.56f(5)=4,\qquad f(4.6)=2.56

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
SymbolMeaning
α\alphaLearning rate, mixture coefficient, or dual coefficient

Reference-quality follow-up

Explore this calculation further
PDF p. 6 · Eq. (5) · 4.3 Preconditioned steepest descent (PSD) and PGD Identifier: MAI-P4-065

Quadratics admit analytical line search α(k)=arg min⁡α12∥y−Ax(k)−αAd(k)∥22\alpha^{(k)}=\operatorname*{arg\,min}_{\alpha}\frac12\|y-Ax^{(k)}-\alpha Ad^{(k)}\|_2^2. Under P≻0P\succ0, strict decrease when needed gives Ψ(x(k+1))≤Ψ(x(k))\Psi(x^{(k+1)})\le\Psi(x^{(k)}), but nonquadratic objectives incur line-search costs each iteration.

The first-order condition for exact line search is:

Source equation · PDF p. 6

Gradient descent steps opposite the gradient from the current point
0=∂∂αΨ(x(k)+αd(k))∣α=α(k)=⟨∇Ψ(x(k+1)),d(k)⟩0=\left.\frac{\partial}{\partial\alpha}\Psi(x^{(k)}+\alpha d^{(k)})\right|_{\alpha=\alpha^{(k)}}=\langle\nabla\Psi(x^{(k+1)}),d^{(k)}\rangle
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the current loss gradient

    gk=∇J(wk)g_k=\nabla J(w_k)
  2. 2

    Determine the step size

    Δw=αgk\Delta w=\alpha g_k
  3. 3

    Move opposite the direction of increase

    wk+1=wk−αgkw_{k+1}=w_k-\alpha g_k
  4. 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. 1

    Gradient

    g=2(5−3)=4g=2(5-3)=4
  2. 2

    Step size

    αg=0.1⋅4=0.4\alpha g=0.1\cdot4=0.4
  3. 3

    Update

    wnew=5−0.4=4.6w_{new}=5-0.4=4.6
  4. 4

    Compare losses

    f(5)=4,f(4.6)=2.56f(5)=4,\qquad f(4.6)=2.56

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
SymbolMeaning
α\alphaLearning rate, mixture coefficient, or dual coefficient
∇\nablaA gradient collecting derivatives in each variable direction
∂\partialPartial derivative with respect to a particular variable

Reference-quality follow-up

Explore this calculation further
PDF p. 6 · 4.3 Preconditioned steepest descent (PSD) and PGD Identifier: MAI-P4-069

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)

Gradient descent steps opposite the gradient from the current point
x(k+1)=x(k)−αP∇Ψ(x(k))x^{(k+1)}=x^{(k)}-\alpha P\nabla\Psi(x^{(k)})
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the current loss gradient

    gk=∇J(wk)g_k=\nabla J(w_k)
  2. 2

    Determine the step size

    Δw=αgk\Delta w=\alpha g_k
  3. 3

    Move opposite the direction of increase

    wk+1=wk−αgkw_{k+1}=w_k-\alpha g_k
  4. 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. 1

    Gradient

    g=2(5−3)=4g=2(5-3)=4
  2. 2

    Step size

    αg=0.1⋅4=0.4\alpha g=0.1\cdot4=0.4
  3. 3

    Update

    wnew=5−0.4=4.6w_{new}=5-0.4=4.6
  4. 4

    Compare losses

    f(5)=4,f(4.6)=2.56f(5)=4,\qquad f(4.6)=2.56

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
SymbolMeaning
α\alphaLearning rate, mixture coefficient, or dual coefficient
∇\nablaA gradient collecting derivatives in each variable direction

Reference-quality follow-up

Explore this calculation further
PDF p. 6 · Eq. (6) · 4.3 Preconditioned steepest descent (PSD) and PGD Identifier: MAI-P4-070

With P=TTTP=TT^{\mathsf T} and coordinate change z=T−1xz=T^{-1}x, transform the original problem into:

Source equation · PDF p. 6

Identify the equation's role and symbols
z^=arg min⁡zΨP(z),ΨP(z)=Ψ(Tz)\widehat{z}=\operatorname*{arg\,min}_{z}\Psi_P(z),\qquad \Psi_P(z)=\Psi(Tz)
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Symbols

Symbols used in this equation
SymbolMeaning
P(⋅)P(\cdot)Event probability

Reference-quality follow-up

Explore this calculation further
PDF p. 6 · 4.3 Preconditioned steepest descent (PSD) and PGD Identifier: MAI-P4-073

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

A gradient describes the direction and rate of loss change
z(k+1)=z(k)−αTT∇Ψ(Tz(k))z^{(k+1)}=z^{(k)}-\alpha T^{\mathsf T}\nabla\Psi(Tz^{(k)})
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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
α\alphaLearning rate, mixture coefficient, or dual coefficient
∇\nablaA gradient collecting derivatives in each variable direction

Reference-quality follow-up

Explore this calculation further
PDF p. 7 · 4.3 Preconditioned steepest descent (PSD) and PGD Identifier: MAI-P4-074

Multiplying by T gives PGD. The lecture leaves this equivalence as ordinary GD on ΨP is the same as ??\text{ordinary GD on }\Psi_P\text{ is the same as }\boxed{\text{??}}.

For least squares, α=1 and T=(ATA)−1/2,P=(ATA)−1T=(A^{\mathsf T}A)^{-1/2},\qquad P=(A^{\mathsf T}A)^{-1} give x(1)=(ATA)−1ATyx^{(1)}=(A^{\mathsf T}A)^{-1}A^{\mathsf T}y, motivating P=(ATA)−1=[∇2Ψ(x(k))]−1P=(A^{\mathsf T}A)^{-1}=[\nabla^2\Psi(x^{(k)})]^{-1} as an ideal preconditioner. A good preconditioner creates coordinates with nearly spherical level sets.

ill-conditioned x-space
→
nearly spherical z-space
PDF p. 7 geometry, reconstructed. Interpret preconditioning as a coordinate change intended to make elongated level sets spherical.

#Descent direction

Definition 4.5 defines local decrease by:

Source equation · PDF p. 7 · Eq. (7)

Identify the equation's role and symbols
∃c>0 s.t. ∀ϵ∈[0,c): Ψ(x+ϵd)≤Ψ(x)\exists c>0\ \text{s.t.}\ \forall\epsilon\in[0,c):\ \Psi(x+\epsilon d)\le\Psi(x)
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Reference-quality follow-up

Explore this calculation further
PDF p. 7 · Eq. (7) · Descent direction Identifier: MAI-P4-079

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)

A gradient describes the direction and rate of loss change
d=−P∇Ψ(x)d=-P\nabla\Psi(x)
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction

Reference-quality follow-up

Explore this calculation further
PDF p. 7 · Eq. (8) · Descent direction Identifier: MAI-P4-080

is a descent direction, with proof sketch:

Source equation · PDF p. 7

A gradient describes the direction and rate of loss change
Ψ(x)−Ψ(x+αd)=−α⟨∇Ψ(x),d⟩+o(α)=α(dTP−1d+o(α)α)\Psi(x)-\Psi(x+\alpha d)=-\alpha\langle\nabla\Psi(x),d\rangle+o(\alpha)=\alpha\left(d^{\mathsf T}P^{-1}d+\frac{o(\alpha)}{\alpha}\right)
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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
α\alphaLearning rate, mixture coefficient, or dual coefficient
∇\nablaA gradient collecting derivatives in each variable direction

Reference-quality follow-up

Explore this calculation further
PDF p. 7 · Descent direction Identifier: MAI-P4-081

Representative choices include positive diagonal P=diag⁡(p1,…,pN),pi>0P=\operatorname{diag}(p_1,\ldots,p_N),\qquad p_i>0 and:

Source notation requires review · PDF p. 7

Identify the equation's role and symbols
P=??,D positive diagonal, Q unitaryP=\boxed{\text{??}},\qquad D\text{ positive diagonal},\ Q\text{ unitary}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Reference-quality follow-up

Explore this calculation further
PDF p. 7 · Descent direction Identifier: MAI-P4-083

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 Ψ(x)=12∥Ax−y∥22,A∈CM×N, y∈CM\Psi(x)=\frac12\|Ax-y\|_2^2,\qquad A\in\mathbb{C}^{M\times N},\ y\in\mathbb{C}^{M} is not holomorphic, for positive-definite P,

Source equation · PDF p. 8

Identify the equation's role and symbols
d=−PAH(Ax−y)d=-PA^{\mathsf H}(Ax-y)
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Reference-quality follow-up

Explore this calculation further
PDF p. 8 · Descent direction: complex case Identifier: MAI-P4-085

is a descent direction. The source uses g=∇Ψ(x)=AH(Ax−y)g=\nabla\Psi(x)=A^{\mathsf H}(Ax-y) as a gradient-like quantity producing negative descent rather than an ordinary complex derivative, then prints stationarity as AT(Ax−y)=0A^{\mathsf T}(Ax-y)=0.

#4.4 Descent directions for complex edge-preserving regularizers

The complex regularizer is:

Source equation · PDF p. 8 · Eq. (9)

Identify the equation's role and symbols
R(x)=∑j=1Jψ([Cx]j),ψ(z)=f(∣z∣)R(x)=\sum_{j=1}^{J}\psi([Cx]_j),\qquad \psi(z)=f(|z|)
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Symbols

Symbols used in this equation
SymbolMeaning
∑\sumSum over all specified terms
CCTotal class count or a matrix; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 8 · Eq. (9) · 4.4 Descent directions for complex edge-preserving regularizers Identifier: MAI-P4-088

Assume f is real-valued, nondecreasing on nonnegative arguments, and differentiable; ωf(t)=f˙(t)t\omega_f(t)=\frac{\dot f(t)}{t} is well-defined even at zero and satisfies 0≤ωf(t)≤ωmax⁡<∞0\le\omega_f(t)\le\omega_{\max}<\infty. For the Fair potential, ωf(t)=11+∣t/δ∣∈(0,1]\omega_f(t)=\frac{1}{1+|t/\delta|}\in(0,1].

The claim is that

Source equation · PDF p. 8 · Eq. (10)

A gradient describes the direction and rate of loss change
−∇R(x)=−CHdiag⁡(ωf ⁣⋅(∣Cx∣))Cx-\nabla R(x)=-C^{\mathsf H}\operatorname{diag}(\omega_f\!\cdot(|Cx|))Cx
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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction
CCTotal class count or a matrix; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 8 · Eq. (10) · 4.4 Descent directions for complex edge-preserving regularizers Identifier: MAI-P4-092

is a descent direction. Its intuition is f˙(t)=ωf(t)t\dot f(t)=\omega_f(t)t.

For one row, the proof uses r(x)=ψ(vHx),d(x)=−vωf(∣vHx∣)vHxr(x)=\psi(v^{\mathsf H}x),\qquad d(x)=-v\omega_f(|v^{\mathsf H}x|)v^{\mathsf H}x and contraction:

Source equation · PDF p. 8

A norm summarizes many components as one magnitude
r(x+ϵd)=f ⁣(∣vHx∣ ∣1−ϵω∥v∥22∣)r(x+\epsilon d)=f\!\left(|v^{\mathsf H}x|\,|1-\epsilon\omega\|v\|_2^2|\right)
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Square each component

    Turn both negative and positive components into nonnegative contributions.

  2. 2

    Sum the squares

    ∑ixi2\sum_i x_i^2
  3. 3

    Take the square root for a norm

    ∥x∥2=∑ixi2\lVert x\rVert_2=\sqrt{\sum_i x_i^2}
  4. 4

    Distinguish the squared norm

    ∥x∥22=∑ixi2\lVert x\rVert_2^2=\sum_i x_i^2

Worked example

Work through the numbers — The 3–4–5 vector

A familiar Pythagorean example.

  1. 1

    Vector

    x=[3,4]Tx=[3,4]^T
  2. 2

    Sum of squares

    32+42=9+16=253^2+4^2=9+16=25
  3. 3

    Square root

    25=5\sqrt{25}=5

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
PDF p. 8 · 4.4 Descent directions for complex edge-preserving regularizers Identifier: MAI-P4-095

The step interval is 0≤ϵ≤1ω∥v∥22⟹∣1−ϵω∥v∥22∣∈[0,1]0\le\epsilon\le\frac{1}{\omega\|v\|_2^2}\quad\Longrightarrow\quad |1-\epsilon\omega\|v\|_2^2|\in[0,1], and the source writes the final comparison as r(x+ϵd)≤f(vHv)=r(x)r(x+\epsilon d)\le f(v^{\mathsf H}v)=r(x).

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 ∇R(x)=CHdiag⁡(ω ⁣⋅(∣Cx∣))Cx\nabla R(x)=C^{\mathsf H}\operatorname{diag}(\omega\!\cdot(|Cx|))Cx into CHdiag⁡(ω ⁣⋅(∣Cx∣))Cx=h(g(f(x))),f(x)=Cx, g(u)=d⋅(u), h(v)=CHvC^{\mathsf H}\operatorname{diag}(\omega\!\cdot(|Cx|))Cx=h(g(f(x))),\quad f(x)=Cx,\ g(u)=d_{\cdot}(u),\ h(v)=C^{\mathsf H}v. It leaves d(z)=??(z∈R)d(z)=\boxed{\text{??}}\qquad(z\in\mathbb{R}) blank for real arguments and conjectures Ld=ω(0)L_d=\omega(0) and L∇R=∥C∥22LdL_{\nabla R}=\|C\|_2^2L_d 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

Identify the equation's role and symbols
ρmax⁡(C)={2,N even,1+cos⁡(π(N−1)/N)≈2,N odd,\rho_{\max}(C)=\begin{cases}2,&N\text{ even},\\1+\cos(\pi(N-1)/N)\approx2,&N\text{ odd},\end{cases}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Symbols

Symbols used in this equation
SymbolMeaning
CCTotal class count or a matrix; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 9 · Lipschitz constants and practical bounds for complex descent fields Identifier: MAI-P4-103

For nonperiodic boundaries, use:

Source equation · PDF p. 9

A norm summarizes many components as one magnitude
∥C∥22=∥CTC∥2=ρmax⁡(CTC)≤∥CTC∥\|C\|_2^2=\|C^{\mathsf T}C\|_2=\rho_{\max}(C^{\mathsf T}C)\le\|C^{\mathsf T}C\|
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Square each component

    Turn both negative and positive components into nonnegative contributions.

  2. 2

    Sum the squares

    ∑ixi2\sum_i x_i^2
  3. 3

    Take the square root for a norm

    ∥x∥2=∑ixi2\lVert x\rVert_2=\sqrt{\sum_i x_i^2}
  4. 4

    Distinguish the squared norm

    ∥x∥22=∑ixi2\lVert x\rVert_2^2=\sum_i x_i^2

Worked example

Work through the numbers — The 3–4–5 vector

A familiar Pythagorean example.

  1. 1

    Vector

    x=[3,4]Tx=[3,4]^T
  2. 2

    Sum of squares

    32+42=9+16=253^2+4^2=9+16=25
  3. 3

    Square root

    25=5\sqrt{25}=5

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
SymbolMeaning
CCTotal class count or a matrix; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 9 · Lipschitz constants and practical bounds for complex descent fields Identifier: MAI-P4-104

and the convenient 1-norm bound:

Source equation · PDF p. 9

MSE has three steps: residuals, squares, and averaging
∥CTC∥1≤∥CT∥1∥C∥1=∥C∥∞∥C∥1=2⋅2=4\|C^{\mathsf T}C\|_1\le\|C^{\mathsf T}\|_1\|C\|_1=\|C\|_\infty\|C\|_1=2\cdot2=4
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate predictions

    For linear regression, predictions are Xw or wᵀx.

    y^=Xw\hat y=Xw
  2. 2

    Calculate residuals

    r=y^−yr=\hat y-y
  3. 3

    Square the residuals

    Remove signs and emphasize larger errors.

    ri2r_i^2
  4. 4

    Sum and divide by sample count

    MSE=1L∑i=1Lri2\mathrm{MSE}=\frac{1}{L}\sum_{i=1}^{L}r_i^2

Worked example

Work through the numbers — MSE for two samples

Compare predictions and targets directly.

  1. 1

    Targets and predictions

    y=[3,1],y^=[2,4]y=[3,1],\quad\hat y=[2,4]
  2. 2

    Residual

    y^−y=[−1,3]\hat y-y=[-1,3]
  3. 3

    Square

    [−1,3]2=[1,9][-1,3]^2=[1,9]
  4. 4

    Average

    (1+9)/2=5(1+9)/2=5

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
SymbolMeaning
CCTotal class count or a matrix; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 9 · Lipschitz constants and practical bounds for complex descent fields Identifier: MAI-P4-105

This gives practical choice L∇R=4Lψ˙L_{\nabla R}=4L_{\dot\psi}.

For preconditioned fixed steps, calculate transformed objective f(z)=Ψ(Tz)f(z)=\Psi(Tz), gradient ∇f(z)=TT∇Ψ(Tz)\nabla f(z)=T^{\mathsf T}\nabla\Psi(Tz), and Lipschitz bound:

Source notation requires review · PDF p. 9

A gradient describes the direction and rate of loss change
L∇f=∥TT∥2∥T∥2L∇Ψ=∥P∥2L∇ΨL_{\nabla f}=\|T^{\mathsf T}\|_2\|T\|_2L_{\nabla\Psi}=\|P\|_2L_{\nabla\Psi}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 9 · Lipschitz constants and practical bounds for complex descent fields Identifier: MAI-P4-109

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

Gradient descent steps opposite the gradient from the current point
z(k+1)=z(k)−αfTT∇Ψ(Tz(k)),x(k+1)=x(k)−αfP∇Ψ(x(k)),\begin{aligned}z^{(k+1)}&=z^{(k)}-\alpha_fT^{\mathsf T}\nabla\Psi(Tz^{(k)}),\\x^{(k+1)}&=x^{(k)}-\alpha_fP\nabla\Psi(x^{(k)}),\end{aligned}
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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the current loss gradient

    gk=∇J(wk)g_k=\nabla J(w_k)
  2. 2

    Determine the step size

    Δw=αgk\Delta w=\alpha g_k
  3. 3

    Move opposite the direction of increase

    wk+1=wk−αgkw_{k+1}=w_k-\alpha g_k
  4. 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. 1

    Gradient

    g=2(5−3)=4g=2(5-3)=4
  2. 2

    Step size

    αg=0.1⋅4=0.4\alpha g=0.1\cdot4=0.4
  3. 3

    Update

    wnew=5−0.4=4.6w_{new}=5-0.4=4.6
  4. 4

    Compare losses

    f(5)=4,f(4.6)=2.56f(5)=4,\qquad f(4.6)=2.56

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
SymbolMeaning
α\alphaLearning rate, mixture coefficient, or dual coefficient
∇\nablaA gradient collecting derivatives in each variable direction

Reference-quality follow-up

Explore this calculation further
PDF p. 10 · Lipschitz constants and practical bounds for complex descent fields Identifier: MAI-P4-110

A valid fixed step is:

Source notation requires review · PDF p. 10

A gradient describes the direction and rate of loss change
0<αf<2L∇f=2∥P∥2L∇Ψ0<\alpha_f<\frac{2}{L_{\nabla f}}=\frac{2}{\|P\|_2L_{\nabla\Psi}}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
α\alphaLearning rate, mixture coefficient, or dual coefficient
∇\nablaA gradient collecting derivatives in each variable direction
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 10 · Lipschitz constants and practical bounds for complex descent fields Identifier: MAI-P4-111

Preconditioning therefore does not require line search.

A representative inverse problem is:

Source equation · PDF p. 10 · Eq. (11)

MSE has three steps: residuals, squares, and averaging
x^=arg min⁡x∈FN12∥Ax−y∥22+βR(x),R(x)=r(Cx),r(v)=∑j=1Jψ(vj)\widehat{x}=\operatorname*{arg\,min}_{x\in\mathbb{F}^{N}}\frac12\|Ax-y\|_2^2+\beta R(x),\quad R(x)=r(Cx),\quad r(v)=\sum_{j=1}^{J}\psi(v_j)
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate predictions

    For linear regression, predictions are Xw or wᵀx.

    y^=Xw\hat y=Xw
  2. 2

    Calculate residuals

    r=y^−yr=\hat y-y
  3. 3

    Square the residuals

    Remove signs and emphasize larger errors.

    ri2r_i^2
  4. 4

    Sum and divide by sample count

    MSE=1L∑i=1Lri2\mathrm{MSE}=\frac{1}{L}\sum_{i=1}^{L}r_i^2

Worked example

Work through the numbers — MSE for two samples

Compare predictions and targets directly.

  1. 1

    Targets and predictions

    y=[3,1],y^=[2,4]y=[3,1],\quad\hat y=[2,4]
  2. 2

    Residual

    y^−y=[−1,3]\hat y-y=[-1,3]
  3. 3

    Square

    [−1,3]2=[1,9][-1,3]^2=[1,9]
  4. 4

    Average

    (1+9)/2=5(1+9)/2=5

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
SymbolMeaning
∑\sumSum over all specified terms
CCTotal class count or a matrix; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 10 · Eq. (11) · 4.5 General inverse problems with efficient line search Identifier: MAI-P4-112

The source leaves its containing general form as:

Source notation requires review · PDF p. 10 · Eq. (12)

Identify the equation's role and symbols
Ψ(x)=??\Psi(x)=\boxed{\text{??}}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Reference-quality follow-up

Explore this calculation further
PDF p. 10 · Eq. (12) · 4.5 General inverse problems with efficient line search Identifier: MAI-P4-113

Each B_i has shape M_i×N and f_i is usually convex.

The special-case mapping is:

Source equation · PDF p. 10

MSE has three steps: residuals, squares, and averaging
I=2,B1=A,B2=C,f1(u)=12∥u−y∥22,f2(v)=βr(v)I=2,\quad B_1=A,\quad B_2=C,\quad f_1(u)=\frac12\|u-y\|_2^2,\quad f_2(v)=\beta r(v)
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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate predictions

    For linear regression, predictions are Xw or wᵀx.

    y^=Xw\hat y=Xw
  2. 2

    Calculate residuals

    r=y^−yr=\hat y-y
  3. 3

    Square the residuals

    Remove signs and emphasize larger errors.

    ri2r_i^2
  4. 4

    Sum and divide by sample count

    MSE=1L∑i=1Lri2\mathrm{MSE}=\frac{1}{L}\sum_{i=1}^{L}r_i^2

Worked example

Work through the numbers — MSE for two samples

Compare predictions and targets directly.

  1. 1

    Targets and predictions

    y=[3,1],y^=[2,4]y=[3,1],\quad\hat y=[2,4]
  2. 2

    Residual

    y^−y=[−1,3]\hat y-y=[-1,3]
  3. 3

    Square

    [−1,3]2=[1,9][-1,3]^2=[1,9]
  4. 4

    Average

    (1+9)/2=5(1+9)/2=5

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
SymbolMeaning
CCTotal class count or a matrix; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 10 · 4.5 General inverse problems with efficient line search Identifier: MAI-P4-114

For the Fair potential, the exercise asks for f₂’s best gradient constant:

Source notation requires review · PDF p. 10

A gradient describes the direction and rate of loss change
L∇f2:A:1B:βC:βKD:βJE:None??L_{\nabla f_2}:\quad A:1\quad B:\beta\quad C:\beta\sqrt{K}\quad D:\beta J\quad E:\text{None}\quad\boxed{\text{??}}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction
CCTotal class count or a matrix; check context
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 10 · 4.5 General inverse problems with efficient line search Identifier: MAI-P4-115

Naive line search h(k)(α)=Ψ(x(k)+αd(k))h^{(k)}(\alpha)=\Psi(x^{(k)}+\alpha d^{(k)}) repeats B_i products at every trial. Precomputing them gives:

Source equation · PDF p. 10

Identify the equation's role and symbols
h(k)(α)=∑i=1Ifi ⁣(ui(k)+αvi(k)),ui(k)=Bix(k), vi(k)=Bid(k)h^{(k)}(\alpha)=\sum_{i=1}^{I}f_i\!\left(u_i^{(k)}+\alpha v_i^{(k)}\right),\qquad u_i^{(k)}=B_ix^{(k)},\ v_i^{(k)}=B_id^{(k)}
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Symbols

Symbols used in this equation
SymbolMeaning
α\alphaLearning rate, mixture coefficient, or dual coefficient
∑\sumSum over all specified terms

Reference-quality follow-up

Explore this calculation further
PDF p. 10 · 4.5 General inverse problems with efficient line search Identifier: MAI-P4-117

The outer update then allows recursive reuse through:

Source equation · PDF p. 10

Identify the equation's role and symbols
ui(k+1)=ui(k)+αkvi(k)u_i^{(k+1)}=u_i^{(k)}+\alpha_kv_i^{(k)}
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Symbols

Symbols used in this equation
SymbolMeaning
α\alphaLearning rate, mixture coefficient, or dual coefficient

Reference-quality follow-up

Explore this calculation further
PDF p. 10 · 4.5 General inverse problems with efficient line search Identifier: MAI-P4-118

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

Gradient descent steps opposite the gradient from the current point
∥P−1/2(x(k+1)−x^)∥2≤cρ(k)∥P−1/2(x(0)−x^)∥2\|P^{-1/2}(x^{(k+1)}-\widehat{x})\|_2\le c\rho^{(k)}\|P^{-1/2}(x^{(0)}-\widehat{x})\|_2
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the current loss gradient

    gk=∇J(wk)g_k=\nabla J(w_k)
  2. 2

    Determine the step size

    Δw=αgk\Delta w=\alpha g_k
  3. 3

    Move opposite the direction of increase

    wk+1=wk−αgkw_{k+1}=w_k-\alpha g_k
  4. 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. 1

    Gradient

    g=2(5−3)=4g=2(5-3)=4
  2. 2

    Step size

    αg=0.1⋅4=0.4\alpha g=0.1\cdot4=0.4
  3. 3

    Update

    wnew=5−0.4=4.6w_{new}=5-0.4=4.6
  4. 4

    Compare losses

    f(5)=4,f(4.6)=2.56f(5)=4,\qquad f(4.6)=2.56

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
PDF p. 11 · 4.6 Convergence rates Identifier: MAI-P4-119

with root-convergence factor sup⁡x(0)lim⁡k→∞∥P−1/2(x(k)−x^)∥21/k=ρ\sup_{x^{(0)}}\lim_{k\to\infty}\|P^{-1/2}(x^{(k)}-\widehat{x})\|_2^{1/k}=\rho and preconditioned Hessian/condition number H^=P1/2∇2Ψ(x^)P1/2,κ=λmax⁡(H^)λmin⁡(H^)\widehat{H}=P^{1/2}\nabla^2\Psi(\widehat{x})P^{1/2},\qquad \kappa=\frac{\lambda_{\max}(\widehat{H})}{\lambda_{\min}(\widehat{H})}.

PDF p. 11 convergence-factor table, reconstructed
Method
ρ
κ=10²
PGD standard step
ρPGD, 1/λmax⁡=κ−1κ\rho_{\mathrm{PGD},\,1/\lambda_{\max}}=\frac{\kappa-1}{\kappa}
0.99
PGD optimal step
ρPGD, α∗=κ−1κ+1\rho_{\mathrm{PGD},\,\alpha^*}=\frac{\kappa-1}{\kappa+1}
0.98
PSD exact line search
ρPSD=κ−1κ+1\rho_{\mathrm{PSD}}=\frac{\kappa-1}{\kappa+1}
0.98
PCG exact line search
ρPCG=κ−1κ+1\rho_{\mathrm{PCG}}=\frac{\sqrt\kappa-1}{\sqrt\kappa+1}
0.82

The lecture then states “PCG converges quadratically”\text{“PCG converges quadratically”} 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)

A gradient describes the direction and rate of loss change
∥S−1(∇Ψ(x)−∇Ψ(z))∥2≤∥ST(x−z)∥2\|S^{-1}(\nabla\Psi(x)-\nabla\Psi(z))\|_2\le\|S^{\mathsf T}(x-z)\|_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

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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction

Reference-quality follow-up

Explore this calculation further
PDF p. 11 · Eq. (13) · Generalized S-Lipschitz PGD analysis Identifier: MAI-P4-127

The classical condition returns at S=L I⟹∥∇Ψ(x)−∇Ψ(z)∥2≤L∥x−z∥2S=\sqrt{L}\,I\quad\Longrightarrow\quad\|\nabla\Psi(x)-\nabla\Psi(z)\|_2\le L\|x-z\|_2. Theorem 4.8 assumes matrix condition:

Source equation · PDF p. 11 · Eq. (14)

Identify the equation's role and symbols
αPTSSTP⪯P+PT\alpha P^{\mathsf T}SS^{\mathsf T}P\preceq P+P^{\mathsf T}
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Symbols

Symbols used in this equation
SymbolMeaning
α\alphaLearning rate, mixture coefficient, or dual coefficient

Reference-quality follow-up

Explore this calculation further
PDF p. 11 · Eq. (14) · Generalized S-Lipschitz PGD analysis Identifier: MAI-P4-129

For the following PGD:

Source equation · PDF p. 11 · Eq. (15)

Gradient descent steps opposite the gradient from the current point
x(k+1)=x(k)−αP∇Ψ(x(k))x^{(k+1)}=x^{(k)}-\alpha P\nabla\Psi(x^{(k)})
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the current loss gradient

    gk=∇J(wk)g_k=\nabla J(w_k)
  2. 2

    Determine the step size

    Δw=αgk\Delta w=\alpha g_k
  3. 3

    Move opposite the direction of increase

    wk+1=wk−αgkw_{k+1}=w_k-\alpha g_k
  4. 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. 1

    Gradient

    g=2(5−3)=4g=2(5-3)=4
  2. 2

    Step size

    αg=0.1⋅4=0.4\alpha g=0.1\cdot4=0.4
  3. 3

    Update

    wnew=5−0.4=4.6w_{new}=5-0.4=4.6
  4. 4

    Compare losses

    f(5)=4,f(4.6)=2.56f(5)=4,\qquad f(4.6)=2.56

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
SymbolMeaning
α\alphaLearning rate, mixture coefficient, or dual coefficient
∇\nablaA gradient collecting derivatives in each variable direction

Reference-quality follow-up

Explore this calculation further
PDF p. 11 · Eq. (15) · Generalized S-Lipschitz PGD analysis Identifier: MAI-P4-130

it gives decrease:

Source equation · PDF p. 11

Gradient descent steps opposite the gradient from the current point
Ψ(x(k))−Ψ(x(k+1))≥α2gT(P+PT−αPTSSTP)g\Psi(x^{(k)})-\Psi(x^{(k+1)})\ge\frac{\alpha}{2}g^{\mathsf T}(P+P^{\mathsf T}-\alpha P^{\mathsf T}SS^{\mathsf T}P)g
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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the current loss gradient

    gk=∇J(wk)g_k=\nabla J(w_k)
  2. 2

    Determine the step size

    Δw=αgk\Delta w=\alpha g_k
  3. 3

    Move opposite the direction of increase

    wk+1=wk−αgkw_{k+1}=w_k-\alpha g_k
  4. 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. 1

    Gradient

    g=2(5−3)=4g=2(5-3)=4
  2. 2

    Step size

    αg=0.1⋅4=0.4\alpha g=0.1\cdot4=0.4
  3. 3

    Update

    wnew=5−0.4=4.6w_{new}=5-0.4=4.6
  4. 4

    Compare losses

    f(5)=4,f(4.6)=2.56f(5)=4,\qquad f(4.6)=2.56

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
SymbolMeaning
α\alphaLearning rate, mixture coefficient, or dual coefficient

Reference-quality follow-up

Explore this calculation further
PDF p. 11 · Generalized S-Lipschitz PGD analysis Identifier: MAI-P4-131

and convergence of gradient norms.

With SPD P, the condition is P=PT≻0:αSST⪯2P−1P=P^{\mathsf T}\succ0:\qquad \alpha SS^{\mathsf T}\preceq2P^{-1} and weighted distance ∥P−1/2(x(k)−x^)∥2↓0\|P^{-1/2}(x^{(k)}-\widehat{x})\|_2\downarrow0 decreases. The choice αP=(SST)−1\alpha P=(SS^{\mathsf T})^{-1} matches an MM method and gives the classical bound:

Source equation · PDF p. 12 · Eq. (16)

MSE has three steps: residuals, squares, and averaging
Ψ(x(k))−Ψ(x^)≤∥ST(x(0)−x^)∥222k\Psi(x^{(k)})-\Psi(\widehat{x})\le\frac{\|S^{\mathsf T}(x^{(0)}-\widehat{x})\|_2^2}{2k}
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate predictions

    For linear regression, predictions are Xw or wᵀx.

    y^=Xw\hat y=Xw
  2. 2

    Calculate residuals

    r=y^−yr=\hat y-y
  3. 3

    Square the residuals

    Remove signs and emphasize larger errors.

    ri2r_i^2
  4. 4

    Sum and divide by sample count

    MSE=1L∑i=1Lri2\mathrm{MSE}=\frac{1}{L}\sum_{i=1}^{L}r_i^2

Worked example

Work through the numbers — MSE for two samples

Compare predictions and targets directly.

  1. 1

    Targets and predictions

    y=[3,1],y^=[2,4]y=[3,1],\quad\hat y=[2,4]
  2. 2

    Residual

    y^−y=[−1,3]\hat y-y=[-1,3]
  3. 3

    Square

    [−1,3]2=[1,9][-1,3]^2=[1,9]
  4. 4

    Average

    (1+9)/2=5(1+9)/2=5

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
PDF p. 12 · Eq. (16) · Generalized S-Lipschitz PGD analysis Identifier: MAI-P4-135

, 2014 tight bound

Source equation · PDF p. 12

MSE has three steps: residuals, squares, and averaging
Ψ(x(k))−Ψ(x^)≤∥ST(x(0)−x^)∥224k+2\Psi(x^{(k)})-\Psi(\widehat{x})\le\frac{\|S^{\mathsf T}(x^{(0)}-\widehat{x})\|_2^2}{4k+2}
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate predictions

    For linear regression, predictions are Xw or wᵀx.

    y^=Xw\hat y=Xw
  2. 2

    Calculate residuals

    r=y^−yr=\hat y-y
  3. 3

    Square the residuals

    Remove signs and emphasize larger errors.

    ri2r_i^2
  4. 4

    Sum and divide by sample count

    MSE=1L∑i=1Lri2\mathrm{MSE}=\frac{1}{L}\sum_{i=1}^{L}r_i^2

Worked example

Work through the numbers — MSE for two samples

Compare predictions and targets directly.

  1. 1

    Targets and predictions

    y=[3,1],y^=[2,4]y=[3,1],\quad\hat y=[2,4]
  2. 2

    Residual

    y^−y=[−1,3]\hat y-y=[-1,3]
  3. 3

    Square

    [−1,3]2=[1,9][-1,3]^2=[1,9]
  4. 4

    Average

    (1+9)/2=5(1+9)/2=5

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
PDF p. 12 · Generalized S-Lipschitz PGD analysis Identifier: MAI-P4-136

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

A gradient describes the direction and rate of loss change
L∇Ψ: units:A:A V/mB:A2C:V2/m2D:Ω mE:None??L_{\nabla\Psi}\text{: units}:\quad A:\mathrm{A\,V/m}\quad B:\mathrm{A^2}\quad C:\mathrm{V^2/m^2}\quad D:\Omega\,\mathrm m\quad E:\text{None}\quad\boxed{\text{??}}

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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction
CCTotal class count or a matrix; check context
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 12 · Generalized S-Lipschitz PGD analysis Identifier: MAI-P4-137

#Generalized Nesterov fast gradient method(FGM)

Generalized FGM combines t(k+1)=1+1+4(t(k))22t^{(k+1)}=\frac{1+\sqrt{1+4(t^{(k)})^2}}{2}, x(k+1)=z(k)−(SST)−1∇Ψ(z(k))x^{(k+1)}=z^{(k)}-(SS^{\mathsf T})^{-1}\nabla\Psi(z^{(k)}), and z(k+1)=x(k+1)+t(k)−1t(k+1)(x(k+1)−x(k))z^{(k+1)}=x^{(k+1)}+\frac{t^{(k)}-1}{t^{(k+1)}}(x^{(k+1)}-x^{(k)}) as:

Source equation · PDF p. 12

Gradient descent steps opposite the gradient from the current point
t(k+1)=1+1+4(t(k))22,x(k+1)=z(k)−(SST)−1∇Ψ(z(k)),z(k+1)=x(k+1)+t(k)−1t(k+1)(x(k+1)−x(k)),\begin{aligned}t^{(k+1)}&=\frac{1+\sqrt{1+4(t^{(k)})^2}}2,\\x^{(k+1)}&=z^{(k)}-(SS^{\mathsf T})^{-1}\nabla\Psi(z^{(k)}),\\z^{(k+1)}&=x^{(k+1)}+\frac{t^{(k)}-1}{t^{(k+1)}}(x^{(k+1)}-x^{(k)}),\end{aligned}
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the current loss gradient

    gk=∇J(wk)g_k=\nabla J(w_k)
  2. 2

    Determine the step size

    Δw=αgk\Delta w=\alpha g_k
  3. 3

    Move opposite the direction of increase

    wk+1=wk−αgkw_{k+1}=w_k-\alpha g_k
  4. 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. 1

    Gradient

    g=2(5−3)=4g=2(5-3)=4
  2. 2

    Step size

    αg=0.1⋅4=0.4\alpha g=0.1\cdot4=0.4
  3. 3

    Update

    wnew=5−0.4=4.6w_{new}=5-0.4=4.6
  4. 4

    Compare losses

    f(5)=4,f(4.6)=2.56f(5)=4,\qquad f(4.6)=2.56

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction

Reference-quality follow-up

Explore this calculation further
PDF p. 12 · Generalized Nesterov fast gradient method(FGM) Identifier: MAI-P4-141

Setting every t=1 recovers ordinary GD. For convex S-Lipschitz objectives:

Source equation · PDF p. 12

MSE has three steps: residuals, squares, and averaging
Ψ(x(k))−Ψ(x^)≤∥ST(x(0)−x^)∥22k2\Psi(x^{(k)})-\Psi(\widehat{x})\le\frac{\|S^{\mathsf T}(x^{(0)}-\widehat{x})\|_2^2}{k^2}
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate predictions

    For linear regression, predictions are Xw or wᵀx.

    y^=Xw\hat y=Xw
  2. 2

    Calculate residuals

    r=y^−yr=\hat y-y
  3. 3

    Square the residuals

    Remove signs and emphasize larger errors.

    ri2r_i^2
  4. 4

    Sum and divide by sample count

    MSE=1L∑i=1Lri2\mathrm{MSE}=\frac{1}{L}\sum_{i=1}^{L}r_i^2

Worked example

Work through the numbers — MSE for two samples

Compare predictions and targets directly.

  1. 1

    Targets and predictions

    y=[3,1],y^=[2,4]y=[3,1],\quad\hat y=[2,4]
  2. 2

    Residual

    y^−y=[−1,3]\hat y-y=[-1,3]
  3. 3

    Square

    [−1,3]2=[1,9][-1,3]^2=[1,9]
  4. 4

    Average

    (1+9)/2=5(1+9)/2=5

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
PDF p. 12 · Generalized Nesterov fast gradient method(FGM) Identifier: MAI-P4-142

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

Gradient descent steps opposite the gradient from the current point
x(k+1)=x(k)−[∇2Ψ(x(k))]−1∇Ψ(x(k))x^{(k+1)}=x^{(k)}-[\nabla^2\Psi(x^{(k)})]^{-1}\nabla\Psi(x^{(k)})
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the current loss gradient

    gk=∇J(wk)g_k=\nabla J(w_k)
  2. 2

    Determine the step size

    Δw=αgk\Delta w=\alpha g_k
  3. 3

    Move opposite the direction of increase

    wk+1=wk−αgkw_{k+1}=w_k-\alpha g_k
  4. 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. 1

    Gradient

    g=2(5−3)=4g=2(5-3)=4
  2. 2

    Step size

    αg=0.1⋅4=0.4\alpha g=0.1\cdot4=0.4
  3. 3

    Update

    wnew=5−0.4=4.6w_{new}=5-0.4=4.6
  4. 4

    Compare losses

    f(5)=4,f(4.6)=2.56f(5)=4,\qquad f(4.6)=2.56

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction

Reference-quality follow-up

Explore this calculation further
PDF p. 12 · Generalized Nesterov fast gradient method(FGM) Identifier: MAI-P4-143

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

Gradient descent steps opposite the gradient from the current point
x(k+1)=function⁡(x(0),Ψ(x(0)),∇Ψ(x(0)),…,Ψ(x(k)),∇Ψ(x(k)))x^{(k+1)}=\operatorname{function}(x^{(0)},\Psi(x^{(0)}),\nabla\Psi(x^{(0)}),\ldots,\Psi(x^{(k)}),\nabla\Psi(x^{(k)}))
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the current loss gradient

    gk=∇J(wk)g_k=\nabla J(w_k)
  2. 2

    Determine the step size

    Δw=αgk\Delta w=\alpha g_k
  3. 3

    Move opposite the direction of increase

    wk+1=wk−αgkw_{k+1}=w_k-\alpha g_k
  4. 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. 1

    Gradient

    g=2(5−3)=4g=2(5-3)=4
  2. 2

    Step size

    αg=0.1⋅4=0.4\alpha g=0.1\cdot4=0.4
  3. 3

    Update

    wnew=5−0.4=4.6w_{new}=5-0.4=4.6
  4. 4

    Compare losses

    f(5)=4,f(4.6)=2.56f(5)=4,\qquad f(4.6)=2.56

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction

Reference-quality follow-up

Explore this calculation further
PDF p. 13 · 4.7 Accelerated first-order methods Identifier: MAI-P4-144

The fixed-coefficient FO class is:

Source equation · PDF p. 13

Gradient descent steps opposite the gradient from the current point
x(n+1)=x(n)−1L∑k=0nhn+1,k∇Ψ(x(k))x^{(n+1)}=x^{(n)}-\frac1L\sum_{k=0}^{n}h_{n+1,k}\nabla\Psi(x^{(k)})
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the current loss gradient

    gk=∇J(wk)g_k=\nabla J(w_k)
  2. 2

    Determine the step size

    Δw=αgk\Delta w=\alpha g_k
  3. 3

    Move opposite the direction of increase

    wk+1=wk−αgkw_{k+1}=w_k-\alpha g_k
  4. 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. 1

    Gradient

    g=2(5−3)=4g=2(5-3)=4
  2. 2

    Step size

    αg=0.1⋅4=0.4\alpha g=0.1\cdot4=0.4
  3. 3

    Update

    wnew=5−0.4=4.6w_{new}=5-0.4=4.6
  4. 4

    Compare losses

    f(5)=4,f(4.6)=2.56f(5)=4,\qquad f(4.6)=2.56

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction
∑\sumSum over all specified terms
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 13 · 4.7 Accelerated first-order methods Identifier: MAI-P4-145

The source asks which algorithms belong to FO:

Source notation requires review · PDF p. 13

Identify the equation's role and symbols
FO fixed-step methods?A:PGD,FGM,PSD,PCGB:PGD,FGM,PSDC:PGD,PSDD:PGD,FGME:PGD??\text{FO fixed-step methods?}\quad A:\mathrm{PGD,FGM,PSD,PCG}\quad B:\mathrm{PGD,FGM,PSD}\quad C:\mathrm{PGD,PSD}\quad D:\mathrm{PGD,FGM}\quad E:\mathrm{PGD}\quad\boxed{\text{??}}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Symbols

Symbols used in this equation
SymbolMeaning
CCTotal class count or a matrix; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 13 · 4.7 Accelerated first-order methods Identifier: MAI-P4-146

Barzilai–Borwein combines g(k)=∇Ψ(x(k))g^{(k)}=\nabla\Psi(x^{(k)}), α(k)=∥x(k)−x(k−1)∥22⟨x(k)−x(k−1),g(k)−g(k−1)⟩\alpha^{(k)}=\frac{\|x^{(k)}-x^{(k-1)}\|_2^2}{\langle x^{(k)}-x^{(k-1)},g^{(k)}-g^{(k-1)}\rangle}, and x(k+1)=x(k)−α(k)g(k)x^{(k+1)}=x^{(k)}-\alpha^{(k)}g^{(k)} in:

Source equation · PDF p. 13

Gradient descent steps opposite the gradient from the current point
g(k)=∇Ψ(x(k)),α(k)=∥x(k)−x(k−1)∥22⟨x(k)−x(k−1),g(k)−g(k−1)⟩,x(k+1)=x(k)−α(k)g(k),\begin{aligned}g^{(k)}&=\nabla\Psi(x^{(k)}),\\\alpha^{(k)}&=\frac{\|x^{(k)}-x^{(k-1)}\|_2^2}{\langle x^{(k)}-x^{(k-1)},g^{(k)}-g^{(k-1)}\rangle},\\x^{(k+1)}&=x^{(k)}-\alpha^{(k)}g^{(k)},\end{aligned}
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the current loss gradient

    gk=∇J(wk)g_k=\nabla J(w_k)
  2. 2

    Determine the step size

    Δw=αgk\Delta w=\alpha g_k
  3. 3

    Move opposite the direction of increase

    wk+1=wk−αgkw_{k+1}=w_k-\alpha g_k
  4. 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. 1

    Gradient

    g=2(5−3)=4g=2(5-3)=4
  2. 2

    Step size

    αg=0.1⋅4=0.4\alpha g=0.1\cdot4=0.4
  3. 3

    Update

    wnew=5−0.4=4.6w_{new}=5-0.4=4.6
  4. 4

    Compare losses

    f(5)=4,f(4.6)=2.56f(5)=4,\qquad f(4.6)=2.56

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
SymbolMeaning
α\alphaLearning rate, mixture coefficient, or dual coefficient
∇\nablaA gradient collecting derivatives in each variable direction

Reference-quality follow-up

Explore this calculation further
PDF p. 13 · 4.7 Accelerated first-order methods Identifier: MAI-P4-150

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 z(n+1)=x(n)−1L∇Ψ(x(n))z^{(n+1)}=x^{(n)}-\frac1L\nabla\Psi(x^{(n)}), momentum factor t(n+1)=1+1+4(t(n))22t^{(n+1)}=\frac{1+\sqrt{1+4(t^{(n)})^2}}2, and updates x(n+1)=z(n+1)+t(n)−1t(n+1)(z(n+1)−z(n))x^{(n+1)}=z^{(n+1)}+\frac{t^{(n)}-1}{t^{(n+1)}}(z^{(n+1)}-z^{(n)}) and β(n)=t(n)−1t(n+1)>0\beta^{(n)}=\frac{t^{(n)}-1}{t^{(n+1)}}>0:

Source equation · PDF p. 13

Gradient descent steps opposite the gradient from the current point
z(n+1)=x(n)−L−1∇Ψ(x(n)),t(n+1)=1+1+4(t(n))22,x(n+1)=(1+β(n))z(n+1)−β(n)z(n),\begin{aligned}z^{(n+1)}&=x^{(n)}-L^{-1}\nabla\Psi(x^{(n)}),\\t^{(n+1)}&=\frac{1+\sqrt{1+4(t^{(n)})^2}}2,\\x^{(n+1)}&=(1+\beta^{(n)})z^{(n+1)}-\beta^{(n)}z^{(n)},\end{aligned}
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the current loss gradient

    gk=∇J(wk)g_k=\nabla J(w_k)
  2. 2

    Determine the step size

    Δw=αgk\Delta w=\alpha g_k
  3. 3

    Move opposite the direction of increase

    wk+1=wk−αgkw_{k+1}=w_k-\alpha g_k
  4. 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. 1

    Gradient

    g=2(5−3)=4g=2(5-3)=4
  2. 2

    Step size

    αg=0.1⋅4=0.4\alpha g=0.1\cdot4=0.4
  3. 3

    Update

    wnew=5−0.4=4.6w_{new}=5-0.4=4.6
  4. 4

    Compare losses

    f(5)=4,f(4.6)=2.56f(5)=4,\qquad f(4.6)=2.56

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 13 · Recursive and first-order representations of Nesterov FGM1 Identifier: MAI-P4-155

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

Identify the equation's role and symbols
hn+1,k={t(n)−1t(n+1)hn,k,k=0,…,n−2,t(n)−1t(n+1)(hn,n−1),k=n−1,1+t(n)−1t(n+1),k=n,h_{n+1,k}=\begin{cases}\frac{t^{(n)}-1}{t^{(n+1)}}h_{n,k},&k=0,\ldots,n-2,\\\frac{t^{(n)}-1}{t^{(n+1)}}(h_{n,n}-1),&k=n-1,\\1+\frac{t^{(n)}-1}{t^{(n+1)}},&k=n,\end{cases}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Reference-quality follow-up

Explore this calculation further
PDF p. 14 · Recursive and first-order representations of Nesterov FGM1 Identifier: MAI-P4-156

A lower-triangular numerical coefficient matrix is shown for n=0,…,5.

PDF p. 14 FGM coefficient matrix, reconstructed
1.00
0
0
0
0
0
0
1.25
0
0
0
0
0
0.10
1.40
0
0
0
0
0.05
0.20
1.50
0
0
0
0.03
0.11
1.29
1.57
0
0
0.02
0.07
0.18
0.36
1.62

The primary-sequence bound is:

Source equation · PDF p. 14 · Eq. (17)

A norm summarizes many components as one magnitude
Ψ(z(n))−Ψ(x∗)≤L∥x(0)−x∗∥222(t(n−1))2≤2L∥x(0)−x∗∥22(n+1)2\Psi(z^{(n)})-\Psi(x^*)\le\frac{L\|x^{(0)}-x^*\|_2^2}{2(t^{(n-1)})^2}\le\frac{2L\|x^{(0)}-x^*\|_2^2}{(n+1)^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

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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Square each component

    Turn both negative and positive components into nonnegative contributions.

  2. 2

    Sum the squares

    ∑ixi2\sum_i x_i^2
  3. 3

    Take the square root for a norm

    ∥x∥2=∑ixi2\lVert x\rVert_2=\sqrt{\sum_i x_i^2}
  4. 4

    Distinguish the squared norm

    ∥x∥22=∑ixi2\lVert x\rVert_2^2=\sum_i x_i^2

Worked example

Work through the numbers — The 3–4–5 vector

A familiar Pythagorean example.

  1. 1

    Vector

    x=[3,4]Tx=[3,4]^T
  2. 2

    Sum of squares

    32+42=9+16=253^2+4^2=9+16=25
  3. 3

    Square root

    25=5\sqrt{25}=5

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
SymbolMeaning
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 14 · Eq. (17) · Recursive and first-order representations of Nesterov FGM1 Identifier: MAI-P4-157

Nesterov’s worst-function lower bound is:

Source equation · PDF p. 14

A norm summarizes many components as one magnitude
3L∥x(0)−x∗∥2232(n+1)2≤Ψ(x(n))−Ψ(x∗)\frac{3L\|x^{(0)}-x^*\|_2^2}{32(n+1)^2}\le\Psi(x^{(n)})-\Psi(x^*)
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Square each component

    Turn both negative and positive components into nonnegative contributions.

  2. 2

    Sum the squares

    ∑ixi2\sum_i x_i^2
  3. 3

    Take the square root for a norm

    ∥x∥2=∑ixi2\lVert x\rVert_2=\sqrt{\sum_i x_i^2}
  4. 4

    Distinguish the squared norm

    ∥x∥22=∑ixi2\lVert x\rVert_2^2=\sum_i x_i^2

Worked example

Work through the numbers — The 3–4–5 vector

A familiar Pythagorean example.

  1. 1

    Vector

    x=[3,4]Tx=[3,4]^T
  2. 2

    Sum of squares

    32+42=9+16=253^2+4^2=9+16=25
  3. 3

    Square root

    25=5\sqrt{25}=5

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
SymbolMeaning
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 14 · Recursive and first-order representations of Nesterov FGM1 Identifier: MAI-P4-158

The secondary-sequence bound is:

Source equation · PDF p. 14 · Eq. (18)

A norm summarizes many components as one magnitude
Ψ(x(n))−Ψ(x∗)≤L∥x(0)−x∗∥222(t(n))2≤2L∥x(0)−x∗∥22(n+1)2\Psi(x^{(n)})-\Psi(x^*)\le\frac{L\|x^{(0)}-x^*\|_2^2}{2(t^{(n)})^2}\le\frac{2L\|x^{(0)}-x^*\|_2^2}{(n+1)^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

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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Square each component

    Turn both negative and positive components into nonnegative contributions.

  2. 2

    Sum the squares

    ∑ixi2\sum_i x_i^2
  3. 3

    Take the square root for a norm

    ∥x∥2=∑ixi2\lVert x\rVert_2=\sqrt{\sum_i x_i^2}
  4. 4

    Distinguish the squared norm

    ∥x∥22=∑ixi2\lVert x\rVert_2^2=\sum_i x_i^2

Worked example

Work through the numbers — The 3–4–5 vector

A familiar Pythagorean example.

  1. 1

    Vector

    x=[3,4]Tx=[3,4]^T
  2. 2

    Sum of squares

    32+42=9+16=253^2+4^2=9+16=25
  3. 3

    Square root

    25=5\sqrt{25}=5

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
SymbolMeaning
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 14 · Eq. (18) · Recursive and first-order representations of Nesterov FGM1 Identifier: MAI-P4-159

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

Identify the equation's role and symbols
Ψ(x(n))−Ψ(x∗)≤ϵ:A:O(1) B:O(1/ϵ) C:O(1/ϵ) D:O(1/ϵ2) E:O(1/ϵ4)??\Psi(x^{(n)})-\Psi(x^*)\le\epsilon:\quad A:O(1)\ B:O(1/\sqrt\epsilon)\ C:O(1/\epsilon)\ D:O(1/\epsilon^2)\ E:O(1/\epsilon^4)\quad\boxed{\text{??}}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Symbols

Symbols used in this equation
SymbolMeaning
CCTotal class count or a matrix; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 14 · Recursive and first-order representations of Nesterov FGM1 Identifier: MAI-P4-160

#Optimized gradient method(OGM)

D. Kim introduces optimized coefficients:

Source equation · PDF p. 14

Gradient descent steps opposite the gradient from the current point
hn+1,k∗={θ(n)−1θ(n+1)hn,k,k=0,…,n−2,θ(n)−1θ(n+1)(hn,n−1−1),k=n−1,1+2θ(n)−1θ(n+1),k=n,h_{n+1,k}^{*}=\begin{cases}\frac{\theta^{(n)}-1}{\theta^{(n+1)}}h_{n,k},&k=0,\ldots,n-2,\\\frac{\theta^{(n)}-1}{\theta^{(n+1)}}(h_{n,n-1}-1),&k=n-1,\\1+\frac{2\theta^{(n)}-1}{\theta^{(n+1)}},&k=n,\end{cases}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the current loss gradient

    gk=∇J(wk)g_k=\nabla J(w_k)
  2. 2

    Determine the step size

    Δw=αgk\Delta w=\alpha g_k
  3. 3

    Move opposite the direction of increase

    wk+1=wk−αgkw_{k+1}=w_k-\alpha g_k
  4. 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. 1

    Gradient

    g=2(5−3)=4g=2(5-3)=4
  2. 2

    Step size

    αg=0.1⋅4=0.4\alpha g=0.1\cdot4=0.4
  3. 3

    Update

    wnew=5−0.4=4.6w_{new}=5-0.4=4.6
  4. 4

    Compare losses

    f(5)=4,f(4.6)=2.56f(5)=4,\qquad f(4.6)=2.56

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
PDF p. 14 · Optimized gradient method(OGM) Identifier: MAI-P4-161

with horizon-dependent θ recurrence:

Source notation requires review · PDF p. 14

Identify the equation's role and symbols
θ(n)={1,n=0,1+1+4(θ(n−1))22,n=1,…,N−1,1+1+8(θ(n−1))22,N=1,\theta^{(n)}=\begin{cases}1,&n=0,\\\frac{1+\sqrt{1+4(\theta^{(n-1)})^2}}2,&n=1,\ldots,N-1,\\\frac{1+\sqrt{1+8(\theta^{(n-1)})^2}}2,&N=1,\end{cases}
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Reference-quality follow-up

Explore this calculation further
PDF p. 14 · Optimized gradient method(OGM) Identifier: MAI-P4-162

The analytical bound:

Source equation · PDF p. 14 · Eq. (19)

A norm summarizes many components as one magnitude
Ψ(x(N))−Ψ(x∗)≤L∥x(0)−x∗∥222(θ(N))2≤L∥x(0)−x∗∥222(N+1)(N+1+2)≤L∥x(0)−x∗∥222(N+1)2\Psi(x^{(N)})-\Psi(x^*)\le\frac{L\|x^{(0)}-x^*\|_2^2}{2(\theta^{(N)})^2}\le\frac{L\|x^{(0)}-x^*\|_2^2}{2(N+1)(N+1+\sqrt2)}\le\frac{L\|x^{(0)}-x^*\|_2^2}{2(N+1)^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

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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Square each component

    Turn both negative and positive components into nonnegative contributions.

  2. 2

    Sum the squares

    ∑ixi2\sum_i x_i^2
  3. 3

    Take the square root for a norm

    ∥x∥2=∑ixi2\lVert x\rVert_2=\sqrt{\sum_i x_i^2}
  4. 4

    Distinguish the squared norm

    ∥x∥22=∑ixi2\lVert x\rVert_2^2=\sum_i x_i^2

Worked example

Work through the numbers — The 3–4–5 vector

A familiar Pythagorean example.

  1. 1

    Vector

    x=[3,4]Tx=[3,4]^T
  2. 2

    Sum of squares

    32+42=9+16=253^2+4^2=9+16=25
  3. 3

    Square root

    25=5\sqrt{25}=5

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
SymbolMeaning
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 14 · Eq. (19) · Optimized gradient method(OGM) Identifier: MAI-P4-163

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 z(n+1)=x(n)−1L∇Ψ(x(n))z^{(n+1)}=x^{(n)}-\frac1L\nabla\Psi(x^{(n)}), horizon-aware θ(n+1)={1+1+4(θ(n))22,n≤N−2,1+1+8(θ(n))22,n=N−1,\theta^{(n+1)}=\begin{cases}\frac{1+\sqrt{1+4(\theta^{(n)})^2}}2,&n\le N-2,\\\frac{1+\sqrt{1+8(\theta^{(n)})^2}}2,&n=N-1,\end{cases}, and a two-momentum update:

Source equation · PDF p. 15

Gradient descent steps opposite the gradient from the current point
x(n+1)=z(n+1)+θ(n)−1θ(n+1)(z(n+1)−z(n))+θ(n)θ(n+1)(z(n+1)−x(n))x^{(n+1)}=z^{(n+1)}+\frac{\theta^{(n)}-1}{\theta^{(n+1)}}(z^{(n+1)}-z^{(n)})+\frac{\theta^{(n)}}{\theta^{(n+1)}}(z^{(n+1)}-x^{(n)})
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the current loss gradient

    gk=∇J(wk)g_k=\nabla J(w_k)
  2. 2

    Determine the step size

    Δw=αgk\Delta w=\alpha g_k
  3. 3

    Move opposite the direction of increase

    wk+1=wk−αgkw_{k+1}=w_k-\alpha g_k
  4. 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. 1

    Gradient

    g=2(5−3)=4g=2(5-3)=4
  2. 2

    Step size

    αg=0.1⋅4=0.4\alpha g=0.1\cdot4=0.4
  3. 3

    Update

    wnew=5−0.4=4.6w_{new}=5-0.4=4.6
  4. 4

    Compare losses

    f(5)=4,f(4.6)=2.56f(5)=4,\qquad f(4.6)=2.56

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
PDF p. 15 · Optimized gradient method(OGM) Identifier: MAI-P4-166

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

A norm summarizes many components as one magnitude
Ψ(z(n))−Ψ(x∗)≤L∥x(0)−x∗∥224(θ(n−1))2≤L∥x(0)−x∗∥22(n+1)2\Psi(z^{(n)})-\Psi(x^*)\le\frac{L\|x^{(0)}-x^*\|_2^2}{4(\theta^{(n-1)})^2}\le\frac{L\|x^{(0)}-x^*\|_2^2}{(n+1)^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

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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Square each component

    Turn both negative and positive components into nonnegative contributions.

  2. 2

    Sum the squares

    ∑ixi2\sum_i x_i^2
  3. 3

    Take the square root for a norm

    ∥x∥2=∑ixi2\lVert x\rVert_2=\sqrt{\sum_i x_i^2}
  4. 4

    Distinguish the squared norm

    ∥x∥22=∑ixi2\lVert x\rVert_2^2=\sum_i x_i^2

Worked example

Work through the numbers — The 3–4–5 vector

A familiar Pythagorean example.

  1. 1

    Vector

    x=[3,4]Tx=[3,4]^T
  2. 2

    Sum of squares

    32+42=9+16=253^2+4^2=9+16=25
  3. 3

    Square root

    25=5\sqrt{25}=5

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
SymbolMeaning
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 15 · Optimized gradient method(OGM) Identifier: MAI-P4-167

The newer OGM′ uses standard recurrence t(n+1)=1+1+4(t(n))22t^{(n+1)}=\frac{1+\sqrt{1+4(t^{(n)})^2}}2 and overrelaxed gradient plus FGM momentum:

Source equation · PDF p. 15

Gradient descent steps opposite the gradient from the current point
x(n+1)=x(n)−1+t(n)/t(n+1)L∇Ψ(x(n))+t(n)−1t(n+1)(z(n+1)−z(n))x^{(n+1)}=x^{(n)}-\frac{1+t^{(n)}/t^{(n+1)}}{L}\nabla\Psi(x^{(n)})+\frac{t^{(n)}-1}{t^{(n+1)}}(z^{(n+1)}-z^{(n)})
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the current loss gradient

    gk=∇J(wk)g_k=\nabla J(w_k)
  2. 2

    Determine the step size

    Δw=αgk\Delta w=\alpha g_k
  3. 3

    Move opposite the direction of increase

    wk+1=wk−αgkw_{k+1}=w_k-\alpha g_k
  4. 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. 1

    Gradient

    g=2(5−3)=4g=2(5-3)=4
  2. 2

    Step size

    αg=0.1⋅4=0.4\alpha g=0.1\cdot4=0.4
  3. 3

    Update

    wnew=5−0.4=4.6w_{new}=5-0.4=4.6
  4. 4

    Compare losses

    f(5)=4,f(4.6)=2.56f(5)=4,\qquad f(4.6)=2.56

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 15 · Optimized gradient method(OGM) Identifier: MAI-P4-169

It avoids fixing N in advance. The lecture also gives (t(n))2≤(n+1)24,n>1(t^{(n)})^2\le\frac{(n+1)^2}{4},\qquad n>1 in a footnote.

GDFGMOGMgradient stepFGM momentumextra over-relaxed gradient momentumO(1/k²)same order, better constant
PDF pp. 15–16 momentum diagram, reconstructed. OGM adds gradient-related momentum to FGM momentum, with an overrelaxation factor approaching two.

The intuition uses overrelaxed gradient multiplier 1+t(n)t(n+1)→2(n→∞)1+\frac{t^{(n)}}{t^{(n+1)}}\to2\qquad(n\to\infty).

#OGM’s GFO worst-case optimality

OGM uses optimized h within fixed-step class x(n+1)=x(n)−1L∑k=0nhn+1,k∇Ψ(x(k))x^{(n+1)}=x^{(n)}-\frac1L\sum_{k=0}^{n}h_{n+1,k}\nabla\Psi(x^{(k)}) to satisfy:

Source equation · PDF p. 16 · Eq. (20)

A norm summarizes many components as one magnitude
Ψ(x(N))−Ψ(x∗)≤L∥x(0)−x∗∥222(θ(N))2≤L∥x(0)−x∗∥22N2\Psi(x^{(N)})-\Psi(x^*)\le\frac{L\|x^{(0)}-x^*\|_2^2}{2(\theta^{(N)})^2}\le\frac{L\|x^{(0)}-x^*\|_2^2}{N^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

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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Square each component

    Turn both negative and positive components into nonnegative contributions.

  2. 2

    Sum the squares

    ∑ixi2\sum_i x_i^2
  3. 3

    Take the square root for a norm

    ∥x∥2=∑ixi2\lVert x\rVert_2=\sqrt{\sum_i x_i^2}
  4. 4

    Distinguish the squared norm

    ∥x∥22=∑ixi2\lVert x\rVert_2^2=\sum_i x_i^2

Worked example

Work through the numbers — The 3–4–5 vector

A familiar Pythagorean example.

  1. 1

    Vector

    x=[3,4]Tx=[3,4]^T
  2. 2

    Sum of squares

    32+42=9+16=253^2+4^2=9+16=25
  3. 3

    Square root

    25=5\sqrt{25}=5

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
SymbolMeaning
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 16 · Eq. (20) · Worst-case optimality of OGM in the GFO class Identifier: MAI-P4-173

Drori proves a lower bound over the full GFO class x(n+1)=function⁡(x(0),Ψ(x(0)),∇Ψ(x(0)),…,Ψ(x(n)),∇Ψ(x(n)))x^{(n+1)}=\operatorname{function}(x^{(0)},\Psi(x^{(0)}),\nabla\Psi(x^{(0)}),\ldots,\Psi(x^{(n)}),\nabla\Psi(x^{(n)})) in large-scale settings with d>N:

Source equation · PDF p. 16

A norm summarizes many components as one magnitude
L∥x(0)−x∗∥222(θ(N))2≤Ψ(x(N))−Ψ(x∗)\frac{L\|x^{(0)}-x^*\|_2^2}{2(\theta^{(N)})^2}\le\Psi(x^{(N)})-\Psi(x^*)
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Square each component

    Turn both negative and positive components into nonnegative contributions.

  2. 2

    Sum the squares

    ∑ixi2\sum_i x_i^2
  3. 3

    Take the square root for a norm

    ∥x∥2=∑ixi2\lVert x\rVert_2=\sqrt{\sum_i x_i^2}
  4. 4

    Distinguish the squared norm

    ∥x∥22=∑ixi2\lVert x\rVert_2^2=\sum_i x_i^2

Worked example

Work through the numbers — The 3–4–5 vector

A familiar Pythagorean example.

  1. 1

    Vector

    x=[3,4]Tx=[3,4]^T
  2. 2

    Sum of squares

    32+42=9+16=253^2+4^2=9+16=25
  3. 3

    Square root

    25=5\sqrt{25}=5

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
SymbolMeaning
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 16 · Worst-case optimality of OGM in the GFO class Identifier: MAI-P4-175

Within this oracle model, OGM therefore has optimal worst-case complexity.

Huber-like worst case

Quadratic worst case

PDF p. 16 worst-case panels, reconstructed. Conceptual Huber-like and quadratic examples show two ways OGM iterates attain the upper bound.

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

A norm summarizes many components as one magnitude
R=∥x(0)−x∗∥:Ψ(x(N))−Ψ(x∗)=LR22(θ(N))2≤LR2(N+1)(N+1+2)≤LR2(N+1)2R=\|x^{(0)}-x^*\|:\qquad \Psi(x^{(N)})-\Psi(x^*)=\frac{LR^2}{2(\theta^{(N)})^2}\le\frac{LR^2}{(N+1)(N+1+\sqrt2)}\le\frac{LR^2}{(N+1)^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

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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Square each component

    Turn both negative and positive components into nonnegative contributions.

  2. 2

    Sum the squares

    ∑ixi2\sum_i x_i^2
  3. 3

    Take the square root for a norm

    ∥x∥2=∑ixi2\lVert x\rVert_2=\sqrt{\sum_i x_i^2}
  4. 4

    Distinguish the squared norm

    ∥x∥22=∑ixi2\lVert x\rVert_2^2=\sum_i x_i^2

Worked example

Work through the numbers — The 3–4–5 vector

A familiar Pythagorean example.

  1. 1

    Vector

    x=[3,4]Tx=[3,4]^T
  2. 2

    Sum of squares

    32+42=9+16=253^2+4^2=9+16=25
  3. 3

    Square root

    25=5\sqrt{25}=5

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
SymbolMeaning
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 17 · Worst-case optimality of OGM in the GFO class Identifier: MAI-P4-176

However, in general FGM/OGM satisfy:

Source equation · PDF p. 17

Gradient descent steps opposite the gradient from the current point
Ψ(x(k+1))≤Ψ(x(k))is not guaranteed for FGM/OGM\Psi(x^{(k+1)})\le\Psi(x^{(k)})\quad\text{is not guaranteed for FGM/OGM}
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the current loss gradient

    gk=∇J(wk)g_k=\nabla J(w_k)
  2. 2

    Determine the step size

    Δw=αgk\Delta w=\alpha g_k
  3. 3

    Move opposite the direction of increase

    wk+1=wk−αgkw_{k+1}=w_k-\alpha g_k
  4. 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. 1

    Gradient

    g=2(5−3)=4g=2(5-3)=4
  2. 2

    Step size

    αg=0.1⋅4=0.4\alpha g=0.1\cdot4=0.4
  3. 3

    Update

    wnew=5−0.4=4.6w_{new}=5-0.4=4.6
  4. 4

    Compare losses

    f(5)=4,f(4.6)=2.56f(5)=4,\qquad f(4.6)=2.56

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
PDF p. 17 · Worst-case optimality of OGM in the GFO class Identifier: MAI-P4-177

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)

MSE has three steps: residuals, squares, and averaging
x^=arg min⁡xΨ(x),Ψ(x)=∑m=1Mψ(ym⟨x,vm⟩)+β2∥x∥22\widehat{x}=\operatorname*{arg\,min}_{x}\Psi(x),\qquad \Psi(x)=\sum_{m=1}^{M}\psi(y_m\langle x,v_m\rangle)+\frac\beta2\|x\|_2^2
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate predictions

    For linear regression, predictions are Xw or wᵀx.

    y^=Xw\hat y=Xw
  2. 2

    Calculate residuals

    r=y^−yr=\hat y-y
  3. 3

    Square the residuals

    Remove signs and emphasize larger errors.

    ri2r_i^2
  4. 4

    Sum and divide by sample count

    MSE=1L∑i=1Lri2\mathrm{MSE}=\frac{1}{L}\sum_{i=1}^{L}r_i^2

Worked example

Work through the numbers — MSE for two samples

Compare predictions and targets directly.

  1. 1

    Targets and predictions

    y=[3,1],y^=[2,4]y=[3,1],\quad\hat y=[2,4]
  2. 2

    Residual

    y^−y=[−1,3]\hat y-y=[-1,3]
  3. 3

    Square

    [−1,3]2=[1,9][-1,3]^2=[1,9]
  4. 4

    Average

    (1+9)/2=5(1+9)/2=5

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
SymbolMeaning
∑\sumSum over all specified terms

Reference-quality follow-up

Explore this calculation further
PDF p. 17 · Eq. (21) · 4.8 Machine learning: Binary classification with logistic regression Identifier: MAI-P4-178

Desired classifier margins satisfy:

Source equation · PDF p. 17

Gradient descent steps opposite the gradient from the current point
⟨x,vm⟩>0 (ym=+1),⟨x,vm⟩<0 (ym=−1),i.e. ⟨x,ymvm⟩>0\langle x,v_m\rangle>0\ (y_m=+1),\quad \langle x,v_m\rangle<0\ (y_m=-1),\quad\text{i.e. }\langle x,y_mv_m\rangle>0
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the current loss gradient

    gk=∇J(wk)g_k=\nabla J(w_k)
  2. 2

    Determine the step size

    Δw=αgk\Delta w=\alpha g_k
  3. 3

    Move opposite the direction of increase

    wk+1=wk−αgkw_{k+1}=w_k-\alpha g_k
  4. 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. 1

    Gradient

    g=2(5−3)=4g=2(5-3)=4
  2. 2

    Step size

    αg=0.1⋅4=0.4\alpha g=0.1\cdot4=0.4
  3. 3

    Update

    wnew=5−0.4=4.6w_{new}=5-0.4=4.6
  4. 4

    Compare losses

    f(5)=4,f(4.6)=2.56f(5)=4,\qquad f(4.6)=2.56

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
PDF p. 17 · 4.8 Machine learning: Binary classification with logistic regression Identifier: MAI-P4-179

Use sign(⟨x,v_m⟩) for class decisions.

The logistic surrogate has ψ(z)=log⁡(1+e−z)\psi(z)=\log(1+e^{-z}), derivative ψ˙(z)=−1ez+1\dot\psi(z)=-\frac{1}{e^z+1}, and curvature:

Source equation · PDF p. 17

A sigmoid compresses a real-valued score between zero and one
ψ¨(z)=ez(ez+1)2∈(0,14]\ddot\psi(z)=\frac{e^z}{(e^z+1)^2}\in\left(0,\frac14\right]
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the linear score z

    z=wTx+bz=w^Tx+b
  2. 2

    Calculate the negative exponential

    e−ze^{-z}
  3. 3

    Add one

    1+e−z1+e^{-z}
  4. 4

    Take the reciprocal

    σ(z)=1/(1+e−z)\sigma(z)=1/(1+e^{-z})

Worked example

Work through the numbers — When z=2

Observe how a positive score becomes an output value.

  1. 1

    Exponentiation

    e−2≈0.1353e^{-2}\approx0.1353
  2. 2

    Denominator

    1+0.1353=1.13531+0.1353=1.1353
  3. 3

    Reciprocal

    1/1.1353≈0.8811/1.1353\approx0.881

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
PDF p. 17 · 4.8 Machine learning: Binary classification with logistic regression Identifier: MAI-P4-182

These permit computing a gradient Lipschitz constant.

Surrogate losses

exponential / hinge / logistic / 0–1

Decision boundary update

PDF pp. 17–18 figures, reconstructed. New SVGs compare surrogate-loss shapes and initial, final, and ideal boundaries on labeled points.

The exercise leaves the general inverse-form correspondence as:

Source notation requires review · PDF p. 17

A sigmoid compresses a real-valued score between zero and one
Is (21) a special case of (12)?A:TrueB:False??\text{Is (21) a special case of (12)?}\quad A:\text{True}\quad B:\text{False}\quad\boxed{\text{??}}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the linear score z

    z=wTx+bz=w^Tx+b
  2. 2

    Calculate the negative exponential

    e−ze^{-z}
  3. 3

    Add one

    1+e−z1+e^{-z}
  4. 4

    Take the reciprocal

    σ(z)=1/(1+e−z)\sigma(z)=1/(1+e^{-z})

Worked example

Work through the numbers — When z=2

Observe how a positive score becomes an output value.

  1. 1

    Exponentiation

    e−2≈0.1353e^{-2}\approx0.1353
  2. 2

    Denominator

    1+0.1353=1.13531+0.1353=1.1353
  3. 3

    Reciprocal

    1/1.1353≈0.8811/1.1353\approx0.881

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
PDF p. 17 · 4.8 Machine learning: Binary classification with logistic regression Identifier: MAI-P4-183

,

Source notation requires review · PDF p. 17

A sigmoid compresses a real-valued score between zero and one
I=??, B1=??, B2=??, f1(u)=??, f2(v)=??I=\boxed{\text{??}},\ B_1=\boxed{\text{??}},\ B_2=\boxed{\text{??}},\ f_1(u)=\boxed{\text{??}},\ f_2(v)=\boxed{\text{??}}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the linear score z

    z=wTx+bz=w^Tx+b
  2. 2

    Calculate the negative exponential

    e−ze^{-z}
  3. 3

    Add one

    1+e−z1+e^{-z}
  4. 4

    Take the reciprocal

    σ(z)=1/(1+e−z)\sigma(z)=1/(1+e^{-z})

Worked example

Work through the numbers — When z=2

Observe how a positive score becomes an output value.

  1. 1

    Exponentiation

    e−2≈0.1353e^{-2}\approx0.1353
  2. 2

    Denominator

    1+0.1353=1.13531+0.1353=1.1353
  3. 3

    Reciprocal

    1/1.1353≈0.8811/1.1353\approx0.881

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
PDF p. 17 · 4.8 Machine learning: Binary classification with logistic regression Identifier: MAI-P4-184

It defines V=[y1v1,…,yMvM]∈RN×MV=[y_1v_1,\ldots,y_Mv_M]\in\mathbb{R}^{N\times M}. The gradient and practical constant are:

Source equation · PDF p. 17

A gradient describes the direction and rate of loss change
∇Ψ(x)=Vψ˙⋅(VTx)+βx,L∇Ψ=∥V∥22Lψ˙+β=14∥V∥22+β\nabla\Psi(x)=V\dot\psi_{\cdot}(V^{\mathsf T}x)+\beta x,\qquad L_{\nabla\Psi}=\|V\|_2^2L_{\dot\psi}+\beta=\frac14\|V\|_2^2+\beta
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 17 · 4.8 Machine learning: Binary classification with logistic regression Identifier: MAI-P4-186

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 β2∥x∥22 ⟶ β∥x∥1\frac\beta2\|x\|_2^2\ \longrightarrow\ \beta\|x\|_1.

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

A gradient describes the direction and rate of loss change
{Ψ=∑ifi(Bix):∇fi Lipschitz}⊊{Ψ:∇Ψ Lipschitz} ?A:True B:False ??\{\Psi=\sum_i f_i(B_ix):\nabla f_i\text{ Lipschitz}\}\subsetneq\{\Psi:\nabla\Psi\text{ Lipschitz}\}\ ?\quad A:\text{True}\ B:\text{False}\ \boxed{\text{??}}
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
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction
∑\sumSum over all specified terms
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 18 · 4.9 Summary Identifier: MAI-P4-188

#References in the lecture material

  1. R. C. Fair, “On the robust estimation of econometric models,” Annals of Economic and Social Measurement, 1974.
  1. K. Lange, “Convergence of EM image reconstruction algorithms with Gibbs smoothing,” IEEE Transactions on Medical Imaging, 1990.
  1. X. Zheng et al., “Sparse-view X-ray CT reconstruction using ℓ1 prior with learned transform,” submitted 2019; arXiv:1711.00905.
  1. B. T. Polyak, Introduction to Optimization, 1987.
  1. Y. Drori and M. Teboulle, “Performance of first-order methods for smooth convex minimization: a novel approach,” Mathematical Programming, 2014.
  1. 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.
  1. D. Kim and J. A. Fessler, “Optimized first-order methods for smooth convex minimization,” Mathematical Programming, 2016.
  1. Y. Nesterov, Lectures on Convex Optimization, 2018.
  1. I. Y. Chun and J. A. Fessler, “Convolutional analysis operator learning: Acceleration and convergence,” IEEE Transactions on Image Processing, 2020.
  1. J. Barzilai and J. M. Borwein, “Two-point step size gradient methods,” IMA Journal of Numerical Analysis, 1988.
  1. Y. Nesterov, “A method for unconstrained convex minimization problem with the rate of convergence O(1/k²),” 1983.
  1. Y. Nesterov, “Smooth minimization of non-smooth functions,” Mathematical Programming, 2005.
  1. O. Güler, “New proximal point algorithms for convex minimization,” SIAM Journal on Optimization, 1992.
  1. D. Kim and J. A. Fessler, “On the convergence analysis of the optimized gradient method,” Journal of Optimization Theory and Applications, 2017.
  1. Y. Drori, “The exact information-based complexity of smooth convex minimization,” Journal of Complexity, 2017.
  1. A. Beck and M. Teboulle, “A fast iterative shrinkage-thresholding algorithm for linear inverse problems,” SIAM Journal on Imaging Sciences, 2009.
  1. 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

A hyperplane classifier separates classes by a weighted score's sign
f(x)=g(x)=x⟹f,g are Lipschitz on R,f(x)g(x)=x2 is not globally Lipschitzf(x)=g(x)=x\quad\Longrightarrow\quad f,g\text{ are Lipschitz on }\mathbb{R},\quad f(x)g(x)=x^2\text{ is not globally Lipschitz}
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Multiply corresponding features and weights

    wixiw_ix_i
  2. 2

    Sum the products and add bias

    g(x)=wTx+bg(x)=w^Tx+b
  3. 3

    Check the sign

    g(x)>0⇒+1,g(x)<0⇒−1g(x)>0\Rightarrow+1,\quad g(x)<0\Rightarrow-1
  4. 4

    Calculate boundary distance if needed

    distance=∣g(x)∣/∥w∥2\mathrm{distance}=|g(x)|/\lVert w\rVert_2

Worked example

Work through the numbers — Classifying one point

w=[1,-2], x=[3,1], and b=0.5.

  1. 1

    Weighted sum

    1⋅3+(−2)⋅1+0.5=1.51\cdot3+(-2)\cdot1+0.5=1.5
  2. 2

    Class

    sign⁡(1.5)=+1\operatorname{sign}(1.5)=+1
  3. 3

    Distance to the boundary

    1.5/12+(−2)2≈0.671.5/\sqrt{1^2+(-2)^2}\approx0.67

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
SymbolMeaning
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 2 · Products of Lipschitz functions: the global claim is false; boundedness is sufficient Identifier: MAI-P4-189

If |f|≤fmax and |g|≤gmax, the decomposition:

Completed source placeholder · PDF p. 2

Identify the equation's role and symbols
f(x)g(x)−f(z)g(z)=f(x)(g(x)−g(z))+g(z)(f(x)−f(z))f(x)g(x)-f(z)g(z)=f(x)(g(x)-g(z))+g(z)(f(x)-f(z))
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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Reference-quality follow-up

Explore this calculation further
PDF p. 2 · Products of Lipschitz functions: the global claim is false; boundedness is sufficient Identifier: MAI-P4-190

gives the bound:

Completed source placeholder · PDF p. 2

Identify the equation's role and symbols
∣h(x)−h(z)∣≤(fmax⁡Lg+gmax⁡Lf)∣x−z∣|h(x)-h(z)|\le\bigl(f_{\max}L_g+g_{\max}L_f\bigr)|x-z|
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Symbols

Symbols used in this equation
SymbolMeaning
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 2 · Products of Lipschitz functions: the global claim is false; boundedness is sufficient Identifier: MAI-P4-191

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

Identify the equation's role and symbols
∣ψ˙δ(x)∣=∣x∣1+∣x∣/δ≤δ⟹Lψδ=δ|\dot\psi_\delta(x)|=\frac{|x|}{1+|x|/\delta}\le\delta\quad\Longrightarrow\quad L_{\psi_\delta}=\delta
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Symbols

Symbols used in this equation
SymbolMeaning
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 4 · Completing the Fair potential and real regularizer Identifier: MAI-P4-192

The real chain rule gives:

Completed source placeholder · PDF p. 4

A gradient describes the direction and rate of loss change
∇R(x)=CTψ˙⋅(Cx)\nabla R(x)=C^{\mathsf T}\dot\psi_{\cdot}(Cx)
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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction
CCTotal class count or a matrix; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 4 · Completing the Fair potential and real regularizer Identifier: MAI-P4-193

Component constants and vector bounds are:

Completed source placeholder · PDF p. 4

A norm summarizes many components as one magnitude
Lf=∥C∥2,Lh=∥CT∥2=∥C∥2L_f=\|C\|_2,\qquad L_h=\|C^{\mathsf T}\|_2=\|C\|_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

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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Square each component

    Turn both negative and positive components into nonnegative contributions.

  2. 2

    Sum the squares

    ∑ixi2\sum_i x_i^2
  3. 3

    Take the square root for a norm

    ∥x∥2=∑ixi2\lVert x\rVert_2=\sqrt{\sum_i x_i^2}
  4. 4

    Distinguish the squared norm

    ∥x∥22=∑ixi2\lVert x\rVert_2^2=\sum_i x_i^2

Worked example

Work through the numbers — The 3–4–5 vector

A familiar Pythagorean example.

  1. 1

    Vector

    x=[3,4]Tx=[3,4]^T
  2. 2

    Sum of squares

    32+42=9+16=253^2+4^2=9+16=25
  3. 3

    Square root

    25=5\sqrt{25}=5

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
SymbolMeaning
CCTotal class count or a matrix; check context
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 4 · Completing the Fair potential and real regularizer Identifier: MAI-P4-194

,

Completed source placeholder · PDF p. 4

A norm summarizes many components as one magnitude
∥ψ˙⋅(u)−ψ˙⋅(v)∥22≤Lψ˙2∥u−v∥22\|\dot\psi_{\cdot}(u)-\dot\psi_{\cdot}(v)\|_2^2\le L_{\dot\psi}^{2}\|u-v\|_2^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

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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Square each component

    Turn both negative and positive components into nonnegative contributions.

  2. 2

    Sum the squares

    ∑ixi2\sum_i x_i^2
  3. 3

    Take the square root for a norm

    ∥x∥2=∑ixi2\lVert x\rVert_2=\sqrt{\sum_i x_i^2}
  4. 4

    Distinguish the squared norm

    ∥x∥22=∑ixi2\lVert x\rVert_2^2=\sum_i x_i^2

Worked example

Work through the numbers — The 3–4–5 vector

A familiar Pythagorean example.

  1. 1

    Vector

    x=[3,4]Tx=[3,4]^T
  2. 2

    Sum of squares

    32+42=9+16=253^2+4^2=9+16=25
  3. 3

    Square root

    25=5\sqrt{25}=5

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
SymbolMeaning
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 4 · Completing the Fair potential and real regularizer Identifier: MAI-P4-195

The final regularizer-gradient constant is:

Completed source placeholder · PDF p. 4

A gradient describes the direction and rate of loss change
L∇R≤∥C∥22Lψ˙=∥CTC∥2Lψ˙L_{\nabla R}\le\|C\|_2^2L_{\dot\psi}=\|C^{\mathsf T}C\|_2L_{\dot\psi}
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction
CCTotal class count or a matrix; check context
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 4 · Completing the Fair potential and real regularizer Identifier: MAI-P4-196

When Ldotψ≤1, the source multiple-choice answer is C.

#Completing preconditioning blanks

The coordinate-change answer is:

Completed source placeholder · PDF p. 7

Identify the equation's role and symbols
GD on ΨP(z)=Ψ(Tz)⟺PGD on Ψ(x) with P=TTT\text{GD on }\Psi_P(z)=\Psi(Tz)\quad\Longleftrightarrow\quad\text{PGD on }\Psi(x)\text{ with }P=TT^{\mathsf T}
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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Symbols

Symbols used in this equation
SymbolMeaning
P(⋅)P(\cdot)Event probability
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 7 · Completing the preconditioning derivation Identifier: MAI-P4-197

Unitary diagonalization is:

Completed source placeholder · PDF p. 7

Identify the equation's role and symbols
P=QDQH,D≻0,QHQ=IP=QDQ^{\mathsf H},\qquad D\succ0,\quad Q^{\mathsf H}Q=I
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Reference-quality follow-up

Explore this calculation further
PDF p. 7 · Completing the preconditioning derivation Identifier: MAI-P4-198

#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

Identify the equation's role and symbols
AH(Ax−y)=0A^{\mathsf H}(Ax-y)=0
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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Reference-quality follow-up

Explore this calculation further
PDF p. 8 · Correcting transposes and proof endings in complex notation Identifier: MAI-P4-199

The single-term proof ends with the correction:

Mathematically corrected variant · PDF p. 8

Identify the equation's role and symbols
r(x+ϵd)≤f(∣vHx∣)=r(x)r(x+\epsilon d)\le f(|v^{\mathsf H}x|)=r(x)
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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Reference-quality follow-up

Explore this calculation further
PDF p. 8 · Correcting transposes and proof endings in complex notation Identifier: MAI-P4-200

The real symmetric derivative blank is:

Completed source placeholder · PDF p. 9

Identify the equation's role and symbols
d(z)=ω(∣z∣)z=ψ˙(z)(z∈R, ψ˙ odd)d(z)=\omega(|z|)z=\dot\psi(z)\qquad(z\in\mathbb{R},\ \dot\psi\text{ odd})
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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Reference-quality follow-up

Explore this calculation further
PDF p. 9 · Correcting transposes and proof endings in complex notation Identifier: MAI-P4-201

#Completing the general inverse form and line-search exercise

Equation (12)‘s blank becomes:

Completed source placeholder · PDF p. 10

Identify the equation's role and symbols
Ψ(x)=∑i=1Ifi(Bix)\Psi(x)=\sum_{i=1}^{I}f_i(B_ix)
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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Symbols

Symbols used in this equation
SymbolMeaning
∑\sumSum over all specified terms

Reference-quality follow-up

Explore this calculation further
PDF p. 10 · Completing the general inverse form and line-search exercise Identifier: MAI-P4-202

The normalized Fair-potential multiple-choice answer is:

Completed source placeholder · PDF p. 10

A gradient describes the direction and rate of loss change
f2(v)=βr(v),L∇f2=βLψ˙=βf_2(v)=\beta r(v),\qquad L_{\nabla f_2}=\beta L_{\dot\psi}=\beta
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.

Interactive
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Choose the differentiation variable

    Treat other variables as constants.

  2. 2

    Apply sum, product, and chain rules

    For composition, multiply the outer derivative by the inner derivative.

  3. 3

    Collect partial derivatives into one vector

    ∇f=[∂f/∂x1,…,∂f/∂xN]T\nabla f=[\partial f/\partial x_1,\ldots,\partial f/\partial x_N]^T
  4. 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. 1

    Function

    f(w)=(w−3)2f(w)=(w-3)^2
  2. 2

    Derivative

    f′(w)=2(w−3)f'(w)=2(w-3)
  3. 3

    Substitute w=5

    f′(5)=2(5−3)=4f'(5)=2(5-3)=4

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
SymbolMeaning
∇\nablaA gradient collecting derivatives in each variable direction
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 10 · Completing the general inverse form and line-search exercise Identifier: MAI-P4-203

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

A kernel computes feature-space inner products or similarities without constructing that space explicitly
For an N-dimensional SPD quadratic, exact-arithmetic CG terminates in at most N steps; the generic rate is governed by κ−1κ+1.\text{For an }N\text{-dimensional SPD quadratic, exact-arithmetic CG terminates in at most }N\text{ steps; the generic rate is governed by }\frac{\sqrt\kappa-1}{\sqrt\kappa+1}.
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the difference between inputs

    r=u−vr=u-v
  2. 2

    Calculate squared distance

    ∥r∥22\lVert r\rVert_2^2
  3. 3

    Divide by the kernel-width factor

    ∥r∥22/(2σ2)\lVert r\rVert_2^2/(2\sigma^2)
  4. 4

    Apply a negative exponential for similarity

    κ(u,v)=e−∥u−v∥2/(2σ2)\kappa(u,v)=e^{-\lVert u-v\rVert^2/(2\sigma^2)}

Worked example

Work through the numbers — The RBF kernel

u=[0,0], v=[1,1], and σ=1.

  1. 1

    Squared distance

    (0−1)2+(0−1)2=2(0-1)^2+(0-1)^2=2
  2. 2

    Exponentiation

    e−2/(2⋅12)=e−1≈0.368e^{-2/(2\cdot1^2)}=e^{-1}\approx0.368

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
SymbolMeaning
κ\kappaA kernel returning similarity between two inputs
CCTotal class count or a matrix; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 11 · Separating the claim of “quadratic convergence” for PCG Identifier: MAI-P4-204

#Multiple-choice answers and the OGM recurrence correction

The heterogeneous-unit example’s answer is:

Completed source placeholder · PDF p. 12

Identify the equation's role and symbols
E: None of these\boxed{E:\ \text{None of these}}
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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Reference-quality follow-up

Explore this calculation further
PDF p. 12 · Correcting the multiple-choice question and OGM recurrence Identifier: MAI-P4-205

The fixed-coefficient FO answer is:

Completed source placeholder · PDF p. 13

Identify the equation's role and symbols
D: PGD, FGM\boxed{D:\ \mathrm{PGD,\ FGM}}
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.

Structure explanation
Loading the lesson matched to this equation and derivation step.

Reference-quality follow-up

Explore this calculation further
PDF p. 13 · Correcting the multiple-choice question and OGM recurrence Identifier: MAI-P4-206

The ε complexity is:

Completed source placeholder · PDF p. 14

Identify the equation's role and symbols
Ψ(x(n))−Ψ(x∗)=O(n−2)≤ϵ⟹n=O(ϵ−1/2)\Psi(x^{(n)})-\Psi(x^*)=O(n^{-2})\le\epsilon\quad\Longrightarrow\quad n=O(\epsilon^{-1/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

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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Symbols

Symbols used in this equation
SymbolMeaning
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 14 · Correcting the multiple-choice question and OGM recurrence Identifier: MAI-P4-207

The corrected final-horizon OGM index is:

Mathematically corrected variant · PDF p. 14

Identify the equation's role and symbols
θ(n)={1,n=0,1+1+4(θ(n−1))22,n=1,…,N−1,1+1+8(θ(N−1))22,n=N,\theta^{(n)}=\begin{cases}1,&n=0,\\\frac{1+\sqrt{1+4(\theta^{(n-1)})^2}}2,&n=1,\ldots,N-1,\\\frac{1+\sqrt{1+8(\theta^{(N-1)})^2}}2,&n=N,\end{cases}
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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Reference-quality follow-up

Explore this calculation further
PDF p. 14 · Correcting the multiple-choice question and OGM recurrence Identifier: MAI-P4-208

#Completing the logistic-regression mapping

Equation (21) is True\boxed{\text{True}}; its exact mapping is:

Completed source placeholder · PDF p. 17

A sigmoid compresses a real-valued score between zero and one
I=2,B1=VT,B2=I,f1(u)=∑m=1Mψ(um),f2(v)=β2∥v∥22I=2,\quad B_1=V^{\mathsf T},\quad B_2=I,\quad f_1(u)=\sum_{m=1}^{M}\psi(u_m),\quad f_2(v)=\frac\beta2\|v\|_2^2
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.

Synchronized derivation
Loading the lesson matched to this equation and derivation step.

Calculation walkthrough

Calculation steps
Intermediate calculations included
  1. 1

    Calculate the linear score z

    z=wTx+bz=w^Tx+b
  2. 2

    Calculate the negative exponential

    e−ze^{-z}
  3. 3

    Add one

    1+e−z1+e^{-z}
  4. 4

    Take the reciprocal

    σ(z)=1/(1+e−z)\sigma(z)=1/(1+e^{-z})

Worked example

Work through the numbers — When z=2

Observe how a positive score becomes an output value.

  1. 1

    Exponentiation

    e−2≈0.1353e^{-2}\approx0.1353
  2. 2

    Denominator

    1+0.1353=1.13531+0.1353=1.1353
  3. 3

    Reciprocal

    1/1.1353≈0.8811/1.1353\approx0.881

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
SymbolMeaning
∑\sumSum over all specified terms

Reference-quality follow-up

Explore this calculation further
PDF p. 17 · Completing the logistic regression mapping Identifier: MAI-P4-210

#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

Identify the equation's role and symbols
I=1,B1=I,f1=Ψ⟹FalseI=1,\quad B_1=I,\quad f_1=\Psi\quad\Longrightarrow\quad\boxed{\text{False}}
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
SymbolMeaning
LLSample count or loss function; check context

Reference-quality follow-up

Explore this calculation further
PDF p. 18 · The final strict-subset question Identifier: MAI-P4-211

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

  1. Do PEP-designed finite-horizon optimizers preserve their rankings under stochastic minibatches and mixed precision?
  2. Which objective, gradient, or validation restart triggers give stable wall-clock cost and final generalization?
  3. How can diagonal Adam, low-rank adaptive methods, and Muon-style geometry be compared fairly under equal compute and memory budgets?

Connect