HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Revisiting a kNN-based Image Classification System with High-capacity Storage

Kengo Nakata Youyang Ng Daisuke Miyashita Asuka Maki Yu-Chieh Lin Jun Deguchi

Revisiting a kNN-based Image Classification System with High-capacity Storage

Abstract

In existing image classification systems that use deep neural networks, the knowledge needed for image classification is implicitly stored in model parameters. If users want to update this knowledge, then they need to fine-tune the model parameters. Moreover, users cannot verify the validity of inference results or evaluate the contribution of knowledge to the results. In this paper, we investigate a system that stores knowledge for image classification, such as image feature maps, labels, and original images, not in model parameters but in external high-capacity storage. Our system refers to the storage like a database when classifying input images. To increase knowledge, our system updates the database instead of fine-tuning model parameters, which avoids catastrophic forgetting in incremental learning scenarios. We revisit a kNN (k-Nearest Neighbor) classifier and employ it in our system. By analyzing the neighborhood samples referred by the kNN algorithm, we can interpret how knowledge learned in the past is used for inference results. Our system achieves 79.8% top-1 accuracy on the ImageNet dataset without fine-tuning model parameters after pretraining, and 90.8% accuracy on the Split CIFAR-100 dataset in the task incremental learning setting.

Benchmarks

BenchmarkMethodologyMetrics
continual-learning-on-cifar100-20-taskskNN-CLIP
Average Accuracy: 90.8
image-classification-on-cifar-10kNN-CLIP
Percentage correct: 97.3
image-classification-on-cifar-100kNN-CLIP
Percentage correct: 81.7
image-classification-on-imagenetkNN-CLIP
Top 1 Accuracy: 79.8%
image-classification-on-imagenet-realkNN-CLIP
Accuracy: 84%
image-classification-on-stl-10kNN-CLIP
Percentage correct: 99.6
incremental-learning-on-imagenet-10-stepskNN-CLIP
Average Incremental Accuracy: 85.5
incremental-learning-on-imagenet100-10-stepskNN-CLIP
Average Incremental Accuracy: 85.1

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Revisiting a kNN-based Image Classification System with High-capacity Storage | Papers | HyperAI