---
title: Normalized Topological Similarity (NTS)
url: https://www.emergentmind.com/topics/normalized-topological-similarity-nts
type: topic
---

# Normalized Topological Similarity (NTS)

Searching arXiv for recent and foundational papers on Normalized Topological Similarity and closely related constructs.
Normalized Topological Similarity (NTS) is a normalized, topology-aware similarity measure for comparing two paired neural representations. In its explicit formulation, NTS measures the rank correlation of hierarchical merge orders derived from the \(0\)-dimensional Vietoris–Rips, single-linkage, and minimum spanning tree (MST) structure of two dissimilarity matrices, yielding a scale-invariant score in \([-1,1]\) intended for cross-scenario benchmarking [2606.06342]. The term is not fully standardized across the broader literature: several earlier works define closely related normalized topological comparisons under different names or within different pipelines rather than as a single standalone coefficient.

## 1. Concept and terminological scope

In the strict sense, NTS denotes the measure introduced in "Symmetric Divergence and Normalized Similarity: A Unified Topological Framework for Representation Analysis" [2606.06342]. That work presents NTS as the normalized counterpart to RTD- and SRTD-style topological divergences. Its stated purpose is to replace unbounded, sample-dependent scalar summaries based on sums of barcode lengths with a bounded similarity based on the rank correlation of hierarchical merge orders.

Across adjacent literatures, however, the same phrase is often only approximately applicable. "Inter-layer Information Similarity Assessment of Deep Neural Networks Via Topological Similarity and Persistence Analysis of Data Neighbour Dynamics" defines **Nearest Neighbour Topological Similarity (NNTS)** rather than NTS, using intersection-over-union of \(k\)-nearest-neighbour sets across layers [2012.03793]. "Topological Similarity Index and Loss Function for Blood Vessel Segmentation" introduces a path-feasibility-based **topological similarity index** \(m(\mathbf{P},\mathbf{Y})\), also normalized to \([0,1]\), but specialized to binary vessel masks [2107.14531]. "Topological Representational Similarity Analysis in Brains and Beyond" does not define a metric called NTS at all; instead, it introduces tRSA, geo-topological transforms, representational geo-topological matrices (RGTMs), and representational geodesic-distance matrices (RGDMs), which collectively function as a normalized, topology-sensitive representational comparison pipeline [2408.11948]. This suggests that NTS is best understood as a family of normalized topology-sensitive comparison strategies, with a particularly precise modern instantiation in [2606.06342].

## 2. Formal definition

Let
\[
w,\tilde w \in \mathbb{R}^{n\times n}
\]
be pairwise dissimilarity matrices for two paired representations on the same \(n\) samples. In the NTS formulation, these matrices are assumed symmetric, nonnegative, and to have zero diagonal [2606.06342].

Let \(T_w\) and \(T_{\tilde w}\) be minimum spanning trees of the complete weighted graphs induced by \(w\) and \(\tilde w\), with edge sets \(E_w\) and \(E_{\tilde w}\). The **core pair set** is
\[
\mathcal{C} := E_w \cup E_{\tilde w}.
\]
Since each MST has \(n-1\) edges, \(|\mathcal{C}| \le 2n-2\).

NTS is defined through **Spearman’s rank correlation**. For vectors \(x,y\in\mathbb{R}^m\), with rank vectors \(R(x)\) and \(R(y)\), the paper gives
\[
\rho_S(x,y) := \mathrm{corr}\!\big(R(x),R(y)\big)
= \frac{\sum_{k=1}^{m}\big(R(x)_k-\overline{R(x)}\big)\big(R(y)_k-\overline{R(y)}\big)}
{\sqrt{\sum_{k=1}^{m}\big(R(x)_k-\overline{R(x)}\big)^2}\;
\sqrt{\sum_{k=1}^{m}\big(R(y)_k-\overline{R(y)}\big)^2}}
\in [-1,1].
\]

The construction has two variants.

For **NTS-E**, one uses raw dissimilarities on the core pair set. For each core edge \(e=(i,j)\in \mathcal{C}\), define
\[
x_e := w_{ij}, \qquad \tilde x_e := \tilde w_{ij}.
\]
Then
\[
\mathrm{NTS\text{-}E}(w,\tilde w)
:=
\rho_S\!\big((x_e)_{e\in\mathcal{C}},(\tilde x_e)_{e\in\mathcal{C}}\big).
\]

