SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.06966 · NeurIPS · 2024

Robust Fine-tuning of Zero-shot Models via Variance Reduction

Hanwang Zhang, Jiequan Cui, Beier Zhu

arXiv · PDF · Open in the Atlas

Code that ran

7 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 4 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2411.06966.json · badge: /api/ran/2411.06966.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
BeierZhu/VRF canonical (classifier label)
classifier basis: census
6 ran · 4 no recorded run
beierzhu/vrf canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
basic_clean Ran
ran; our contract draft was wrong, not the code
BeierZhu/VRF/clip/tokenizer.py
pointer only (licence: NONE); the stored copy get_code serves, from ltpwy/MSCI, is pointer only (licence: NONE) · get_code("98f385d847636a3e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, BeierZhu/VRF when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

convert Ran
ran; our contract draft was wrong, not the code
BeierZhu/VRF/src/datasets/cifar10.py
pointer only (licence: NONE); the stored copy get_code serves, from BAIKLAB/SiM, is pointer only (licence: NONE) · get_code("6d77ee840479c381")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, BeierZhu/VRF when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_pairs Ran
ran; our contract draft was wrong, not the code
BeierZhu/VRF/clip/tokenizer.py
pointer only (licence: NONE) · get_code("d919ae32e5e4e616")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, BeierZhu/VRF when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

maybe_dictionarize Ran
ran; our contract draft was wrong, not the code
BeierZhu/VRF/src/datasets/common.py
pointer only (licence: NONE) · get_code("b1e9e0d3d7d7e615")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, BeierZhu/VRF when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

project_logits Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
BeierZhu/VRF/src/datasets/cifar10.py
pointer only (licence: NONE) · get_code("9fbea808db47dc66")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, BeierZhu/VRF when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

whitespace_clean Ran
ran; our contract draft was wrong, not the code
BeierZhu/VRF/clip/tokenizer.py
pointer only (licence: NONE); the stored copy get_code serves, from ltpwy/MSCI, is pointer only (licence: NONE) · get_code("9542161e9640b858")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, BeierZhu/VRF when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

wiseft_merge Ran
ran; our contract draft was wrong, not the code
beierzhu/vrf/src/models/modeling.py
pointer only (licence: NONE) · get_code("32a969e1f370ed34")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, beierzhu/vrf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_model Not yet run
unverified (harvested, no recorded run)
BeierZhu/VRF/clip/model.py
pointer only (licence: NONE); the stored copy get_code serves, from anonymousmlsubmission/datadistributiontransfer, is pointer only (licence: NOASSERTION) · get_code("4e1f6a9710dc6279")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, BeierZhu/VRF when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_classnames Not yet run
unverified (harvested, no recorded run)
BeierZhu/VRF/src/datasets/imagenet_classnames.py
pointer only (licence: NONE) · get_code("3903d266387afea6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, BeierZhu/VRF when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_features Not yet run
unverified (harvested, no recorded run)
BeierZhu/VRF/src/datasets/common.py
pointer only (licence: NONE); the stored copy get_code serves, from mlfoundations/task_vectors, is pointer only (licence: NONE) · get_code("3b97c12751c0cf5b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, BeierZhu/VRF when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_features_helper Not yet run
unverified (harvested, no recorded run)
BeierZhu/VRF/src/datasets/common.py
pointer only (licence: NONE); the stored copy get_code serves, from mlfoundations/task_vectors, is pointer only (licence: NONE) · get_code("238ff32fcbf410d6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, BeierZhu/VRF when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 10 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 5 the same month, 8 later) and 1 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_pairs 258 other papers
191 dated earlier, 5 the same month, 54 later, 7 same year, order not determinable, 1 undated · 4 only as an assembly brick
1802.06474 (2018-02)
A Closed-form Solution to Photorealistic Image Stylization
1803.01128 (2018-03)
Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examples
1809.00125 (2018-09)
Simple Fusion: Return of the Language Model
and 255 more not named here
whitespace_clean 231 other papers
169 dated earlier, 5 the same month, 49 later, 7 same year, order not determinable, 1 undated · 4 only as an assembly brick
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2108.10904 (2021-08)
SimVLM: Simple Visual Language Model Pretraining with Weak Supervision
and 228 more not named here
basic_clean 218 other papers
169 dated earlier, 5 the same month, 36 later, 7 same year, order not determinable, 1 undated · 4 only as an assembly brick
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2108.10904 (2021-08)
SimVLM: Simple Visual Language Model Pretraining with Weak Supervision
and 215 more not named here
maybe_dictionarize 13 other papers
9 dated earlier, 4 later · 1 only as an assembly brick
2308.01313 (2023-08)
PerceptionCLIP: Visual Classification by Inferring and Conditioning on Contexts
2308.12213 (2023-08)
CLIPN for Zero-Shot OOD Detection: Teaching CLIP to Say No
2311.01723 (2023-11)
Towards Calibrated Robust Fine-Tuning of Vision-Language Models
and 10 more not named here
build_model 8 other papers
6 dated earlier, 1 the same month, 1 later
2208.05592 (2022-08)
Patching open-vocabulary models by interpolating weights
2212.00638 (2022-12)
Finetune like you pretrain: Improved finetuning of zero-shot vision models
2302.13602 (2023-02)
The Role of Pre-training Data in Transfer Learning
and 5 more not named here
convert 8 other papers
5 dated earlier, 3 later
2208.05592 (2022-08)
Patching open-vocabulary models by interpolating weights
2312.15901 (2023-12)
Black-Box Tuning of Vision-Language Models with Effective Gradient Approximation
2405.07813 (2024-05)
Localizing Task Information for Improved Model Merging and Compression
and 5 more not named here
project_logits 7 other papers
6 dated earlier, 1 the same month
2303.16203 (2023-03)
Your Diffusion Model is Secretly a Zero-Shot Classifier
2311.01723 (2023-11)
Towards Calibrated Robust Fine-Tuning of Vision-Language Models
2312.02546 (2023-12)
Machine Vision Therapy: Multimodal Large Language Models Can Enhance Visual Robustness via Denoising In-Context Learning
and 4 more not named here
get_features_helper 6 other papers
3 dated earlier, 3 later
2405.07813 (2024-05)
Localizing Task Information for Improved Model Merging and Compression
2406.05184 (2024-06)
The Unmet Promise of Synthetic Training Images: Using Retrieved Real Images Performs Better
2410.17146 (2024-10)
LiNeS: Post-training Layer Scaling Prevents Forgetting and Enhances Model Merging
and 3 more not named here
get_features 5 other papers
2 dated earlier, 3 later
2405.07813 (2024-05)
Localizing Task Information for Improved Model Merging and Compression
2410.17146 (2024-10)
LiNeS: Post-training Layer Scaling Prevents Forgetting and Enhances Model Merging
2412.12153 (2024-12)
Revisiting Weight Averaging for Model Merging
and 2 more not named here
get_classnames 4 other papers
4 dated earlier
2312.02546 (2023-12)
Machine Vision Therapy: Multimodal Large Language Models Can Enhance Visual Robustness via Denoising In-Context Learning
2403.10245 (2024-03)
CoLeCLIP: Open-Domain Continual Learning via Joint Task Prompt and Vocabulary Learning
2403.11549 (2024-03)
Boosting Continual Learning of Vision-Language Models via Mixture-of-Experts Adapters
and 1 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

When fine-tuning zero-shot models like CLIP, our desideratum is for the fine-tuned model to excel in both in-distribution (ID) and out-of-distribution (OOD). Recently, ensemble-based models (ESM) have been shown to offer significant robustness improvement, while preserving high ID accuracy. However, our study finds that ESMs do not solve the ID-OOD trade-offs: they achieve peak performance for ID and OOD accuracy at different mixing coefficients. When optimized for OOD accuracy, the ensemble model exhibits a noticeable decline in ID accuracy, and vice versa. In contrast, we propose a sample-wise ensembling technique that can simultaneously attain the best ID and OOD accuracy without the trade-offs. Specifically, we construct a Zero-Shot Failure (ZSF) set containing training samples incorrectly predicted by the zero-shot model. For each test sample, we calculate its distance to the ZSF set and assign a higher weight to the fine-tuned model in the ensemble if the distance is small. We term our method Variance Reduction Fine-tuning (VRF), as it effectively reduces the variance in ensemble predictions, thereby decreasing residual error. On ImageNet and five derived distribution shifts, our VRF further improves the OOD accuracy by 1.5 -2.0 pp over the ensemble baselines while maintaining or increasing ID accuracy. VRF achieves similar large robustness gains (0.9 -3.1 pp) on other distribution shifts benchmarks. Codes are available in https://github.com/BeierZhu/VRF.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2411.06966")
get_code_for_paper("2411.06966")
have("2411.06966")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2411.06966.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2411.06966.svg)](https://syntology.ai/paper/2411.06966)

Connect an agent — have() is free.