Manuscript Offprint
arXiv:2610.17848Persistence Positional Encoding: A Minimal Transformer Recipe for Persistence Diagrams
ABSTRACT
Persistence diagrams (PDs) represent multiscale topological information as multi-sets of birth–death pairs . How best to use them with Transformers, however, remains unclear. Connecting PDs to Transformers requires choosing how topological information is tokenized and exposed to self-attention. Prior methods use specialized designs for tokenization, aggregation, Transformer blocks, or attention, but are hard to compare since reported results rarely share PD inputs, splits, or model-selection rules. We instead confine the diagram-specific design to point representation, mapping each birth–death pair through fixed random Fourier features while leaving the Transformer backbone unchanged, and call this recipe Persistence Positional Encoding (PPE). In matched controls on eight TU graph benchmarks (TU8), changing only point representation shifts macro accuracy by 5.49 to 6.47 percentage points (pp), against 0.47 to 1.45 pp from changing the downstream module, identifying point representation as the dominant design variable tested. We further reevaluate vectorizations, kernels, learned representations, and Transformer-based models under one protocol with shared PD inputs, outer folds, and validation-only selection. Among all evaluated PD methods and downstream configurations, PPE achieves the highest mean on most benchmarks, including TU8, ORBIT5K, and MCB-C. Finally, we prove that grid averaging leaves a reconstruction error at any resolution, whereas a Transformer with fixed random Fourier frequencies is almost surely universal. PPE thus offers a minimal, Transformer-native baseline for persistence diagrams, and a common protocol for future comparison.
1 INTRODUCTION
How should a persistence diagram be presented to a Transformer? Persistent homology (PH) is a standard tool in topological data analysis (TDA) (Carlsson, 2009) for characterizing the shape and structure of data across multiple scales, with applications spanning molecular property prediction, protein structure analysis, drug discovery, dynamical systems, materials science, and neuroscience (see Appendix B for related work). Its output is commonly represented as a persistence diagram (PD), a multiset of birth–death pairs that records when topological features appear and disappear. A broad range of methods incorporate PDs into learning pipelines, including fixed summaries—persistence images, landscapes, Betti curves, silhouettes (Adams et al., 2017; Bubenik, 2015; Umeda, 2017; Chazal et al., 2015); kernels—sliced Wasserstein, scale-space, persistence-weighted Gaussian (Carrière et al., 2017; Reininghaus et al., 2015; Kusano et al., 2016); and learned representations—PERSLAY, RationalHat, ATOL (Carrière et al., 2020; Hofer et al., 2019; Royer et al., 2021). Yet for Transformers, which have become general-purpose backbones across modalities, the question above remains open.
The difficulty is that a Transformer does not consume a diagram. It consumes tokens. Using a diagram-level representation as a single token compresses the entire diagram before self-attention is applied, so attention never operates on individual topological features directly. Splitting such a representation into multiple tokens requires an additional choice of how those tokens should correspond to the underlying diagram. Treating each persistence point as a token is the natural point-level alternative, but raw two-dimensional coordinates are not necessarily an effective input for a Transformer. Using PDs with Transformers therefore involves a nontrivial choice of both tokenization and point representation.
Equal contribution.
Existing Transformer-based PD methods place their diagram-specific design at different stages. PERS-FORMER (Reinauer et al., 2021) keeps standard scaled dot-product attention while adding a learned pointwise embedding, extra residual connections between self-attention layers, and attention pooling against a trainable query. XPERT (Kim, 2024) pixelizes each diagram onto an grid and partitions it into patches, so the grid resolution and the patch size must be chosen together before a ViT-style encoder sees the tokens. The Multiset Transformer (MST) (Wang et al., 2024) represents distinct points with explicit multiplicities, adds multiplicity-dependent terms to its attention weights, and uses multiset-specific equivariant blocks and invariant readout. Because each of these changes several parts of the representation, aggregation, or Transformer pipeline at once, a method-level comparison cannot tell which change is responsible for the reported gains (see Appendix B).
A second obstacle compounds the first. Reported results across the PD literature come from different PD inputs, data splits, model-selection procedures, and search budgets, so numbers from different papers are rarely comparable. This lack of comparability has been raised as a barrier to progress in topological machine learning (Barnes et al., 2021; Castilla Rieso et al., 2026). As a concrete example, the released XPERT protocol trains on all non-test samples and reports the maximum test accuracy across epochs. Under such conditions, even the basic question of whether a specialized architecture is needed at all cannot be settled from the literature.
We address both obstacles with a deliberately minimal design and a controlled evaluation. Persistence Positional Encoding (PPE) confines its diagram-specific design to token construction. Each birth-death coordinate is mapped through fixed random Fourier features and combined with a learnable homology-dimension embedding, while the Transformer blocks, the attention rule, and the CLS readout stay unchanged. This separation lets us ask directly whether the bottleneck in applying Transformer to PDs lies in the representation of persistence points or in the architecture around them. In matched controls on the eight TU graph benchmarks, changing only the point representation shifts macro accuracy by 5.49 to 6.47 percentage points (pp), whereas changing only the downstream module shifts it by 0.47 to 1.45 pp (Table 3). The largest single-dataset gain from the point encoder is 19.5 pp, on DHFR. Among the components varied here, point representation is the dominant design variable.
Fourier feature mappings expose multiple frequency scales before the coordinates reach the downstream network (Tancik et al., 2020; Mildenhall et al., 2020), and this gives the empirical finding a theoretical counterpart. We show that at every resolution, uniform grid averaging leaves a reconstruction error that no decoder can bring below a fixed positive bound (Theorem 1). Information discarded at the grid cannot be recovered downstream, however expressive the model. A Transformer with fixed Fourier frequencies is instead almost surely a universal approximator for continuous functions of persistence diagrams, without prior knowledge of the target frequencies (Theorem 2).
We reevaluate diagram-level vectorizations, kernel methods, learned PD representations, and Transformer-based PD models above on shared prepared PD inputs and outer folds, with model selection based only on validation data for every method. Under this protocol, PPE achieves the highest TU8 macro across all evaluated method–downstream configurations and has the highest mean among the evaluated Transformer-based PD methods on all eleven benchmarks, including 90.68% on ORBIT5K, 6.82 pp above the next-best 83.86%. This includes two larger-scale benchmarks not reported in prior PD–Transformer work, with 69.32 ROC-AUC on ogbg-molhiv (41,127 graphs under its official scaffold split) and 65.79 balanced accuracy on MCB-C (1,745 point-cloud samples), exceeding the next-best Transformer-based method by 1.05 and 9.46 pp, respectively.
One may ask whether PPE is more than Fourier features applied to PD coordinates. The feature map itself follows a standard construction (Tancik et al., 2020). Our contribution is not the feature map in isolation, but showing why this representation choice matters through the matched controls that attribute the gains to point representation rather than to architecture, the theory that explains why grid-based tokenization cannot close the gap, and the unified protocol under which Transformer-based, vectorization, kernel, and learned PD methods are compared on equal terms. Together, these turn a small encoder change into something the field can build on. PPE gives persistence diagrams a Transformer-native interface that requires no PD-specific attention or pooling, so it drops into standard token-based pipelines as they are. The controls and theory tell practitioners which design variable deserves their effort, and the unified protocol offers a common ground on which future PD methods, Transformer-based or not, can be compared. We view this combination, rather than the encoder alone, as the contribution of this work. Our main contributions are as follows:
Method and findings. We introduce PPE, which maps PD points to Fourier features for a standard Transformer. It achieves the highest mean among the evaluated Transformer-based PD methods on all eleven benchmarks, including two larger-scale evaluations, and shows more stable convergence (Figure 2b). Matched TU8 controls show larger gains from changing the point encoding, 5.49–6.47 pp, than from changing the downstream module, 0.47–1.45 pp (Table 3).
Theory. We prove a reconstruction lower bound for uniform grid averaging that holds at every resolution and for every decoder (Theorem 1), and an almost-sure universal approximation result for the PPE Transformer with Fourier frequencies sampled once and kept fixed (Theorem 2).
Unified evaluation. We reevaluate Transformer-based models, vectorization methods, kernels, and learned PD representations on shared PD inputs and outer folds with validation-based model selection (Tables 1 and 2). We further extend the comparison beyond the benchmarks reported in prior PD–Transformer work to the 41,127-graph ogbg-molhiv and MCB-C. PPE attains the highest TU8 macro accuracy among the evaluated method–downstream configurations (Table 2).
2.1 PRELIMINARY
A persistence diagram is a multiset of points where each point represents a topological feature with birth time and death time (with ). We write for its cardinality. In practice, we compute persistence diagrams for multiple homological dimensions. Let denote the persistence diagram for dimension (Betti- features). In our experiments, we use for connected components (clusters) and for loops/cycles (holes). The model consumes the points of all homology dimensions used as a single sequence, so we index them jointly by with , writing for the -th point and for its homology dimension.
2.2 PERSISTENCE POSITIONAL ENCODING (PPE)
PPE treats a PD as an unordered token sequence rather than rasterizing it into an image or reducing it to pairwise kernel evaluations. For each diagram point, we encode the raw coordinate with fixed random Fourier features, project the result to the Transformer width, and add a learnable homology-dimension embedding that marks whether the token comes from , , or another dimension. The resulting variable-length token sequence is processed by an otherwise standard Transformer encoder with padding masks, CLS-token pooling, and a linear prediction head. Figure 1 summarizes this pipeline. The following subsections define each component.
2.2.1 FOURIER FEATURE ENCODING
Following Tancik et al. (2020), we encode each coordinate using random Fourier features (RFF). Let have rows , where the frequencies are sampled from and fixed throughout training. The RFF encoding maps a 2D coordinate to a 2m-dimensional vector:
where concatenates the m-dimensional cosine and sine blocks. This encoding keeps each PD point as a separate token and provides explicit multi-frequency features to mitigate the spectral bias that can hinder raw-coordinate MLPs from resolving fine-grained differences (Section 4.3).
2.2.2 HOMOLOGY-DIMENSION EMBEDDING
Each point is mapped to a token by linearly projecting its Fourier features to the model dimension and adding a learnable embedding of its homology dimension , with one embedding vector per homology dimension:
(a) Data to Persistence Diagram
(b) Random Fourier Features
(c) Downstream Tasks

