arXiv:2608.24549cs.LGAug 2026

Manuscript Offprint

arXiv:2608.24549

Persistent Cross Entropy

Sijin Yeom, Jae-Hun Jung

Abstract

Persistent entropy is the Shannon entropy of a persistence-based probability measure defined on a persistence diagram. However, its cross-entropy version is not naturally defined because two persistence diagrams generally have different event spaces. To bridge these event spaces, we combine a similarity function with persistence weighting to define an induced probability. The induced probability reflects information from one diagram on the event space of the other diagram and assigns unexplained probability mass to the unexplained event. Using the induced probability, we extend cross entropy to persistence diagrams, called persistent cross entropy (PCE). We establish the main properties of both the induced probability and PCE and prove stability theorems for both. Through three numerical studies, we show that PCE distinguishes diagrams with the same persistent entropy, separates causal directions in dynamical systems without constructing a joint persistent diagram, and can be used as a directional topology loss for knowledge distillation.

1 Introduction

Persistent homology extracts multiscale topological features from data by tracking how connected components, cycles, and higher-dimensional holes appear and disappear across a filtration (Edelsbrunner et al., 2002). It represents their birth–death structure through persistence diagrams, which provide compact descriptors of the topological structure of complex and high-dimensional data (Carlsson, 2009). An early landmark application of TDA revealed three clinically distinct subgroups of type 2 diabetes (Li et al., 2015). More recently, representations of persistence diagrams have enabled the prediction of molecular interaction energies (Townsend et al., 2020) and the identification of spatial immune-cell patterns in tumor microenvironments (Vipond et al., 2021).

Persistence diagrams are multisets of birth–death pairs in R2R^{2} that may contain different numbers of points and whose points have no canonical ordering, making them difficult to use directly in standard statistical and machine-learning pipelines. Consequently, various representations have been developed to encode persistence information as functions or finite-dimensional vectors. These include functional summaries such as Betti curves (Johnson and Jung, 2021), persistence landscapes (Bubenik, 2015), and persistence silhouettes (Chazal et al., 2015), as well as image-based summaries such as persistence images (Adams et al., 2017).

Among scalar summaries of persistence diagrams, persistent entropy normalizes feature persistences to a probability mass function and summarizes it by Shannon entropy (Chintakunta et al., 2015). Its stability and related entropy-based methods have also been studied (Atienza et al., 2020). A recent preprint studies its use in phase-transition detection (Rucco, 2026).

Shannon cross entropy compares two probability measures on a common event space, but pXp_{X} and pYp_{Y} are defined on different persistent diagrams DXD_{X} and DYD_{Y}, respectively. Thus the naive expression

H(pX,pY)=−∑u∈DXpX(u)log⁡pY(u)H(p_{X},p_{Y})=-\sum_{u\in D_{X}}p_{X}(u)\log p_{Y}(u)

cannot be applied directly. To deal with this issue, we construct the induced probability pXYp_X^Y on DX∪{∂}D_X \cup \{\partial\}, where ∂\partial is the unexplained event. For u∈DXu \in D_X, the mass retained at uu depends on how similarly DXD_X and DYD_Y explain uu; the remaining mass is assigned to ∂\partial. Viewing pXp_X on the same space with pX(∂)=0p_X(\partial) = 0, we define

H(pX,pXY)=−∑u∈DXpX(u)log⁡pXY(u).H(p_{X},p_{X}^{Y})=-\sum_{u\in D_{X}}p_{X}(u)\log p_{X}^{Y}(u).

We prove that pXY=pXp_X^Y = p_X exactly when every local difference vanishes and that pXY(∂)p_X^Y(\partial) is the total variation distance between pXYp_X^Y and pXp_X. The cross entropy excess is both KL(pX∥pXY)\text{KL}(p_X \| p_X^Y) and an expected squared difference under the chosen similarity function. We also show that the unexplained mass and the entropy excess vanish as DYD_Y approaches DXD_X. For the entropy excess, we further establish joint local stability when both diagrams vary. Section 2 provides the required background, Section 3 constructs the induced probability and proves its main properties, and Section 4 develops persistent cross entropy and its stability theory. Finally, Section 5 evaluates PCE through examples with equal persistent entropy, causality analysis in dynamical systems, and topology-aware knowledge distillation.

References (59)