[Paper Review] When Naïve Bayes Nearest Neighbours Meet Convolutional Neural Networks
This paper proposes a framework that integrates Convolutional Neural Network (CNN) activations with Naïve Bayes Nearest Neighbour (NBNN) classifiers by extracting multi-scale local patch features from pre-trained CNNs and applying a scalable variant of Naïve Bayes Non-linear Learning (sNBNL). The approach achieves state-of-the-art performance on scene recognition and domain adaptation benchmarks, demonstrating that NBNN-based methods can be effectively revived with CNN features and scalable training.
Since Convolutional Neural Networks (CNNs) have become the leading learning paradigm in visual recognition, Naive Bayes Nearest Neighbour (NBNN)-based classifiers have lost momentum in the community. This is because (1) such algorithms cannot use CNN activations as input features; (2) they cannot be used as final layer of CNN architectures for end-to-end training , and (3) they are generally not scalable and hence cannot handle big data. This paper proposes a framework that addresses all these issues, thus bringing back NBNNs on the map. We solve the first by extracting CNN activations from local patches at multiple scale levels, similarly to [1]. We address simultaneously the second and third by proposing a scalable version of Naive Bayes Non-linear Learning (NBNL, [2]). Results obtained using pre-trained CNNs on standard scene and domain adaptation databases show the strength of our approach, opening a new season for NBNNs.
Motivation & Objective
- To address the limitations of NBNN-based classifiers in the deep learning era, where they cannot utilize CNN activations or scale to large datasets.
- To enable NBNN methods to work with CNN features by extracting local patch activations across multiple scales without pooling or concatenation.
- To develop a scalable training algorithm for NBNN-based models that maintains high predictive performance while reducing memory and computational costs.
- To demonstrate that NBNN-based methods can achieve state-of-the-art performance when combined with CNN features and efficient learning algorithms.
- To validate the framework on standard benchmarks in scene recognition and domain adaptation, showing strong generalization and transfer capabilities.
Proposed method
- Extracts CNN activation features from local patches at multiple scale levels (32px, 64px, 128px) without pooling or concatenation, preserving local structure for NBNN input.
- Uses a scalable stochastic variant of Naïve Bayes Non-linear Learning (sNBNL) to handle large-scale datasets with up to 10^7 features, enabling efficient training.
- Applies the Latent Locally-Linear SVM framework within sNBNL to model non-linear decision boundaries while maintaining the generality of NBNN.
- Employs a smoothed version of sNBNL that could, in principle, be used as an end-to-end trainable final layer in CNN architectures.
- Uses pre-trained Caffe-based CNNs for feature extraction and applies the framework to both scene classification and domain adaptation tasks.
- Implements dense patch sampling across images and uses the resulting multi-scale features as input to NBNN-based classifiers.
Experimental results
Research questions
- RQ1Can NBNN-based classifiers be effectively combined with CNN activations to overcome their historical limitations in scalability and feature compatibility?
- RQ2Can multi-scale local patch features from pre-trained CNNs serve as effective inputs for NBNN-based models without pooling or concatenation?
- RQ3Does a scalable variant of NBNN, such as sNBNL, maintain high predictive performance while reducing memory and computational costs on large-scale datasets?
- RQ4Can the proposed framework achieve state-of-the-art performance on standard scene recognition and domain adaptation benchmarks?
- RQ5Is the framework capable of generalizing well in zero-shot and few-shot domain adaptation scenarios without explicit adaptation mechanisms?
Key findings
- On the Scene15, UIUC Sports, and MIT Indoor datasets, the proposed CNN-sNBNL framework achieves state-of-the-art performance among single-feature methods, outperforming both traditional and NBNN-based approaches.
- In the unsupervised domain adaptation setting on Office+Caltech256, CNN-sNBNL achieves 80.91% accuracy on the C→A setting, surpassing all baselines including learning-based methods.
- In the semi-supervised domain adaptation setting, CNN-sNBNL achieves 85.62% accuracy on the C→A setting, setting a new state of the art and outperforming even dedicated domain adaptation models.
- The framework achieves 90.03% accuracy on the A→W setting in semi-supervised domain adaptation, demonstrating strong generalization with minimal target data.
- The proposed sNBNL algorithm enables training on datasets with over 10^7 features, making NBNN-based methods viable for large-scale visual recognition tasks.
- The framework is the first to successfully bridge NBNN-based classifiers with CNN features, reviving NBNNs as a competitive paradigm in visual recognition.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.