---
title: Element-Centric Similarity Overview
url: https://www.emergentmind.com/topics/element-centric-similarity
type: topic
---

# Element-Centric Similarity Overview

Element-centric similarity denotes, across several research traditions, a mode of comparison in which similarity is determined from the contributions of individual elements or from each element’s relationship profile to the rest of a system, rather than only from global aggregates or cluster-level summaries. The elemental unit may be a feature coordinate in a learned representation, a member of a multiset, a data point in a similarity matrix, a DOM node, a layout object, a chemical element, or a vertex in a clustering-induced graph. Taken together, the cited works suggest that the unifying principle is local contribution followed by structured aggregation: similarity is built from element-wise absolute differences, products, overlaps, transport costs, ordinariness scores, eigenvalue spectra, or diffusion-based affinity profiles [1702.04858] [2111.02803] [2511.03849] [2407.12356] [2208.00677] [2307.00784] [1706.06136].

## 1. Conceptual foundations

The literature suggests that element-centric similarity is best understood as a design principle rather than a single metric. In one class of formulations, each coordinate or element contributes directly to the final score; in another, each element is first assigned a neighborhood-dependent profile, and comparison is performed between those profiles. This produces a family of methods that remain local in construction even when the final similarity is global.

| Domain | Elemental unit | Element-centric mechanism |
|---|---|---|
| Person re-identification | Feature dimension \(i\) | Learned weights on \(|X_{1,i}-X_{2,i}|\) and \(X_{1,i}X_{2,i}\) |
| Sets, vectors, functions | Scalar entry or point \(x\) | Aggregation of min/max/product-based scalar similarities |
| Similarity-sensitive entropy | Unique element \(i\) or observation | Ordinariness \((Z\mathbf p)_i\) or eigenvalue spectrum of \(Z_n/n\) |
| Layouts and web GUIs | Layout element or DOM node | Element-to-element transport cost or weighted multi-attribute score |
| Clustering comparison | Data element \(v_i\) | Personalized PageRank affinity profile induced by cluster structure |
| Materials representations | Chemical element | Distances, cosine similarity, or Pearson correlation in embedding space |

A recurrent contrast in these papers is with more rigid or more global alternatives. Cluster-centric comparison measures operate on clusters or pairs of elements; strict layout metrics rely on one-to-one same-category matching; Shannon-type entropy ignores similarity structure; radius-ratio rules reduce chemistry to a low-dimensional heuristic; and single locators or exact XPaths treat localization as a brittle yes-or-no event. Element-centric methods replace these with graded local evidence and explicit aggregation [1706.06136].

## 2. Coordinate-wise and algebraic formulations

A fundamental template appears in scalar, vector, and feature-learning settings. In "On Similarity," the prototypical reference is the Kronecker delta, which equals 1 when two real values are identical and 0 otherwise. The paper then derives yielding indices that relax strict identity into graded similarity. For unsigned scalars, one core index is
\[
s_1(x,y)=\frac{2\min\{|x|,|y|\}}{|x|+|y|},
\]
with two further bounded variants,
\[
s_2(x,y)=\frac{\min\{|x|,|y|\}}{\max\{|x|,|y|\}}, \qquad
s_3(x,y)=\frac{|x|\,|y|}{(\max\{|x|,|y|\})^2},
\]
and an unbounded product form \(s_4(x,y)=|x|\,|y|\). Signed generalizations incorporate \(\operatorname{sign}(x)\operatorname{sign}(y)\), so opposition can produce negative similarity. The same scalar building blocks are then aggregated over multisets, vectors, and functions by summation or integration, yielding explicitly element-wise formulations. Within this framework, the Jaccard index is interpreted as a yielding implementation of the Kronecker delta, and the multiset index \(s_1(A,B)\) generalizes Jaccard to real and negative multiplicities [2111.02803].

In deep metric learning, "Deep Hybrid Similarity Learning for Person Re-identification" gives a clean coordinate-wise instantiation. Two Siamese CNN branches produce feature vectors \(X_1,X_2\in\mathbb R^d\), after which the pair representation is built exclusively from element-wise operators:
\[
Diff(X_1,X_2)=|X_1-X_2|, \qquad Mult(X_1,X_2)=X_1.*X_2.
\]
The hybrid similarity is
\[
d_H(X_1,X_2)=W_d^\top |X_1-X_2|+W_m^\top (X_1.*X_2),
\]
equivalently \(d_H(X_1,X_2)=W^\top Z\) with \(Z=[Diff,Mult]\in\mathbb R^{2d}\). Each dimension contributes
\[
\phi_i(X_1,X_2)=W_{d,i}|X_{1,i}-X_{2,i}|+W_{m,i}X_{1,i}X_{2,i},
\]
so the final score is an additive sum of per-dimension contributions. The similarity layer therefore has only \(2d\) parameters, rather than \(d^2\) for a full Mahalanobis matrix. The paper explicitly interprets absolute difference as a distance-like cue and element-wise multiplication as a correlation-like cue; empirically, using both cues is more effective than either alone [1702.04858].