Figure 1: A schematic overview of PPE. (a) Filtration converts topological data, e.g., graphs, point clouds, or other structured domains, into persistence diagrams. (b) Each PD point is encoded by fixed random Fourier features, linearly projected, and augmented with a learnable homology-dimension embedding ( or ). The resulting unordered token sequence is processed by a Transformer encoder without positional encoding. (c) The CLS representation drives downstream tasks, such as molecular/graph classification and shape/object classification.
2.2.3 ENCODER, HEAD, AND TRAINING
The token sequence is prepended with a learnable [CLS] token (Devlin et al., 2019) and passed through vanilla Transformer encoder layers (Vaswani et al., 2017) with pre-LayerNorm (Xiong et al., 2020) and GELU activations. Variable-length batches are padded to the maximum length per batch, and an attention mask zeroes out padded positions so they do not influence attention or downstream representations. Classification uses a single linear head over the LayerNorm-ed CLS output. We train with cross-entropy loss and AdamW (Loshchilov & Hutter, 2019) under a linear-warmup-then-cosine-decay schedule with early stopping on validation accuracy. Full hyperparameters appear in Appendix F.
3 THEORY
We establish two complementary expressivity results. First, we show that a cell-average grid representation has an irreducible worst-case reconstruction error, regardless of decoder complexity. Second, we show that fixing the Fourier frequencies does not create an analogous limitation for PPE. With probability one, a two-layer Transformer with a fixed set of randomly sampled Fourier frequencies can universally approximate continuous functions on bounded persistence diagrams. Here, denotes the space of real-valued continuous functions on compact . Proofs of both theorems are provided in Appendix C.
3.1 LIMITATION OF GRID-BASED REPRESENTATIONS
By the Stone–Weierstrass theorem (Stone, 1948), for any continuous function f on a compact domain X and any desired accuracy, there exists a finite trigonometric sum that achieves that accuracy. That is, choosing frequencies according to the target function yields arbitrarily accurate approximations of continuous functions. However, when a continuous function f is represented by finite-resolution cell statistics, distinct within-cell variations can become indistinguishable before any downstream processing. The following theorem formalizes this limitation for a cell-average grid representation.
Theorem 1 (Grid reconstruction lower bound). Let , and let denote the uniform partition of . For any , define the grid representation . Then, for every and every decoder ,
Increasing the complexity of the decoder cannot recover information already lost by the fixed grid.
3.2 UNIVERSAL APPROXIMATION WITH A FIXED FOURIER ENCODER
Fourier approximation allows the frequencies to be chosen according to the target function and desired accuracy. In the default PPE setup, however, the frequencies in are sampled once and fixed without access to the target function, but can also be made learnable as a straightforward extension (Table 4). We therefore ask whether fixing limits expressivity. The next result shows that a fixed set of randomly sampled frequencies, when followed by the Transformer, suffices for universal approximation of continuous diagram-level functions.
Fix and . Let , and let be the set of all multisets of at most points in . The empty diagram is included and diagonal points are retained. Convergence requires eventual equality of cardinalities and convergence of the matched points.
Theorem 2 (Universal approximation with a fixed Fourier encoder). Let have at least three rows sampled i.i.d. from a nondegenerate Gaussian distribution on . For almost every , for every continuous function and every , there exists a two-layer PPE Transformer with finite FFN widths and trainable parameters such that
4 EXPERIMENTS
4.1 EXPERIMENTAL SETUP
Datasets. We evaluate PPE on ORBIT5K, standard TUDataset graph-classification benchmarks used by prior persistence-diagram baselines, and two larger-scale benchmarks, ogbg-molhiv and MCB-C.
ORBIT5K. The standard point-cloud benchmark for neural TDA methods (Carrière et al., 2020), with 5,000 linked twist map orbits (5 classes, , 1,000 points per orbit). Prior-work numbers use their original protocols. Our reproduced results use the unified 10-fold train/validation/test protocol described below.
TU graph benchmarks. We evaluate on standard TUDataset benchmarks (Morris et al., 2020), namely MUTAG, PROTEINS, COX2, DHFR, IMDB-B, IMDB-M, NCI1, and NCI109. These cover molecular graphs and social interaction graphs. We use class labels only for supervised evaluation, and node attributes are not used in the reproduced PD-only comparison.
Larger-scale benchmarks. We additionally evaluate frozen model configurations on ogbg-molhiv (Hu et al., 2020) and MCB-C (Graf et al., 2025). The ogbg-molhiv benchmark contains 41,127 molecular graphs and uses the official scaffold split with ROC-AUC. MCB-C contains 1,745 high-resolution point clouds and uses the ten released folds with balanced accuracy. We deterministically sample 20,000 input points per MCB-C example before computing persistence.
Persistence diagram computation. For point cloud data (ORBIT, linked twist), we compute persistence diagrams via Alpha complex filtration using GUDHI (The GUDHI Project, 2015). For graph data, we follow PERSLAY (Carrière et al., 2020) and use Heat Kernel Signature (HKS) sublevel persistence (Sun et al., 2009): for each graph we compute the normalized Laplacian , derive HKS values at diffusion time , and use these as the filtration function. Here and denote degree and adjacency matrices, and are Laplacian eigenpairs of . In both cases, infinite-death points are removed and coordinates are used as raw pairs. The comparison in Table 1(a) uses ordinary and persistence. The larger-scale comparison in Table 1(b) uses ordinary and persistence for ogbg-molhiv and Alpha persistence in , , and for MCB-C.
Baselines. All baseline methods are PD-to-prediction architectures, so a fair comparison requires holding the persistence diagram itself constant. Prior papers each use different filtration choices, persistence variants, coordinate conventions, and evaluation splits, which makes their reported numbers difficult to compare on equal footing. We therefore re-implement Transformer-based PD methods inside our unified pipeline as our primary baselines, namely XPERT, PERSFORMER, and MST. The reproduced model baselines consume the same ordinary-persistence PDs (Alpha complex on ORBIT, HKS sublevel filtration at t=10 on TU graphs, both via GUDHI), go through identical data loading, and are evaluated under the same stratified 10-fold cross-validation protocol described in Section 4. For the MST reproduction, we use ordinary persistence diagrams without the optional DBSCAN clustering step; points with identical coordinates are still counted by multiplicity in the multiset attention. Per-method hyperparameters are tuned on the validation split via random grid search. The evaluated architectural choices and search ranges are reported in Appendix G.
PPE configuration. Architecture and training defaults are listed in Appendix F (Table A6). Per-dataset learning rate, weight decay, and dropout are tuned via random grid search on the validation split, while batch size, warmup, total epochs, and early-stopping patience are fixed per dataset family (full protocol in Appendix G).
Evaluation protocol. Prior work on PD classification evaluates on PDs computed under different filtration settings, so observed accuracy gaps between methods reflect a mixture of representation-learning differences and input differences, and a stronger filtration paired with a weaker model can outperform the reverse. Without controlling the input, no comparison can isolate the contribution of the architecture itself. Compounding this, evaluation protocols themselves vary across prior work and often lack an independent held-out test set after model and hyperparameter selection, allowing test-set-informed model selection to inflate reported numbers. Motivated by recent calls for transparent and comparable experimental standards in topological machine learning (Barnes et al., 2021; Castilla Rieso et al., 2026), we therefore unify both inputs (identical PDs across all methods) and protocol.
Unless otherwise noted, we use stratified 10-fold cross-validation with an explicit train/validation/test split per fold ( ). Train, validation, and test metrics are recorded at each epoch. Hyperparameter and checkpoint selection use only validation accuracy, and we report the test metric at the validation-selected epoch. Each neural configuration in the unified sweep is run as a full 5-seed 10-fold sweep, and the configuration with the highest mean validation accuracy is reported. All random seeds used for data splitting, parameter initialization, and minibatch shuffling are fixed in the released configurations.
4.2 BENCHMARK COMPARISON
Classification benchmarks. Table 1(a) compares Transformer-based PD methods on ORBIT5K and eight TU graph benchmarks. PPE achieves the highest mean on all nine benchmarks, reaching 90.68% on ORBIT5K and a TU8 macro accuracy of 73.22%. The gains over the strongest reproduced Transformer baseline are 6.82 pp on ORBIT5K and 3.90 pp in TU8 macro accuracy, with particularly large improvements of 9.30 and 7.53 pp on NCI1 and NCI109, respectively. Table 1(b) shows that PPE also achieves the highest mean among the evaluated Transformer-based PD methods on the two larger-scale benchmarks ogbg-molhiv and MCB-C under the separate frozen-transfer protocols. On MCB-C, the margin over the strongest evaluated Transformer-based PD baseline reaches 9.46 pp in balanced accuracy, with no target-specific hyperparameter search. In the matched control (Table 1(c), Table A1), replacing PIs with fixed RFF raises TU8 macro accuracy from 64.41 to 72.16 with pooled MLP aggregation and from 64.97 to 72.63 with Transformer aggregation. With the RFF tokenizer fixed, pooled MLP and Transformer aggregation reach TU8 macro accuracies of 72.16 and 72.63, respectively. The representation change therefore improves accuracy by 7.66 to 7.75 pp, while switching from pooled MLP to Transformer aggregation yields much smaller gains of 0.56 pp with PIs and 0.47 pp with RFF. The gain thus comes mostly from the point representation rather than from the downstream model.
Table 1: Benchmark and controlled-interface results. (a) reports the unified Transformer-based comparison, (b) additional larger-scale evaluations, and (c) a matched control, whose column reports the signed difference (Transformer aggregation minus pooled MLP aggregation) in percentage points. Gray shading and bold mark the highest mean, while underline marks the second-highest mean within each comparison.
(a) Transformer-based comparison
| Method | ORBIT5K | MUTAG | PROTEINS | COX2 | DHFR | IMDB-B | IMDB-M | NCI1 | NCI109 | TU8 |
|---|---|---|---|---|---|---|---|---|---|---|
| MST | 81.56±5.53 | 78.99±7.90 | 68.10±2.89 | 77.53±1.56 | 60.34±3.53 | 67.78±4.34 | 39.28±3.09 | 65.44±1.28 | 59.97±1.29 | 64.68 |
| PERSFORMER | 76.90±13.58* | 82.48±6.23 | 71.23±3.18 | 78.16±0.58 | 60.83±0.65 | 67.44±2.75 | 39.63±3.73 | 64.10±3.21 | 64.64±1.66 | 66.06 |
| XPERT | 83.86±1.24 | 83.38±5.75 | 72.29±3.59 | 77.51±3.05 | 75.80±3.27 | 66.48±4.13 | 46.15±3.24 | 66.36±1.14 | 66.56±1.02 | 69.32 |
| PPE (Ours) | 90.68±0.72 | 87.44±3.40 | 72.96±4.61 | 78.70±3.47 | 80.03±3.18 | 70.24±3.33 | 46.60±3.45 | 75.66±1.47 | 74.09±1.66 | 73.22 |
- PERSFORMER trains very unstably on ORBIT5K. Kim (2024) reproduce it with the authors' official code and report the model as "not trainable" on ORBIT5K. Figure 2(b) shows the validation curves.
(b) Larger-scale benchmarks
| Method | ogbg-molhiv ROC-AUC | MCB-C Balanced acc. |
|---|---|---|
| MST | 63.13±2.72 | 49.30±5.64 |
| PERSFORMER | 63.00±0.47 | 14.69±10.66 |
| XPERT | 68.27±0.71 | 56.33±4.28 |
| PPE (Ours) | 69.32±1.51 | 65.79±4.27 |
(c) Matched representation × backbone control (TU8)
| Representation | Pooled MLP aggregation | Transformer aggregation | Δ |
|---|---|---|---|
| Persistence image (PI) | 64.41 | 64.97 | +0.56 |
| Random Fourier feature (RFF) | 72.16 | 72.63 | +0.47 |
| RFF – PI | +7.75 | +7.66 |
PPE achieves the highest TU8 macro accuracy of 73.22 among the evaluated method–downstream configurations, spanning Transformer-based PD methods, learned representations, fixed summaries, and persistence kernels (Table 2). This result demonstrates that fixed RFF point tokens paired with a standard Transformer provide a simple and effective architecture for PD classification. The comparison uses shared PD inputs and outer folds, with model selection based only on validation data. Per-dataset results and downstream configurations are provided in Table A3 (Appendix A).
Table 2: TU8 comparison across PD method families. Each row is a method–downstream configuration. TU8 is the unweighted mean over the eight graph datasets. Gray shading and bold mark the highest mean, and underline marks the second-highest mean.
| Method | Learning model | TU8 |
|---|---|---|
| Transformer-based PD methods | ||
| PPE | Transformer | 73.22 |
| XPERT | Transformer | 69.32 |
| PERSFORMER | Transformer | 66.06 |
| MST | Transformer | 64.68 |
| Learned PD representations | ||
| ATOL | Random forest | 72.56 |
| PERSLAY* | Learned invariant layer | 71.10 |
| RationalHat | MLP | 68.80 |
| RationalHat | Graph MLP | 64.42 |
| Method | Learning model | TU8 |
|---|---|---|
| Fixed PD summaries | ||
| Persistence image | Random forest | 71.67 |
| Persistence landscape | Random forest | 71.17 |
| Betti curve | Random forest | 71.01 |
| Persistence silhouette | Random forest | 68.51 |
| Persistence kernels | ||
| Sliced Wasserstein | SVM | 71.34 |
| Persistence scale-space | SVM | 69.56 |
| Persistence-weighted Gaussian | SVM | 68.23 |
- We evaluate Image, Line/Permutation-Equivariant, Landscape, and Exponential variants under the same protocol and report the variant selected using validation data. Image is selected on all datasets. Full variant-wise results are reported in Table A2.
4.3 CONTROL ANALYSES AND VALIDATION BEHAVIOR
The matched control in Table 1(c) compares an image-based representation with pointwise features. Here we extend this comparison to other pointwise encoders and ask how accuracy varies across downstream modules with the encoder held fixed as shown in Table 3. Point MLP is a two-layer encoder over raw coordinates, while the raw-coordinate representation uses only the direct coordinate projection. Pooled MLP applies a two-layer MLP after permutation-invariant pooling, using sum and mean together in the factorial control and one of the two alone in the downstream control. The remaining downstream modules are DeepSets (Zaheer et al., 2017), learned-query multi-head pooling, and the PPE Transformer with CLS readout. Within each matched control, the homology-dimension embedding, classifier head, optimizer, and data pipeline are fixed.
Across all three matched point-representation controls, RFF raises TU8 by 6.47 pp with mean+sum pooling, by 5.49 pp with the Transformer, and by 7.28 pp over raw coordinates with DeepSets. Changing the downstream backbone shifts TU8 by 1.45 pp with Point MLP and by 0.47 pp with
Table 3: Point-representation and downstream-module controls. Accuracy (%) under the matched TU8 protocol. Shared configurations are repeated across controls so that each comparison is self-contained. TU8 is the unweighted mean over the eight graph datasets. Gray shading and bold mark the highest mean, while underline marks the second-highest mean within each control.
| Varied factor | Point representation | Downstream module | MUTAG | PROTEINS | COX2 | DHFR | IMDB-B | IMDB-M | NCI1 | NCI109 | TU8 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Both | Point MLP | Pooled MLP (mean+sum) | 81.38 | 72.58 | 78.08 | 60.32 | 64.28 | 43.56 | 62.46 | 62.84 | 65.69 |
| Point MLP | Transformer | 82.69 | 71.48 | 78.16 | 60.64 | 68.64 | 45.68 | 64.56 | 65.29 | 67.14 | |
| Fixed RFF | Pooled MLP (mean+sum) | 85.74 | 71.61 | 77.46 | 79.85 | 69.00 | 46.43 | 73.64 | 73.58 | 72.16 | |
| Fixed RFF | Transformer | 85.38 | 71.72 | 78.30 | 79.56 | 69.88 | 46.47 | 75.67 | 74.07 | 72.63 | |
| Point representation | Raw coordinates | DeepSets | 80.43 | 71.82 | 78.16 | 60.85 | 63.84 | 39.45 | 62.41 | 62.42 | 64.92 |
| Fixed RFF | DeepSets | 86.08 | 72.09 | 77.55 | 79.37 | 68.56 | 46.67 | 74.08 | 73.22 | 72.20 | |
| Downstream module | Fixed RFF | Pooled MLP (mean) | 86.80 | 70.15 | 76.72 | 78.82 | 68.26 | 46.19 | 69.44 | 68.98 | 70.67 |
| Fixed RFF | Pooled MLP (sum) | 86.67 | 70.20 | 77.37 | 80.49 | 68.04 | 46.48 | 73.30 | 73.02 | 71.95 | |
| Fixed RFF | DeepSets | 86.08 | 72.09 | 77.55 | 79.37 | 68.56 | 46.67 | 74.08 | 73.22 | 72.20 | |
| Fixed RFF | Learned-query pooling | 85.06 | 70.15 | 77.62 | 79.27 | 69.40 | 45.97 | 72.15 | 71.61 | 71.40 | |
| Fixed RFF | Transformer | 85.38 | 71.72 | 78.30 | 79.56 | 69.88 | 46.47 | 75.67 | 74.07 | 72.63 |
| Dataset | Fourier | MLP | Δ |
|---|---|---|---|
| MUTAG | 85.38 | 82.69 | +2.69 |
| PROTEINS | 71.72 | 71.48 | +0.24 |
| COX2 | 78.30 | 78.16 | +0.14 |
| DHFR | 79.56 | 60.64 | +18.92 |
| IMDB-B | 69.88 | 68.64 | +1.24 |
| IMDB-M | 46.47 | 45.68 | +0.79 |
| NCI1 | 75.67 | 64.56 | +11.11 |
| NCI109 | 74.07 | 65.29 | +8.78 |
| TU8 | 72.63 | 67.14 | +5.49 |
(a) TU graph benchmarks.

