Improving Sample Efficiency with Normalized RBF Kernels

Sebastian Pineda-Arango, David Obando-Paniagua, Alperen Dedeoglu, Philip Kurzendörfer, Friedemann Schestag, Randolf ScholzarXiv 2020

Abstract: In deep learning models, learning more with less data is becoming more important. This paper explores how neural networks with normalized Radial Basis Function (RBF) kernels can be trained to achieve better sample efficiency. Moreover, we show how this kind of output layer can find embedding spaces where the classes are compact and well-separated. In order to achieve this, we propose a two-phase method to train those type of neural networks on classification tasks. Experiments on CIFAR-10 and CIFAR-100 show that networks with normalized kernels as output layer can achieve higher sample efficiency, high compactness and well-separability through the presented method in comparison to networks with SoftMax output layer.

Introduction

Modern deep learning models are notoriously "data-hungry." While humans can often learn to recognize a new object from just a few examples, standard neural networks typically require thousands of labeled samples to generalize well. This lack of sample efficiency is a major hurdle in fields like medical imaging or robotics, where data is expensive or difficult to collect.

While RBF networks—which classify data based on distance to "prototypes" or centers—are known for their robustness and potential in few-shot learning, they are historically difficult to train in deep architectures. Standard gradient descent often fails to find good "centers" for these kernels, leading to poor accuracy compared to the ubiquitous SoftMax layer. This research bridges this gap by providing a reliable training recipe for deep RBF networks.

Methodology: The Two-Phase Training Procedure

The core contribution is a two-phase training strategy designed to overcome the optimization difficulties inherent in RBF layers. By using a "warm-start" initialization involving $K$-Means clustering, the model avoids common failure modes where centers collapse or overlap.

The proposed two-phase training procedure: (a) Phase 1 pre-training with SoftMax, (b) Initialization of RBF centers via K-Means, and (c) Phase 2 fine-tuning with the normalized RBF kernel.
  1. Phase 1 (Pre-training): Train a standard architecture (Feature Extractor + SoftMax layer) on the available data. This "teaches" the feature extractor how to represent the data effectively.
  2. Initialization: Use the pre-trained feature extractor to generate embeddings for the training set. For each class, apply $K$-Means clustering to these embeddings to find representative "centers" (prototypes).
  3. Phase 2 (Fine-tuning): Replace the SoftMax layer with a normalized RBF kernel layer (using either Gaussian or Inverse Distance kernels), initialized with the $K$-Means centers. The entire network is then fine-tuned using cross-entropy loss.

Experimental Results

The authors evaluated their method on two standard computer vision benchmarks, CIFAR-10 and CIFAR-100, using varying percentages of the training data (10% to 100%) to test sample efficiency across Simple CNN and ResNet50 architectures.

Accuracy vs. percentage of training data for different architectures and datasets. The green line (GaussianKernel P1+Init+P2) consistently outperforms the standard SoftMax baseline (blue line), especially in low-data regimes.

Key Insights

  • Superiority in Low-Data Regimes: The performance gain of the RBF approach over SoftMax is most pronounced when training data is scarce (10%–50% range). For example, on CIFAR-100 with ResNet50, the RBF method reached 65.77% accuracy with only 20% of the data, while the standard SoftMax model lagged at 45.63%.
  • Distance vs. Dot Product: Standard SoftMax layers rely on dot products, which primarily care about the angle between vectors. RBF kernels rely on Euclidean distance, which explicitly encourages intra-class compactness (keeping samples of the same class close to their prototype).
  • Embedding Quality: Using the Silhouette Score, the authors proved that their approach creates significantly more "compact" and "separated" class clusters. T-SNE visualizations qualitatively confirmed that the RBF clusters are much tighter and less prone to overlap than those produced by SoftMax.

Conclusion and Future Work

This work demonstrates that replacing SoftMax with normalized RBF kernels, when combined with a structured two-phase training process, significantly improves sample efficiency. While the method introduces a clustering step, the resulting high-quality embeddings and improved performance on small datasets justify the complexity. Future research will investigate the model's adversarial robustness and the potential of using Gaussian Mixture Models in the output layer.

Summary updated

BibTeX
@misc{pinedaarango2020improving,
  author = {Sebastian Pineda-Arango and David Obando-Paniagua and Alperen Dedeoglu and Philip Kurzendörfer and Friedemann Schestag and Randolf Scholz},
  title = {{Improving Sample Efficiency with Normalized RBF Kernels}},
  year = {2020},
  eprint = {2007.15397},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.15397},
}
Figure