Kernelized Synaptic Weight Matrices

Lorenz K. Müller, Julien N. P. Martel, Giacomo IndiveriICML 2018

Introduction

Standard neural networks are notoriously "over-parameterized." They often rely on far more free parameters (weights) than are strictly necessary to solve a given task. This over-parameterization leads to two major issues: a propensity for overfitting, where networks memorize training data rather than learning generalizable patterns, and a lack of interpretability. A traditional weight matrix is simply a grid of numbers; it does not inherently represent the structural relationships between input and output neurons.

To address these challenges, researchers have introduced KernelNets, a novel neural network architecture where standard weight matrices are replaced by kernel interactions between low-dimensional vectors. By reparameterizing weights as a function of "locations" in a latent space, this approach achieves significant model compression, structural regularization, and state-of-the-art performance in collaborative filtering.

The KernelNet Architecture

The core innovation of this paper is the Kernelized Synaptic Weight Matrix. Instead of learning a standard $m \times n$ matrix $W$, the network assigns a low-dimensional vector (a "location") $u_i$ to each input neuron and $v_j$ to each output neuron. The synaptic weight between them is then calculated using a kernel function:

$$W_{ij} = \alpha_i K(u_i, v_j)$$

Comparison of a conventional weight matrix and a reparameterized KernelNet matrix, alongside a 3D visualization of the kernel interactions in latent space.

This reparameterization yields several unique properties:

  • The Kernel Trick for Weights: By utilizing kernels like the Radial Basis Function (RBF), the network effectively operates in a high-dimensional feature space while only storing a few low-dimensional parameters.
  • Parameter Efficiency: The number of parameters drops dramatically from $O(m \cdot n)$ to $O(d \cdot (m + n))$, where $d$ is the small dimensionality of the latent space.
  • Structural Regularization: The choice of kernel imposes a specific "geometry" on the neural connections, forcing the weight matrix to be smooth or sparse.
  • Virtual Layers: Mathematically, this kernelized interaction is equivalent to inserting a "virtual" hidden layer between the input and output. The width of this virtual layer is determined by the kernel's embedding space.
Standard neural network layer versus the KernelNet architecture, illustrating the mathematical equivalence to a virtual hidden layer.

Key Insights and Applications

KernelNets treat the weight matrix as a continuous kernel function sampled at specific locations, rather than a grid of discrete, independent values. Interestingly, standard low-rank matrix factorization emerges as merely a special case of a KernelNet that uses a basic linear (dot-product) kernel. Moving to RBF or polynomial kernels allows for much more complex, non-linear weight structures.

This continuous view allows researchers to "bake in" prior geometric knowledge. For instance, in image processing tasks, the "locations" of neurons can be fixed to match their actual 2D pixel coordinates. This forces the network to learn filters that respect the spatial layout of the image, functioning similarly to a convolution but with greater flexibility.

Furthermore, KernelNets enable extensible data visualization. Unlike algorithms like t-SNE, which require re-running the entire optimization process for new data points, a KernelNet learns a mapping. Once trained, new data points can be passed through the network to instantly find their "center of mass" in the latent 2D space.

Empirical Results

The authors validated KernelNets across several domains, demonstrating notable improvements in both efficiency and accuracy:

  • Recommender Systems: On the MovieLens 10M dataset, the "Sparse FC" variant of the KernelNet achieved a state-of-the-art RMSE of 0.769, outperforming several complex baselines like I-AutoRec and CF-NADE.
  • Massive Compression: In collaborative filtering tasks, the KernelNet reduced the number of parameters by nearly 90% (from ~6M to ~0.7M) while maintaining or even improving predictive accuracy.
  • Computational Efficiency: The sparse version of the model reduced the number of Multiply-Accumulate operations (MACs) by approximately 30% compared to standard AutoRec models.
  • Image Classification: On the MNIST dataset, incorporating prior knowledge of pixel locations improved classification accuracy from 98.89% to 99.03% for a non-convolutional architecture.

Limitations and Future Directions

While highly effective, the approach has limitations. Higher-order kernels (like RBF), though more memory-efficient, can sometimes be harder to optimize than simple dot-product kernels as dimensionality increases. Additionally, there is currently no universal rule for selecting the optimal kernel for a given task; it requires empirical testing. Finally, while the paper successfully demonstrates the technique on individual layers and as additions to ResNets, the implications and training dynamics of a fully "Deep KernelNet"—where every layer is kernelized—remain an exciting subject for future exploration.

Summary updated

BibTeX
@inproceedings{muller2018kernelized,
  author = {Lorenz K. Müller and Julien N. P. Martel and Giacomo Indiveri},
  title = {{Kernelized Synaptic Weight Matrices}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=Hk-40cbdWH},
}
Figure