Deep Learning · TEE · section

Variables functions and symbols

Mathematics revision

These notes assume familiarity with algebra and basic calculus. The revision here covers the notation used in neural-network equations and the conventions that affect numerical answers.

NotationTechnical meaning
x, y, ŷInput feature vector, target, model prediction
W, b, θWeight matrix, bias vector, complete trainable parameter vector
z, aPreactivation (affine input) and activation (layer output)
L, JPer-example loss and aggregate training objective
∂L/∂wPartial derivative with respect to one parameter
∇θJGradient: vector of partial derivatives with respect to θ
η, λ, εLearning rate, regularization coefficient, numerical stabilizer
Wᵀ, u⊙vTranspose and elementwise multiplication
θₜ, W⁽ˡ⁾Update index t and layer index l; neither denotes a power

Conventions used in numerical solutions

Vectors are columns unless a question specifies otherwise. A weight matrix has one row per receiving neuron and one column per incoming feature. Write matrix dimensions before multiplying. A bias is added once per receiving neuron or output feature map.

Keep at least six significant digits during intermediate calculations and round the final result as requested. The loss reduction matters: a sum, mean and half-sum produce different gradient factors. The location of ε also matters: a denominator √s + ε differs from √(s + ε).

The sign of a gradient belongs to the derivative, not to the loss value. For example, w = 0.4, η = 0.1 and gradient −2 give the update below.

w_{\mathrm{new}}=0.4-0.1(-2)=0.6LaTeX: w_{\mathrm{new}}=0.4-0.1(-2)=0.6

In later calculations, state the optimizer convention, initial state and iteration number before substituting values. This prevents mixing momentum velocity with Adam's second-moment accumulator.