These formulations establish a central mathematical theme of element-centric similarity: the score is decomposed into local comparisons that remain interpretable at the level of individual coordinates or scalar entries, while the overall model can still be optimized jointly with a larger system.

## 3. Similarity neighborhoods and entropy

A second major strand treats each element’s neighborhood in similarity space as the primitive object. "Which Similarity-Sensitive Entropy?" begins from the observation that Shannon, Rényi, Tsallis, and Hill measures depend only on frequencies \(\mathbf p=(p_1,\dots,p_n)\) and therefore ignore pairwise similarities among elements. To incorporate similarity, the paper uses a matrix \(Z=(z_{ij})\in[0,1]^{n\times n}\) with \(z_{ii}=1\). In the Leinster–Cobbold–Reeve framework, the ordinariness of element \(i\) is
\[
(Z\mathbf p)_i=\sum_j z_{ij}p_j,
\]
and the similarity-sensitive diversity is
\[
D_q^Z(\mathbf p;Z)=
\begin{cases}
\left(\sum_{i=1}^n p_i (Z\mathbf p)_i^{\,q-1}\right)^{\frac{1}{1-q}}, & q\neq 1,\\[4pt]
\exp\left(-\sum_{i=1}^n p_i\ln (Z\mathbf p)_i\right), & q=1.
\end{cases}
\]
This is element-centric by design: each element contributes according to its similarity-weighted neighborhood. Elements similar to many high-frequency elements are ordinary; elements dissimilar to almost everything are unusual.

The Vendi score uses the same similarity information in a different way. It is defined on the eigenvalues \(\lambda_1,\dots,\lambda_n\) of the normalized PSD kernel \(Z_n/n\), with
\[
\mathrm{VS}(\mathbf p_n;Z_n)=\exp\!\left(-\sum_{i=1}^n \lambda_i\log\lambda_i\right),
\]
and Rényi-type relatives
\[
\mathrm{VS}_q(\mathbf p_n;Z_n)=\left(\sum_{i=1}^n \lambda_i^q\right)^{\frac{1}{1-q}}.
\]
The paper interprets these eigenvectors as “ur-elements” or “eigen-elements,” so VS is spectral rather than row-wise. The resulting contrast is conceptually sharp: LCR aggregates per-element ordinariness, whereas VS measures the effective number of occupied spectral directions.

A central practical parameter is the similarity scaling
\[
z_{ij}=e^{-k\lVert x_i-x_j\rVert_2},
\]
where \(k\) is described as a half distance. As \(k\to 0\), all similarities approach 1 and both LCR and VS approach 1; as \(k\to\infty\), off-diagonal similarities vanish and both measures approach \(n\) when all elements are unique and equally weighted. At intermediate scales they can differ substantially. On a 10,000-image subset of MNIST, HDBSCAN found 6 clusters, LCR at \(q=1\) gave \(D_1^Z\approx 12.5\), and VS at \(q=1\) gave about \(95.9\). The paper concludes that VS is preferable only when interpreting elements as linear combinations of a more fundamental set of “ur-elements” or when the system has a quantum-mechanical character; in the broader circumstance of capturing information encoded by similarity, LCR is favored. It also proves that VS provides an upper bound on LCR for \(q=2,3,\infty\), proves \(\mathrm{VS}_q(Z)\ge n\ge D_q(Z,1/n)\) for full-rank \(Z\) and any \(q\le 0\), and conjectures a general inequality \(\mathrm{VS}_q(Z)\ge D_q(Z,1/n)\) for all orders [2511.03849].

This branch of the literature shows that element-centric similarity is not limited to pairwise matching. It can also define uncertainty, redundancy, and effective number by making each element’s contribution depend on its neighborhood.

## 4. Structured objects, transport, and multi-attribute matching

For structured sets of elements, element-centric similarity often appears as flexible matching rather than exact correspondence. In the scalar-to-functional framework of "On Similarity," multisets, vectors, and functions are compared by aggregating element-wise overlaps based on min, max, and product operators. For functions \(f,g:S\to\mathbb R\), for example,
\[
s_1(f,g)=\frac{\int_S s_{fg}\,\min\{s_f f,s_g g\}\,dx}{\int_S \max\{s_f f,s_g g\}\,dx},
\]
and related functionals induce similarity-based convolutions and correlations. The common product functional \(\ll f,g\gg\) measures signed common area, while \(f\diamond g\) plays a union-like role. The conceptual point is that global similarity is obtained by integrating point-wise elemental contributions, not by collapsing the functions to a few summary statistics [2111.02803].

