Papers
Topics
Authors
Recent
Search
2000 character limit reached

Topological Prototype Selector (TPS)

Updated 10 November 2025
  • TPS is a topological data analysis framework that uses persistent homology and bifiltration to extract representative prototypes from large datasets.
  • It combines neighbor filtration for capturing class boundary features with radius filtration for intra-class refinement to ensure high classification fidelity.
  • Empirical results show TPS significantly reduces data volume while boosting or maintaining accuracy across synthetic and real-world benchmarks.

The Topological Prototype Selector (TPS) constitutes a topological data analysis (TDA)-based framework for representative subset selection (prototype selection) from large datasets. TPS exploits persistent homology to identify data points that best capture both the intra-class topological “shape” and boundary-region separation between classes. By combining neighbor-based and radius-based filtrations in a bifiltration approach, TPS rigorously selects boundary-informative prototypes, tunable through geometric regularization parameters, and achieves substantial data reduction while preserving—often improving—classification accuracy across simulated and real-world tasks.

1. Prototype Selection and Topological Motivation

Given a labeled dataset X={(xi,yi)}i=1n\mathcal{X} = \{(x_i, y_i)\}_{i=1}^n, the principal challenge of prototype selection is to identify the smallest subset SX\mathcal{S} \subset \mathcal{X} such that the classifier accuracy Acc(fS,Val)\mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}}) on validation data matches or exceeds full-data performance. Formally,

minSXSsubject toAcc(fS,Val)Acc(fX,Val)\min_{\mathcal{S} \subset \mathcal{X}} |\mathcal{S}| \quad \text{subject to} \quad \mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}}) \approx \mathrm{Acc}(f_{\mathcal{X},\mathrm{Val}})

Traditional distance-based heuristics (e.g., CNN, ENN), clustering (K-Means), or optimization (set cover) retain excessive internal or noisy points and are sensitive to instance order, lacking multiscale geometric robustness. TPS addresses these issues using TDA, leveraging persistent homology—a method robust to noise and high-dimensional structure—to quantify and extract the significant topological features at multiple scales, especially at class boundaries.

2. Mathematical Foundations of TPS

TPS operates on the data space XX\mathcal{X} \subset X, a metric space (X,d)(X, d). The approach constructs TDA objects, beginning with simplicial complexes:

  • A qq-simplex σ\sigma is defined as the convex hull of q+1q+1 affinely independent points.
  • A simplicial complex K\mathcal{K} is a finite set of simplices closed under faces/intersections.

The Vietoris–Rips complex at scale SX\mathcal{S} \subset \mathcal{X}0,

SX\mathcal{S} \subset \mathcal{X}1

contains all simplices whose vertices are pairwise within SX\mathcal{S} \subset \mathcal{X}2. A filtration is a nested sequence of such complexes over increasing radii: SX\mathcal{S} \subset \mathcal{X}3 Persistent homology computes the birth and death (SX\mathcal{S} \subset \mathcal{X}4, SX\mathcal{S} \subset \mathcal{X}5) of SX\mathcal{S} \subset \mathcal{X}6-dimensional features (connected components, loops, voids), visualized in persistence diagrams SX\mathcal{S} \subset \mathcal{X}7.

The TPS central mechanism is bifiltration—using two parameters:

  • Neighbor filtration (inter-class proximity, SX\mathcal{S} \subset \mathcal{X}8-axis)
  • Radius filtration (intra-class connectivity, SX\mathcal{S} \subset \mathcal{X}9-axis)

A bifiltration Acc(fS,Val)\mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}})0 satisfies Acc(fS,Val)\mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}})1 whenever Acc(fS,Val)\mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}})2, Acc(fS,Val)\mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}})3. For a feature interval Acc(fS,Val)\mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}})4, its lifetime is Acc(fS,Val)\mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}})5.

3. Topological Prototype Selector Algorithm

TPS consists of two successive filtrations per class, formalized as follows:

