Dimensionality reduction (DR) is inherently a "lossy" process. When squashing high-dimensional data into a 2D or 3D scatterplot, mathematical distortions are inevitable. You either end up with false neighbors (points that look close in the projection but aren't in reality) or missed neighbors (points that are close in reality but get pushed apart in the projection).
Existing DR tools generally fall into two camps, both with significant drawbacks:
- Unsupervised Methods (e.g., t-SNE, UMAP): These prioritize local structure but often mix different classes together, making category-level patterns hard to discern.
- Supervised Methods (e.g., S-UMAP, NCA): These use class labels to force separation. However, they frequently "over-separate," creating artificial gaps between classes that might actually be adjacent or overlapping in the original high-dimensional space. This can mislead researchers into seeing distinct clusters where a continuum actually exists.
To bridge this gap, researchers have introduced ClassNeRV, a supervised DR method that intelligently "steers" unavoidable projection distortions to preserve both local neighborhood structures and class separations.
The ClassNeRV Approach
ClassNeRV is built on the framework of NeRV (Neighborhood Retrieval Visualizer). While standard NeRV uses a trade-off between two Kullback-Leibler (KL) divergences to balance false and missed neighbors, ClassNeRV introduces a more granular, class-aware approach:
- Class-Aware Stress Function: The cost function is split into within-class and between-class relations.
- Bregman Divergences: Because the sub-distributions of neighbors (within vs. between classes) don't sum to 1, standard KL divergence is mathematically invalid. The authors swap it for Bregman divergences, which remain valid for these "sub-probabilities."
- Steering Distortions: By adjusting two parameters—$\tau^*$ (the balance of false vs. missed neighbors) and $\epsilon$ (the level of supervision)—the algorithm "steers" distortions. It works harder to avoid false neighbors between different classes and missed neighbors within the same class.
To evaluate these nuanced embeddings, the paper also introduces two new quality indicators: Between-class Trustworthiness ($T^{\notin}$) and Within-class Continuity ($C^{\in}$), providing a better measure of how well an embedding respects class boundaries.
Experimental Setup
The authors evaluated ClassNeRV against nine state-of-the-art alternatives using three distinct datasets:
- Globe: A 3D toy dataset of a sphere divided into two hemispheres. This is a classic "hard" problem because a sphere cannot be flattened into a plane without tearing or squashing.
- Isolet 5: A real-world dataset of 1,559 spoken letters (617 features). This is challenging because many letters (like 'B', 'D', and 'T') sound similar and naturally overlap in feature space.
- Digits: 3,823 images of handwritten digits (64D), used to test robustness by feeding the algorithm completely random labels.
Key Insights and Results
A core philosophy of ClassNeRV is treating distortions as a resource. Instead of trying to eliminate distortions (which is impossible), ClassNeRV "places" them where they do the least damage to the user's interpretation.
This preserves the "honesty" of the data manifold. For example, while S-UMAP produces very clean, separated clusters, it often destroys the underlying structure. ClassNeRV demonstrates that you can achieve class separation while keeping the global structure intact. Furthermore, when given random labels (noise), ClassNeRV doesn't break the data to force artificial separation; it gracefully reverts to an unsupervised-like state.
Quantitatively, ClassNeRV consistently outperformed competitors in preserving both neighborhood structure (standard Trustworthiness/Continuity) and class-aware structure. On the Globe and Isolet datasets, ClassNeRV achieved higher scores on the new $T^{\notin}$ and $C^{\in}$ metrics compared to NCA, S-UMAP, and ClassiMap. Qualitatively, in the Isolet spoken letter task, ClassNeRV successfully grouped similar vowel sounds adjacent to each other—reflecting their actual phonetic similarity—while other supervised methods either mixed them entirely or forced them into isolated islands.
Limitations and Future Directions
The primary limitation of ClassNeRV is its computational complexity, currently at $O(N^2)$ where $N$ is the number of data points. While tree-based accelerations could theoretically reduce this to $O(N \log N)$, it remains slower than highly optimized implementations of UMAP or t-SNE for massive datasets.
Looking forward, the authors suggest that this "steering" logic could be applied to other popular frameworks, such as t-SNE or Jensen-Shannon Embedding (JSE). Additionally, extending the method to semi-supervised learning—handling datasets where only a small fraction of the data is labeled—presents a promising avenue for future research.
Summary updated