Reproduce “Patching open-vocabulary models by interpolating weights” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Gabriel Ilharco, Mitchell Wortsman, Samir Yitzhak Gadre, Shuran Song, Hannaneh Hajishirzi, Simon Kornblith, Ali Farhadi, Ludwig Schmidt

PAINT (Patching with Interpolation) offers a two-step method for adapting large open-vocabulary models like CLIP. It significantly improves performance on new tasks while maintaining capabilities on existing ones by fine-tuning on the new task and then linearly interpolating the fine-tuned weights with the original zero-shot weights, enhancing task-specific accuracy by 15-60 percentage points with minimal degradation on supported tasks.

Key insights

  • Linearly interpolating weights between a zero-shot model and its fine-tuned version effectively balances improved task-specific accuracy with the preservation of general capabilities, successfully mitigating catastrophic forgetting.
  • The effectiveness of the patching method increases with model scale; larger models demonstrate a better trade-off between new task performance and retention of original abilities, likely due to greater similarity between unpatched and fine-tuned representations.
  • The method demonstrates "broad transfer," where improvements on one patching task can positively impact accuracy on other related tasks, even when these tasks have disjoint class spaces.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.