NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Stacked Kernel Network

Shuai Zhang, Jianxin Li, Pengtao Xie, Yingchun Zhang, Minglai Shao, Haoyi Zhou, Mengyi YanarXiv 2017

Abstract

Kernel methods and Deep Neural Networks (DNNs) represent two foundational paradigms in machine learning. While kernel methods offer powerful nonlinear representational capabilities through Reproducing Kernel Hilbert Spaces (RKHS), they are traditionally "shallow." Conversely, DNNs excel at learning hierarchical features but are limited by finite-dimensional weight vectors. This paper introduces the Stacked Kernel Network (SKN), a novel architecture that interleaves nonlinear kernel mappings with linear projections across multiple layers. By parameterizing hidden units with functions in an infinite-dimensional RKHS, SKNs achieve superior expressiveness and generalization compared to standard deep architectures and shallow kernel methods.

Introduction

The success of deep learning is largely attributed to its ability to learn multi-level, hierarchical representations of data. However, the basic building blocks of standard DNNs—linear transformations followed by simple activation functions like ReLU—are inherently limited in their local representational power. In contrast, kernel methods implicitly map data into infinite-dimensional feature spaces, allowing for the discovery of complex nonlinear patterns. Historically, these two approaches have been viewed as distinct. The Stacked Kernel Network (SKN) seeks to unify them by building a "deep" kernel method that leverages the strengths of both hierarchical depth and RKHS-based expressiveness.

Problem Statement

Traditional kernel methods, such as Support Vector Machines (SVMs), typically employ a single nonlinear transformation into an RKHS followed by a linear learner. This shallow structure prevents them from capturing the compositional hierarchies found in complex datasets like images or speech. Standard DNNs, while deep, rely on finite-dimensional parameters. The authors address this by asking whether a network can be constructed where each hidden unit is defined by a function in an infinite-dimensional RKHS, thereby increasing the expressive capacity of each individual layer.

The Stacked Kernel Network Architecture

The core innovation of the SKN is the interleaving of two fundamental transformations at each layer:

  1. Nonlinear Mapping: Data is projected from a linear space into a high-dimensional (potentially infinite) RKHS.
  2. Linear Projection: Features from the RKHS are mapped back into a finite-dimensional linear space to maintain computational tractability and allow for subsequent stacking.
Architecture of a Stacked Kernel Network (SKN) showing the interleaving of nonlinear kernel mappings and linear projections.

By stacking these layers, the model learns a "hierarchy of kernels," where deeper layers represent increasingly complex semantic features.

Representation Strategies

To handle the infinite-dimensional nature of RKHS functions, the authors propose three strategies:

  • Nonparametric: Utilizes the Representer Theorem, representing functions as linear combinations of kernel evaluations on training samples.
  • Parametric: Restricts the function space to a subset of the RKHS, such as using a fixed set of Radial Basis Function (RBF) centers.
  • Random Fourier Features (RFF): Approximates the kernel mapping using a finite set of random features, enabling training via standard backpropagation.

Stacked Kernel Convolutional Networks (SKCN)

The SKN framework extends naturally to computer vision through the Stacked Kernel Convolutional Network (SKCN). In this architecture, standard convolutional filters are replaced with RKHS-based filters. Instead of a simple dot product with a weight matrix, the local image patch undergoes a kernel transformation before being projected into the next layer's feature space.

Comparison between standard nonlinear/linear mapping (a) and the proposed RKHS function mapping (b) in a convolutional layer.

Experimental Results

The researchers evaluated SKN and SKCN across several benchmarks, including MNIST, CIFAR-10, and ImageNet-10.

  • Expressiveness: A key finding was that SKNs are less sensitive to the number of hidden units ($K$) than standard DNNs. The inherent expressiveness of RKHS functions allows SKNs to achieve high performance with fewer units.
  • Performance: On the Vowel dataset, a parametric SKN achieved 65.43% accuracy, significantly higher than the 61.75% achieved by a standard DNN.
  • Computer Vision: The RFF-based SKCN reached 79.06% accuracy on CIFAR-10, outperforming a baseline CNN (74.79%). This suggests that RKHS-based filters provide better generalization than standard finite-dimensional filters.

Conclusion and Future Work

Stacked Kernel Networks successfully marry the hierarchical depth of neural networks with the mathematical rigor and representational power of kernel methods. While the RFF-based approach introduces some computational overhead—roughly doubling the iteration time compared to standard CNNs—the gains in accuracy and generalization are substantial. Future research may focus on optimizing the sampling process for random features or exploring diverse kernel types within the stacked architecture to further enhance performance and scalability.

Summary updated

BibTeX
@misc{zhang2017stacked,
  author = {Shuai Zhang and Jianxin Li and Pengtao Xie and Yingchun Zhang and Minglai Shao and Haoyi Zhou and Mengyi Yan},
  title = {{Stacked Kernel Network}},
  year = {2017},
  eprint = {1711.09219},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.09219},
}
Figure