Dimension Reduction with Locally Adjusted Graphs

Yingfan Wang, Yiyang Sun, Haiyang Huang, Cynthia Rudin · DOI

Abstract

Dimension reduction (DR) is a cornerstone of high-dimensional data visualization. However, state-of-the-art methods like t-SNE and UMAP often struggle with "noisy" initial graphs, leading to blurred cluster boundaries. We present LocalMAP (Locally Adjusted Graphs), an algorithm that dynamically refines the neighbor graph during the embedding process. By employing dynamic nearest-neighbor weighting and proximal further-pair resampling, LocalMAP effectively prunes false connections and sharpens cluster edges. Our evaluation across image, text, and large-scale biological datasets demonstrates that LocalMAP consistently achieves superior cluster separation and visual clarity compared to existing methods.

Introduction

The goal of dimension reduction is to project high-dimensional data into a 2D or 3D space while preserving its underlying structure. Most modern DR algorithms follow a two-stage process: constructing a neighbor graph based on high-dimensional distances and then optimizing a low-dimensional embedding using attractive and repulsive forces.

A significant challenge is the "curse of dimensionality," where Euclidean distances can be misleading, leading to "false positive" edges that connect distinct clusters. When algorithms treat these flawed graphs as ground truth, the resulting visualizations often exhibit overlapping blobs rather than distinct groups.

Methods: The LocalMAP Framework

LocalMAP addresses the limitations of static graphs by treating the graph as a flexible hypothesis that is updated during optimization. It introduces two key mechanisms:

  1. Dynamic NN Weighting: LocalMAP monitors the embedding's evolution. If the global structure pushes two "neighbors" apart, the algorithm identifies the initial connection as likely erroneous and reduces its attractive weight.
  2. Proximal Further-Pair (FP) Resampling: Standard methods typically use global random sampling for repulsive forces. LocalMAP instead focuses on "proximal" points—those that are close in the low-dimensional embedding but should not be connected. This targeted repulsion acts to "sculpt" and sharpen cluster boundaries.
Comparison of dimension reduction methods: UMAP, t-SNE, PaCMAP, and LocalMAP.

Experimental Results

LocalMAP was evaluated on a variety of benchmarks, including MNIST, Fashion-MNIST, and massive single-cell transcriptomics datasets (e.g., PBMC 1M).

Quantitative Performance

Quantitatively, LocalMAP consistently outperformed UMAP and t-SNE in terms of Silhouette scores. For example, on the MNIST dataset, LocalMAP achieved a score of 0.58, compared to 0.52 for UMAP and 0.35 for t-SNE. This indicates significantly better cluster density and separation.

Visual Clarity and Scalability

Qualitatively, LocalMAP produces the most distinct cluster separations. While other methods may merge similar classes, LocalMAP maintains clear gaps between groups. Mathematical analysis (Theorem 1) reveals that as datasets scale, the ratio of attractive to repulsive edges between clusters increases—a "ratio problem" that LocalMAP's local repulsion specifically addresses. The algorithm scales effectively to datasets with over one million samples, maintaining boundary sharpness where other methods begin to blur.

LocalMAP embedding showing distinct, well-separated clusters.

Conclusion

LocalMAP provides a robust and scalable solution for high-dimensional data visualization. By allowing the algorithm to refine the data representation during optimization, it overcomes the noise inherent in high-dimensional distance metrics. Future research will explore the integration of these local adjustment principles into parametric neural network models to enable real-time mapping of new data points.

Summary updated

BibTeX
@inproceedings{wang2025dimension,
  author = {Yingfan Wang and Yiyang Sun and Haiyang Huang and Cynthia Rudin},
  title = {{Dimension Reduction with Locally Adjusted Graphs}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i20.35436},
}
Figure