Robust Fine-Tuning of Deep Neural Networks with Hessian-based Generalization Guarantees

Haotian Ju, Dongyue Li, Hongyang R. Zhang
6/6/2022
51 citations
cs.LGcs.CVmath.ST

Official code: VirtuosoResearch/Robust-Fine-Tuning (7 stars, Python, MIT, last commit 2023-09-24).

Abstract

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).

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

Measuring generalization properties of fine-tuning using Hessian

70PythonJun 23, 20223 years agoMIT
deep-learningdeep-neural-networksfine-tuninghessiansharpness

Similar Papers

Cite this paper

@article{ju2022robust,
  title  = {Robust Fine-Tuning of Deep Neural Networks with Hessian-based Generalization Guarantees},
  author = {Haotian Ju and Dongyue Li and Hongyang R. Zhang},
  year   = {2022},
  eprint = {2206.02659},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.02659}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.02659.svg)](https://codeofpaper.com/paper/2206.02659)

Discussion