"LTSim: Layout Transportation-based Similarity Measure for Evaluating Layout Generation" applies the same logic to 2D layouts represented as sets of labeled bounding boxes \(e_i=(b_i,c_i)\). Each layout is treated as a discrete probability distribution over its elements, and element-to-element dissimilarity is defined by
\[
\mu(e_i,\hat e_j)=1-\frac{\delta_{\mathrm{bbox}}(b_i,\hat b_j)+\delta_{\mathrm{label}}(c_i,\hat c_j)}{2},
\]
with \(\delta_{\mathrm{bbox}}=(1+\mathrm{GIoU})/2\) and \(\delta_{\mathrm{label}}=1\) when labels match and 0 otherwise. Optimal transport then solves for a plan \(\gamma^\ast\) minimizing total cost under uniform marginals, producing \(\mathrm{EMD}(\mathcal L,\hat{\mathcal L})\in[0,1]\), and similarity is
\[
\mathrm{LTSim}(\mathcal L,\hat{\mathcal L};\sigma)=\exp\!\left(-\frac{\mathrm{EMD}(\mathcal L,\hat{\mathcal L})}{\sigma}\right).
\]
Because transport is soft and many-to-many, one element can distribute mass across several counterparts, different cardinalities are handled naturally, and layouts sharing no categories can still be compared through geometry alone. At the collection level, the paper uses \(k(\mathcal L_i,\mathcal L_j)=\mathrm{LTSim}(\mathcal L_i,\mathcal L_j;\sigma)\) inside an unbiased empirical \(\widehat{\mathrm{MMD}^2}\), yielding LTSim-MMD as a distribution-level discrepancy [2407.12356].

"Similarity-based web element localization for robust test automation" transfers the same principle to DOM nodes. A target element and each candidate in the new DOM are represented by 14 locator parameters: Tag, Class, Name, Id, HRef, Alt, Absolute XPath, ID relative XPath, IsButton, Location, Area, Shape, Visible Text, and Neighbor Texts. Similo computes
\[
S(e^{(1)},e^{(2)})=\sum_{i=1}^{14} w_i\,sim_i\bigl(p_i(e^{(1)}),p_i(e^{(2)})\bigr),
\]
using parameter-specific similarities such as case-insensitive equality, normalized Levenshtein distance, Euclidean-location decay with a 100-pixel cutoff, and word overlap for Neighbor Texts, then selects the arg max over all visible candidates. On 40 popular websites and 598 target elements, Similo failed in 72 cases, compared to 146 failed cases for the baseline multi-locator approach [2208.00677].

These methods reject strict one-to-one exact matching as the sole basis for similarity. Their common claim is that an object remains identifiable through a constellation of partial element-level cues even when exact locators, exact category matches, or identical counts are unavailable.

## 5. Element-induced relation profiles and clustering comparison

In clustering comparison, element-centric similarity is formulated explicitly as a contrast with cluster-centric measures. "Element-centric clustering comparison unifies overlaps and hierarchy" begins with a cluster affiliation graph \(\mathcal B(V\cup C,\mathcal R)\), a bipartite graph between elements \(V=\{v_1,\ldots,v_N\}\) and clusters \(C\). The affiliation matrix \(\mathbb A\) has entries \(a_{i\beta}\), possibly weighted by a hierarchy function
\[
h(l_\beta)=e^{r l_\beta}
\]
when clusters occur at different dendrogram levels. Projecting the affiliation graph onto elements yields a cluster-induced element graph with weights
\[
w_{ij}=\sum_\gamma \frac{a_{i\gamma}a_{j\gamma}}{\sum_\kappa a_{i\kappa}\sum_m a_{m\gamma}}.
\]
This weight encodes how strongly element \(v_i\) is related to element \(v_j\) through shared cluster membership, normalized by cluster size and membership multiplicity.

For each element \(v_i\), the method then computes a personalized PageRank affinity vector
\[
\mathbf p_i=(1.0-\alpha)\mathbf v_i+\alpha \mathbf p_i\mathbf W,
\]
with \(\alpha=0.90\). Element-wise similarity between clusterings \(\mathcal A\) and \(\mathcal B\) is
\[
S_i(\mathcal A,\mathcal B)=1.0-\frac{1}{2\alpha}\sum_{j=1}^N\left|p_{ij}^{\mathcal A}-p_{ij}^{\mathcal B}\right|,
\]
and global similarity is the average
\[
S(\mathcal A,\mathcal B)=\frac{1}{N}\sum_{i=1}^N S_i(\mathcal A,\mathcal B).
\]
The method applies uniformly to disjoint, overlapping, and hierarchical clusterings because all structure is encoded at the element–cluster edge level before diffusion.

