Not All Features Matter: Enhancing Few-shot CLIP with Adaptive Prior Refinement

Xiang-yu Zhu, Renrui Zhang, Bowei He, A-Long Zhou, Dong Wang +2 more
2/14/2026

No official code found. Best implementation: yangyangyang127/APE (150 stars, last commit 2024-04-21).

Abstract

The popularity of Contrastive Language-Image Pretraining (CLIP) has propelled its application to diverse downstream vision tasks. To improve its capacity on downstream tasks, few-shot learning has become a widelya-dopted technique. However, existing methods either exhibit limited performance or suffer from excessive learnable parameters. In this paper, we propose APE, an Adaptive Prior rEfinement method for CLIP’s pre-trained knowledge, which achieves superior accuracy with high computational efficiency. Via a prior refinement module, we analyze the inter-class disparity in the downstream data and decouple the domain-specific knowledge from the CLIP-extracted cache model. On top of that, we introduce two model variants, a training-free APE and a training-required APE-T. We explore the trilateral affinities between the test image, prior cache model, and textual representations, and only enable a lightweight category-residual module to be trained. For the average accuracy over 11 benchmarks, both APE and APE-T attain state-of-the-art and respectively outperform the second-best by +1.59% and +1.99% under 16 shots with ×30 less learnable parameters. Code is available at https://github.com/yangyangyang127/APE.

View on arXivView PDF

Code Implementations(1)

yangyangyang127/APECommunity100%

[ICCV 2023] Code for "Not All Features Matter: Enhancing Few-shot CLIP with Adaptive Prior Refinement"

15012Python, Jupyter NotebookApr 3, 20232 years ago

Similar Papers

Cite this paper

@article{zhu2026features,
  title  = {Not All Features Matter: Enhancing Few-shot CLIP with Adaptive Prior Refinement},
  author = {Xiang-yu Zhu and Renrui Zhang and Bowei He and A-Long Zhou and Dong Wang and Bingyan Zhao and Peng Gao},
  year   = {2026},
  eprint = {2304.01195},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2304.01195},
  journal = {ICCV 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.01195.svg)](https://codeofpaper.com/paper/2304.01195)

Discussion