For **NTS-M**, one uses **merge times** induced by the hierarchy. For any pair \((i,j)\), the merge time under \(w\) is
\[
m_w(i,j)\;:=\;\min\{\alpha:\ i \text{ and } j \text{ are connected at threshold } \alpha\}.
\]
The MST characterization is
\[
m_w(i,j) = \max_{e\in \mathrm{path}_{T_w}(i,j)} w_e.
\]
For each core edge \(e=(i,j)\in\mathcal{C}\), define
\[
x_e := m_w(i,j), \qquad \tilde x_e := m_{\tilde w}(i,j).
\]
Then
\[
\mathrm{NTS\text{-}M}(w,\tilde w)
:=
\rho_S\!\big((x_e)_{e\in\mathcal{C}},(\tilde x_e)_{e\in\mathcal{C}}\big).
\]

The paper explicitly states that NTS compares the **hierarchical connectivity structure** induced by the two representations, namely their \(0\)-dimensional Vietoris–Rips merge structure [2606.06342].

## 3. Topological basis and computational pipeline

NTS is built on the equivalence among \(0\)-dimensional Vietoris–Rips filtrations, single-linkage clustering, Kruskal-style merge sequences, and MSTs [2606.06342]. At threshold \(\alpha\), points \(i\) and \(j\) are connected when \(w_{ij}\le \alpha\). As \(\alpha\) increases, connected components merge. In dimension \(0\), the relevant topological information is therefore the sequence and ordering of those merges.

The computation pipeline is concrete. Starting from paired representations \(X=\{x_i\}_{i=1}^n\) and \(X'=\{x'_i\}_{i=1}^n\), one computes dissimilarity matrices
\[
w_{ij} = \mathrm{dissim}(x_i,x_j), \qquad \tilde w_{ij} = \mathrm{dissim}(x'_i,x'_j),
\]
with Euclidean distance or cosine dissimilarity given as examples. One then computes \(T_w\) and \(T_{\tilde w}\), forms \(\mathcal C=E_w\cup E_{\tilde w}\), constructs aligned vectors either of raw edge weights (NTS-E) or merge times (NTS-M), and returns their Spearman correlation.

This design is intentionally sparse. The paper contrasts NTS with representational similarity analysis based on full vectorization of all pairwise distances: rather than using all \(\binom{n}{2}\) pairs, NTS restricts comparison to the topology-aware core set \(\mathcal C\) induced by the two MSTs [2606.06342]. In this sense, it is not simply “RSA on distances,” but a rank-correlation comparator applied to a summary of the \(0\)-dimensional topological hierarchy.

The two variants differ in what they preserve. NTS-E is described as stricter because it matches the rank structure of the underlying edge weights on \(\mathcal C\), whereas NTS-M requires agreement only in the induced merge-event ordering. The paper provides pseudocode for both variants and specifies deterministic tie breaking for MST computation together with deterministic rank handling, such as mid-ranks, for Spearman’s \(\rho_S\) [2606.06342].

For complexity, the paper gives an explicit bound only for NTS-E:
\[
O\!\big(n^2(\alpha_{\mathrm{uf}(n)}+d)\big),
\]
where \(\alpha_{\mathrm{uf}(n)}\) is the inverse Ackermann factor arising from union-find operations. The stated dominant costs are pairwise distance calculation and MST construction [2606.06342].

## 4. Properties and interpretation

The central normalization property is immediate from the definition: because NTS is a Spearman correlation, it is bounded in
\[
[-1,1].
\]
The measure is symmetric, since both Spearman correlation and the core set \(\mathcal C=E_w\cup E_{\tilde w}\) are symmetric in the two inputs [2606.06342].

The paper states a precise characterization of perfect **NTS-M**. Assuming nonzero rank variance,
\[
\mathrm{NTS\text{-}M}(w,\tilde w)=1
\]
if and only if the values
\[
\{m_w(i,j)\}_{(i,j)\in\mathcal C}
\quad\text{and}\quad
\{m_{\tilde w}(i,j)\}_{(i,j)\in\mathcal C}
\]
induce the same **weak order** on \(\mathcal C\). The notion of weak order includes ties: for all \(e_1,e_2\in\mathcal C\),
\[
V_{e_1}<V_{e_2}\Leftrightarrow \tilde V_{e_1}<\tilde V_{e_2},
\qquad
V_{e_1}=V_{e_2}\Leftrightarrow \tilde V_{e_1}=\tilde V_{e_2}.
\]