(b) Validation convergence on ORBIT5K.
Figure 2: Coordinate-encoder ablation and validation convergence. (a) Accuracy (%) for fixed Fourier versus learned point-MLP encoders in the same PPE backbone on TU graph benchmarks, where bold marks the better encoder per row. (b) Validation accuracy versus epoch on ORBIT5K under the unified protocol. Each line is the mean over the ten cross-validation folds and each band spans those folds. Each label gives a method's peak mean accuracy and the epoch at which it occurs.
RFF, while the five fixed-RFF downstream modules span 1.96 pp. RFF is higher on at least six of eight datasets in each point-representation control and on all eight with the Transformer, with the largest single-dataset gain reaching 19.5 pp on DHFR under mean+sum pooling. In Table 3, every point-encoder replacement produces a larger TU8 macro gain than any backbone or pooling change, which makes the encoder the more consequential of the two choices tested. Figure 2(a) breaks the two Transformer rows of Table 3 down by dataset. Figure 2(b) further shows the validation dynamics on ORBIT5K. PPE reaches the highest and earliest peak, at 89.6% by epoch 60, while MST and XPERT peak later at 81.7–83.0%. PERSFORMER shows large fold-to-fold variation and reaches 77.6% at epoch 295. Consistently, Kim (2024) reproduced PERSFORMER with the authors' official code and reported it as “not trainable” on ORBIT5K. An ORBIT5K coordinate-noise sweep, where the Fourier encoder wins every level, is reported in Figure A1 (Appendix D).
4.4 SUB-CELL FIDELITY DISCRIMINATION: PLAIN VS. SPRINKLE DONUTS
Persistent homology records feature lifetimes, but lifetime alone does not determine which coordinate differences matter for classification, and hard binning discards a point's position within its assigned cell. We therefore use plain and sprinkle donuts, which share coarse topology, to test whether a PD interface still exposes class-relevant within-cell variation.
Dataset. We construct a binary classification task over two donut variants, namely plain donuts (3D point-cloud renderings of donut shapes, approximately torus-topological) and sprinkle donuts (the same donut shape with sprinkles on the surface). The two classes share identical coarse topology
(connected component, dominant loop) and have nearly identical PDs. The sprinkle signal manifests only as a sub-cell shift in PD-coordinate statistics, where finite death values and birth-coordinate quantiles are slightly larger for sprinkle donuts. A logistic regression on hand-crafted PD statistics reaches accuracy under 10-fold CV, confirming the discriminative signal is present in the diagrams. Each point cloud is produced by a text→image→3D pipeline and uniformly subsampled to 2048 points. The full construction protocol and per-class counts are in Appendix E.
Results. Under random hyperparameter search, PPE reaches the highest mean test accuracy among the four evaluated Transformer-based PD methods at 71.97%, ahead of XPERT (54.11%), PERS-FORMER (52.32%), and MST (50.91%), a margin of 17.86 to 21.06 pp (Table A5 in Appendix E). Theorem 1 shows that, for uniform cell averaging, a fixed cell partition loses information that no decoder can recover. XPERT applies such a partition to PD points, mapping every point in a cell to the same representative and so discarding its position within the cell. PPE instead maps each point to fixed Fourier features before self-attention, and Figure A3 in Appendix E illustrates the grid tokenization on this benchmark. The donut result shows that class-discriminative information can reside in sub-cell PD coordinates that hard grid binning discards.
Table 4: Fixed-versus-learned frequency ablation. Mean accuracy (%) under matched conditions. Fixed keeps the sampled Fourier frequencies frozen, while Learned makes the same initialization trainable. The , , and labels denote frequency learning-rate multipliers; for and , frequency weight decay is scaled inversely. Range is the max-min difference within each row.
| Benchmark | Fixed | Learned 1× LR | Learned 10× LR | Learned 100× LR | Range |
|---|---|---|---|---|---|
| TU8 macro | 72.68 | 72.68 | 72.67 | 72.79 | 0.12 |
| ORBIT5K | 90.52 | 90.34 | 90.26 | 90.16 | 0.36 |
5 DISCUSSION AND LIMITATIONS
Fixed versus learned Fourier frequencies. We test whether the Fourier frequencies sampled from a Gaussian distribution should be learned end to end. Table 4 compares fixed and learned Fourier frequencies under otherwise identical experimental conditions. No learned setting consistently improves accuracy across TU8 and ORBIT5K. This result supports the practical use of the sampled-and-frozen frequency design analyzed in Theorem 2.
Limitations. Since PPE uses a standard Transformer, attention scales as with N input tokens, making dense point-cloud PDs such as ORBIT5K more costly. Capping tokens to the longest-lived points in each homology dimension mitigates this cost. On MCB-C, halving this cap from 1,024 to 512 preserves balanced accuracy (65.79 vs. 65.82, Table A8).
6 CONCLUSION
We asked how far a persistence diagram can be carried by the representation of its individual points, leaving the Transformer alone. PPE maps each birth–death pair through a fixed random Fourier feature map and a learnable homology-dimension embedding, and hands the resulting tokens to an off-the-shelf encoder. Under the unified Transformer comparison it has the highest mean among the evaluated Transformer-based PD models across the nine accuracy benchmarks, and in the frozen-transfer evaluations it also leads them on both larger-scale benchmarks, while the matched controls move single-dataset accuracy by as much as 19.5 pp. At every resolution, uniform grid averaging leaves a reconstruction error that no decoder can bring below a fixed positive bound, whereas a Transformer with fixed randomly sampled Fourier frequencies is almost surely a universal approximator without knowing the target frequencies. Because PPE produces model-width tokens without PD-aware attention or pooling, it drops into token-based Transformer pipelines as they are.
REFERENCES
Adams, H., Emerson, T., Kirby, M., Neville, R., Peterson, C., Shipman, P., Chepushtanova, S., Hanson, E., Motta, F., and Ziegelmeier, L. Persistence images: A stable vector representation of persistent homology. Journal of Machine Learning Research, 18(8):1–35, 2017.
Barnes, D., Polanco, L., and Perea, J. A. A comparative study of machine learning methods for persistence diagrams. Frontiers in Artificial Intelligence, 4:681174, 2021.
Bubenik, P. Statistical topological data analysis using persistence landscapes. Journal of Machine Learning Research, 16(3):77–102, 2015.
Cang, Z. and Wei, G.-W. TopologyNet: Topology based deep convolutional and multi-task neural networks for biomolecular property predictions. PLoS Computational Biology, 13(7):e1005690, 2017.
Cang, Z., Mu, L., and Wei, G.-W. Representability of algebraic topology for biomolecules in machine learning based scoring and virtual screening. PLoS Computational Biology, 14(1):e1005929, 2018.
Carlsson, G. Topology and data. Bulletin of the American Mathematical Society, 46(2):255–308, 2009.
Carrière, M., Cuturi, M., and Oudot, S. Sliced Wasserstein kernel for persistence diagrams. In International Conference on Machine Learning, pp. 664–673, 2017.
Carrière, M., Chazal, F., Ike, Y., Lacombe, T., Royer, M., and Umeda, Y. PersLay: A neural network layer for persistence diagrams and new graph topological signatures. In International Conference on Artificial Intelligence and Statistics, pp. 2786–2796, 2020.
Castilla Rieso, I., Peltier, S., and Carré, P. Position: Topological Machine Learning Cannot Progress without Experimental Standards. In Proceedings of the 43rd International Conference on Machine Learning, 2026.
Chazal, F., Fasy, B. T., Lecci, F., Rinaldo, A., and Wasserman, L. Stochastic convergence of persistence landscapes and silhouettes. Journal of Computational Geometry, 6(2):140–161, 2015.
Devlin, J., Chang, M.-W., Lee, K., and Toutanova, K. BERT: Pre-training of deep bidirectional transformers for language understanding. In NAACL-HLT, 2019.
Gameiro, M., Hiraoka, Y., Izumi, S., Kramar, M., Mischaikow, K., and Nanda, V. A topological measurement of protein compressibility. Japan Journal of Industrial and Applied Mathematics, 32(1):1–17, 2015.
Ghahremani, M., Yoo, J., Chung, S. J., Yoo, K., Ye, J. C., and Jeong, Y. Alteration in the local and global functional connectivity of resting state networks in Parkinson's disease. Journal of Movement Disorders, 11(1):13–23, 2018.
Graf, F., Pellizzoni, P., Uray, M., Huber, S., and Kwitt, R. The Flood Complex: Large-scale persistent homology on millions of points. In Advances in Neural Information Processing Systems, volume 38, 2025.
Hacquard, O., Blanchard, G., and Levrard, C. Statistical learning on measures: an application to persistence diagrams. arXiv preprint arXiv:2303.08456, 2023.
Hiraoka, Y., Nakamura, T., Hirata, A., Escolar, E. G., Matsue, K., and Nishiura, Y. Hierarchical structures of amorphous solids characterized by persistent homology. Proceedings of the National Academy of Sciences, 113(26):7035–7040, 2016.
Hofer, C., Kwitt, R., Niethammer, M., and Uhl, A. Deep learning with topological signatures. In Advances in Neural Information Processing Systems, volume 30, 2017.
Hofer, C., Kwitt, R., and Niethammer, M. Learning representations of persistence barcodes. Journal of Machine Learning Research, 20(126):1–45, 2019.
Horn, M., De Brouwer, E., Moor, M., Moreau, Y., Rieck, B., and Borgwardt, K. Topological graph neural networks. In International Conference on Learning Representations (ICLR), 2022.
Hu, W., Fey, M., Zitnik, M., Dong, Y., Ren, H., Liu, B., Catasta, M., and Leskovec, J. Open Graph Benchmark: Datasets for machine learning on graphs. In Advances in Neural Information Processing Systems, volume 33, 2020.
Kerber, M. and Russold, F. Graphcode: Learning from multiparameter persistent homology using graph neural networks. In Advances in Neural Information Processing Systems, 2024.
Khasawneh, F. A. and Munch, E. Chatter detection in turning using persistent homology. Mechanical Systems and Signal Processing, 70–71:527–541, 2016.
Kim, K., Kim, J., Zaheer, M., Kim, J., Chazal, F., and Wasserman, L. PLLay: Efficient topological layer based on persistent landscapes. In Advances in Neural Information Processing Systems, 2020.
Kim, S. xPerT: Extended Persistence Transformer. arXiv preprint arXiv:2410.14193, 2024.
Kipf, T. N. and Welling, M. Semi-supervised classification with graph convolutional networks. In International Conference on Learning Representations, 2017.
Kovacev-Nikolic, V., Bubenik, P., Nikolić, D., and Heo, G. Using persistent homology and dynamical distances to analyze protein binding. Statistical Applications in Genetics and Molecular Biology, 15(1):19–38, 2016.
Kusano, G., Hiraoka, Y., and Fukumizu, K. Persistence weighted Gaussian kernel for topological data analysis. In International Conference on Machine Learning, pp. 2004–2013, 2016.
Lee, J., Lee, Y., Kim, J., Kosiorek, A., Choi, S., and Teh, Y. W. Set transformer: A framework for attention-based permutation-invariant neural networks. In International Conference on Machine Learning, pp. 3744–3753, 2019.
Leshno, M., Lin, V. Y., Pinkus, A., and Schocken, S. Multilayer feedforward networks with a nonpolynomial activation function can approximate any function. Neural Networks, 6(6):861–867, 1993.
Loshchilov, I. and Hutter, F. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019.
Mildenhall, B., Srinivasan, P. P., Tancik, M., Barron, J. T., Ramamoorthi, R., and Ng, R. NeRF: Representing scenes as neural radiance fields for view synthesis. In European Conference on Computer Vision, pp. 405–421, 2020.
Morris, C., Kriege, N. M., Bause, F., Kersting, K., Mutzel, P., and Neumann, M. TUDataset: A collection of benchmark datasets for learning with graphs. In ICML Workshop on Graph Representation Learning and Beyond, 2020.
Nguyen, D. D., Cang, Z., Wu, K., Wang, M., Cao, Y., and Wei, G.-W. Mathematical deep learning for pose and binding affinity prediction and ranking in D3R Grand Challenges. Journal of Computer-Aided Molecular Design, 33(1):71–82, 2019.
Pegoraro, M. Persistence Spheres: Bi-continuous Representations of Persistence Diagrams. In International Conference on Learning Representations (ICLR), 2026.
Perea, J. A. and Harer, J. Sliding windows and persistence: An application of topological methods to signal analysis. Foundations of Computational Mathematics, 15(3):799–838, 2015.
Petri, G., Expert, P., Turkheimer, F., Carhart-Harris, R., Nutt, D., Hellyer, P. J., and Vaccarino, F. Homological scaffolds of brain functional networks. Journal of the Royal Society Interface, 11(101):20140873, 2014.
Qi, C. R., Su, H., Mo, K., and Guibas, L. J. PointNet: Deep learning on point sets for 3D classification and segmentation. In IEEE Conference on Computer Vision and Pattern Recognition, pp. 652–660, 2017.
Reinauer, R., Caorsi, M., and Berkouk, N. Persformer: A transformer architecture for topological machine learning. arXiv preprint arXiv:2112.15210, 2021.
Reininghaus, J., Huber, S., Bauer, U., and Kwitt, R. A stable multi-scale kernel for topological machine learning. In IEEE Conference on Computer Vision and Pattern Recognition, pp. 4741–4748, 2015.
Royer, M., Chazal, F., Levrard, C., Umeda, Y., and Ike, Y. ATOL: Measure vectorization for automatic topologically-oriented learning. In International Conference on Artificial Intelligence and Statistics, pp. 1000–1008, 2021.
Saadatfar, M., Takeuchi, H., Robins, V., Francois, N., and Hiraoka, Y. Pore configuration landscape of granular crystallization. Nature Communications, 8:15082, 2017.
Saggar, M., Sporns, O., Gonzalez-Castillo, J., Bandettini, P. A., Carlsson, G., Glover, G., and Reiss, A. L. Towards a new approach to reveal dynamical organization of the brain using topological data analysis. Nature Communications, 9(1):1399, 2018.
Sizemore, A. E., Phillips-Cremins, J. E., Ghrist, R., and Bassett, D. S. The importance of the whole: Topological data analysis for the network neuroscientist. Network Neuroscience, 3(3):656–673, 2019.
Stone, M. H. The generalized Weierstrass approximation theorem. Mathematics Magazine, 21:167–184, 237–254, 1948.
Sun, J., Ovsjanikov, M., and Guibas, L. A concise and provably informative multi-scale signature based on heat diffusion. In Computer Graphics Forum, volume 28, pp. 1383–1392, 2009.
Tancik, M., Srinivasan, P. P., Mildenhall, B., Fridovich-Keil, S., Raghavan, N., Singhal, U., Ramamoorthi, R., Barron, J. T., and Ng, R. Fourier features let networks learn high frequency functions in low dimensional domains. In Advances in Neural Information Processing Systems, 2020.
The GUDHI Project. GUDHI User and Reference Manual. GUDHI Editorial Board, 2015. https://gudhi.inria.fr/.
Townsend, J., Micucci, C. P., Hymel, J. H., Maroulas, V., and Vogiatzis, K. D. Representation of molecular structures with persistent homology for machine learning applications in chemistry. Nature Communications, 11:3230, 2020.
Umeda, Y. Time series classification via topological data analysis. Transactions of the Japanese Society for Artificial Intelligence, 32(3):D-G72, 2017.
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., and Polosukhin, I. Attention is all you need. In Advances in Neural Information Processing Systems, pp. 5998–6008, 2017.
Verma, Y., Souza, A. H., and Garg, V. Positional encoding meets persistent homology on graphs. In International Conference on Machine Learning, 2025.
Wang, M., Huang, Z., and Xu, J. Multiset Transformer: Advancing Representation Learning in Persistence Diagrams. arXiv preprint arXiv:2411.14662, 2024.
Wee, J. and Xia, K. Forman persistent Ricci curvature (FPRC)-based machine learning models for protein–ligand binding affinity prediction. Briefings in Bioinformatics, 22(6):bbab136, 2021.
Xia, K. and Wei, G.-W. Persistent homology analysis of protein structure, flexibility, and folding. International Journal for Numerical Methods in Biomedical Engineering, 30(8):814–844, 2014.
Xiong, R., Yang, Y., He, D., Zheng, K., Zheng, S., Xing, C., Zhang, H., Lan, Y., Wang, L., and Liu, T.-Y. On layer normalization in the Transformer architecture. In International Conference on Machine Learning, pp. 10524–10533, 2020.
Xu, K., Hu, W., Leskovec, J., and Jegelka, S. How powerful are graph neural networks? In International Conference on Learning Representations, 2019.
Yoo, J., Kim, E. Y., Ahn, Y. M., and Ye, J. C. Topological persistence vineyard for dynamic functional brain connectivity during resting and gaming stages. Journal of Neuroscience Methods, 267:1–13, 2016.
You, J., Heo, E., and Jung, J.-H. PHLP: Sole persistent homology for link prediction — interpretable feature extraction. arXiv preprint arXiv:2404.15225, 2024.
Zaheer, M., Kottur, S., Ravanbakhsh, S., Poczos, B., Salakhutdinov, R., and Smola, A. J. Deep Sets. In Advances in Neural Information Processing Systems, volume 30, pp. 3391–3401, 2017.
Zhao, H., Jiang, L., Jia, J., Torr, P. H., and Koltun, V. Point transformer. In IEEE/CVF International Conference on Computer Vision, pp. 16259–16268, 2021.
A ADDITIONAL EXPERIMENTAL COMPARISONS
The main-text summary in Table 2 is complemented here by common-head comparisons. Table A3 holds the downstream model fixed within each block and reports every dataset, covering the two common heads, the persistence kernels, and the RationalHat projection. All TU8 rows use the shared prepared ordinary-persistence inputs and outer folds.
Table A1: Per-dataset PI versus RFF comparison with a matched Transformer backbone. Accuracy (%) over ten folds and five seeds per fold. Both representations use the same Transformer architecture, folds, and validation-only selection rule. Bold marks the higher mean for each dataset.
| Dataset | PI + Transformer | RFF + Transformer | PI - RFF |
|---|---|---|---|
| MUTAG | 81.70 | 85.38 | -3.68 |
| PROTEINS | 73.22 | 71.72 | +1.50 |
| COX2 | 78.16 | 78.30 | -0.14 |
| DHFR | 60.50 | 79.56 | -19.06 |
| IMDB-B | 50.30 | 69.88 | -19.58 |
| IMDB-M | 43.11 | 46.47 | -3.36 |
| NCI1 | 66.92 | 75.67 | -8.75 |
| NCI109 | 65.83 | 74.07 | -8.24 |
Table A2: PersLay variant comparison. All variants use the same PyTorch PersLay implementation, prepared persistence diagrams, outer folds, training protocol, and validation-only selection. TU8 is the unweighted mean over the eight graph datasets. Gray shading and bold mark the highest mean, while underline marks the second-highest mean.
| PersLay variant | ORBIT5K | TU8 |
|---|---|---|
| Image | 81.36 | 71.10 |
| Line/PEQ | 36.49 | 66.31 |
| Landscape | 32.97 | 64.05 |
| Exponential | 27.65 | 65.94 |
Table A4 expands the larger-scale comparison in Table 1 to the evaluated PD methods. The ogbg-molhiv experiment uses 41,127 graphs, the official scaffold split, and five seeds. The MCB-C experiment uses 1,745 samples, ten predefined folds, and five seeds per fold. No target-specific hyperparameter sweep is performed for these frozen-transfer evaluations.
B RELATED WORK
Applications of Persistent Homology in the Sciences. Persistent homology has produced application-driven evidence across scientific domains. In molecular and drug-discovery contexts, topological invariants of biomolecular complexes inform property prediction, ligand–target scoring, and virtual screening (Cang & Wei, 2017; Wee & Xia, 2021; Cang et al., 2018; Nguyen et al., 2019; Townsend et al., 2020). In materials science, persistence captures the hierarchical pore architectures
Table A3: Controlled comparison across TU8 datasets. Rows are grouped by downstream model or model family, with matched representations sharing the same downstream model and evaluation protocol. Per-dataset entries report mean test accuracy and population standard deviation across ten outer folds; TU8 is the unweighted mean over the eight datasets. Kernel construction uses training diagrams only, and SVM selection uses validation data only. Gray shading and bold mark the highest mean in each column across all configurations, and underlining marks the second highest.
| Representation | MUTAG | PROTEINS | COX2 | DHFR | IMDB-B | IMDB-M | NCI1 | NCI109 | TU8 |
|---|---|---|---|---|---|---|---|---|---|
| Common MLP head from the persistence-image configuration | |||||||||
| Persistence image | 82.76±6.24 | 73.47±3.66 | 77.39±1.44 | 61.16±0.90 | 65.72±3.44 | 43.27±5.17 | 66.01±2.55 | 65.57±1.77 | 66.92 |
| ATOL | 86.54±4.28 | 71.66±3.54 | 77.65±0.79 | 72.20±5.78 | 67.32±6.46 | 44.03±3.98 | 64.32±1.30 | 66.00±1.57 | 68.71 |
| Persistence landscape | 80.95±10.87 | 66.45±2.08 | 78.08±0.55 | 71.14±5.06 | 64.96±3.06 | 40.99±2.85 | 61.14±1.41 | 60.73±2.22 | 65.56 |
| Persistence silhouette | 66.30±1.34 | 67.53±2.46 | 78.08±0.76 | 60.90±0.40 | 65.44±3.51 | 41.29±2.85 | 56.76±2.19 | 56.98±2.56 | 61.66 |
| Betti curve | 85.19±5.70 | 68.71±2.51 | 77.35±0.89 | 78.18±2.93 | 65.12±2.97 | 40.92±3.37 | 69.49±2.01 | 70.10±1.35 | 69.38 |
| Random forest with 100 trees | |||||||||
| Persistence image | 83.94±7.46 | 72.09±3.14 | 78.00±5.42 | 76.93±3.92 | 66.88±4.70 | 46.21±5.01 | 74.51±1.93 | 74.79±1.86 | 71.67 |
| ATOL | 88.22±3.70 | 70.38±3.72 | 78.84±4.67 | 79.02±2.98 | 71.92±4.80 | 47.05±3.63 | 72.74±1.29 | 72.31±1.64 | 72.56 |
| Persistence landscape | 85.79±6.55 | 68.41±3.10 | 78.64±5.30 | 79.57±4.37 | 65.10±5.69 | 40.29±2.51 | 76.42±1.95 | 75.11±1.96 | 71.17 |
| Persistence silhouette | 84.07±8.71 | 66.47±3.24 | 76.01±4.66 | 76.87±4.57 | 65.58±4.41 | 40.20±2.25 | 70.01±1.82 | 68.83±1.53 | 68.51 |
| Betti curve | 89.03±5.33 | 68.94±3.07 | 78.17±3.24 | 77.91±4.23 | 65.00±4.49 | 40.52±2.03 | 74.70±1.76 | 73.78±1.98 | 71.01 |
| Support vector machine with persistence kernels | |||||||||
| Persistence scale-space | 86.95±8.66 | 68.11±2.19 | 79.25±3.15 | 76.19±5.84 | 65.50±3.83 | 40.73±3.16 | 69.93±1.68 | 69.78±1.29 | 69.56 |
| Persistence-weighted Gaussian | 80.87±8.83 | 67.03±2.78 | 77.08±3.41 | 75.67±4.30 | 64.80±2.56 | 42.00±2.55 | 70.44±1.65 | 67.99±2.50 | 68.23 |
| Sliced Wasserstein | 86.78±3.98 | 69.45±3.40 | 76.23±2.23 | 78.72±4.99 | 63.90±3.14 | 41.80±3.39 | 77.44±2.41 | 76.42±2.17 | 71.34 |
| RationalHat projection with an MLP head | |||||||||
| RationalHat (graph MLP) | 80.29±6.17 | 69.27±2.89 | 78.16±0.58 | 61.17±2.73 | 64.12±3.79 | 40.55±2.95 | 61.65±2.55 | 60.14±2.00 | 64.42 |
| RationalHat (MLP) | 88.39±6.64 | 70.74±3.32 | 78.16±0.58 | 71.42±5.51 | 64.36±3.94 | 40.51±4.12 | 68.25±2.35 | 68.56±1.40 | 68.80 |
Table A4: Full larger-scale comparison. The ogbg-molhiv comparison reports ROC-AUC and the MCB-C comparison reports balanced accuracy. Values are pooled seed-run mean and population standard deviation. Models marked use the original graph or point cloud rather than a persistence diagram and are included only as task-level references, and are excluded from the ranking. The graph references are GIN (Xu et al., 2019) and GCN (Kipf & Welling, 2017), and the point-cloud reference follows PointNet (Qi et al., 2017). Gray shading and bold mark the highest mean in each column, while underline marks the second-highest.
| ogbg-molhiv ROC-AUC | |
|---|---|
| Method | Score |
| PERSLAY | |
| Persistence image + MLP | |
| PPE | |
| XPERT | |
| ATOL + random forest | |
| MST | |
| PERSFORMER | |
| Molecular GIN | |
| Molecular GCN | |
| MCB-C balanced accuracy | |
|---|---|
| Method | Score |
| PPE | 65.79±4.27 |
| ATOL + random forest | 64.40±2.65 |
| Persistence image + MLP | 58.61±4.36 |
| XPERT | 56.33±4.28 |
| MST | 49.30±5.64 |
| PERSLAY | 49.15±3.81 |
| PERSFORMER | 14.69±10.66 |
| PointNet-style | 63.76±4.88 |
| 20k input points | |
that govern bulk mechanical and transport properties of amorphous and granular media (Hiraoka et al., 2016; Saadatfar et al., 2017). In dynamical systems, sliding-window embeddings and time-series persistence recover attractor topology and detect parameter changes such as machining-chatter onset (Perea & Harer, 2015; Khasawneh & Munch, 2016). In structural biology, persistence quantifies binding-state separation and conformational compressibility (Kovacev-Nikolic et al., 2016; Gameiro et al., 2015), and topological fingerprints of protein structure model flexibility and predict folding stability (Xia & Wei, 2014). In neuroscience, persistent homology and time-varying “vineyard” analyses reveal higher-order brain-connectivity structure across cognitive states, individuals, and clinical populations (Petri et al., 2014; Saggar et al., 2018; Sizemore et al., 2019; Yoo et al., 2016; Ghahremani et al., 2018). In graph machine learning, persistence features alone can match GNN performance on link-prediction benchmarks, complementing message passing rather than duplicating it (You et al., 2024). These applications motivate a reusable PD-to-token interface for settings where a Transformer is the intended downstream backbone.
Persistence Diagrams and Machine Learning. Several vectorization approaches address the multiset/variable-size mismatch by moving persistence diagrams into spaces compatible with standard learning algorithms. Persistence landscapes (Bubenik, 2015) map a diagram to a sequence of piecewise-linear functions in a Banach space, enabling averages, limit theorems, hypothesis tests, and lower bounds for bottleneck and Wasserstein distances. Persistence images (Adams et al., 2017) instead place persistence-weighted Gaussian mass on each diagram point and integrate over a fixed grid, yielding stable finite-dimensional vectors that work directly with vector-space classifiers. Persistence silhouettes (Chazal et al., 2015) are a weighted functional summary of the same family with an analogous convergence theory, and Betti curves (Umeda, 2017) record the number of features alive at each filtration value. Kernel methods such as the stable multi-scale kernel of Reininghaus et al. (2015), the persistence-weighted Gaussian kernel of Kusano et al. (2016), and the sliced Wasserstein kernel of Carrière et al. (2017) avoid an explicit finite vectorization and compare diagrams through a positive-definite kernel with stability guarantees under the 1-Wasserstein distance. These methods made persistence diagrams usable in classical machine-learning pipelines, but their stability is obtained through functional smoothing, rasterization, or pairwise kernel comparison. PPE targets the complementary setting where a neural encoder consumes the diagram points directly while preserving fine coordinate information.
Deep Learning on Persistence Diagrams. PERSLAY (Carrière et al., 2020) introduced permutation-invariant layers for PDs (87.7% on ORBIT5K); PLLay (Kim et al., 2020) learned persistence landscapes end-to-end. PERSFORMER (Reinauer et al., 2021) uses a learned pointwise coordinate embedding, stacked self-attention, learned-query multi-head attention pooling, and an MLP decoder, while its theory establishes universal approximation. Its primary focus is the end-to-end learned architecture rather than a controlled comparison between fixed and learned point tokenizers under a common downstream Transformer. Section 4.3 isolates that choice by replacing only the fixed Fourier encoder with a learned two-layer raw-coordinate point MLP. MST (Wang et al., 2024) instead encodes point multiplicities in its attention weights and uses multiset-specific equivariant blocks and invariant readout (implementation details below). XPERT (Kim, 2024) discretizes persistence diagrams through hard grid binning and processes the resulting patches with a ViT-style Transformer. Persistence images instead form smooth additive surfaces before rasterization. Our grid analysis isolates the resolution cost of a uniform cell-averaging abstraction of hard binning rather than treating all grid-based summaries as equivalent. Other learned vectorizations include the differentiable structure-element layers introduced by Hofer et al. (2017) and extended by Hofer et al. (2019), as well as the learned unsupervised measure vectorization of ATOL (Royer et al., 2021). Persistent homology and message passing can capture complementary information (Horn et al., 2022). We therefore treat raw-input GNNs as task-level references rather than PD-encoder baselines, while joint graph-topology models remain a natural extension. Under the unified ordinary-PD sweep in Table 1, PPE achieves the highest mean on every reported dataset among the evaluated Transformer-based PD methods.
Implementation details of Transformer-based PD interfaces. Section 1 summarizes where the Transformer-based PD methods discussed there introduce diagram-specific design. Here we give the corresponding implementation-level details, covering point encoding, encoder connectivity, token construction, multiplicity handling, readout, and coupled representation hyperparameters.
PERSFORMER (Reinauer et al., 2021) retains standard scaled dot-product multi-head attention while introducing diagram-specific choices in the surrounding components. Points pass through a trainable position-wise fully connected embedding, homology dimension is supplied as a one-hot input, residual connections are added between self-attention layers to counter the small gradients the authors attribute to closely spaced points, and the readout is attention pooling against a single trainable query. Comparing a point representation directly against PERSFORMER therefore also changes the encoder connectivity and the readout.
XPERT (Kim, 2024) concentrates its design in the input representation. A diagram is normalized, pixelized onto an grid, and partitioned into patches, of which the non-empty ones become tokens. Extended diagrams are represented as multi-channel tensors. The resulting tokens are processed by a ViT-style encoder with sinusoidal positional encodings and a CLS readout. This introduces a coupling between the two representation choices. Before empty patches are removed there are patches, so the patch size must be compatible with the grid resolution.
MST (Wang et al., 2024) adapts the Transformer to multisets. A diagram is a set of distinct points with a separate multiplicity vector, and multiplicity-dependent terms are added to the attention weights rather than appended as coordinates. Attention, the equivariant blocks and the invariant readout are consequently all multiset-specific. DBSCAN clustering may optionally be applied first, with the original work reporting results with and without it, and for graph classification each diagram is processed by an independent MST instance before the resulting representations are concatenated.
PPE confines its design to the input. A point becomes a token through fixed random Fourier features of together with a learnable homology-dimension embedding, and the blocks, the attention rule and the CLS readout are unchanged. The corresponding encoder-only control is reported in Section 4.3.
Fourier Features and Transformers for Point Sets. Tancik et al. (2020) showed that mapping coordinates through random Fourier features overcomes the spectral bias of MLPs, enabling learning of high-frequency patterns, a technique widely adopted in NeRF (Mildenhall et al., 2020). We adapt this principle to persistence diagram coordinates. The fixed-backbone ablation in Section 4.3 shows that the point-encoder choice can materially affect performance, with the margin varying across datasets. Transformers (Vaswani et al., 2017) have been adapted for unordered point sets via Set Transformer (Lee et al., 2019) and Point Transformer (Zhao et al., 2021). Since persistence diagrams are naturally unordered point sets, permutation-equivariant self-attention is a principled choice.
Concurrent and complementary work. A growing thread combines coordinate encodings with topological features, among them bi-continuous functional representations (Pegoraro, 2026), custom multiset attention (Wang et al., 2024), measure-based learning (Hacquard et al., 2023), graph-codes (Kerber & Russold, 2024), and PiPE (Verma et al., 2025). PPE sits in this thread on the simplest representational end, using fixed random Fourier features on PD coordinates.
C EXPRESSIVITY AND APPROXIMATION
C.1 PROOF OF THE GRID RECONSTRUCTION LOWER BOUND
Proof of Theorem 1. Fix and set . Define
Both functions belong to and satisfy .
Each grid cell has side length . For every cell ,
and the same calculation gives . Hence
Since R is an integer,
Therefore .
For any decoder , let . By the triangle inequality,
Thus at least one of the two reconstruction errors is at least c/2, and therefore
16
☐
C.2 PROOF OF UNIVERSAL APPROXIMATION
Domain and topology. Fix and an integer . Let and , with the quotient topology on each component and the disjoint-union topology on . The component contains the empty diagram, and diagonal points are retained. Each component is compact, so is compact.
Architecture. Fix an integer and choose divisible by . We use two pre-LayerNorm Transformer layers with softmax attention heads of dimension and affine–GELU–affine FFNs. The model has an affine input projection, a trainable CLS token, and a final LayerNorm followed by a scalar linear head. There is no sequence-position encoding or dropout. Padding keys are masked, and CLS remains unmasked. Each LayerNorm has a fixed positive variance constant, unit scale, and zero shift.
Proof of Theorem 2. Let , , have rows , where the are sampled i.i.d. from a nondegenerate Gaussian distribution on . We use the paired features . Let consist of the first two rows of . Almost surely, is invertible. If the first three Fourier pairs agree at and , then satisfies
for some . Conditional on an invertible , is a nondegenerate Gaussian variable for each nonzero , so it belongs to with probability zero. Taking the countable union over shows that the map given by the first three Fourier pairs is injective on almost surely.
Fix such an . Let be continuous and let .
Moment representation. Set . For , write and define
For a diagram , let . The first coordinate gives . The first complex power sums determine by Newton's identities. Thus determines , including multiplicities. Since is continuous and injective on the compact space , it has a continuous inverse on its image.
LayerNorm. For , write
The radial map is strictly increasing for . Hence equal LayerNorm outputs imply that the inputs differ by a multiple of 1. On a set whose elements share one fixed coordinate, this multiple must be zero. LayerNorm is therefore injective on such a set and, if the set is compact, has a continuous inverse on its image.
Its Jacobian has operator norm at most , giving
Since GELU is continuous and nonpolynomial, affine–GELU–affine FFNs approximate continuous scalar functions uniformly on compact sets (Leshno et al., 1993). The vector-valued case follows by applying the scalar result componentwise after continuous extension from the compact domain.
First layer. Choose the affine input projection so that the first three Fourier pairs occupy the first six coordinates of each point token. Set coordinates and to 1 and -1, respectively, and all remaining coordinates to zero. Choose CLS with the same two fixed coordinates and zeros elsewhere.
The point-token map is continuous and injective. The first six coordinates have squared norm 3 for point tokens and vanish for CLS. Thus CLS is separated from the point tokens. Their union E is compact, and LayerNorm is injective on E.
Choose . For with , define
Then
Since , the last coordinates of vanish.
Set the first attention output to zero. For a point token , prescribe the FFN update ; for CLS, prescribe . These updates are continuous functions of the normalized inputs because LayerNorm has a continuous inverse on its image. Hence, for every , the first FFN can be chosen so that its residual outputs satisfy
Second layer. Let be the LayerNorm constants for the second attention branch, the second FFN, and the final output, respectively. Set . By (A2), .
Let extract the first coordinates, and let insert a vector into the last coordinates. Set the query and key projections to zero. Choose the value projections as the consecutive coordinate blocks of the identity matrix, and choose the output projection as . Set all attention biases to zero.
For a diagram with , each head assigns weight to every unmasked token. Thus, for the tokens and , the CLS residual after attention is
Since ,
Hence determines D continuously.
The set is compact. Attention leaves the two fixed coordinates of unchanged, so is injective on and has a continuous inverse on its image.
Choose the final linear head so that the output map is
For the first standard basis vector , (A2) gives .
The map
is continuous on a compact set. Choose the second FFN to approximate it with uniform Euclidean error less than . By (A1), is -Lipschitz. Therefore satisfies
Approximation error. Let be the CLS residual obtained from the approximate first-layer outputs. The attention weights remain uniform because the query and key projections are zero. Since S and have operator norm one, (A1) gives
With fixed, is uniformly continuous on a compact neighborhood of . Choose sufficiently small, and then choose the first FFN with this tolerance, so that . Since , it follows that
Multiple homology dimensions. Give the finitely many homology labels the discrete topology. Choose their embeddings so that one unused coordinate of each initial point token has a distinct value for each label. Choose translations such that are pairwise disjoint, and replace by for a point with label . The resulting moment sums determine both the coordinates and labels, including multiplicities. Choose . The same construction then applies when the total number of points is at most .
D ORBIT5K NOISE SWEEP
We extend the coordinate-encoder ablation of Section 4.3 along the coordinate-noise axis on ORBIT5K. The PPE backbone (Transformer encoder, homology-dimension embedding, CLS pooling, linear head, optimizer, and data pipeline) is held fixed. The coordinate encoder alternates between the default fixed Gaussian random-Fourier features (model.tokenizer_family=fourier) and a learned two-layer MLP point encoder over raw coordinates (tokenizer_family=mlp). Both variants use model.encoding_variant=rffPlain and model.use_betti_embedding=false. We report mean test accuracy across three training seeds per noise level. Following Adams et al. (2017), we sweep the noise level—the fraction of points replaced by uniform draws over the bounding box—across .
ORBIT5K noise sweep