The paper argues that standard measures suffer from critical biases. In synthetic experiments, NMI increases with the number of clusters in a random-equal-cluster setting, Jaccard and F increase with skewness in cluster-size distributions, and ARI and ONMI can collapse to zero in scenarios that retain nontrivial structural similarity. The element-centric framework is presented as avoiding these pathologies while also providing diagnostics unavailable to scalar cluster-centric scores. Because \(S_i\) is computed for each element, disagreement can be localized to individual data points, social-network vertices, or brain regions. The paper illustrates this with K-means on synthetic and handwritten-digit data, with Facebook friendship networks where the alignment of communities with class year and major differs across student cohorts, and with overlapping and hierarchical communities in resting-state fMRI, where element-centric similarity on the full hierarchy gives about 84% average classification accuracy for schizophrenia versus control and highlights the Fusiform gyrus as especially variable in patients [1706.06136].

This formulation extends the meaning of element-centric similarity beyond direct comparison of object parts. Here, an element is characterized by the relational world induced around it by a clustering, and similarity compares those induced worlds.

## 6. Representation spaces, applications, and methodological issues

Element-centric similarity also appears in scientific representation learning. "Element similarity in high-dimensional materials representations" represents each chemical element \(E\) by a vector \(\mathbf v_E\in\mathbb R^n\) and defines similarity through distances or angular correlation:
\[
d_p(A,B)=\left(\sum_{i=1}^n |A_i-B_i|^p\right)^{1/p},\qquad
\cos(\theta(A,B))=\frac{\mathbf A\cdot \mathbf B}{\lVert \mathbf A\rVert \lVert \mathbf B\rVert},\qquad
\rho_{A,B}=\frac{\mathrm{cov}(A,B)}{\sigma_A\sigma_B}.
\]
The paper compares Magpie (22 dimensions), Mat2vec (200), MatScholar (200), MEGNet16 (16), Oliynyk (44), SkipAtom (200), and Random\_200. PCA and t-SNE reveal clustering of lanthanoids, alkaline-earth groupings such as Sr–Ba–Ca, and distributed-representation similarities such as Bi–Sb. For binary AB crystal-structure prediction, cosine similarity is used inside a substitution model
\[
p(X,X')=\frac{\exp(\lambda)}{Z}, \qquad \lambda=\cos(\mathbf v_{E_1},\mathbf v_{E_2}),
\]
and on a 100-compound dataset the reported accuracies are 54% for radius ratios, 54% for Hautier weights, 58% for Random\_200, 68% for SkipAtom, 73% for MEGNet16, 75% for Oliynyk, 78% for Magpie, 80% for Mat2vec, and 81% for MatScholar [2307.00784].

Across the cited literature, several methodological issues recur. Some formulations require strong structural assumptions: VS assumes a PSD similarity matrix, whereas LCR does not [2511.03849]. Some methods use fixed heuristic weights or scales: Similo uses manually chosen parameter weights, LTSim fixes equal weighting between geometry and label, DHSL learns per-dimension weights but fixes the element-wise operator family, and the entropy literature shows that the half distance \(k\) can alter magnitudes by orders of magnitude [2208.00677] [2407.12356] [1702.04858] [2511.03849]. Computational burden is another theme: VS requires eigen-decomposition of an \(n\times n\) matrix over all observations, LTSim-MMD requires many pairwise OT computations, and clustering comparison may require repeated personalized PageRank evaluations, although analytic simplifications and approximate algorithms are discussed [2511.03849] [2407.12356] [1706.06136].

A common misconception is that element-centric similarity necessarily means exact element matching. The cited work instead shows several distinct possibilities: direct coordinate-wise addition, overlap/union aggregation, neighborhood ordinariness, spectral decomposition, optimal transport, diffusion on induced graphs, and similarity in learned embedding spaces. Another misconception is that element-centric methods are always more local and therefore less expressive. The diffusion-based clustering framework and the spectral entropy framework show the opposite: local element-level definitions can induce highly nonlocal global behavior [1706.06136] [2511.03849].

In this sense, element-centric similarity is a general research program for building global comparison from local structure. Its defining move is to make the individual element, coordinate, or node the primary carrier of information, and then to design an aggregation mechanism that preserves the geometry, redundancy, or relational role of those elemental contributions.

Source: https://www.emergentmind.com/topics/element-centric-similarity