Genetic Programming for Manifold Learning: Preserving Local Topology

Andrew Lensen, Bing Xue, Mengjie Zhang

Abstract

Manifold learning methods are an invaluable tool in today's world of increasingly huge datasets. Manifold learning algorithms can discover a much lower-dimensional representation (embedding) of a high-dimensional dataset through non-linear transformations that preserve the most important structure of the original data. State-of-the-art manifold learning methods directly optimise an embedding without mapping between the original space and the discovered embedded space. This makes interpretability - a key requirement in exploratory data analysis - nearly impossible. Recently, genetic programming has emerged as a very promising approach to manifold learning by evolving functional mappings from the original space to an embedding. However, genetic programming-based manifold learning has struggled to match the performance of other approaches. In this work, we propose a new approach to using genetic programming for manifold learning, which preserves local topology. This is expected to significantly improve performance on tasks where local neighbourhood structure (topology) is paramount. We compare our proposed approach with various baseline manifold learning methods and find that it often outperforms other methods, including a clear improvement over previous genetic programming approaches. These results are particularly promising, given the potential interpretability and reusability of the evolved mappings.

Introduction

Manifold Learning (MaL) is essential for interpreting high-dimensional datasets by finding lower-dimensional representations that preserve critical data structures. While state-of-the-art methods like t-SNE and UMAP are highly effective, they are "explicit" or "point-based" methods. They optimize the coordinates of data points directly, creating a "black box" embedding that lacks a functional mapping from the original feature space. This makes it difficult to interpret the transformation or apply it to new data points without re-running the optimization.

Genetic Programming (GP) offers an "implicit" alternative by evolving mathematical functions (trees) that map input features to an embedding. However, previous GP-based MaL approaches have struggled to match the performance of explicit methods, often because their fitness functions prioritized global geometry at the expense of local neighborhood structures—the "local topology."

The GP-MaL-LT Approach

To address these limitations, we introduce GP-MaL-LT (Genetic Programming for Manifold Learning - Local Topology). This method shifts the focus of the evolutionary process toward preserving the relationships between immediate neighbors.

Key Innovations

  1. Multi-tree Representation: Each individual in the GP population consists of $d$ trees, where each tree evolves a mapping for one dimension of the target low-dimensional space.
  2. Ranking-Based Fitness: Instead of minimizing Euclidean distance errors, which can be misleading in high dimensions, the fitness function evaluates how well the rank of neighbors is preserved. It penalizes "missing" neighbors (points that should be close but are mapped far away) more heavily than simple misordering.
  3. Weighted Local Importance: The cost function prioritizes the preservation of the closest neighbors in the original space, ensuring that local clusters remain distinct and cohesive.
  4. Computational Efficiency: To make the $O(n^2)$ neighbor calculation feasible for large datasets, we employ Hierarchical Navigable Small World (HNSW) graphs as a surrogate model, reducing complexity to $O(n \log n)$.

Experimental Evaluation

We evaluated GP-MaL-LT on 12 diverse classification datasets, ranging from low-dimensional (e.g., Image Segmentation with 19 features) to very high-dimensional (e.g., Ovarian Cancer with over 15,000 features). Performance was measured by the accuracy of a Random Forest classifier trained on the resulting embeddings.

Figure 1: Mean test accuracy across 12 benchmark datasets. The proposed GP-MaL-LT (red solid line) consistently outperforms the baseline GP-MaL approach (blue dashed line) as the number of trees in the evaluation classifier increases.

Key Results and Insights

Our results demonstrate that prioritizing local topology is a superior strategy for manifold learning in classification tasks.

Superiority over Previous GP Methods

As shown in Figure 1, GP-MaL-LT significantly outperformed the original GP-MaL approach across all 12 benchmark datasets. This improvement was statistically significant ($\alpha=0.01$), confirming that local structure preservation is key to generating high-quality embeddings for downstream classification.

Comparison with State-of-the-Art

GP-MaL-LT is not only better than previous GP methods but also highly competitive with traditional and modern dimensionality reduction techniques like PCA, LLE, and UMAP.

Figure 2: Comparison of GP-MaL-LT with standard manifold learning methods across three representative datasets. GP-MaL-LT (red) often matches or exceeds the performance of UMAP (blue) and LLE (cyan), particularly as the number of embedding dimensions increases.

Interpretability and Feature Selection

One of the most significant advantages of the GP approach is the interpretability of the evolved models. GP-MaL-LT produced mappings that were significantly smaller—using fewer than 40% of the features and nodes—compared to standard GP-MaL. In the "Madelon" dataset, which contains 495 noise features and only 5 useful ones, GP-MaL-LT successfully identified the relevant features, whereas many explicit methods were misled by the noise.

Conclusion

GP-MaL-LT bridges the gap between the interpretability of symbolic methods and the performance of state-of-the-art manifold learning. By focusing on local topology, it produces compact, reusable, and highly accurate dimensionality reduction models. Future work will explore balancing local and global preservation through multi-objective optimization and improving scalability for datasets with even higher feature counts.

Summary updated

BibTeX
@inproceedings{lensen2021genetic,
  author = {Andrew Lensen and Bing Xue and Mengjie Zhang},
  title = {{Genetic Programming for Manifold Learning: Preserving Local Topology}},
  booktitle = {Figshare},
  year = {2021},
  url = {https://openreview.net/forum?id=YA8tvRZZCF},
}
Figure