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

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

6 Jun 2022arXiv:2206.02659archive 2025-07-28

Haotian Ju, Dongyue Li, Hongyang R. Zhang

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2206.02659")

Code

Syntology Ran 7 of 11 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · our draft was wrong; 1 ran · fixture could not drive it; 2 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

nerdsresearch/robust-fine-tuning officialmentioned in paperjaxMIT report
neu-statsml-research/robust-fine-tuning officialmentioned in paperjaxMIT report
virtuosoresearch/robust-fine-tuning officialmentioned in paperjaxMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 7 ran; 1 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
3ran · our draft was wrong
1ran · fixture could not drive it
2ran
4unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from VirtuosoResearch/Robust-fine-tuning. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

np2th VirtuosoResearch/Robust-fine-tuning/exps_on_image_datasets/model/modeling_resnet.py official repository ran · fixture could not drive it MIT (permissive) · 7d8eaf5537f699e4 · report
swish VirtuosoResearch/Robust-fine-tuning/exps_on_image_datasets/model/modeling_vit.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 0f786c407fb1ee4c · report
accuracy VirtuosoResearch/Robust-fine-tuning/exps_on_image_datasets/model/metric.py official repository ran MIT (permissive) · 5dcb4148be3fcbaf · report
conv1x1 VirtuosoResearch/Robust-fine-tuning/exps_on_image_datasets/model/modeling_resnet.py official repository ran · our draft was wrong MIT (permissive) · b0f916df39e78ae5 · report
conv3x3 VirtuosoResearch/Robust-fine-tuning/exps_on_image_datasets/model/modeling_resnet.py official repository ran · our draft was wrong MIT (permissive) · 4e5bf13dbdc4f008 · report
custom_kl_div VirtuosoResearch/Robust-fine-tuning/exps_on_image_datasets/model/loss.py official repository ran · honoured contract fingerprinted MIT (permissive) · f508a1f840aee873 · report
top_k_acc VirtuosoResearch/Robust-fine-tuning/exps_on_image_datasets/model/metric.py official repository ran MIT (permissive) · 61cc9667c37ecd27 · report
get_classes VirtuosoResearch/Robust-fine-tuning/exps_on_image_datasets/data_loader/mini_domain_net.py official repository unverified MIT (permissive) · 0a6dcb72cc637951 · report
get_loaders VirtuosoResearch/Robust-fine-tuning/exps_on_image_datasets/data_loader/mini_domain_net.py official repository unverified MIT (permissive) · fa25db77d8a7f54f · report
nll_loss VirtuosoResearch/Robust-fine-tuning/exps_on_image_datasets/model/loss.py official repository unverified MIT (permissive) · 8c2db3d4435816c0 · report
perturbe_model_weights VirtuosoResearch/Robust-fine-tuning/exps_on_image_datasets/compute_noise_stability.py official repository unverified MIT (permissive) · aab5cc3f4ce427b5 · report

Tasks

Generalization BoundsImage ClassificationTransfer Learningimage-classification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections