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

Classification using non-standard metrics

Barbara Hammer, Thomas VillmannESANN 2005

Abstract

In classical machine learning, the choice of a distance metric is often treated as a secondary preprocessing step. However, for complex data structures and high-dimensional spaces, the standard Euclidean distance frequently fails to capture the underlying data geometry. This paper, originally presented at the ESANN 2005 proceedings, provides a comprehensive review and taxonomy of non-standard similarity functions. By focusing on similarity-based models like Self-Organizing Maps (SOM) and Learning Vector Quantization (LVQ), the authors demonstrate how adapting the metric to the data—rather than forcing the data into a rigid Euclidean framework—can significantly enhance classification performance and model interpretability.

Introduction

Most machine learning algorithms rely on a notion of "similarity" to function. Whether clustering data points or classifying new instances, the model must determine how close one point is to another. While Euclidean distance is the default choice, it assumes a flat, multi-dimensional space where every feature is equally relevant. In real-world applications, such as analyzing DNA sequences or social graphs, this assumption is often invalid. This paper addresses two primary challenges: handling complex, non-vectorial data structures and managing feature relevance in the presence of noise.

A Taxonomy of Metrics

The authors categorize the landscape of similarity measures into three distinct pillars based on the nature of the data:

1. Discrete and Real Vectors

For standard vectorial data, the paper discusses moving beyond simple norms to Minkowski norms or Mahalanobis distances. These metrics allow the model to account for correlations between features, effectively "stretching" the space to accommodate the data's distribution.

2. Manifolds and Curved Spaces

When data resides on a curved surface rather than a flat plane, linear distances become misleading. The review highlights the use of Riemannian metrics and geodesic distances—such as those employed in ISOMAP—to track the true distance along the data manifold.

3. Sequences and Graphs

For structured data like protein sequences or chemical molecules, the paper explores edit distances and alignment-based kernels. A key highlight is the discussion of Fisher kernels, which derive a metric from a statistical generative model (like a Hidden Markov Model), bridging the gap between generative and discriminative learning.

Metric Adaptation and Relevance Learning

One of the paper's most significant contributions is the synthesis of "Metric Adaptation." Rather than requiring a human expert to manually select the perfect distance formula, modern approaches allow the algorithm to learn the metric parameters during training.

In Relevance Learning (e.g., Generalized Learning Vector Quantization or GRLVQ), the model assigns a weighting factor to each dimension. During the optimization process, the algorithm automatically increases the weight of discriminative features and shrinks the influence of noisy or irrelevant ones. This process acts as a form of large-margin optimization, improving the model's ability to generalize to unseen data.

Applications and Insights

The review references a broad spectrum of successful applications for these techniques:

  • Bioinformatics: Using sequence homology and microarray profiles to identify protein functions.
  • Natural Language Processing (NLP): Applying tree-structured metrics to parse text.
  • Web Mining: Clustering user behavior based on log files and navigation patterns.
  • Signal Processing: Analyzing speech patterns and neural spike sequences.

From these applications, a core insight emerges: The metric is the model. The choice of similarity function defines the complexity the model can capture. A sophisticated, well-tuned metric allows for a "sparse" model—one that requires fewer prototypes or parameters because the metric itself handles the non-linearities of the decision boundaries.

Conclusion and Future Directions

The paper concludes that classification success is a product of the "triple": the model architecture, the data type, and the metric choice. While relevance learning has made significant strides in automating this process, the authors acknowledge that computational costs remain a hurdle, particularly for recursive metrics and graph edit distances.

Future research is directed toward more robust frameworks for learning the form of the metric itself, rather than just tuning weights within a fixed formula. The authors suggest that information-theoretic measures will be essential in developing next-generation algorithms that can autonomously navigate the complexities of real-world data manifolds.

Summary updated

BibTeX
@inproceedings{hammer2005classification,
  author = {Barbara Hammer and Thomas Villmann},
  title = {{Classification using non-standard metrics}},
  booktitle = {ESANN},
  year = {2005},
  url = {https://openreview.net/forum?id=3Tu0OUKpWa},
}
Figure