mlsanityData to 7 Oct 2026

A Simple Cache Model for Image Recognition

arXiv 1805.08709 ↗First posted 21 May 2018cs.CV cs.LG cs.NEcited by 20

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 4; 2022: 2; 2023: 6; 2024: 4; 2025: 3; 2026: 1.

20 papers.

Sort:

By area:

  1. 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Surveycited by 641
  2. 2021Tip-Adapter: Training-free CLIP-Adapter for Better Vision-Language Modelingcited by 429
  3. 2022Tip-Adapter: Training-free Adaption of CLIP for Few-shot Classificationcited by 355
  4. 2024Efficient Test-Time Adaptation of Vision-Language Modelscited by 138
  5. 2021Personalized Federated Learning through Local Memorizationcited by 57
  6. 2023kNN Prompting: Beyond-Context Learning with Calibration-Free Nearest Neighbor Inferencecited by 47
  7. 2024Frozen Feature Augmentation for Few-Shot Image Classificationcited by 13
  8. 2021Rethinking Nearest Neighbors for Visual Classificationcited by 6
  9. 2023Federated Nearest Neighbor Machine Translationcited by 5
  10. 2025Point-Cache: Test-time Dynamic and Hierarchical Cache for Robust and Generalizable Point Cloud Analysiscited by 4
  11. 2023FIANCEE: Faster Inference of Adversarial Networks via Conditional Early Exitscited by 3
  12. 2025Compositional Caching for Training-free Open-vocabulary Attribute Detectioncited by 3
8 more
  1. 2021Representation Memorization for Fast Learning New Knowledge without Forgettingcited by 0
  2. 2022Can deep learning match the efficiency of human visual long-term memory in storing object details?cited by 0
  3. 2023Revisiting k-NN for Fine-tuning Pre-trained Language Modelscited by 0
  4. 2023Noise-Tolerant Few-Shot Unsupervised Adapter for Vision-Language Modelscited by 0
  5. 2023Heterogenous Memory Augmented Neural Networkscited by 0
  6. 2024Learning to Adapt Category Consistent Meta-Feature of CLIP for Few-Shot Classificationcited by 0
  7. 2025Advancing Cache-Based Few-Shot Classification via Patch-Driven Relational Gated Graph Attentioncited by 0
  8. 2026Adapting Point Cloud Analysis via Multimodal Bayesian Distribution Learningcited by 0