3.1 Neighbor Filtration (Inter-Class)

  1. Partition Acc(fS,Val)\mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}})6 into target class Acc(fS,Val)\mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}})7 and non-target Acc(fS,Val)\mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}})8.
  2. For Acc(fS,Val)\mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}})9, compute sum of minSXSsubject toAcc(fS,Val)Acc(fX,Val)\min_{\mathcal{S} \subset \mathcal{X}} |\mathcal{S}| \quad \text{subject to} \quad \mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}}) \approx \mathrm{Acc}(f_{\mathcal{X},\mathrm{Val}})0 nearest neighbor distances in minSXSsubject toAcc(fS,Val)Acc(fX,Val)\min_{\mathcal{S} \subset \mathcal{X}} |\mathcal{S}| \quad \text{subject to} \quad \mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}}) \approx \mathrm{Acc}(f_{\mathcal{X},\mathrm{Val}})1,

minSXSsubject toAcc(fS,Val)Acc(fX,Val)\min_{\mathcal{S} \subset \mathcal{X}} |\mathcal{S}| \quad \text{subject to} \quad \mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}}) \approx \mathrm{Acc}(f_{\mathcal{X},\mathrm{Val}})2

  1. Construct a weighted Rips complex with edge minSXSsubject toAcc(fS,Val)Acc(fX,Val)\min_{\mathcal{S} \subset \mathcal{X}} |\mathcal{S}| \quad \text{subject to} \quad \mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}}) \approx \mathrm{Acc}(f_{\mathcal{X},\mathrm{Val}})3 at minSXSsubject toAcc(fS,Val)Acc(fX,Val)\min_{\mathcal{S} \subset \mathcal{X}} |\mathcal{S}| \quad \text{subject to} \quad \mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}}) \approx \mathrm{Acc}(f_{\mathcal{X},\mathrm{Val}})4.
  2. Compute minSXSsubject toAcc(fS,Val)Acc(fX,Val)\min_{\mathcal{S} \subset \mathcal{X}} |\mathcal{S}| \quad \text{subject to} \quad \mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}}) \approx \mathrm{Acc}(f_{\mathcal{X},\mathrm{Val}})5- and minSXSsubject toAcc(fS,Val)Acc(fX,Val)\min_{\mathcal{S} \subset \mathcal{X}} |\mathcal{S}| \quad \text{subject to} \quad \mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}}) \approx \mathrm{Acc}(f_{\mathcal{X},\mathrm{Val}})6-dimensional persistence (minSXSsubject toAcc(fS,Val)Acc(fX,Val)\min_{\mathcal{S} \subset \mathcal{X}} |\mathcal{S}| \quad \text{subject to} \quad \mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}}) \approx \mathrm{Acc}(f_{\mathcal{X},\mathrm{Val}})7); extract lifetimes minSXSsubject toAcc(fS,Val)Acc(fX,Val)\min_{\mathcal{S} \subset \mathcal{X}} |\mathcal{S}| \quad \text{subject to} \quad \mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}}) \approx \mathrm{Acc}(f_{\mathcal{X},\mathrm{Val}})8.
  3. Remove lifetimes minSXSsubject toAcc(fS,Val)Acc(fX,Val)\min_{\mathcal{S} \subset \mathcal{X}} |\mathcal{S}| \quad \text{subject to} \quad \mathrm{Acc}(f_{\mathcal{S},\mathrm{Val}}) \approx \mathrm{Acc}(f_{\mathcal{X},\mathrm{Val}})9 (geometric regularization).
  4. Choose quantile lifetime XX\mathcal{X} \subset X0.
  5. Select slice index XX\mathcal{X} \subset X1 nearest to XX\mathcal{X} \subset X2.
  6. Extract vertices XX\mathcal{X} \subset X3 at scale XX\mathcal{X} \subset X4.

3.2 Radius Filtration (Intra-Class)

  1. Restrict to XX\mathcal{X} \subset X5.
  2. For XX\mathcal{X} \subset X6, compute same-class radii,

