mlsanityData to 7 Oct 2026

Integrating kNN with Foundation Models for Adaptable and Privacy-Aware Image Classification

arXiv 2402.12500 ↗First posted 19 Feb 2024cs.CV cs.LG eess.IVcited by 5

Not on the map. Why?

Abstract (arXiv)

Traditional deep learning models implicity encode knowledge limiting their transparency and ability to adapt to data changes. Yet, this adaptability is vital for addressing user data privacy concerns. We address this limitation by storing embeddings of the underlying training data independently of the model weights, enabling dynamic data modifications without retraining. Specifically, our approach integrates the k-Nearest Neighbor (k-NN) classifier with a vision-based foundation model, pre-trained self-supervised on natural images, enhancing interpretability and adaptability. We share open-source implementations of a previously unpublished baseline method as well as our performance-improving contributions. Quantitative experiments confirm improved classification across established benchmark datasets and the method's applicability to distinct medical image classification tasks. Additionally, we assess the method's robustness in continual learning and data removal scenarios. The approach exhibits great promise for bridging the gap between foundation models' performance and challenges tied to data privacy. The source code is available at https://github.com/TobArc/privacy-aware-image-classification-with-kNN.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 19 of its 30 references that are in the map. First posted on arXiv 19 Feb 2024.

Builds on

19 of 30 references.

References · 19

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
  7. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
  8. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
  9. 2016Wide Residual Networkscited by 3,057
  10. 2016iCaRL: Incremental Classifier and Representation Learningcited by 2,313
  11. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
  12. 2017Gradient Episodic Memory for Continual Learningcited by 1,871
7 more
  1. 2021Improving language models by retrieving from trillions of tokenscited by 1,278
  2. 2018Experience Replay for Continual Learningcited by 1,074
  3. 2019Skin Lesion Analysis Toward Melanoma Detection 2018: A Challenge Hosted by the International Skin Imaging Collaboration (ISIC)cited by 657
  4. 2023A Comprehensive Survey of Forgetting in Deep Learning Beyond Continual Learningcited by 66
  5. 2020k-Nearest Neighbour Classifiers: 2nd Edition (with Python examples)cited by 56
  6. 2020Deep k-NN for Noisy Labelscited by 55
  7. 2022Revisiting a kNN-based Image Classification System with High-capacity Storagecited by 22

Built on by

Cited by year

Citing papers per year: 2024: 3; 2025: 2.

5 papers.