Patching open-vocabulary models by interpolating weights
Gabriel Ilharco, Mitchell Wortsman, Samir Yitzhak Gadre, Shuran Song, Hannaneh Hajishirzi, Simon Kornblith, Ali Farhadi, Ludwig Schmidt
摘要
Open-vocabulary models like CLIP achieve high accuracy across many image classification tasks. However, there are still settings where their zero-shot performance is far from optimal. We study model patching, where the goal is to improve accuracy on specific tasks without degrading accuracy on tasks where performance is already adequate. Towards this goal, we introduce PAINT, a patching method that uses interpolations between the weights of a model before fine-tuning and the weights after fine-tuning on a task to be patched. On nine tasks where zeroshot CLIP performs poorly, PAINT increases accuracy by 15 to 60 percentage points while preserving accuracy on ImageNet within one percentage point of the zero-shot model. PAINT also allows a single model to be patched on multiple tasks and improves with model scale. Furthermore, we identify cases of broad transfer, where patching on one task increases accuracy on other tasks even when the tasks have disjoint classes. Finally, we investigate applications beyond common benchmarks such as counting or reducing the impact of typographic attacks on CLIP. Our findings demonstrate that it is possible to expand the set of tasks on which open-vocabulary models achieve high accuracy without re-training them from scratch. Code available at https://github.com/mlfoundations/patching .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 107 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- TIES-Merging: Resolving Interference When Merging Models 引用了 Task Arithmetic in the Tangent Space: Improved Editing of Pre-Trained Models
- TIES-Merging: Resolving Interference When Merging Models 引用了 Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
- TIES-Merging: Resolving Interference When Merging Models 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- TIES-Merging: Resolving Interference When Merging Models 引用了 Learning Transferable Visual Models From Natural Language Supervision
- LIV: Language-Image Representations and Rewards for Robotic Control 引用了 Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
- LIV: Language-Image Representations and Rewards for Robotic Control 引用了 Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision
- LIV: Language-Image Representations and Rewards for Robotic Control 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Task Arithmetic in the Tangent Space: Improved Editing of Pre-Trained Models 引用了 Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
- Task Arithmetic in the Tangent Space: Improved Editing of Pre-Trained Models 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Task Arithmetic in the Tangent Space: Improved Editing of Pre-Trained Models 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time 引用了 Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision
- Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Rewarded soups: towards Pareto-optimal alignment by interpolating weights fine-tuned on diverse rewards 引用了 Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
- Rewarded soups: towards Pareto-optimal alignment by interpolating weights fine-tuned on diverse rewards 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Learning Transferable Visual Models From Natural Language Supervision 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Flamingo: a Visual Language Model for Few-Shot Learning 引用了 Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
- Flamingo: a Visual Language Model for Few-Shot Learning 引用了 Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision
- Flamingo: a Visual Language Model for Few-Shot Learning 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Self-regulating Prompts: Foundational Model Adaptation without Forgetting 引用了 Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision
- Self-regulating Prompts: Foundational Model Adaptation without Forgetting 引用了 Learning Transferable Visual Models From Natural Language Supervision
引用它的顶会 Paper107
- TIES-Merging: Resolving Interference When Merging ModelsPrateek Yadav, Derek Tam, Leshem Choshen, Colin A. Raffel 等NeurIPS 2023 · 999 次引用
- Self-regulating Prompts: Foundational Model Adaptation without ForgettingMuhammad Uzair Khattak, Syed Talal Wasim, Muzammal Naseer, Salman Khan 等ICCV 2023 · 365 次引用
- Rewarded soups: towards Pareto-optimal alignment by interpolating weights fine-tuned on diverse rewardsAlexandre Ramé, Guillaume Couairon, Corentin Dancette, Jean-Baptiste Gaya 等NeurIPS 2023 · 295 次引用
- Task Arithmetic in the Tangent Space: Improved Editing of Pre-Trained ModelsGuillermo Ortiz-Jiménez, Alessandro Favero, Pascal FrossardNeurIPS 2023 · 272 次引用
- LIV: Language-Image Representations and Rewards for Robotic ControlYecheng Jason Ma, Vikash Kumar, Amy Zhang, Osbert Bastani 等ICML 2023 · 212 次引用
它引用的 Paper32
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh 等ICML 2021 · 47,906 次引用
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- Flamingo: a Visual Language Model for Few-Shot LearningJean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech 等NeurIPS 2022 · 6,707 次引用
- Scaling Up Visual and Vision-Language Representation Learning With Noisy Text SupervisionChao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen 等ICML 2021 · 5,401 次引用
- Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timeMitchell Wortsman, Gabriel Ilharco, Samir Yitzhak Gadre, Rebecca Roelofs 等ICML 2022 · 1,464 次引用
相关 Paper
- Open Vocabulary Semantic Segmentation with Patch Aligned Contrastive LearningJishnu Mukhoti, Tsung-Yu Lin, Omid Poursaeed, Rui Wang 等CVPR 2023
- Robust fine-tuning of zero-shot modelsMitchell Wortsman, Gabriel Ilharco, Jong Wook Kim, Mike Li 等CVPR 2022 · 364 次引用
- LiFT: Transfer Learning in Vision-Language Models for Downstream Adaptation and GeneralizationJingzheng Li, Hailong SunACM MM 2023 · 5 次引用
- Test-Time Visual In-Context TuningJiahao Xie, Alessio Tonioni, Nathalie Rauschmayr, Federico Tombari 等CVPR 2025
- DeCoOp: Robust Prompt Tuning with Out-of-Distribution DetectionZhi Zhou, Ming Yang, Jiang-Xin Shi, Lan-Zhe Guo 等ICML 2024 · 14 次引用
