# Deep Metric Learning and Image Classification with Nearest Neighbour Gaussian Kernels

Source: [Deep Metric Learning and Image Classification with Nearest Neighbour Gaussian Kernels](<https://www.sota2.com/research/paper/68fa64871e209131cea053b5>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-28T13:56:36.285Z

Authors: Benjamin J. Meyer, Ben Harwood, Tom Drummond

Published: 2017-05-27T07:34:48.000Z

## Abstract

We present a Gaussian kernel loss function and training algorithm for convolutional neural networks that can be directly applied to both distance metric learning and image classification problems. Our method treats all training features from a deep neural network as Gaussian kernel centres and computes loss by summing the influence of a feature's nearby centres in the feature embedding space. Our approach is made scalable by treating it as an approximate nearest neighbour search problem. We show how to make end-to-end learning feasible, resulting in a well formed embedding space, in which semantically related instances are likely to be located near one another, regardless of whether or not the network was trained on those classes. Our approach outperforms state-of-the-art deep metric learning approaches on embedding learning challenges, as well as conventional softmax classification on several datasets.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/1705.09780>)

[PDF](<https://arxiv.org/pdf/1705.09780.pdf>)
