Discriminative Learning of Similarity and Group Equivariant Representations

Shubhendu TrivediarXiv 2018 · OpenReview

TL;DR

This dissertation tackles the fundamental problem of learning how to compare data points effectively in machine learning. It introduces novel methods for learning similarity-aware distance metrics that directly optimize for k-NN performance, develops efficient techniques for estimating metrics from gradients, and proposes group-equivariant neural networks for learning representations that respect data symmetries.

What Problem Does This Paper Address?

At its core, machine learning often involves comparing data points to understand their similarity or dissimilarity. This is crucial for tasks like classification, clustering, and recommendation systems. However, standard distance metrics (like Euclidean distance) often fail to capture the nuances of specific datasets and tasks, leading to suboptimal performance. Metric learning aims to address this by learning task-specific distance functions. A related challenge is learning rich, discriminative representations of data that can then be used with these learned metrics. Furthermore, when computational resources are limited, learning complex metrics can be infeasible, necessitating efficient estimation methods. Finally, for data with inherent symmetries (like images or 3D shapes), learning representations that respect these symmetries (group equivariance) is crucial for robustness and efficiency. This dissertation tackles these interconnected problems across three main parts: learning discriminative metrics, efficiently estimating metrics, and learning group-equivariant representations.

Methods

The dissertation presents several key methodological contributions:

  • Discriminative Metric Learning (Part I):
    • A novel formulation for metric learning that directly optimizes for k-NN accuracy by casting the problem as a large-margin structured prediction problem with discrete latent variables representing the choice of k neighbors.
  • Extensions to asymmetric similarity learning, discriminative learning of Hamming distance, and metric learning for k-NN regression.
  • Metric Estimation via Gradients (Part II):
    • A computationally inexpensive approach for estimating a metric using only gradient estimates of an unknown function. This method relies on the Expected Gradient Outer Product (EGOP) for regression/binary classification and the Expected Jacobian Outer Product (EJOP) for multi-class problems.
  • These estimators are shown to be statistically consistent under mild assumptions and improve performance in non-parametric tasks.
  • Group Equivariant Representation Learning (Part III):
    • A SO(3)-equivariant neural network architecture for spherical data that operates entirely in Fourier space, leveraging tensor products and Clebsch-Gordan decomposition for covariant non-linearities.
  • This work provides a general formalism for designing fully Fourier neural networks equivariant to any continuous compact group.

Datasets

The paper evaluates its methods on a variety of standard datasets:

  • Part I (Metric Learning): Isolet, USPS, Letters, DSLR, Amazon, Webcam, Caltech (for k-NN classification and regression experiments). Puma datasets were also used for regression experiments.
  • Part II (Metric Estimation): Ailerons, TeleComm, Wine (for regression experiments), Musk, Gamma, IJCNN (for classification experiments), and synthetic datasets.
  • Part III (Group Equivariant Representations): Rotated MNIST on the Sphere, QM7 dataset (for atomization energy prediction), and SHREC17 dataset (for 3D shape recognition).

Key Insights and Ideas

  • Directly optimizing for k-NN accuracy is more effective: By framing metric learning as a structured prediction problem, the dissertation shows that directly targeting k-NN performance leads to better results than indirect optimization objectives.
  • Gradient information can efficiently estimate metrics: The work demonstrates that even simple gradient estimates can be used to derive powerful metric estimators (EGOP/EJOP) that are computationally inexpensive and improve performance.
  • Symmetry is a powerful inductive bias: Group equivariant neural networks, particularly those operating in Fourier space, can learn representations that are inherently robust to transformations (like rotations), leading to improved performance and efficiency.
  • Fourier space operations simplify equivariance: Performing computations in Fourier space for spherical data naturally handles rotations, avoiding costly real-space transformations and potential loss of equivariance.
  • Asymmetry can be beneficial: In similarity computation, using different transformations for query and database points (asymmetric similarity) can lead to representational advantages.

Key Results

  • Part I: The proposed metric learning methods achieved competitive or superior performance compared to existing state-of-the-art methods on various datasets for k-NN classification and regression.
  • Part II: The gradient-based metric estimators (EGOP/EJOP) provided significant improvements in non-parametric regression and classification tasks, often outperforming baselines and even some metric learning methods, while being computationally efficient.
  • Part III: The SO(3)-equivariant spherical CNN achieved strong experimental results, comparable to or better than existing methods on Rotated MNIST, atomization energy prediction, and 3D shape recognition tasks, demonstrating the effectiveness of Fourier-space operations and covariant non-linearities.

Limitations and Future Work

  • Scalability of Part I: The exact inference procedures in Part I can be computationally expensive for very large datasets. Future work could explore approximate inference or mini-batch strategies.
  • Approximate Inference for Regression: The inference procedures for k-NN regression in Part I were found to be intractable, necessitating modifications. Exploring approximation algorithms for these intractable formulations is a future direction.
  • Deep Neural Networks for Mapping: Extending the metric learning framework to use deep neural networks for learning the data transformations (mapping) is suggested as a natural next step.
  • Label-Aware Dimensionality Reduction: The EGOP and EJOP's ability to recover relevant subspaces could be further explored for label-aware dimensionality reduction, going beyond PCA's label-agnostic approach.
  • Local Geometry in Operators: Developing operators that incorporate local geometry, analogous to diffusion-based methods, for EGOP/EJOP is an interesting avenue.
  • Learning Symmetry Groups: A challenging future direction is to learn the symmetry group itself, rather than assuming prior knowledge of symmetries.
  • Covariant Recurrent Networks: Exploring covariant neural architectures for recurrent networks and general dynamical systems is another promising area.
  • Efficiency of Spherical CNNs: While powerful, the proposed spherical CNN architecture can be computationally intensive. Enforcing locality of filters is suggested to improve efficiency.

Summary updated

Abstract

One of the most fundamental problems in machine learning is to compare examples: Given a pair of objects we want to return a value which indicates degree of (dis)similarity. Similarity is often task specific, and pre-defined distances can perform poorly, leading to work in metric learning. However, being able to learn a similarity-sensitive distance function also presupposes access to a rich, discriminative representation for the objects at hand. In this dissertation we present contributions towards both ends. In the first part of the thesis, assuming good representations for the data, we present a formulation for metric learning that makes a more direct attempt to optimize for the k-NN accuracy as compared to prior work. We also present extensions of this formulation to metric learning for kNN regression, asymmetric similarity learning and discriminative learning of Hamming distance. In the second part, we consider a situation where we are on a limited computational budget i.e. optimizing over a space of possible metrics would be infeasible, but access to a label aware distance metric is still desirable. We present a simple, and computationally inexpensive approach for estimating a well motivated metric that relies only on gradient estimates, discussing theoretical and experimental results. In the final part, we address representational issues, considering group equivariant convolutional neural networks (GCNNs). Equivariance to symmetry transformations is explicitly encoded in GCNNs; a classical CNN being the simplest example. In particular, we present a SO(3)-equivariant neural network architecture for spherical data, that operates entirely in Fourier space, while also providing a formalism for the design of fully Fourier neural networks that are equivariant to the action of any continuous compact group.
BibTeX
@misc{trivedi2018discriminative,
  author = {Shubhendu Trivedi},
  title = {{Discriminative Learning of Similarity and Group Equivariant Representations}},
  year = {2018},
  eprint = {1808.10078},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1808.10078},
}

Loading related content...

Figure