Train/Test-Time Adaptation with Retrieval
Not on the map. Why?
Abstract (arXiv)
We introduce Train/Test-Time Adaptation with Retrieval (rm T3AR), 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, rm T3AR adapts a given model to the downstream task using refined pseudo-labels 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 rm T3AR 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 rm T3AR 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 rm T3AR 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%).
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 46 of its 66 references that are in the map. First posted on arXiv 25 Mar 2023.
Builds on
46 of 66 references.
References · 46
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
- 2020FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidencecited by 2,080
- 2013Fine-Grained Visual Classification of Aircraftcited by 1,701
- 2018Moment Matching for Multi-Source Domain Adaptationcited by 1,327
- 2015Learning Transferable Features with Deep Adaptation Networkscited by 1,323
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
34 more
- 2021Learning to Prompt for Continual Learningcited by 938
- 2020Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptationcited by 844
- 2021Generalized Out-of-Distribution Detection: A Surveycited by 796
- 2017Remote Sensing Image Scene Classification: Benchmark and State of the Artcited by 791
- 2022OFA: Unifying Architectures, Tasks, and Modalities Through a Simple Sequence-to-Sequence Learning Frameworkcited by 742
- 2014Neural Turing Machinescited by 630
- 2018Learning to Adapt Structured Output Space for Semantic Segmentationcited by 584
- 2021How to train your ViT? Data, Augmentation, and Regularization in Vision Transformerscited by 562
- 2019Memorizing Normality to Detect Anomaly: Memory-augmented Deep Autoencoder for Unsupervised Anomaly Detectioncited by 560
- 2018Domain Adaptive Faster R-CNN for Object Detection in the Wildcited by 442
- 2017VisDA: The Visual Domain Adaptation Challengecited by 432
- 2022Unified-IO: A Unified Model for Vision, Language, and Multi-Modal Taskscited by 420
- 2019Contrastive Adaptation Network for Unsupervised Domain Adaptationcited by 407
- 2021MEMO: Test Time Robustness via Adaptation and Augmentationcited by 376
- 2021Pix2seq: A Language Modeling Framework for Object Detectioncited by 345
- 2022VOS: Learning What You Don't Know by Virtual Outlier Synthesiscited by 300
- 2022Contrastive Test-Time Adaptationcited by 258
- 2021Online Continual Learning in Image Classification: An Empirical Surveycited by 242
- 2022Re-Imagen: Retrieval-Augmented Text-to-Image Generatorcited by 208
- 2021Structured Prediction as Translation between Augmented Natural Languagescited by 183
- 2020CoMatch: Semi-supervised Learning with Contrastive Graph Regularizationcited by 167
- 2018Open Set Domain Adaptation by Backpropagationcited by 150
- 2022Retrieval Augmented Classification for Long-Tail Visual Recognitioncited by 106
- 2022Quality Not Quantity: On the Interaction between Dataset Design and Robustness of CLIPcited by 97
- 2021Thinking Fast and Slow: Efficient Text-to-Visual Retrieval with Transformerscited by 93
- 2021Divide and Contrast: Self-supervised Learning from Uncurated Datacited by 85
- 2021Adaptive Semiparametric Language Modelscited by 83
- 2021A linearized framework and a new benchmark for model selection for fine-tuningcited by 41
- 2022Semi-Parametric Neural Image Synthesiscited by 36
- 2022Decoupling Knowledge from Memorization: Retrieval-augmented Prompt Learningcited by 36
- 2017The iNaturalist Species Classification and Detection Datasetcited by 28
- 2020Neural Data Server: A Large-Scale Search Engine for Transfer Learning Datacited by 27
- 2020LQF: Linear Quadratic Fine-Tuningcited by 25
- 2019Logo-2K+: A Large-Scale Logo Dataset for Scalable Logo Classificationcited by 22
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 1; 2026: 2.
7 papers.
- 2023Test-Time Adaptation with CLIP Reward for Zero-Shot Generalization in Vision-Language Modelscited by 37
- 2024Frustratingly Easy Test-Time Adaptation of Vision-Language Modelscited by 36
- 2024B'MOJO: Hybrid State Space Realizations of Foundation Models with Eidetic and Fading Memorycited by 26
- 2024COBRA: COmBinatorial Retrieval Augmentation for Few-Shot Adaptationcited by 2
- 2025JointDistill: Adaptive Multi-Task Distillation for Joint Depth Estimation and Scene Segmentationcited by 0
- 2026Robust Test-time Video-Text Retrieval: Benchmarking and Adapting for Query Shiftscited by 0
- 2026Selective Test-Time Debiasing for CLIP via Reward Gatingcited by 0
- 2026Selective Test-Time Debiasing for CLIP via Reward Gating1 Jul 2026
- 2026Robust Test-time Video-Text Retrieval: Benchmarking and Adapting for Query Shifts15 Feb 2026
- 2025JointDistill: Adaptive Multi-Task Distillation for Joint Depth Estimation and Scene Segmentation15 May 2025
- 2024COBRA: COmBinatorial Retrieval Augmentation for Few-Shot Adaptation23 Dec 2024
- 2024B'MOJO: Hybrid State Space Realizations of Foundation Models with Eidetic and Fading Memory8 Jul 2024
- 2024Frustratingly Easy Test-Time Adaptation of Vision-Language Models28 May 2024
- 2023Test-Time Adaptation with CLIP Reward for Zero-Shot Generalization in Vision-Language Models29 May 2023