How Does Preconditioning Guide Feature Learning in Deep Neural Networks?

Kotaro Yoshida, Atsushi Nitanda

TL;DR

While preconditioning is widely celebrated for speeding up neural network training, its impact on how networks actually learn features has remained a mystery. This paper reveals that preconditioning acts as a controllable "spectral volume knob," biasing the network to prioritize either high- or low-variance data components. Crucially, the authors demonstrate that matching this optimization bias to the true structure of the data dramatically improves noise robustness, out-of-distribution generalization, and knowledge transfer.

What Problem Does This Paper Address?

In deep learning, optimizers like Adam, AdaHessian, or K-FAC use preconditioning—incorporating second-order geometric information like the Hessian or Fisher Information Matrix—to navigate complex loss landscapes and accelerate training.

However, optimization speed is only half the battle; the ultimate goal is generalization to unseen data. A long-standing controversy exists regarding whether preconditioning helps or hurts generalization. Some researchers argue that second-order methods lead to "sharp" minima that generalize poorly, or that they act as a form of data whitening that discards useful information. Others argue they stabilize feature learning and handle anisotropic (directionally dependent) data better.

This paper addresses this divide by asking a fundamental question: How does preconditioning systematically alter the types of features a neural network captures during training?

Methods

The authors tackle this question through a mix of rigorous information-theoretic analysis and targeted empirical validation:

  1. Theoretical Framework: They extend prior foundational work to prove that neuron-wise preconditioning in a network's first layer restricts the model's access to input data solely through a modified similarity matrix (the preconditioned Gram matrix).
  2. The $p$-th Power Parameterization: To analyze this systematically, they model the preconditioner as the $p$-th power of the input covariance matrix ($\Sigma_X^p$). By sweeping the exponent $p$, they can precisely control the optimizer's spectral bias:
  3. Larger $p$ (e.g., $p > 0$): Amplifies high-variance directions in the data, making the network highly sensitive to dominant features.
  4. Smaller $p$ (e.g., $p = -1$): Flattens the data spectrum (akin to data whitening or standard second-order optimization), shifting the network's attention toward low-variance components.
  5. Multi-angle Evaluation: They test how this spectral bias affects three critical aspects of generalization: robustness to label noise, out-of-distribution (OOD) generalization under correlation shifts, and forward knowledge transfer in a continual learning setup.

Datasets

The paper utilizes two primary experimental setups:

  • Synthetic Teacher-Student Datasets: Built using a single-index teacher framework where the true informative signal is explicitly placed in either the highest eigenvalue component ("Case High") or the lowest eigenvalue component ("Case Low") of the input data.
  • MNIST with Spurious Noise: A semi-synthetic dataset based on MNIST where class-specific Gaussian noise is injected. This allows the authors to flip whether the high-variance feature (the digit) or the low-variance feature (the noise) is the true invariant predictor, creating a controlled environment for OOD testing.

Key Insights and Ideas

  • The Preconditioner as a Feature Filter: Preconditioning is not just an optimization accelerator; it is an implicit filter that shapes how a network perceives data similarity.
  • No "One Size Fits All" Optimizer: The ideal optimizer depends entirely on where the true signal lives in the data's spectrum. If a teacher model relies on subtle, low-variance features, standard Gradient Descent will fail to find them, but second-order methods ($p = -1$) will excel.
  • Whitening Restores Blind Spots: Standard gradient descent suffers from a strong bias toward high-variance components. Setting $p = -1$ (whitening) removes this bias, allowing the network to treat all directions uniformly.
  • Transfer Learning Favors Spectral Neutrality: In transfer learning, where future tasks are unknown during pretraining, biasing the network toward specific variance components can cause it to permanently discard features crucial for later tasks. Treating all spectral components uniformly ($p = -1$) preserves the most adaptable feature representations.

Key Results

Robustness to Noise

When the true signal was in the high-variance components ("Case High"), larger values of $p$ effectively prevented the model from overfitting to label noise. Conversely, when the signal was buried in low-variance components ("Case Low"), smaller values of $p$ dramatically reduced test Mean Squared Error (MSE).

Figure 1: The relationship between robustness to noise and preconditioning. (a) and (b) show the results when preconditioning is performed using the exact covariance matrix, for Case High and Low, respectively. The top row presents the final test MSE for each SNR value, while the bottom row shows the train/test MSE trajectories for SNR=1. In Case High, larger p values more effectively prevent overfitting, whereas in Case Low, the opposite trend is observed. (c) and (d) display the results for preconditioning with AdaHessian. Except for the numerically unstable case of p = −2, the same trends as in (a) and (b) are observed here as well.

Out-of-Distribution (OOD) Generalization

Under a correlation shift on the noisy MNIST dataset, the performance ranking of popular optimizers completely reversed depending on the task structure:

  • When the digit was the invariant feature, sharp-bias optimizers like SAM and standard GD outperformed second-order methods.
  • When the noise was the invariant feature, second-order methods dominated. For instance, K-FAC achieved 88.69% OOD accuracy, while SAM plummeted to 36.32%.
Figure 2: The relationship between OOD generalization and preconditioning. (a) Comparison across optimizers (SAM, GD, Adam, Sophia-H, AdaHessian, K-FAC, L-BFGS). (b) AdaHessian with different powers applied to the diagonal Hessian entries. In each panel, the left and right columns correspond to two settings (left: invariant digit with spurious noise; right: invariant noise with a spurious digit). Although ID Val accuracy (gray numbers) is near ceiling for all methods, OOD accuracy varies substantially, and the optimizer ranking reverses between the two settings. Sweeping the power in (b) reproduces the same reversal, indicating that preconditioning steers learning toward different covariance eigen-directions; OOD performance improves when this im- plicit emphasis aligns with invariant features.

Forward Knowledge Transfer

In two-task sequential learning experiments, setting $p = -1$ on the first task consistently yielded the lowest test MSE on the second task, confirming that a uniform spectral bias prevents the network from prematurely discarding features that might be vital for future learning.

Limitations and Future Work

While the insights are compelling, the authors note that their theoretical analysis is primarily focused on the first layer of the network and relies on a simplified single-index teacher model. Extending these proofs to fully non-linear deep training dynamics across all layers remains an open challenge.

Additionally, the experiments were conducted on relatively small-scale MLPs and synthetic variations of MNIST. A natural next step is validating these spectral biases in large-scale architectures like Transformers. Ultimately, the authors hope this work paves the way for task-aware optimizers that can automatically detect where the true signal lies in the data spectrum and dynamically tune $p$ to optimize both training speed and generalization.

Summary updated

BibTeX
@misc{yoshida2025how,
  author = {Kotaro Yoshida and Atsushi Nitanda},
  title = {{How Does Preconditioning Guide Feature Learning in Deep Neural Networks?}},
  year = {2025},
  eprint = {2509.25637},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.25637},
}
Figure