XX\mathcal{X} \subset X7

  1. Build Rips complex with edge XX\mathcal{X} \subset X8 at XX\mathcal{X} \subset X9.
  2. Compute persistence (X,d)(X, d)0; extract lifetimes (X,d)(X, d)1.
  3. Filter using (X,d)(X, d)2.
  4. Set (X,d)(X, d)3.
  5. Select slice (X,d)(X, d)4 closest to (X,d)(X, d)5.
  6. Collect vertices (X,d)(X, d)6 as prototypes for (X,d)(X, d)7.

TPS implicitly solves

(X,d)(X, d)8

Parallelization is achieved since the class selection loop is independent.

Algorithm Overview

Phase Operation Output
Neighbor filt Rips + persistence (X,d)(X, d)9 (boundary)
Radius filt Rips + persistence qq0 (prototypes)

4. Theoretical Guarantees and Computational Complexity

4.1 Complexity Analysis

With qq1, constructing Rips up to maximum dimension qq2 incurs qq3 cost. Persistent homology (Ripser) practically executes in qq4 to qq5. TPS’s two computations per class yield total complexity

qq6

Parameter qq7 greatly influences combinatorial cost.

4.2 Stability

By the stability theorem for persistent homology, minor metric perturbations yield proportional changes in persistence diagrams, ensuring that the prototype set adapts smoothly to input noise.

4.3 Prototype Cardinality Bound

If qq8 are Betti numbers at chosen slices,

qq9

Thus, the number of prototypes is bounded by total Betti numbers.

5. Empirical and Practical Evaluation

5.1 Simulated Data

On nine synthetic 2D datasets (blobs, circles, moons, imbalanced scenarios), TPS demonstrates:

  • Mean G-Mean improvement: σ\sigma0 (1-NN), σ\sigma1 (SVM).
  • Data reduction rates: σ\sigma2 (1-NN), σ\sigma3 (SVM).

TPS typically preserves or enhances accuracy while retaining only 10–40% of original points.

5.2 Hyperparameter Effects

  • σ\sigma4 (neighbor quantile) and σ\sigma5 (minimum persistence) regularize geometric structure, balancing reduction vs. performance.
  • Smaller σ\sigma6 targets boundary topological features more effectively.

5.3 Computational Performance

  • For σ\sigma7 points in σ\sigma8, TPS processes each class in σ\sigma9 seconds.
  • Classwise parallelization achieves linear speedup.

5.4 Real Data Benchmarks

Across eight UCI datasets:

  • TPS achieves average reduction q+1q+10, average G-Mean change q+1q+11.
  • Outperforms CNN+ENN (q+1q+12), AllKNN (q+1q+13), and matches BienTib (q+1q+14) and K-Means, typically with fewer prototypes and lower runtime.

5.5 Metric Robustness

For text (Spam/Ham, Doc2Vec, q+1q+15):

  • Under Euclidean metric: G-Mean q+1q+16 at q+1q+17 reduction.
  • Under Cosine metric: G-Mean q+1q+18 at q+1q+19 reduction.

TPS leverages structure induced by different metric choices, outperforming purely distance-based alternatives.

6. Implementation Notes and Geometric Interpretation

  • Ripser and GUDHI libraries efficiently compute Rips complexes and persistence for small K\mathcal{K}0.
  • Recommended pipeline: precompute distance matrix, process each class with neighbor → persistence → quantile selection, radius → persistence → mean selection, and extract required vertices.
  • Geometric intuition:
    • Neighbor filtration identifies boundary/“thin” regions near other classes.
    • Radius filtration isolates “thick” intra-class zones near core features.
    • Their intersection selects topologically critical boundary exemplars.

7. Significance and Distinction

TPS is the first prototype selector fundamentally founded on TDA principles. Its bifiltration construction retains mathematically significant, boundary-informative points in a fashion that is parallelizable, interpretable, metric-flexible, and robust to noise. Unlike previous methods, TPS offers explicit geometric regularization through K\mathcal{K}1 and K\mathcal{K}2 settings, providing practitioners principled control over dataset reduction while maintaining high classification fidelity across a spectrum of domains.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Topological Prototype Selector (TPS).