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

Magnification Control in Relational Neural Gas

Alexander Hasenfuss, Barbara Hammer, Tina Geweniger, Thomas VillmannESANN 2008

Introduction

Prototype-based clustering algorithms, such as Neural Gas (NG) and Self-Organizing Maps (SOM), aim to represent large datasets using a compact set of prototypes. A critical aspect of these representations is "magnification"—the relationship between prototype density and data density. While standard algorithms follow a fixed power law, achieving an information-theoretically optimal representation often requires precise control over this magnification.

This challenge is particularly acute for non-vectorial data, such as DNA sequences, graphs, or time series. In these cases, data is defined by a dissimilarity matrix rather than Euclidean coordinates. This paper introduces a method to control magnification within Relational Neural Gas (RNG), allowing researchers to adjust the focus of the map to emphasize either dense clusters or rare outliers.

Methods

The proposed approach extends the RNG algorithm, which operates solely on pairwise distances. The key innovation is the integration of a localized learning rate into the batch update rule. By introducing a control parameter $m$ and a local density estimate $P(v)$, the update rule for prototype coefficients $\alpha_{ij}$ is modified by the factor $P(v_j)^m$.

This parameter $m$ serves as a "tuning knob" for magnification. When $m > 1$, the map focuses on dense regions; when $m < 1$, it emphasizes sparse regions. The authors provide a mathematical proof of convergence for this modified algorithm on any nonsingular symmetric dissimilarity matrix, ensuring robustness even for non-metric data that violates the triangle inequality.

Experimental Evaluation

The method was evaluated across five diverse datasets:

  1. Euclidean Benchmark: Synthetic distributions to verify theoretical optima.
  2. Protein Dataset: 226 globin proteins compared via evolutionary distance.
  3. Chicken Pieces Silhouettes: 446 silhouettes compared using rotation-invariant edit distance.
  4. Chromosome Images: 4200 profiles compared via string matching.
  5. Cat Cortex Dataset: A non-metric dataset of connection strengths between 65 cortical areas.

Results and Discussion

Entropy Maximization and Optimal Representation

In Euclidean spaces, information theory predicts a specific value of $m$ that maximizes map entropy, where each prototype carries an equal amount of information. Experimental results on the Euclidean benchmark confirmed that map entropy peaks exactly where theory predicts (e.g., $m=1$ for 2D data).

Entropy maximization as a function of the magnification parameter $m$ for different intrinsic dimensions $d$.

This smooth control of entropy was observed across all datasets, including the non-metric Cat Cortex data, suggesting the method's stability in real-world applications.

Rare Event Detection

A practical benefit of magnification control is the ability to detect rare events in imbalanced datasets. In the Protein dataset, the authors demonstrated that decreasing $m$ significantly increases the True Positive Rate for rare protein classes. This confirms that "zooming in" on sparse regions can directly improve classification performance for underrepresented data.

True Positive Rate for various classes in the Protein dataset, showing improved detection of rare classes at lower $m$ values.

Conclusion

This work provides a robust framework for magnification control in relational data. By adjusting a single parameter, users can achieve information-theoretically optimal maps or prioritize the detection of outliers. While the exact theoretical law for prototype density in non-Euclidean spaces remains an open question, the empirical success of this localized learning scheme offers a powerful tool for analyzing complex, non-vectorial datasets.

Summary updated

BibTeX
@inproceedings{hasenfuss2008magnification,
  author = {Alexander Hasenfuss and Barbara Hammer and Tina Geweniger and Thomas Villmann},
  title = {{Magnification Control in Relational Neural Gas}},
  booktitle = {ESANN},
  year = {2008},
  url = {https://openreview.net/forum?id=0UonjO4i3ob},
}
Figure