TL;DR
When neural networks learn new tasks sequentially, they famously overwrite what they learned before—a headache known as catastrophic forgetting. This paper looks at the geometry of a network's loss landscape and discovers that forgetting is driven almost entirely by weight updates along high-curvature, "stiff" directions. By forcing the network to learn new tasks strictly along flat, "sloppy" directions, it can acquire new skills while leaving old memories remarkably intact.
What Problem Does This Paper Address?
Humans can learn to play tennis on Saturday and bake sourdough on Sunday without forgetting how to swing a racket. Neural networks aren't so lucky. In continual learning—where a model learns tasks sequentially—optimizing weights for Task B usually wrecks performance on Task A. This is catastrophic forgetting.
Many existing defenses try to prevent this by restricting weight updates to be orthogonal to the first-order gradients of previous tasks (like Orthogonal Gradient Descent). However, gradients only tell you the slope at a single point, not how sensitive the surrounding terrain actually is. The authors ask a deeper geometric question: can we explain and prevent forgetting by looking at the second-order curvature of the parameter space?
To do this, they borrow the concept of sloppiness from physics and systems biology. Because neural networks are heavily over-parameterized, their loss landscapes resemble long, narrow valleys. Moving up the steep walls—the stiff directions—drastically ruins performance. Walking along the flat valley floor—the sloppy directions—changes the parameters significantly without altering the model's predictions.
Illustration of stiff versus sloppy directions in a loss landscape (Note: Let's look at the actual contour map below to see how perturbations along steep walls versus flat valleys behave.)
Methods
Instead of relying on first-order gradients, the authors use the Hessian matrix (the matrix of second-order partial derivatives of the loss) to map out the local curvature after learning a task.
Because computing a full Hessian for a neural network is computationally painful, they use Hessian-vector products to extract just the top-$k$ largest eigenvalues and their corresponding eigenvectors. These top-$k$ eigenvectors span the stiff subspace—the directions where the old task's loss is most sensitive. Everything orthogonal to this forms the sloppy subspace. To pick $k$, they sort the top 100 eigenvalues and find the smallest number of eigenvectors needed to capture 90% of the cumulative curvature.
To prove their hypothesis and solve forgetting, they test three training modes on subsequent tasks:
- Stiff mode: Gradients are projected only onto the stiff subspace of the previous task.
- Sloppy mode (their proposed solution): Gradients are projected onto the orthogonal complement of the stiff subspace, forcing updates along the flat valley floor.
- Unconstrained mode: Standard, naive fine-tuning.
They evaluate this setup on two architectures: a Deep SVDD network (which maps inputs to specific target centers in a 4D space) and a multi-head LeNet for image classification.
Datasets
No new datasets were introduced, though the authors construct specific sequential, task-conflicting setups from standard vision benchmarks:
- MNIST: Evaluated on Deep SVDD across 6 distinct sequences of 4 tasks (each task maps a single digit to a center orthogonal to the previous task's center).
- CIFAR-10: Converted to grayscale and evaluated on multi-head LeNet across 5 distinct sequences of 5 binary classification tasks (split-class pairs like
[airplane, automobile],[bird, cat], etc.).
Key Insights and Ideas
- Stiff directions are the smoking gun of forgetting: When the authors restricted updates strictly to the stiff subspace, the network suffered catastrophic forgetting nearly identical to unconstrained fine-tuning. This isolates updates in high-curvature Hessian eigenspaces—not mere gradient misalignment—as the true driver of forgetting.
- A little curvature captures a lot: Only a tiny fraction of parameter directions ($k \ll n$) hold almost all the curvature. Protecting just those top-$k$ stiff directions leaves plenty of room in the massive sloppy subspace to learn new, conflicting tasks.
- Curvature beats first-order history: First-order projection methods track which directions were used during optimization. Second-order Hessian geometry measures which directions actually matter to the loss right now, providing a cleaner mathematical justification for orthogonal projection.
Key Results
Tested against popular continual learning baselines—including EWC, OGD, GPM, and OWM—Sloppy Mode consistently strikes a better balance between remembering old tasks and learning new ones:
- CIFAR-10 (on LeNet, Sequence 0): Sloppy Mode achieved the highest past-task retention accuracy at 71.22% (beating OGD's 70.38%, OWM's 69.84%, and EWC's 69.41%) while simultaneously achieving the highest learning accuracy on the new task among all continual learning methods at 78.61% (second only to naive fine-tuning's 82.05%, which dropped retention to 64.5%).
- MNIST (on Deep SVDD, Sequence 0, lower distance = better): Sloppy Mode achieved a strong retention loss of 0.5757 (closely trailing OWM's 0.5438, and far beating EWC's 0.8071 and naive fine-tuning's 1.406), while achieving a vastly better new-task learning loss (0.5386) than projection rivals like OWM (0.9677), OGD (1.0353), and GPM (1.0977).
- Meanwhile, Stiff Mode tanked retention accuracy on CIFAR-10 down to 60.59%, confirming that modifying stiff directions actively erases prior knowledge.
Limitations and Future Work
- Computational overhead: Even using Hessian-vector products instead of building the full Hessian matrix, extracting top-$k$ eigenpairs and projecting gradients is computationally heavy. Scaling this to massive modern architectures requires more efficient approximations.
- The Goldilocks problem of $k$: The stability-plasticity dilemma still lingers in the choice of $k$. Pick $k$ too low, and unprotected stiff directions cause forgetting; pick $k$ too high, and you lock up moderate-curvature directions useful for learning new tasks. Finding optimal $k$ remains dataset- and architecture-dependent.
- Local geometry assumptions: Sloppiness is defined locally around a specific optimum, and real-world non-convex landscapes may violate clean quadratic assumptions if parameters drift far enough away. Future work aims to make the method faster and more robust when these local assumptions bend.
Summary updated