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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Doerrich, Sebastian, Archut, Tobias, Di Salvo, Francesco, Ledig, Christian
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929248595345408
author Doerrich, Sebastian
Archut, Tobias
Di Salvo, Francesco
Ledig, Christian
author_facet Doerrich, Sebastian
Archut, Tobias
Di Salvo, Francesco
Ledig, Christian
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_12500
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Integrating kNN with Foundation Models for Adaptable and Privacy-Aware Image Classification
Doerrich, Sebastian
Archut, Tobias
Di Salvo, Francesco
Ledig, Christian
Computer Vision and Pattern Recognition
Machine Learning
Image and Video Processing
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.
title Integrating kNN with Foundation Models for Adaptable and Privacy-Aware Image Classification
topic Computer Vision and Pattern Recognition
Machine Learning
Image and Video Processing
url https://arxiv.org/abs/2402.12500