A second theorem states that, again under nonzero rank variance,
\[
\mathrm{NTS\text{-}E}(w,\tilde w)=1 \;\Rightarrow\; \mathrm{NTS\text{-}M}(w,\tilde w)=1,
\]
but not conversely. The interpretation is that exact agreement on the rank ordering of core edge weights is sufficient for exact agreement on the induced merge hierarchy, whereas multiple edge-order configurations may collapse to the same path-maximum merge ordering [2606.06342].

The paper repeatedly emphasizes the interpretive advantage of rank correlation. Because NTS keeps only relative order, it reduces sensitivity to global rescalings and to monotone distortions of dissimilarities. In practical terms, values near \(1\) indicate strong agreement in hierarchical organization, values near \(0\) indicate little monotone relationship, and values near \(-1\) indicate inverse ordering of merge structure. This is the sense in which NTS is presented as “scale-invariant” and suitable for cross-scenario benchmarking [2606.06342].

## 5. Relation to adjacent normalized topological measures

Several related measures share the general aim of normalized topology-sensitive comparison, but they operate on different objects and use different normalization principles.

| Construct | Compared structure | Normalization principle |
|---|---|---|
| **NTS** [2606.06342] | MST-core edge or merge-time hierarchy of paired representations | Spearman rank correlation in \([-1,1]\) |
| **NNTS** [2012.03793] | Sample-wise \(k\)-nearest-neighbour sets across DNN layers | Intersection-over-union averaged over samples, in \([0,1]\) |
| **Topological similarity index** [2107.14531] | Path feasibility between prediction and ground-truth vessel masks | Symmetric geometric mean of topological recall and precision, in \([0,1]\) |
| **tRSA descriptors** [2408.11948] | RGTMs and RGDMs derived from transformed RDMs | GT transform to \([0,1]\) plus rank/quantile normalization |
| **MRS similarity** [2008.12567] | Matched nodes in multi-resolution Reeb spaces | Normalized local node similarity and multiresolution average in \([0,1]\) |

The nearest conceptual predecessor within deep representation analysis is NNTS. There, the sample-wise score is
\[
Q_s(y_{ai}, y_{bi}) = \frac{|K_{ai} \cap K_{bi}|}{|K_{ai} \cup K_{bi}|},
\]
and the global score is
\[
Q(H_a,H_b)=\frac{1}{n}\sum_i^n Q_s(y_{ai}, y_{bi}),
\]
so the normalization arises from per-sample intersection-over-union and averaging over samples [2012.03793]. NTS, by contrast, does not compare neighbourhood sets directly; it compares the ranked order of hierarchical merge events.

In segmentation, the topological similarity index
\[
m(\mathbf{P},\mathbf{Y})
=
\sqrt{
\frac{\sum\limits_{i,j\in \mathbf{Y}_f,\; l_i=l_j} f(P_{i,j}, \mathbf{P})}{N_Y}
\cdot
\frac{\sum\limits_{i,j\in \mathbf{P}_f,\; l_i=l_j} f(P_{i,j}, \mathbf{Y})}{N_P}
}
\]
defines topology through path feasibility in vascular trees rather than through persistent merges or MSTs [2107.14531]. The multivariate topology literature offers yet another variant: in multi-resolution Reeb-space comparison, the final similarity
\[
S(MRS_{f,N},MRS_{g,N}) = \frac{1}{N}\sum_{k=0}^{N-1} S(JCN_{f,k},JCN_{g,k})
\]
is also explicitly bounded in \([0,1]\) [2008.12567].

A distinct but closely related representational line is tRSA. Starting from an RDM with entries
\[
R_{ij} = d(X_i, X_j),
\]
it applies the piecewise linear geo-topological transform
\[
GT_{l,u}(d_{i,j}) =
\begin{cases}
0,& \text{if } d_{i,j} \leq l \\
\frac{d_{i,j}-l}{u-l}, & \text{if } l < d_{i,j} < u \\
1, & \text{if } u \leq d_{i,j}
\end{cases}
\]
to obtain RGTMs, optionally followed by RGDM construction via shortest paths. There, normalization is effected by mapping distances into \([0,1]\), defining \(l\) and \(u\) as quantiles of each RDM, and often replacing raw dissimilarities by their ranks within each RDM before transformation [2408.11948]. This suggests a broader methodological pattern: normalized topological comparison is often achieved not by a single universal metric, but by rank normalization, saturation, or probability normalization applied to topology-sensitive summaries.

