Train/Test-Time Adaptation with Retrieval
Luca Zancato, Alessandro Achille, Tian Yu Liu, Matthew Trager, Pramuditha Perera, Stefano Soatto
Abstract
We introduce Train/Test-Time Adaptation with Retrieval (T 3 AR), a method to adapt models both at train and test time by means of a retrieval module and a searchable pool of external samples. Before inference, T 3 AR adapts a given model to the downstream task using refined pseudolabels and a self-supervised contrastive objective function whose noise distribution leverages retrieved real samples to improve feature adaptation on the target data manifold. The retrieval of real images is key to T 3 AR since it does not rely solely on synthetic data augmentations to compensate for the lack of adaptation data, as typically done by other adaptation algorithms. Furthermore, thanks to the retrieval module, our method gives the user or service provider the possibility to improve model adaptation on the downstream task by incorporating further relevant data or to fully remove samples that may no longer be available due to changes in user preference after deployment. First, we show that T 3 AR can be used at training time to improve downstream fine-grained classification over standard fine-tuning baselines, and the fewer the adaptation data the higher the relative improvement (up to 13%). Second, we apply T 3 AR for test-time adaptation and show that exploiting a pool of external images at test-time leads to more robust representations over existing methods on DomainNet-126 and VISDA-C, especially when few adaptation data are available (up to 8%).
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
8 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Selective Test-Time Debiasing for CLIP via Reward Gating cites Learning Transferable Visual Models From Natural Language Supervision
- Emerging Properties in Self-Supervised Vision Transformers cites A Simple Framework for Contrastive Learning of Visual Representations
- Emerging Properties in Self-Supervised Vision Transformers cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites A Simple Framework for Contrastive Learning of Visual Representations
- Prototypical Mixing and Retrieval-based Refinement for Label Noise-resistant Image Retrieval cites A Simple Framework for Contrastive Learning of Visual Representations
- Learning Transferable Visual Models From Natural Language Supervision cites A Simple Framework for Contrastive Learning of Visual Representations
- Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Frustratingly Easy Test-Time Adaptation of Vision-Language Models cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Frustratingly Easy Test-Time Adaptation of Vision-Language Models cites Learning Transferable Visual Models From Natural Language Supervision
Cited by top-tier papers8
- Frustratingly Easy Test-Time Adaptation of Vision-Language ModelsMatteo Farina, Gianni Franchi, Giovanni Iacca, Massimiliano Mancini et al.NeurIPS 2024 · 47 citations
- B'MOJO: Hybrid State Space Realizations of Foundation Models with Eidetic and Fading MemoryLuca Zancato, Arjun Seshadri, Yonatan Dukler, Aditya Golatkar et al.NeurIPS 2024 · 34 citations
- MedAdapter: Efficient Test-Time Adaptation of Large Language Models Towards Medical ReasoningWenqi Shi, Ran Xu, Yuchen Zhuang, Yue Yu et al.EMNLP 2024 · 7 citations
- Prototypical Mixing and Retrieval-based Refinement for Label Noise-resistant Image RetrievalXinlong Yang, Haixin Wang, Jinan Sun, Shikun Zhang et al.ICCV 2023 · 5 citations
- Selective Test-Time Debiasing for CLIP via Reward GatingJaeho Han, Jisoo Yang, Hyeondong Woo, Mingyu Jeon et al.ACL 2026
Builds on30
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- Retrieval-Augmented Generation for Knowledge-Intensive NLP TasksPatrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni et al.NeurIPS 2020 · 19,162 citations
- Emerging Properties in Self-Supervised Vision TransformersMathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou et al.ICCV 2021 · 8,921 citations
Related papers
- Contrastive Test-Time AdaptationDian Chen, Dequan Wang, Trevor Darrell, Sayna EbrahimiCVPR 2022 · 219 citations
- RA-TTA: Retrieval-Augmented Test-Time Adaptation for Vision-Language ModelsYoungjun Lee, Doyoung Kim, Junhyeok Kang, Jihwan Bang et al.ICLR 2025
- Leveraging Proxy of Training Data for Test-Time AdaptationJuwon Kang, Nayeong Kim, Donghyeon Kwon, Jungseul Ok et al.ICML 2023 · 13 citations
- DAA: Amplifying Unknown Discrepancy for Test-Time DiscoveryTianle Liu, Fan Lyu, Chenggong Ni, Zhang Zhang et al.NeurIPS 2025 · 1 citation
- Efficient Test-Time Adaptation of Vision-Language ModelsAdilbek Karmanov, Dayan Guan, Shijian Lu, Abdulmotaleb El Saddik et al.CVPR 2024
