[Paper Review] Robust Fine-Tuning of Deep Neural Networks with Hessian-based Generalization Guarantees
This paper proposes a Hessian-based generalization measure for fine-tuned deep neural networks, showing it correlates strongly with empirical generalization gaps. It introduces a PAC-Bayesian generalization bound incorporating Hessian information and develops a robust fine-tuning algorithm that reduces overfitting under label noise, achieving 3.26% average accuracy gain on image tasks compared to prior methods.
We consider fine-tuning a pretrained deep neural network on a target task. We study the generalization properties of fine-tuning to understand the problem of overfitting, which has often been observed (e.g., when the target dataset is small or when the training labels are noisy). Existing generalization measures for deep networks depend on notions such as distance from the initialization (i.e., the pretrained network) of the fine-tuned model and noise stability properties of deep networks. This paper identifies a Hessian-based distance measure through PAC-Bayesian analysis, which is shown to correlate well with observed generalization gaps of fine-tuned models. Theoretically, we prove Hessian distance-based generalization bounds for fine-tuned models. We also describe an extended study of fine-tuning against label noise, where overfitting remains a critical problem. We present an algorithm and a generalization error guarantee for this algorithm under a class conditional independent noise model. Empirically, we observe that the Hessian-based distance measure can match the scale of the observed generalization gap of fine-tuned models in practice. We also test our algorithm on several image classification tasks with noisy training labels, showing gains over prior methods and decreases in the Hessian distance measure of the fine-tuned model.
Motivation & Objective
- To understand overfitting in fine-tuned deep neural networks, especially when training data is small or labels are noisy.
- To develop a data-dependent generalization measure that captures fine-tuning performance better than distance-from-initialization alone.
- To design a robust fine-tuning algorithm that improves generalization under class-conditional label noise.
- To theoretically justify the Hessian-based measure using PAC-Bayesian analysis and perturbation theory.
- To empirically validate that minimizing the Hessian distance improves generalization and model robustness.
Proposed method
- Proposes a Hessian-based distance measure using the loss Hessian over each layer’s weights, defined as $ \sum_{i=1}^{L} \sqrt{ \max_{(x,y)\sim\mathcal{D}} v_i^\top \mathbf{H}_i^+ v_i / n } $, where $ \mathbf{H}_i^+ $ is the truncated Hessian with non-negative eigenvalues.
- Derives a PAC-Bayesian generalization bound for fine-tuned models that incorporates this Hessian-based distance, showing theoretical correlation with generalization error.
- Introduces a robust fine-tuning algorithm combining statistically consistent losses with layer-wise distance regularization under a class-conditional independent noise model.
- Uses Hessian-vector product computations to efficiently estimate the Hessian-based measure during training without full Hessian computation.
- Applies the method to image classification (ResNet-18/101) and NLP (RoBERTa-Base) tasks with noisy labels, using cross-validation to tune hyperparameters.
- Employs a confusion matrix-based correction for label noise and integrates regularization constraints layer-wise with scaling factor $ \gamma $.
Experimental results
Research questions
- RQ1Can a Hessian-based distance measure better predict the generalization gap in fine-tuned deep networks than distance-from-initialization alone?
- RQ2Does incorporating Hessian information into generalization bounds improve theoretical and empirical performance in fine-tuning?
- RQ3Can a Hessian-aware regularization algorithm mitigate overfitting under high label noise rates in fine-tuning?
- RQ4How does the Hessian-based measure compare to alternative Hessian-based generalization metrics in practice?
- RQ5To what extent does minimizing the Hessian distance improve model accuracy on noisy and standard fine-tuning benchmarks?
Key findings
- The Hessian-based distance measure correlates strongly with observed generalization gaps in fine-tuned models, outperforming standard distance-from-initialization measures.
- The proposed PAC-Bayesian generalization bound using Hessian information provides tighter and more accurate theoretical guarantees than prior bounds.
- On six image classification tasks with programmatic label noise, the algorithm improves average top-1 accuracy by 3.26% over existing methods.
- The method remains robust under extreme label noise, achieving stable performance even at 60% noise rates in class-conditional settings.
- The Hessian measure $ \sqrt{\mathcal{H}/n} $ is consistently smaller than the layer-wise Hessian measure, suggesting potential for improved generalization when optimized.
- Empirical results show that the Hessian distance measure decreases when the model generalizes better, validating its use as a proxy for generalization error.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.