A loss surface is the geometric view of a loss function over parameter space, where each point’s height is the loss value for that parameter setting. section 9.2 section 9.1.1
Training treats this surface as the landscape to minimize: start from initial weights and biases, then move downhill toward lower loss with gradients. section 9.2 section 8.4.1
The representation connects to these ideas:
- level contours and level surfaces in geometric visualization. section 3.3.2
- gradients as the direction of maximum change and normals to contours. section 3.3.2
- optimization and momentum as methods for moving across the surface. section 9.2 section 9.2.4
Canyon analogy
The surface is compared to a canyon or ravine: optimization starts at a random point, then repeatedly steps downhill toward the lowest point. section 9.2 section 9.1.1
Figure 3.7 The domain of L(w0, w1) = √(w02 + w12) shown as a heat map of function values. Gradients point radially outward, as shown by the arrowed line. The intensity of the heat map changes fastest along the gradient (that is, radii). This is the direction to follow to rapidly reach lower values of the function represented by the heat map.
Shows a 2D loss field as a heat map, with gradients pointing radially and fastest change occurring along those directions. section 3.3.2
Figure 3.8 Gradient example in 3D: the function L(w0, w1, w2) = L(
) = w02 + w12 + w22. The levelsurfaces L(
) = constant are concentric spheres with the origin as their center. One such surface is partially shown in the diagram. ∇L(
) = k[w0 w1 w2]T—the gradient points radially outward. along the gradient, we go from one level surface to another, corresponding to maximum change in L(
). Moving along any direction orthogonal to the gradient, we stay on the same level surface (sphere), which corresponds to zero change in the function value. Dθ(
) denotes the directional derivative along the displacement direction making angle θ with the gradient. If l̂ denotes this displacement direction, Dθ(
) = ∇L(
) ⋅ l̂.
Extends the same idea to 3D, where level surfaces become concentric spheres and orthogonal movement leaves loss unchanged. section 3.3.2
Figure 3.9 Gradient example in 3D: the function L(w0, w1, w2) = L(
) = w02 + w12. The level surfaces f(
) = constant are coaxial cylinders. One such surface is partially shown in the diagram: ∇L(
) = k[w0 w1 0]T. The gradient is normal to the curved surface of the cylinder along the outward radiusof the circle. Moving along the gradient, we go from one level surface to another, corresponding to themaximum change in L(
). Moving along any direction orthogonal to the gradient, we stay on thesame level surface (cylinder), which corresponds to zero change in the function value.
Shows a 3D case whose level surfaces are coaxial cylinders, emphasizing that gradients stay normal to the surface. section 3.3.2

