TL;DR
A simplicial complex records which groups of points are joined, but only as yes or no. A fuzzy simplicial set keeps the same shape and gives every simplex a membership strength between 0 and 1, so a connection can be strong, weak, or anything in between. It solves the problem of building a faithful picture of a noisy point cloud where some neighbours are clearly close and others are only maybe close. It matters because it is the structure that the UMAP method uses to decide how points should be drawn in two dimensions.
Builds on: Simplicial Complex, Fuzzy Set · Leads to: UMAP
Where it's used
- Dimension reduction for scientific data. UMAP, introduced in 2018 by Leland McInnes, John Healy and James Melville, turns a table of many measurements per sample into a two-dimensional scatter plot. It is widely used to look at single-cell gene-expression data, where each cell is described by thousands of numbers. The fuzzy simplicial set is the hidden object UMAP builds from the nearest-neighbour graph before it lays out the points.
- Noisy neighbourhoods. Real data is not evenly spaced. A point may have one neighbour very close and three more at about the same larger distance. A yes-or-no Graph treats all four links alike. A fuzzy version gives the close link a strength near 1 and the far links lower strengths, so the layout reflects that difference.
- Clustering with overlap. Fuzzy clustering, where a point belongs to several groups to different degrees, uses the same idea of partial membership. The fuzzy simplicial set adds the rule that a face of a simplex is never weaker than the simplex itself, which keeps the strengths consistent across dimensions.
How it works
Start with three points on a line: at position 0, at position 1, and at position 3. Distances are , and . We want a weighted picture of how strongly each pair is connected.
- Start from the nearest neighbours. Use . Each point keeps its two nearest other points. For these are and . For they are and . For they are and . Check: each point has exactly two neighbours, and no point is its own neighbour.
- Record the nearest distance for each point. Let be the distance from to its closest other point. Here (to ), (to ) and (to ). Check: is 2 because is 2 away from and 3 away from .
- Set a width for each point. Each point gets a width that controls how fast strength falls off with distance. The width is found by a search that depends on . This tiny example skips the search and sets by hand, because with the search has no finite answer (see the math). Check: all three widths are positive.
- Turn each directed link into a strength with the exponential. The strength of the link from to a neighbour is . The nearest neighbour always gets strength exactly 1, because its distance minus is 0. Farther neighbours get smaller values. Check: to gives .
- Compute the six directed strengths. From : to is 1, to is . From : to is 1, to is . From : to is , to is . Check: every value is between 0 and 1.
- Make each pair symmetric. A pair such as has two directed strengths, one from each end. Combine them with the fuzzy union . For the two values are 1 and 1, so the union is . For the values are and , so the union is . For the values are and , so the union is . Check: the union is never smaller than either input and never larger than 1.
- Read the result. The final picture has three edges with strengths , and about . The pair is connected, but more weakly than the other two pairs, which is what we expect because is far from .
flowchart LR A["a"] -- "1" --- B["b"] B -- "1" --- C["c"] A -- "0.75" --- C
The diagram shows the final weighted picture. Each edge carries its strength, and the layout later pulls strongly connected points closer together.
The math
Let be a finite set. A fuzzy simplicial complex on is a function that assigns to each non-empty subset a number , such that whenever and is non-empty. The number is the membership strength of the simplex . A face is never weaker than the simplex it belongs to.
Step 1 in symbols: the simplices and their strengths
The walkthrough uses the vertex set . Its non-empty subsets are the vertices , the edges , and the triangle . Each one receives a strength. In UMAP only vertices and edges are used, so we set for every vertex and give each edge its symmetrised strength.
Step 2 in symbols: nearest neighbours and the local distance
Let be the set of nearest other points to , and let be the distance to the closest one. The value is the distance to the nearest neighbour, so it is the smallest distance that matters for . In the example, and .
Step 3 in symbols: the width equation
The width is the solution of the following, where is the base-2 logarithm:
The nearest neighbour always contributes exactly 1 to the sum. As shrinks toward 0 the sum falls to 1, and as grows the sum rises toward . So a solution exists whenever , and binary search finds it. For the target is the lower limit, so no finite width meets it; the walkthrough therefore sets the widths by hand and shows only how they are used once known.
Step 4 in symbols: directed strengths
For the directed strength is
The keeps the exponent at 0 or below, so the strength never exceeds 1. The nearest neighbour gives . In the example, .
Step 5 in symbols: symmetrising with the fuzzy union
A pair of points may have two different directed strengths, and . UMAP combines them as
The second form shows the meaning: and are the chances that each direction fails to connect, and is the chance that at least one direction connects. This is the fuzzy union, which is the fuzzy version of "or" for membership strengths.
For and in the example, and , so
Step 6 in symbols: the cut at a level
For a level with , the set is an ordinary simplicial complex. It is closed under faces because never gets smaller on a face than on the simplex containing it. This is why the fuzzy object is a generalisation of the crisp one: each cut is a simplicial complex, and the fuzzy version keeps all the cuts at once.
Worked examples
- Take with . Each point has one neighbour, so and .
- The nearest distances are .
- The directed strength from to is . The same holds from to .
- The union is .
- Interpretation: with only two points, the single edge is fully present, with strength 1.
- Use the three points , , from the walkthrough, with , and .
- The directed strengths from and are unchanged: and .
- From to the new width gives .
- For the pair the union is .
- The union is about . This is larger than either directed value, as the union always is.
- Interpretation: making 's width smaller made less willing to link to , so the direct strength from dropped from to . The union fell from to , and it stayed above because still links to firmly.
- Keep the three points with , , and change only to .
- The directed strength from to becomes .
- The union for is .
- The strength is below , so the pair is not in the cut at level .
- The other pairs have strengths 1 and about , so the cut at keeps the edges and .
- Interpretation: in a layout, the strength acts like a spring. Dropping the edge below the cut means and are pulled together only through . Try it: the same setup with and the pair has directed values and . What is the union, and is the pair in the cut at ? Answer: the union is , so yes, the pair is in the cut.
Common mistakes and tradeoffs
It is tempting to think that a fuzzy simplicial set is just a weighted graph. In fact it is more than that: the weights on faces must respect the rule that a face is never weaker than the simplex containing it. A weighted graph with no such rule can have an edge stronger than the triangle built on it, which is not a fuzzy simplicial complex. For the edge-only graphs used in UMAP the rule is easy to keep, because the vertices have strength 1.
It is also tempting to think that the strengths are probabilities. They are not: the strengths do not need to sum to 1 across a point's neighbours, and in UMAP each point's neighbours are scaled separately by its own width. The union formula looks like a probability, but the object is a membership structure, not a distribution.
Use the fuzzy version when neighbourhoods are uneven, when one point's neighbours differ widely in distance, or when you want a single object that can be cut at different strengths. Do not use it when the data has clean, well-separated groups and you only need a yes-or-no graph. Alternatives include a plain k-nearest-neighbour graph, which is simpler but loses the local scale, and a Vietoris-Rips complex at a fixed distance, which keeps the simplicial structure but has no strengths and needs a single global distance.
History
Lotfi Zadeh introduced fuzzy sets in 1965 to describe classes whose boundaries are vague, such as "tall" or "warm". The idea was widely used in control engineering and fuzzy logic in the following decades. Its use on the simplicial structure of point clouds came much later.
Simplicial complexes were developed in algebraic topology to describe shapes by gluing simple pieces along shared faces. Combining the two ideas, a weighted simplicial structure with membership strengths, became practical when data scientists needed a way to describe the local geometry of high-dimensional data. The UMAP paper of 2018 is the widely used example: it builds a fuzzy simplicial set from nearest neighbours, and then lays out the points by matching its strengths in two dimensions. Its success made the fuzzy simplicial set a standard object in dimension reduction.
Recap
- A simplicial complex is a collection of simplices closed under taking faces.
- A fuzzy set gives each element a membership strength between 0 and 1.
- A fuzzy simplicial complex gives each simplex a strength, with faces never weaker than the simplices containing them.
- UMAP builds the strengths from nearest neighbours, using a local distance and a width found from .
- The fuzzy union merges the two directions of an edge, and each cut at a level is an ordinary simplicial complex.
- Read next: UMAP, which uses this object to lay points out in two dimensions.
Check yourself
QuestionIn the walkthrough, why does the nearest neighbour of a point always get directed strength exactly 1?Show answer
The strength is . For the nearest neighbour, , so the exponent is , and . Every point is therefore linked to its closest neighbour with full strength.
QuestionTwo directed strengths are and . What is the fuzzy union ?Show answer
The union is . This is larger than either input, which is the expected behaviour of the union.
QuestionWhy is the cut at level of a fuzzy simplicial complex an ordinary simplicial complex?Show answer
Take a simplex in the cut, so . For any non-empty face , the rule gives , so is also in the cut. A collection closed under taking non-empty faces is a simplicial complex.
QuestionA point has nearest distance . Its neighbour is at distance with width . What is the directed strength to that neighbour?Show answer
The strength is .
QuestionA data scientist says: the strengths in a fuzzy simplicial set are probabilities, so each point's strengths should sum to 1. Is this right, and why?Show answer
No. The strengths are membership degrees, not probabilities. In UMAP each point's directed strengths are computed with its own width, and nothing forces them to sum to 1. The fuzzy union looks like a probability of "at least one link", but the object as a whole is a weighted simplicial structure, and the strengths are read as degrees of connection.