Abstract
Traditional distribution matching methods often rely on fixed kernels that suffer from degradation when applied to complex image data. We present the Kernel Learning Network (KLN), which integrates a deep auto-encoder with Conditional Maximum Mean Discrepancy (CMMD). By learning an injective feature mapping, KLN develops data-specific kernels that effectively distinguish between intra-class and inter-class similarities, achieving state-of-the-art performance in supervised and semi-supervised image classification benchmarks including MNIST, SVHN, and CIFAR-10.
Introduction
In machine learning, comparing probability distributions is a fundamental task. A popular tool for this is Conditional Maximum Mean Discrepancy (CMMD), which measures the distance between conditional distributions, such as the probability of a label given an image. CMMD relies on kernel functions, like the Gaussian Radial Basis Function (RBF), to map data into a high-dimensional space where these distributions can be compared.
However, standard kernels are often "blind" to the complex structures of real-world images. On datasets like CIFAR-10, a fixed Gaussian kernel often fails to distinguish between intra-class similarity (e.g., two different cats) and inter-class similarity (e.g., a cat and a dog). This phenomenon, known as kernel degradation, prevents CMMD-based classifiers from reaching their full potential because the underlying kernel cannot tell the difference between classes.
The Kernel Learning Network (KLN)
The authors propose the Kernel Learning Network (KLN) to solve this by learning the kernel and the classifier simultaneously within an end-to-end framework.
Methodology
- The Compound Kernel: Instead of applying a kernel directly to raw pixels, KLN applies it to features learned by a deep neural network. The "learned kernel" is a composition of a standard kernel and a deep feature mapping.
- The Injective Constraint: For a kernel to remain mathematically valid (characteristic), the feature mapping must be injective, meaning it does not collapse different inputs into the same output. To enforce this, the authors integrate an Auto-Encoder (AE). The network must be able to reconstruct the original image from its features, ensuring no critical information is lost during feature extraction.
- Joint Optimization: The model minimizes a joint loss function consisting of a CMMD Loss (matching predicted and true label distributions), a Reconstruction Loss (ensuring injectivity), and a Confidence Loss for semi-supervised tasks (minimizing entropy on unlabeled data).
Experimental Results
KLN was evaluated on four standard benchmarks: MNIST, SVHN, CIFAR-10, and CIFAR-100. It consistently outperformed previous methods, including the Conditional Generative Moment-Matching Network (CGMMN).
- Supervised Accuracy: KLN achieved 99.61% on MNIST, 98.44% on SVHN, and 94.85% on CIFAR-10, representing a significant improvement over previous distribution-matching baselines.
- Semi-Supervised Performance: On MNIST with only 100 labeled samples, KLN achieved an error rate of 0.89%, outperforming established models like Triple-GAN and Improved-GAN.
Analysis of Kernel Degradation
A key insight of this work is the visualization of kernel failure. Heat map analysis reveals that with fixed kernels, the similarity matrix for samples from different classes can look almost identical to the matrix for samples from the same class.
By forcing an injective mapping through the Auto-Encoder, KLN bridges the gap between deep learning and classical kernel theory, ensuring the learned features maintain the mathematical properties required for effective CMMD estimation.
Conclusion and Future Work
KLN demonstrates that learning data-specific kernels is essential for high-performance image classification using distribution matching. While the inclusion of an Auto-Encoder increases computational costs compared to simpler networks, the gains in accuracy and stability are substantial. Future research directions include applying KLN to domain adaptation tasks and scaling the architecture to larger datasets like ImageNet.
Summary updated