cs.LGOct 13, 2026

Persistence Positional Encoding: A Minimal Transformer Recipe for Persistence Diagrams

Authors: Eunwoo Heo, Ganghyun Kim, Jaejun Yoo

Organizations: Graduate School of Artificial Intelligence, Ulsan National Institute of Science and Technology

Abstract

Persistence diagrams (PDs) represent multiscale topological information as multisets of birth-death pairs (b,d)(b,d). 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.

Figures & tables

Appendix figures & tables15 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Voronoi Histograms for Adaptive Vectorization of Expected Persistence Diagrams

    Jul 29, 2026Kaifeng Zhang, Kai Ming TingPersistent Homology

  2. FILTR: Extracting Topological Features from Pretrained 3D Models

    Apr 24, 2026Louis Martinez, Maks OvsjanikovPoint Cloud Learning3D Representation Learning

  3. Transformer Geometry Observatory TGO-IV: Developmental Topology Observatory

    Aug 7, 2026Kaustubh Kapil, Kishor P. UplaTransformer InterpretabilityNeural Representation Geometry