A Simple Cache Model for Image Recognition
Not on the map. Why?
Abstract (arXiv)
Training large-scale image recognition models is computationally expensive. This raises the question of whether there might be simple ways to improve the test performance of an already trained model without having to re-train or fine-tune it with new data. Here, we show that, surprisingly, this is indeed possible. The key observation we make is that the layers of a deep network close to the output layer contain independent, easily extractable class-relevant information that is not contained in the output layer itself. We propose to extract this extra class-relevant information using a simple key-value cache memory to improve the classification performance of the model at test time. Our cache memory is directly inspired by a similar cache model previously proposed for language modeling (Grave et al., 2017). This cache component does not require any training or fine-tuning; it can be applied to any pre-trained model and, by properly setting only two hyper-parameters, leads to significant improvements in its classification performance. Improvements are observed across several architectures and datasets. In the cache component, using features extracted from layers close to the output (but not from the output layer itself) as keys leads to the largest improvements. Concatenating features from multiple layers to form keys can further improve performance over using single-layer features as keys. The cache component also has a regularizing effect, a simple consequence of which is that it substantially increases the robustness of models against adversarial attacks.
Key facts. Cited by 20 papers in the map (data through 7 Oct 2026). First posted on arXiv 21 May 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 2; 2023: 6; 2024: 4; 2025: 3; 2026: 1.
20 papers.
Sort:
By area:
- 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Surveycited by 641
- 2021Tip-Adapter: Training-free CLIP-Adapter for Better Vision-Language Modelingcited by 429
- 2022Tip-Adapter: Training-free Adaption of CLIP for Few-shot Classificationcited by 355
- 2024Efficient Test-Time Adaptation of Vision-Language Modelscited by 138
- 2021Personalized Federated Learning through Local Memorizationcited by 57
- 2023kNN Prompting: Beyond-Context Learning with Calibration-Free Nearest Neighbor Inferencecited by 47
- 2024Frozen Feature Augmentation for Few-Shot Image Classificationcited by 13
- 2021Rethinking Nearest Neighbors for Visual Classificationcited by 6
- 2023Federated Nearest Neighbor Machine Translationcited by 5
- 2025Point-Cache: Test-time Dynamic and Hierarchical Cache for Robust and Generalizable Point Cloud Analysiscited by 4
- 2023FIANCEE: Faster Inference of Adversarial Networks via Conditional Early Exitscited by 3
- 2025Compositional Caching for Training-free Open-vocabulary Attribute Detectioncited by 3
8 more
- 2021Representation Memorization for Fast Learning New Knowledge without Forgettingcited by 0
- 2022Can deep learning match the efficiency of human visual long-term memory in storing object details?cited by 0
- 2023Revisiting k-NN for Fine-tuning Pre-trained Language Modelscited by 0
- 2023Noise-Tolerant Few-Shot Unsupervised Adapter for Vision-Language Modelscited by 0
- 2023Heterogenous Memory Augmented Neural Networkscited by 0
- 2024Learning to Adapt Category Consistent Meta-Feature of CLIP for Few-Shot Classificationcited by 0
- 2025Advancing Cache-Based Few-Shot Classification via Patch-Driven Relational Gated Graph Attentioncited by 0
- 2026Adapting Point Cloud Analysis via Multimodal Bayesian Distribution Learningcited by 0
- 2026Adapting Point Cloud Analysis via Multimodal Bayesian Distribution Learning23 Mar 2026
- 2025Advancing Cache-Based Few-Shot Classification via Patch-Driven Relational Gated Graph Attention13 Dec 2025
- 2025Compositional Caching for Training-free Open-vocabulary Attribute Detection24 Mar 2025
- 2025Point-Cache: Test-time Dynamic and Hierarchical Cache for Robust and Generalizable Point Cloud Analysis15 Mar 2025
- 2024Learning to Adapt Category Consistent Meta-Feature of CLIP for Few-Shot Classification8 Jul 2024
- 2024Efficient Test-Time Adaptation of Vision-Language Models27 Mar 2024
- 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Survey21 Mar 2024
- 2024Frozen Feature Augmentation for Few-Shot Image Classification15 Mar 2024
- 2023Heterogenous Memory Augmented Neural Networks17 Oct 2023
- 2023Noise-Tolerant Few-Shot Unsupervised Adapter for Vision-Language Models26 Sep 2023
- 2023FIANCEE: Faster Inference of Adversarial Networks via Conditional Early Exits20 Apr 2023
- 2023Revisiting k-NN for Fine-tuning Pre-trained Language Models18 Apr 2023
8 more
- 2023kNN Prompting: Beyond-Context Learning with Calibration-Free Nearest Neighbor Inference24 Mar 2023
- 2023Federated Nearest Neighbor Machine Translation23 Feb 2023
- 2022Tip-Adapter: Training-free Adaption of CLIP for Few-shot Classification19 Jul 2022
- 2022Can deep learning match the efficiency of human visual long-term memory in storing object details?27 Apr 2022
- 2021Rethinking Nearest Neighbors for Visual Classification15 Dec 2021
- 2021Personalized Federated Learning through Local Memorization17 Nov 2021
- 2021Tip-Adapter: Training-free CLIP-Adapter for Better Vision-Language Modeling6 Nov 2021
- 2021Representation Memorization for Fast Learning New Knowledge without Forgetting28 Aug 2021
- 2021Tip-Adapter: Training-free CLIP-Adapter for Better Vision-Language Modelingcited by 429
- 2022Tip-Adapter: Training-free Adaption of CLIP for Few-shot Classificationcited by 355
- 2024Efficient Test-Time Adaptation of Vision-Language Modelscited by 138
- 2023Noise-Tolerant Few-Shot Unsupervised Adapter for Vision-Language Modelscited by 0
- 2026Adapting Point Cloud Analysis via Multimodal Bayesian Distribution Learningcited by 0
- 2026Adapting Point Cloud Analysis via Multimodal Bayesian Distribution Learning23 Mar 2026
- 2024Efficient Test-Time Adaptation of Vision-Language Models27 Mar 2024
- 2023Noise-Tolerant Few-Shot Unsupervised Adapter for Vision-Language Models26 Sep 2023
- 2022Tip-Adapter: Training-free Adaption of CLIP for Few-shot Classification19 Jul 2022
- 2021Tip-Adapter: Training-free CLIP-Adapter for Better Vision-Language Modeling6 Nov 2021
- 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Surveycited by 641
- 2021Personalized Federated Learning through Local Memorizationcited by 57
- 2023kNN Prompting: Beyond-Context Learning with Calibration-Free Nearest Neighbor Inferencecited by 47
- 2024Frozen Feature Augmentation for Few-Shot Image Classificationcited by 13
- 2021Rethinking Nearest Neighbors for Visual Classificationcited by 6
- 2023Federated Nearest Neighbor Machine Translationcited by 5
- 2025Point-Cache: Test-time Dynamic and Hierarchical Cache for Robust and Generalizable Point Cloud Analysiscited by 4
- 2025Compositional Caching for Training-free Open-vocabulary Attribute Detectioncited by 3
- 2021Representation Memorization for Fast Learning New Knowledge without Forgettingcited by 0
- 2022Can deep learning match the efficiency of human visual long-term memory in storing object details?cited by 0
- 2023Revisiting k-NN for Fine-tuning Pre-trained Language Modelscited by 0
- 2023Heterogenous Memory Augmented Neural Networkscited by 0
12 most cited of 14 All 14 (JSON)
- 2025Advancing Cache-Based Few-Shot Classification via Patch-Driven Relational Gated Graph Attention13 Dec 2025
- 2025Compositional Caching for Training-free Open-vocabulary Attribute Detection24 Mar 2025
- 2025Point-Cache: Test-time Dynamic and Hierarchical Cache for Robust and Generalizable Point Cloud Analysis15 Mar 2025
- 2024Learning to Adapt Category Consistent Meta-Feature of CLIP for Few-Shot Classification8 Jul 2024
- 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Survey21 Mar 2024
- 2024Frozen Feature Augmentation for Few-Shot Image Classification15 Mar 2024
- 2023Heterogenous Memory Augmented Neural Networks17 Oct 2023
- 2023Revisiting k-NN for Fine-tuning Pre-trained Language Models18 Apr 2023
- 2023kNN Prompting: Beyond-Context Learning with Calibration-Free Nearest Neighbor Inference24 Mar 2023
- 2023Federated Nearest Neighbor Machine Translation23 Feb 2023
- 2022Can deep learning match the efficiency of human visual long-term memory in storing object details?27 Apr 2022
- 2021Rethinking Nearest Neighbors for Visual Classification15 Dec 2021
12 newest of 14 All 14 (JSON)