Papers › Fine-Tuning is Fine, if Calibrated

Fine-Tuning is Fine, if Calibrated

24 Sep 2024arXiv:2409.16223archive 2025-07-28

Zheda Mai, Arpita Chowdhury, Ping Zhang, Cheng-Hao Tu, Hong-You Chen, Vardaan Pahuja, Tanya Berger-Wolf, Song Gao, Charles Stewart, Yu Su, Wei-Lun Chao

Fine-tuning is arguably the most straightforward way to tailor a pre-trained model (e.g., a foundation model) to downstream applications, but it also comes with the risk of losing valuable knowledge the model had learned in pre-training. For example, fine-tuning a pre-trained classifier capable of recognizing a large number of classes to master a subset of classes at hand is shown to drastically degrade the model's accuracy in the other classes it had previously learned. As such, it is hard to further use the fine-tuned model when it encounters classes beyond the fine-tuning data. In this paper, we systematically dissect the issue, aiming to answer the fundamental question, "What has been damaged in the fine-tuned model?" To our surprise, we find that the fine-tuned model neither forgets the relationship among the other classes nor degrades the features to recognize these classes. Instead, the fine-tuned model often produces more discriminative features for these other classes, even if they were missing during fine-tuning! {What really hurts the accuracy is the discrepant logit scales between the fine-tuning classes and the other classes}, implying that a simple post-processing calibration would bring back the pre-trained model's capability and at the same time unveil the feature improvement over all classes. We conduct an extensive empirical study to demonstrate the robustness of our findings and provide preliminary explanations underlying them, suggesting new directions for future theoretical analysis. Our code is available at https://github.com/OSU-MLB/Fine-Tuning-Is-Fine-If-Calibrated.

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="2409.16223")

Code

Syntology Ran 9 of 15 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 9 ran with no contract checked.

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

osu-mlb/fine-tuning-is-fine-if-calibrated officialmentioned in papermentioned on GitHubpytorchMIT 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

15 samples harvested; 9 ran; 0 honoured the contract we drafted; 6 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.

9ran
6unverified

Licence: 0 of the 15 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 OSU-MLB/Fine-Tuning-Is-Fine-If-Calibrated. “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.

all_in OSU-MLB/Fine-Tuning-Is-Fine-If-Calibrated/py/util/common.py official repository ran MIT (permissive) · 7d3790fd60c5077a · report
dtn OSU-MLB/Fine-Tuning-Is-Fine-If-Calibrated/py/model/_digits.py official repository ran MIT (permissive) · 654b3d00bbf1c923 · report
flatten_list OSU-MLB/Fine-Tuning-Is-Fine-If-Calibrated/py/util/common.py official repository ran MIT (permissive) · 1d66cc48b63fca52 · report
get_class_mean OSU-MLB/Fine-Tuning-Is-Fine-If-Calibrated/py/util/evaluate.py official repository ran MIT (permissive) · 1f88ab8c26c03b73 · report
get_parameters OSU-MLB/Fine-Tuning-Is-Fine-If-Calibrated/py/util/model.py official repository ran MIT (permissive) · d829c6631f3d92c6 · report
is_json OSU-MLB/Fine-Tuning-Is-Fine-If-Calibrated/py/util/common.py official repository ran MIT (permissive) · 70367b6dda994032 · report
lenet OSU-MLB/Fine-Tuning-Is-Fine-If-Calibrated/py/model/_digits.py official repository ran MIT (permissive) · 87c67b9512a15d16 · report
mask_score OSU-MLB/Fine-Tuning-Is-Fine-If-Calibrated/py/util/evaluate.py official repository ran MIT (permissive) · 095e3291b31a3a1e · report
resnet34_ibn_a OSU-MLB/Fine-Tuning-Is-Fine-If-Calibrated/py/model/_ibn_models.py official repository ran MIT (permissive) · b2ae4997a88217a1 · report
GET_HARDCODED_CLASSES OSU-MLB/Fine-Tuning-Is-Fine-If-Calibrated/py/HT_HARDCODED.py official repository unverified MIT (permissive) · 8b7318d02fdd57f5 · report
create_model OSU-MLB/Fine-Tuning-Is-Fine-If-Calibrated/py/util/model.py official repository unverified MIT (permissive) · 15b6ce87cea6a1a2 · report
get_model OSU-MLB/Fine-Tuning-Is-Fine-If-Calibrated/py/util/model.py official repository unverified MIT (permissive) · 619286e8e6e8c6ad · report
mask_predict_score OSU-MLB/Fine-Tuning-Is-Fine-If-Calibrated/py/util/evaluate.py official repository unverified MIT (permissive) · a95000b4197680ef · report
resnet18_ibn_a OSU-MLB/Fine-Tuning-Is-Fine-If-Calibrated/py/model/_ibn_models.py official repository unverified MIT (permissive) · c7b47196a0364d1b · report
resnet50_ibn_a OSU-MLB/Fine-Tuning-Is-Fine-If-Calibrated/py/model/_ibn_models.py official repository unverified MIT (permissive) · 3a805a0c566b4de7 · report

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