Figure A1: ORBIT5K coordinate-noise sweep. Mean test accuracy as a function of point-replacement noise. The fixed Fourier encoder wins every noise level. The gap is largest at zero noise (+25.8 pp) and persists across the sweep. Averaged over the seven noisy settings, Fourier reaches 53.1% versus the learned MLP's 46.6%.
Fixed high-frequency features preserve discriminative structure under coordinate corruption. The learned MLP must induce comparable features and visibly loses ground as the noise budget grows. This sweep uses a fixed split with three seeds per noise level and is reported separately from the 10-fold CV protocol of Table 1.
E SUB-CELL DONUT BENCHMARK AND TOKENIZATION VISUALIZATION
This appendix provides visual evidence for the grid-collapse mechanism discussed in Section 4.4. Under XPERT's hard grid binning, plain and sprinkle donuts produce token representations that are visually nearly indistinguishable, even though the two classes are statistically separable on the raw persistence-diagram coordinates.
Construction. The plain-vs-sprinkle donut point clouds are generated via a three-stage text→image→mesh→point-cloud pipeline. (i) Text-to-image. SDXL-Turbo (https://github.com/Stability-AI/generative-models) renders 2D images from class-conditional prompts (representative samples in Figure A2). (ii) Image-to-3D. TripoSR (https://github.com/VAST-AI-Research/TripoSR) lifts each image to a textured triangle mesh. (iii) Mesh-to-point-cloud. We take the mesh vertices as the raw point cloud and uniformly randomly subsample to 2048 points, serialized as .npy. We generated 100 candidates per class and manually pruned obvious failure modes—bitten or partially-formed donuts, malformed 3D reconstructions, and other low-quality outputs—yielding 77 plain and 87 sprinkle samples (164 total) for the benchmark.


Figure A2: Representative SDXL-Turbo outputs at stage (i) of the donut-dataset construction pipeline. Left shows a plain donut sample. Right shows a sprinkle donut sample. These 2D renderings are subsequently lifted to 3D meshes by TripoSR and uniformly subsampled to 2048-point clouds.
Plain #003
Pair 1
Sprinkle #102

Plain #033
Pair 2
Sprinkle #141
Blue: H0 bins
Red: H1 bins
Green boxes: non-empty patches retained as tokens
Figure A3: XPERT tokenization of plain (left) versus sprinkle (right) donut persistence diagrams. Each row pairs a plain-donut sample with a sprinkle-donut sample whose XPERT tokens activate the same grid patches. The hard grid binning maps every PD point in a cell to the cell centre, so sub-cell coordinate shifts—which carry the plain-vs-sprinkle distinction—are averaged away. The two classes therefore become indistinguishable at the tokenization stage, the empirical analogue of the grid-collapse mechanism formalized in Theorem 1.
Table A5: Plain-vs-Sprinkle Donut classification. Accuracy (%) over ten folds and five seeds per fold. For each method, we report the configuration selected by validation accuracy during random hyperparameter search. Gray shading and bold mark the highest mean in each column, while underline marks the second-highest.
| Method | Val Acc (%) | Test Acc (%) |
|---|---|---|
| MST | 64.12 ±7.83 | 50.91 ±10.34 |
| PERSFORMER | 55.18 ±9.18 | 52.32 ±11.19 |
| XPERT | 62.82 ±9.80 | 54.11 ±12.62 |
| PPE (Ours) | 77.29 ±11.71 | 71.97 ±11.36 |
F ARCHITECTURE DETAILS
Table A6: PPE Transformer hyperparameters. Architecture and training defaults for the unified ORBIT5K and TU experiments. Per-dataset learning rate, weight decay, and dropout are tuned via random grid search on the validation split; batch size, warmup, total epochs, and early-stopping patience are fixed per dataset family (full protocol in Appendix G).
| Component | Configuration |
|---|---|
| Fourier Feature Encoder | |
| Number of frequencies (m) | 128 |
| Frequency scale (σ) | 10.0 |
| Output dimension | 256 (m cosine and m sine components) |
| Homology-Dimension Embedding | |
| Number of dimensions | |
| Embedding dimension | |
| Transformer Encoder | |
| Model dimension | 128 |
| Number of heads | 4 |
| Number of layers | 3 |
| Feedforward dimension | 256 |
| Dropout | 0.1 |
| Normalization | pre-LayerNorm |
| Activation | GELU |
| Training | |
| Optimizer | AdamW |
| Loss | Cross-entropy |
| LR scheduler | Linear warmup + cosine decay |
| Gradient clip | 1.0 |
| Precision | fp32 |
| Evaluation protocol | Stratified 10-fold CV, inner val split (~80/10/10 per fold) |
| Per-dataset lr / wd / dropout | Tuned via random grid search |
| Per-dataset batch / warmup / epochs / patience | Fixed per dataset family |
Larger-scale frozen-transfer settings. Both larger-scale benchmarks use seeds 101–105, 100 training epochs, early-stopping patience 30, AdamW with learning rate and zero weight decay, gradient clipping at 1.0, and fp32 precision. The training and evaluation batch sizes are 32 and 64 for ogbg-molhiv, and 16 and 32 for MCB-C. The PPE encoder retains 128 Fourier frequencies at scale 10, model width 128, four attention heads, three Transformer layers, feedforward width 256, and dropout 0.1. MCB-C uses component embeddings for , , and .
Compute resources. Experiments were executed as single-GPU jobs on available compatible accelerators, including NVIDIA A100, RTX A6000, RTX PRO 6000, RTX 3090, and RTX 4090 GPUs. The full experimental campaign therefore used heterogeneous hardware, depending on resource availability. For each (method, dataset) pair, the complete random hyperparameter search comprises 30 configurations × 10 folds × 5 random seeds, or 1,500 training runs (Appendix G). To provide concrete reference measurements on 24-GB consumer GPUs, Table A7 reports logged wall-clock times for the final selected PPE configuration executed on a single RTX 3090 or RTX 4090. Each entry covers 5 random seeds × 10-fold cross-validation and excludes the preceding hyperparameter search, preliminary experiments, and configurations not included in the final paper. Because the entries were collected on two different GPU models rather than under a controlled hardware benchmark, they should be interpreted as representative reproduction times rather than direct cross-dataset runtime comparisons.
Table A7: Representative logged wall-clock times for the final selected PPE configuration. Each entry covers 5 random seeds × 10-fold cross-validation and was measured on a single RTX 3090 or RTX 4090 GPU (24 GB). These measurements demonstrate reproduction on 24 GB consumer hardware.
| Dataset | Wall-clock time |
|---|---|
| MUTAG | 3m 28s |
| DHFR | 7m 30s |
| COX2 | 7m 45s |
| IMDB-B | 9m 46s |
| PROTEINS | 22m 4s |
| IMDB-M | 24m 50s |
| NCI1 | 1h 35m 39s |
| Donut (sub-cell) | 1h 46m 35s |
| NCI109 | 1h 50m 44s |
| ORBIT5K | 1d 12h 47s |
Table A8: MCB-C token-cap sensitivity. The cap applies to the computed persistence diagram, bounding the number of points taken from each homology dimension and keeping those of largest lifetime . MCB-C uses , , and , so at cap a diagram contributes at most 3C points. Values are balanced accuracy over 50 seed-runs.
| Cap per homology component | Balanced accuracy |
|---|---|
| 512 | |
| 1,024 (primary) | |
| 2,048 |
G RANDOM GRID SEARCH CONFIGURATION
All six methods follow the same random-search protocol. For each (method, dataset) we draw 30 random hyperparameter configurations and evaluate each under the full stratified 10-fold CV protocol with 5 fixed seeds; the optimization metric is the cross-fold cross-seed mean validation accuracy, and selection maximizes this mean. The total cost per (method, dataset) is therefore training runs. The shared optimization grid (Tab. A9) is identical across methods for an apples-to-apples comparison; per-method architecture grids (Tab. A10) specify the evaluated search spaces. Per-dataset training defaults (batch, warmup, epoch limit, early-stopping patience) are fixed per dataset family (Tab. A11) and are not part of the search. The expanded PersLay variant comparison is reported separately in Table A2.
Table A9: Shared optimization-hyperparameter grid. Identical across all six methods.
| Hyperparameter | Range | Distribution |
|---|---|---|
| learning rate | log-uniform | |
| weight decay | log-uniform | |
| dropout | uniform |
Table A10: Per-method architecture-hyperparameter grids. Method-specific search space drawn under the shared random-search protocol.
| Method | Hyperparameter | Values |
|---|---|---|
| PPE | d_model | {64, 128, 192, 256} |
| nhead | {2, 4, 8} | |
| num_layers | {2, 3, 4, 5} | |
| num_frequencies | {64, 128, 256, 384} | |
| ff_scale | [1, 30], log-uniform | |
| use_betti_embedding | {true, false} | |
| MST | hidden_size | {64, 96, 128} |
| num_heads | {2, 4} | |
| num_equivariant_layers | {1, 2, 3} | |
| num_inducing | {2, 8, 16} | |
| num_pool_queries | {1, 4, 8} | |
| classifier_dropout | [0, 0.5], uniform | |
| PERSFORMER | hidden_size | {64, 96, 128, 192, 256} |
| num_attention_layers | {2, 3, 4, 5, 6} | |
| num_attention_heads | {2, 4, 8} | |
| intermediate_size | {128, 256, 384, 512, 768, 1024} | |
| pooling | {attention, attention_sum} | |
| classifier_dropout | [0, 0.5], uniform | |
| XPERT | grid_size | {40, 50} |
| patch_size | {2, 4, 5, 8, 10} | |
| embed_dim | {64, 96, 128, 192, 256} | |
| depth | {2, 3, 4, 5, 6} | |
| num_heads | {2, 4, 8} | |
| mlp_ratio | {2, 3, 4} | |
| classifier_dropout | [0, 0.5], uniform | |
| PERSLAY | pweight_power | {0.5, 1, 2} |
| pweight_grid_size | {10, 20, 30} | |
| image_size | {16, 20, 24, 32} | |
| image_sigma | [0.02, 0.3], log-uniform | |
| image_num_filters | {8, 10, 16, 24, 32} | |
| image_filter_size | {2, 3, 5} | |
| PI+MLP | resolution | {16, 20, 24, 32} |
| sigma | [0.02, 0.3], log-uniform | |
| weight | {none, persistence, linear_ramp} | |
| ramp_end | {0.5, 1, 2} | |
| normalize | {true, false} | |
| pixel_integration | {true, false} | |
| classifier_hidden_dim | {0, 64, 128, 256, 384, 512} |
PPE fixes dim_feedforward= 2 (not swept independently).
The architecture grid above describes the Image configuration in the original unified sweep, where layer_type=image, pweight=grid, perm_op=sum, and normalize_inputs=true are fixed. The expanded comparison additionally evaluates Line/Permutation-Equivariant, Landscape, and Exponential variants as reported in Table A2.
Table A11: Fixed per-dataset training defaults. Selected once per dataset family and not part of the search; same defaults apply to all methods on a given dataset family.
| Dataset family | Batch | Warmup epochs | Total epochs | ES patience |
|---|---|---|---|---|
| TU graphs (MUTAG, PROTEINS, COX2, DHFR, IMDB-B/M, NCI1/109) | 64 | 50 | 300 | 20 |
| ORBIT5K | 16 | 50 | 300 | 20 |
| Synthetic donut | 32 | 5 | 400 | 60 |
H PRIOR-PAPER BENCHMARK NUMBERS
For reference, Table A12 records each baseline's accuracy as published in its original paper. These numbers retain each paper's original pipeline—persistence variant, splits, and per-method tuning—and are not directly comparable to the unified reproduction in Table 1.
Table A12: Prior-paper accuracy (%). As reported in each method's original publication, using each paper's original pipeline. The MST row uses ordinary persistence diagrams without clustering (Wang et al., 2024); dashes denote unreported results.
| Method | ORBIT5K | MUTAG | PROTEINS | COX2 | DHFR | IMDB-B | IMDB-M | NCI1 | NCI109 |
|---|---|---|---|---|---|---|---|---|---|
| PERSLAY | 87.7±1.0 | 89.8 | 74.8 | 80.9 | 80.3 | 71.2 | 48.8 | 73.5 | 69.5 |
| PERSFORMER | 91.2±0.8 | 89.9±2.1 | — | — | — | — | — | — | — |
| XPERT | 87.0±0.7 | 91.0±5.2 | 75.7±3.8 | 84.4±3.5 | 81.9±2.9 | 72.6±3.4 | 50.0±2.0 | — | — |
| MST (Ord., no clustering) | — | 89.25±0.77 | 72.92±0.47 | 81.20±1.04 | 74.12±0.37 | 70.76±0.47 | 45.44±0.35 | 69.12±0.17 | 66.38±0.40 |
In a separate protocol-sensitivity control of the XPERT reproduction, applying the released XPERT choices of training on all non-test samples and reporting the maximum test accuracy across epochs raises the nine-dataset macro from 70.77 under validation-only selection to 77.07, with the inputs, folds, seeds, and training settings otherwise fixed between the two protocols. This control is separate from the method-level sweep selections reported in Table 1. Because the released choices select the epoch on the test fold, all unified comparisons in the main text retain validation-only selection.
I LICENSE AND ASSET PROVENANCE
We use the following existing assets, all cited at first use in the main text. URLs and license names below reflect the public repositories at the time of submission.
Datasets. TU Dortmund graph collection (Morris et al., 2020): MUTAG, PROTEINS, COX2, DHFR, IMDB-B, IMDB-M, NCI1, NCI109. Available at https://chrsmrrs.github.io/datasets/. The collection landing page does not specify a unified license; sub-datasets originate from heterogeneous publications and are conventionally redistributed for academic research per those publications' terms.
ORBIT5K (5,000 linked twist map orbits, 5 classes): generated by the script released with the PersLay paper (Carrière et al., 2020), available at https://github.com/MathieuCarriere/perslay; the dataset's distribution license follows the PersLay repository's MIT License.
ogbg-molhiv (Hu et al., 2020) is distributed through the Open Graph Benchmark at https://ogb.stanford.edu/docs/graphprop/. The OGB documentation states an MIT License for ogbg-molhiv.
MCB-C is a filtered MCB-A subset released with the Flood Complex study (Graf et al., 2025) and distributed through https://github.com/plus-rkwitt/flooder.
Plain-vs-Sprinkle Donut benchmark (newly introduced in Section 4.4): constructed by the authors for this paper using SDXL-Turbo and TripoSR (see paragraph below). The point clouds, persistence-diagram computation script, train/validation/test split files, and a complete EDA report will be released alongside our code repository under a CC-BY 4.0 license upon publication.
Software libraries. GUDHI (The GUDHI Project, 2015): persistence-diagram computation via Alpha complex and sublevel filtrations. https://gudhi.inria.fr/licensing/; the core library is released under the MIT License, while a few modules are effectively GPLv3 through dependencies on CGAL, Miniball, or PyKeOps—users employing those modules should consult per-module headers for the effective license. PyTorch: Transformer encoder, optimizer, and training pipeline. https://pytorch.org/, BSD-3-Clause. scikit-learn: classifier head for the PI+MLP baseline. https://scikit-learn.org/, BSD-3-Clause.
Baseline encoder implementations. We reproduce the three primary Transformer-based baselines under our unified protocol: XPERT, PERSFORMER, and MST. We additionally evaluate PERSLAY and PI+MLP as broader PD comparisons. PI+MLP (Adams et al., 2017) is re-implemented from the original paper's specification with a scikit-learn MLP classifier. PERSLAY (Carrière et al.,
- is reproduced from the authors' code at https://github.com/MathieuCarriere/perslay (MIT License). PERSFORMER (Reinauer et al., 2021) is reproduced from the giotto-deep code at https://github.com/giotto-ai/giotto-deep, released under the GNU Affero General Public License v3.0 (AGPL-3.0); we use it only for evaluation and comparison and do not redistribute derivative code. XPERT (Kim, 2024) is reproduced from the authors' code at https://github.com/sehunfromdaegu/xpert (MIT License). MST (Wang et al., 2024) adapts multiplicity-aware attention and readout from the authors' implementation at https://github.com/minghuax/MST; optional clustering is not used in our comparison.
Generative tools used for donut dataset construction. SDXL-Turbo (Stability-AI generative-models, https://github.com/Stability-AI/generative-models) is used at dataset-construction time only, for the text-to-image stage, under the Stability AI Non-Commercial Research Community License Agreement. TripoSR (VAST-AI-Research TripoSR, https://github.com/VAST-AI-Research/TripoSR) is used for the image-to-3D stage under the MIT License. Neither model is shipped with our released code or used at training/inference time; only the resulting .npy point clouds will be released, under CC-BY 4.0.