# PaCMAP

> Pairwise Controlled Manifold Approximation - a dimensionality reduction technique that preserves both local and global structure better than UMAP or t-SNE. Particularly effective for visualizing complex embedding spaces.

- **URL:** https://github.com/YingfanWang/PaCMAP
- **Category:** SDKs & Libraries
- **Tags:** dimensionality-reduction, Visualization, Python, algorithms
- **Updated:** 2026-03-20 13:13
- **Canonical page:** https://vectordb.ever.works/pl/items/pacmap-dimensionality-reduction

## Details

## Overview

PaCMAP (Pairwise Controlled Manifold Approximation) is a dimensionality reduction method that preserves local and global structure through careful control of pair selection during optimization.

## Key Innovation

Three types of point pairs:
- **Near pairs**: Preserve local structure
- **Mid-near pairs**: Maintain global structure
- **Further pairs**: Prevent collapse

## Advantages

**Better Structure Preservation**:
- Superior global structure vs. t-SNE
- Better local structure vs. UMAP
- Balanced representation

**Stability**:
- More robust to hyperparameters
- Consistent results
- Less tuning required

**Speed**:
- Competitive with UMAP
- Faster than t-SNE
- Scales well

## Use Cases

- Embedding space visualization
- Quality assessment for vector models
- Cluster analysis
- Anomaly detection
- Interactive exploration

## Comparison

- vs. t-SNE: Better global structure, faster
- vs. UMAP: Better balance, more stable
- vs. PCA: Non-linear, preserves structure

## Availability

Python package: pacmap on PyPI

GitHub: YingfanWang/PaCMAP

---

_This Markdown mirror is generated by Ever Works for AI agents. The canonical HTML page is at https://vectordb.ever.works/pl/items/pacmap-dimensionality-reduction._
