An Adaptive Tangent Feature Perspective of Neural Networks

Daniel LeJeune, Sina Alemohammad

Abstract

In order to better understand feature learning in neural networks, we propose and study linear models in tangent feature space where the features are allowed to be transformed during training. We consider linear feature transformations, resulting in a joint optimization over parameters and transformations with a bilinear interpolation constraint. We show that this relaxed optimization problem has an equivalent linearly constrained optimization with structured regularization that encourages approximately low rank solutions. Specializing to structures arising in neural networks, we gain insights into how the features and thus the kernel function change, providing additional nuance to the phenomenon of kernel alignment when the target function is poorly represented by tangent features. In addition to verifying our theoretical observations in real neural networks on a simple regression problem, we empirically show that an adaptive feature implementation of tangent feature classification has an order of magnitude lower sample complexity than the fixed tangent feature model on MNIST and CIFAR-10.

Introduction

A central challenge in deep learning theory is understanding how neural networks move beyond "lazy training" to actively learn useful features from data. While the Neural Tangent Kernel (NTK) framework has provided significant insights by treating networks as linear models with fixed features (gradients at initialization), it often fails to capture the dynamic feature adaptation observed in high-performing models. This paper, presented at the First Conference on Parsimony and Learning (CPAL 2024), introduces a mathematical framework where tangent features adapt via linear transformations, bridging the gap between fixed-kernel theory and practical feature learning.

Adaptive Tangent Features and Structured Regularization

The authors propose a relaxation of standard neural network optimization. Instead of tracking the complex, non-convex trajectory of every weight, they model the process as a joint optimization over regression parameters ($\theta$) and a feature transformation matrix ($M$) that "warps" the initial tangent features. This formulation leads to a bilinear interpolation constraint.

The key theoretical contribution is proving that this joint optimization is equivalent to a simpler, linearly constrained problem governed by a structured spectral regularizer. For architectures mirroring real neural networks (e.g., using Kronecker product structures for weight matrices), this math reveals a "group approximate low-rank penalty." Essentially, the network prefers to update its features along a few critical directions in the feature space to fit the data, rather than making diffuse, high-rank changes.

Kernel Alignment and Empirical Results

This framework provides a nuanced explanation for "kernel alignment." If the initial NTK is already well-suited for a task, the network undergoes minimal feature adaptation. However, when faced with a "hard" task—one poorly represented by the initial features—the network is forced to perform a low-rank shift to align its kernel with the target labels.

Visualizing kernel adaptation and alignment for regression ($y_i$) and classification (sign($y_i$)) tasks on MNIST. The similarity (sim) to the target kernel increases as the task becomes more structured.

As shown in the figure above, the authors empirically verified these findings using MNIST (digits '2' and '3'). In a simple regression task, the similarity between the adapted kernel and the target was relatively low (sim=0.17). However, when the task was made harder (binary classification), the network's adaptive mechanism significantly increased the cosine similarity to 0.40. The heatmaps illustrate how the adapted kernel amplifies specific data points—effectively acting as support vectors—to better fit the target function.

Key Insights

  • Feature Learning as Regularization: Adaptation acts as a specific regularizer. Small updates behave like a Frobenius norm (noise robustness), while larger updates behave like a nuclear norm, encouraging the discovery of low-rank structures.
  • Theoretical Support for LoRA: These results provide a formal justification for the success of Low-Rank Adaptation (LoRA) in fine-tuning. The natural dynamics of adaptive feature learning inherently favor low-rank deviations from the starting point.
  • The Role of Depth: The authors suggest that deeper networks provide a richer set of initial features, making it easier for the optimization process to identify and amplify meaningful low-rank components.

Limitations and Conclusion

While the framework offers a powerful lens for understanding feature learning, it currently relies on "average tangent features" over the training path, which may differ slightly from the final features. Additionally, the focus on linear transformations is a simplification of the full non-linear dynamics of deep networks. Nonetheless, this adaptive tangent perspective provides a tractable mathematical foundation for explaining how neural networks evolve their representations to solve complex tasks.

Summary updated

BibTeX
@inproceedings{lejeune2024adaptive,
  author = {Daniel LeJeune and Sina Alemohammad},
  title = {{An Adaptive Tangent Feature Perspective of Neural Networks}},
  booktitle = {CPAL (Proceedings Track)},
  year = {2024},
  url = {https://openreview.net/forum?id=NFqCYfoLw6},
}
Figure