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

Relational Clustering

Barbara Hammer, Alexander Hasenfuss

TL;DR

This paper introduces "relational" versions of the Neural Gas (NG) clustering algorithm, allowing it to work directly with similarity or dissimilarity matrices instead of requiring data to be embedded in a Euclidean space. This breakthrough enables effective clustering for data where the underlying structure is unknown or inherently non-Euclidean, while retaining the efficiency and convergence guarantees of the original NG.

What Problem Does This Paper Address?

Traditional clustering algorithms, like the Self-Organizing Map (SOM) and Neural Gas (NG), typically operate on data points represented as vectors in a Euclidean space (e.g., points in a 2D or 3D plane). This works well when data naturally fits this structure. However, many real-world datasets, such as those from bioinformatics (DNA sequences, protein families) or social networks, are not easily represented as vectors. Instead, we might only have information about how similar or dissimilar pairs of data points are (a similarity or dissimilarity matrix). Applying standard clustering to such data is problematic because the algorithms rely on vector operations and distance calculations in a Euclidean space. Existing methods to handle this often involve computationally expensive statistical models or restrict prototypes to existing data points, limiting their flexibility. This paper aims to bridge this gap by extending powerful clustering techniques like NG to work directly with these "relational" data structures without needing an explicit Euclidean embedding.

Methods

The core innovation lies in deriving the "relational dual" of the batch optimization for Neural Gas. Instead of directly optimizing prototype locations in a Euclidean space, the algorithm is reformulated to optimize coefficients that represent how prototypes are related to the training data points, using only the provided similarity or dissimilarity matrix.

Here's a breakdown:

  • Relational Dual Formulation: The paper shows that for data where only pairwise distances (dissimilarities) or dot products (similarities) are known, the standard cost functions of NG can be rewritten. This rewriting uses the given matrix directly, avoiding the need to compute or assume an underlying Euclidean embedding.
  • Batch Optimization Transfer: This relational dual formulation allows the efficient batch optimization scheme of NG to be directly applied to relational data. The update rules for prototypes are implicitly handled through updates to these coefficients.
  • Convergence Guarantees: A key finding is that convergence is guaranteed not only for Euclidean distances but also for general symmetric and nonsingular matrices, even if they don't strictly adhere to metric properties. This significantly broadens the applicability of the algorithm.
  • Supervised Extensions: The framework naturally extends to incorporate additional label information, allowing for supervised clustering by modifying the distance calculation to include a weighted combination of data and label similarities.

Datasets

The paper evaluates its proposed methods on several benchmark datasets:

  • Wisconsin Breast Cancer Database (WDBC): A standard dataset for classification tasks, described by 30 real-valued input features. This dataset is embedded in Euclidean space, allowing for a direct comparison between standard and relational NG.
  • Cat Cortex Data Set: This dataset represents connection strengths between cortical areas of cats. It's a symmetric matrix where the triangle inequality does not hold, making it a good test case for non-metric relational data.
  • Protein Data Set: This dataset contains evolutionary distances of globin proteins, derived from sequence alignments. It's used to evaluate clustering performance across different protein families.
  • Copenhagen Chromosomes Database: This benchmark consists of strings representing chromosome profiles. Due to varying string lengths, standard k-means is not directly applicable, making it suitable for testing relational clustering with edit distances.

Key Insights and Ideas

  • Bridging the Gap: The most significant insight is that powerful clustering algorithms like Neural Gas can be generalized to work with abstract similarity/dissimilarity data without needing an explicit, potentially unknown, Euclidean embedding. This opens up clustering to a much wider range of data types.
  • Efficiency of Relational Dual: The relational dual formulation allows for efficient batch optimization, retaining the speed advantages of NG while handling relational data. This is achieved by working with coefficients rather than direct prototype updates in an embedding space.
  • Broad Applicability Beyond Metrics: The convergence guarantee for general symmetric and nonsingular matrices is a crucial theoretical contribution. It suggests that the relational approach is robust and can handle data relationships that go beyond strict metric properties, which is common in real-world scenarios.
  • Unified Framework: The paper demonstrates how the relational framework can seamlessly incorporate supervised information, creating a unified approach for both unsupervised and semi-supervised clustering on relational data.

Key Results

The paper presents experimental results across several datasets, consistently showing the effectiveness of the proposed relational clustering methods:

  • Competitive Accuracy: On the Wisconsin Breast Cancer Database, relational clustering achieved identical accuracy to standard Euclidean NG, as expected. More importantly, relational clustering with supervision significantly improved accuracy (by over 1%) compared to restricted unsupervised median versions.
  • Handling Non-Metric Data: For the Cat Cortex dataset, where the triangle inequality does not hold, relational clustering demonstrated significant improvements (over 10% accuracy) compared to median variants, even without a strict theoretical foundation for non-metric similarity matrices.
  • Robustness: The Chromosomes dataset, using edit distances, showed that supervised relational NG achieved a high accuracy (0.914), improving by 8% over median variants.
  • General Performance: Across various datasets and scenarios (including supervised and unsupervised settings), the relational versions of NG consistently performed as well as or better than their median counterparts, especially when dealing with complex or non-Euclidean data structures.

Limitations and Future Work

  • Computational Complexity: The paper notes that for the presented approach, the complexity scales quadratically with the number of training examples and linearly with the number of prototypes. This can become a bottleneck for very large datasets.
  • Prototype Representation Sparseness: The representation of prototypes involves many small coefficients, which might be inefficient. The authors suggest that future work could focus on restricting this representation to the close neighborhood of data points for efficiency.
  • Theoretical Foundation for Non-Metrics: While the algorithms perform well on non-metric data (like the Cat Cortex dataset), the theoretical convergence guarantees are primarily established for Euclidean distances or metrics. Further theoretical exploration for general non-metric relational data is implied.
  • Magnification Factor Control: The paper mentions that principles like magnification factor control from topographic maps can be transferred to relational data, suggesting this as a direction for future research to enhance visualization capabilities.

Summary updated

BibTeX
@inproceedings{hammer2007relational,
  author = {Barbara Hammer and Alexander Hasenfuss},
  title = {{Relational Clustering}},
  booktitle = {Similarity-based Clustering and its Application to Medicine and Biology},
  year = {2007},
  url = {https://openreview.net/forum?id=yaiRsPtLMH},
}

Loading related content...

Figure