Learning Invariant Representations with Kernel Warping

Yingyi Ma, Vignesh Ganapathiraman, Xinhua ZhangAISTATS 2019

Abstract

Invariance is an effective prior that has been extensively used to bias supervised learning with a given representation of data. In order to learn invariant representations, wavelet and scattering based methods “hard code” invariance over the entire sample space, hence restricted to a limited range of transformations. Kernels based on Haar integration also work only on a group of transformations. In this work, we break this limitation by designing a new representation learning algorithm that incorporates invariances beyond transformation. Our approach, which is based on warping the kernel in a data-dependent fashion, is computationally efficient using random features, and leads to a deep kernel through multiple layers. We apply it to convolutional kernel networks and demonstrate its stability.

Introduction

In machine learning, invariance is the principle that a model's output should remain unchanged when the input undergoes certain "safe" transformations—for instance, a digit remains the same digit even if slightly rotated or scaled. While standard approaches like data augmentation or specialized CNN architectures are common, they often suffer from scalability issues or limited flexibility. This paper introduces kernel warping, a novel framework that embeds custom invariances directly into data representations by deforming the norm of a Reproducing Kernel Hilbert Space (RKHS).

Methodology: Data-Dependent Kernel Warping

The core innovation of this work is the ability to incorporate a broad range of invariances—beyond simple transformation groups—into learned representations efficiently.

  1. Invariance as Linear Functionals: The authors treat desired invariances (e.g., rotation, smoothness) as bounded linear functionals.
  2. Norm Deformation: The original kernel space is "warped" to create a new space where the norm penalizes functions that violate these invariances. This forces the model to prefer "flatter" functions along the directions of the transformations.
  3. Computational Efficiency: To make this approach practical for deep learning, the authors use Finite Approximations (FA), such as Random Fourier Features, to linearize the kernel.
  4. Integration with CKNs: The warping is applied to Convolutional Kernel Networks (CKNs). The resulting "CKNW" (CKN with Warping) handles image-level transformations by warping patch-level kernels, providing a robust alternative to traditional pooling.

Experimental Evaluation

The authors evaluated their approach on six standard image recognition benchmarks: USPS, MNIST, Handwritten letters, EmnistLetter, FashionMNIST, and SVHN.

Shallow Kernel Performance

The experiments first compared warped kernels (FourierW and ProjectionW) against standard kernels and Virtual Sample SVMs (a form of data augmentation). On almost all datasets, the warped versions achieved lower test errors. For example, on MNIST, ProjectionW achieved a 2.45% error compared to 3.16% for the standard version.

Table comparing shallow kernel methods (FourierW, ProjectionW) against baselines like 1-NN and VirSVM across multiple datasets.

Deep Model Performance (CKNW)

When integrated into deep architectures, the warped version (CKNW) consistently outperformed both standard CKNs and traditional CNNs. This improvement was most significant in low-data regimes, where the baked-in invariances act as a powerful regularizer. On the USPS dataset with only 100 training samples, CKNW achieved a 13.04% error, whereas a standard CNN struggled at 18.97%.

Comprehensive comparison of CNN, CKN, and CKNW across various datasets and training sample sizes.

Conclusion

Kernel warping provides a flexible and data-dependent way to enforce invariances in machine learning models. By moving beyond fixed transformation groups and leveraging efficient random feature approximations, the method demonstrates superior performance and data efficiency compared to traditional CNNs and data augmentation techniques. Future research will explore extending this framework to global transformations and optimizing it for end-to-end supervised training.

Summary updated

BibTeX
@inproceedings{ma2019learning,
  author = {Yingyi Ma and Vignesh Ganapathiraman and Xinhua Zhang},
  title = {{Learning Invariant Representations with Kernel Warping}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2019},
  url = {https://openreview.net/forum?id=dxACpywmz5},
}
Figure