Another nearby development normalizes **topological indices** rather than defining a pairwise similarity. For branched macromolecules represented as trees, the transform
\[
TI^*(T) = \frac{cdf(TI(T)) - cdf(TI(\text{linear}))}{cdf(TI(\text{star})) - cdf(TI(\text{linear}))}
\]
produces a normalized phase space \((ABC^*,H_2^*)\) for cross-size comparison [2409.16007]. This is not itself NTS, but it is directly relevant to the wider problem of scale-correct topological comparison.

## 6. Empirical findings and practical use

The empirical evidence for NTS comes primarily from synthetic and deep learning experiments in [2606.06342]. In the synthetic **Clusters** experiment, NTS and SRTD-family measures track increasing structural dissimilarity as a single Gaussian cluster is split into \(k=2,\dots,12\) clusters arranged on a circle, whereas CKA is reported as largely insensitive and RTD-lite shows an anomalous inverted trend. In a UMAP experiment on MNIST, NTS and SRTD-lite show smooth, monotonic responses as `n_neighbors` varies, while CKA fails to reflect the gradual structural evolution.

In CNN analysis, the paper studies an 8-layer TinyCNN on CIFAR-10. NTS and CKA both exhibit a near-diagonal similarity pattern, but NTS and SRTD-lite additionally detect a sharp break at the final pooling layer. The figure caption interprets this as a transition from local feature extraction to global aggregation and states that this functional shift is missed by geometric analysis [2606.06342]. By contrast, RTD-style divergences are described as unsuitable for fine-grained cross-layer benchmarking because their unnormalized nature leads to irregular inversions.

The LLM results are particularly important for the intended benchmarking role of NTS. For intra-model layer similarity, NTS reveals consistent hierarchical fingerprints within model families such as Qwen, InternLM, Baichuan, and Llama. For inter-model comparison, the paper reports that CKA often saturates, whereas NTS is more broadly distributed and therefore more discriminative. A highlighted case is DeepSeek-R1-Ds versus Qwen2.5-Math-7B: CKA gives unexpectedly low similarity, while NTS-E recovers high structural similarity, aligning better with the known distillation relation [2606.06342].

The paper also gives concrete preprocessing guidance. For inter-model LLM comparisons, **Z-score normalization across the feature dimension** is described as crucial for reliable NTS results. This is a practical rather than definitional requirement, but it bears directly on reproducibility and on the interpretation of cross-model comparisons [2606.06342].

## 7. Limitations, misconceptions, and scope conditions

NTS is not a generic full-topology metric. The explicit NTS construction in [2606.06342] is based only on **\(0\)-dimensional features**, specifically the MST-encoded merge hierarchy. It therefore does not compare higher-dimensional persistent homology, such as loops or voids. A plausible implication is that NTS is best viewed as a normalized summary of hierarchical connectivity rather than as a complete persistent-homology distance.

The measure is also described as **non-differentiable** and therefore **analysis-only** in its current form [2606.06342]. When barcode-level diagnosis or an optimization objective is needed, the paper positions SRTD and SRTD-lite as preferable. NTS is instead the tool for stable, standardized scalar benchmarking.

A common misconception is to treat “NTS” as a universally standardized term across topological machine learning. The record is more heterogeneous. Some papers use related names such as NNTS [2012.03793]; some define normalized topological similarity in domain-specific settings such as vessel trees or multi-field Reeb spaces [2107.14531]; and some, like tRSA, offer a normalized topology-sensitive comparison pipeline without introducing a scalar called NTS [2408.11948]. This suggests that the phrase has both a narrow meaning—its specific rank-correlation construction in [2606.06342]—and a broader descriptive use for normalized topology-aware comparison.

Finally, because NTS is a global summary, it lacks the local explanatory detail of barcode-based diagnostics [2606.06342]. It tells whether two representations agree in hierarchical merge order, but not which exact intervals, samples, or structural motifs account for disagreement. That trade-off between normalization and diagnosis is central to its place within the contemporary topological toolkit.

Source: https://www.emergentmind.com/topics/normalized-topological-similarity-nts