Patching open-vocabulary models by interpolating weightsDownload PDF

Published: 31 Oct 2022, 18:00, Last Modified: 15 Dec 2022, 15:03NeurIPS 2022 AcceptReaders: Everyone
Keywords: zero-shot models, open-vocabulary models, model editing, model patching, vision-and-language, image-text models, CLIP
TL;DR: We use weight interpolation to patch open-vocabulary models, where the goal is to improve performance on new tasks without degrading accuracy on unrelated tasks.
Abstract: 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 zero-shot 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.
Supplementary Material: pdf
20 Replies

Loading