Papers › Towards Few-Shot Adaptation of Foundation Models via Multitask Finetuning

Towards Few-Shot Adaptation of Foundation Models via Multitask Finetuning

22 Feb 2024arXiv:2402.15017archive 2025-07-28

Zhuoyan Xu, Zhenmei Shi, Junyi Wei, Fangzhou Mu, Yin Li, YIngyu Liang

Foundation models have emerged as a powerful tool for many AI problems. Despite the tremendous success of foundation models, effective adaptation to new tasks, particularly those with limited labels, remains an open question and lacks theoretical understanding. An emerging solution with recent success in vision and NLP involves finetuning a foundation model on a selection of relevant tasks, before its adaptation to a target task with limited labeled samples. In this paper, we study the theoretical justification of this multitask finetuning approach. Our theoretical analysis reveals that with a diverse set of related tasks, this multitask finetuning leads to reduced error in the target task, in comparison to directly adapting the same pretrained model. We quantify the relationship between finetuning tasks and target tasks by diversity and consistency metrics, and further propose a practical task selection algorithm. We substantiate our theoretical claims with extensive empirical evidence. Further, we present results affirming our task selection algorithm adeptly chooses related finetuning tasks, providing advantages to the model performance on target tasks. We believe our study shed new light on the effective adaptation of foundation models to new tasks that lack abundant labels. Our code is available at https://github.com/OliverXUZY/Foudation-Model_Multitask.

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

Code

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

By repository: official repository: 16 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.

oliverxuzy/foudation-model_multitask officialmentioned in paperpytorch 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

16 samples harvested; 7 ran; 2 honoured the contract we drafted; 9 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.

2ran · honoured contract
3ran · our draft was wrong
2ran
9unverified

Licence: 16 of the 16 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 oliverxuzy/foudation-model_multitask. “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.

AverageMeter oliverxuzy/foudation-model_multitask/finetune.py official repository ran no licence file found · pointer only · 448391a260518c64 · report
Timer oliverxuzy/foudation-model_multitask/finetune.py official repository ran no licence file found · pointer only · 103e5bf76abe5b7d · report
count_params oliverxuzy/foudation-model_multitask/finetune.py official repository ran · our draft was wrong no licence file found · pointer only · 57935c9233ae310a · report
decay_lr oliverxuzy/foudation-model_multitask/finetune.py official repository ran · honoured contract no licence file found · pointer only · 05f178cf8f67fb2e · report
make oliverxuzy/foudation-model_multitask/finetune.py official repository ran · our draft was wrong no licence file found · pointer only · 5c0a845766c67c36 · report
time_str oliverxuzy/foudation-model_multitask/finetune.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · df8ef801f1f069b0 · report
warmup oliverxuzy/foudation-model_multitask/finetune.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · b5536ea9ed2c47b3 · report
accuracy oliverxuzy/foudation-model_multitask/finetune.py official repository unverified no licence file found · pointer only · 3a86045f15981b84 · report
ensure_path oliverxuzy/foudation-model_multitask/finetune.py official repository unverified no licence file found · pointer only · 34e85ca54daccd74 · report
log oliverxuzy/foudation-model_multitask/finetune.py official repository unverified no licence file found · pointer only · 7d408a58c39fd05b · report
main oliverxuzy/foudation-model_multitask/finetune.py official repository unverified no licence file found · pointer only · 19ca843d619cc77a · report
make OliverXUZY/Foudation-Model_Multitask/datasets/datasets.py official repository unverified no licence file found · pointer only · db58e5a4a5aafdab · report
make_path oliverxuzy/foudation-model_multitask/finetune.py official repository unverified no licence file found · pointer only · 94b1635e5243cca8 · report
register OliverXUZY/Foudation-Model_Multitask/datasets/datasets.py official repository unverified no licence file found · pointer only · 9687bf7a922f098a · report
set_bn_eval oliverxuzy/foudation-model_multitask/finetune.py official repository unverified no licence file found · pointer only · 08a4ae2c29e737a1 · report
set_log_path oliverxuzy/foudation-model_multitask/finetune.py official repository unverified no licence file found · pointer only · f4bfac480be197ea · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

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