TopoFisher: Learning Topological Summary Statistics by Maximizing Fisher Information

Matteo Biagetti, Mathieu Carrière, Francesco Conti, Enrico Maria Ferrari, Sven Heydenreich, Karthik ViswanathanNeurIPS 2026

TL;DR

When inferring physical parameters from messy, high-dimensional simulations—like cosmological dark matter maps—black-box neural networks extract maximum information, while topological methods offer interpretability and robustness. TopoFisher bridges this divide by making persistent homology pipelines end-to-end differentiable and training them directly to maximize Fisher information. The result is a tiny, interpretable front-end for simulation-based inference that nearly matches massive neural networks on home turf, and handily beats them when simulators shift.

What Problem Does This Paper Address?

Imagine trying to weigh the universe by looking at images of distorted galaxies. In fields like cosmology, we have brilliant simulators that generate synthetic data $X$ from physical parameters $\theta$, even when the exact likelihood $p(X|\theta)$ is mathematically intractable. Because raw simulation outputs are too high-dimensional for direct inference, scientists compress them into low-dimensional summary statistics.

A great way to summarize complex spatial structure is Topological Data Analysis (TDA)—specifically persistent homology, which tracks how geometric features (connected components, loops, cavities) appear and vanish across scales, recording their lifespans in a persistence diagram. TDA captures non-Gaussian quirks that classic two-point statistics miss.

The catch? TDA pipelines require a lot of manual guesswork: choosing a filtration (how you scan the data), a vectorization (mapping diagrams into flat vectors), and a compressor. Historically, researchers picked these by hand rather than optimizing them to actually shrink error bars on $\theta$. Meanwhile, unconstrained neural networks like Information Maximising Neural Networks (IMNNs) optimize parameter certainty directly, but act as brittle black boxes. How do we automatically tune topological summaries to retain the maximum possible parameter information?

Methods

Enter TopoFisher. The authors connect two existing worlds: differentiable persistent homology and Fisher-information maximization.

The Fisher Information Matrix $F(\theta)$ measures how sensitive your data is to tiny nudges in $\theta$; maximizing its log-determinant ($\log|F|$) directly shrinks the volume of your parameter uncertainty. While IMNNs use this local Gaussian Fisher loss to train unconstrained neural networks, TopoFisher forces the learned summary to factor explicitly through topology:

Figure 1: TopoFisher pipeline for the field benchmarks. (a) Simulations at the fiducial and at finite- difference points are filtered, converted to persistence diagrams, vectorized and compressed with MOPED; the Gaussian Fisher matrix of the summaries defines the loss, whose gradient reaches the trainable stages through the persistence pairing. On point clouds (Section 4.1) the filtration acts on an Alpha complex and the compressor is an MLP. (b) Transfer (Section 4.3): learned stages are frozen and simulation-estimated quantities are re-estimated on the target simulator.
  1. Learnable Filtration ($f_\phi$): Instead of scanning raw data, a lightweight MLP, GNN, or tiny CNN transforms the point cloud or image grid before computing persistent homology.
  2. Persistence ($\text{Dgm}_k$): Standard persistent homology extracts topological features. Because persistence pairings are piecewise differentiable, gradients flow right back through them.
  3. Vectorization ($V_\phi$) & Compression ($C_\phi$): Diagrams are mapped to vectors via differentiable persistence images or learnable set networks (PersLay), then compressed to the parameter dimension via a small MLP or MOPED (a standard locally optimal linear compression).

Crucially, this training is unsupervised—it requires no posterior samples or regression targets, just simulations at a reference ("fiducial") parameter and nearby finite-difference points. What's also new is a formal theoretical guarantee: the authors prove that under mild boundedness and non-degeneracy conditions, this negative log-determinant Fisher loss is locally Lipschitz in the trainable parameters, ensuring gradient-based optimization is well-behaved.

Datasets

The authors test TopoFisher across three synthetic simulation benchmarks—two controlled settings with known theoretical ceilings, and one realistic astrophysics problem:

  • Noisy Spiral Point Clouds: 2D clouds of 240 points mixing a parameterized spiral with uniform background noise, where total Fisher information can be integrated numerically.
  • 2D Gaussian Random Fields (GRFs): $64 \times 64$ periodic grids with power-law spectra, where exact analytical Fisher ceilings are known ($\log|F_X| = 13.89$).
  • Weak Gravitational Lensing: $512 \times 512$ cosmological convergence maps across five redshift bins generated via sbi_lens, inferring matter density and structure amplitude $(\Omega_m, \sigma_8)$. Here, models are trained on fast lognormal simulations and tested for transferability on more physically accurate Lagrange Perturbation Theory (LPT) simulations.

Key Insights and Ideas

  • Topology acts as an anti-overfitting bottleneck: Unconstrained neural networks (IMNNs) greedily memorize simulator-specific quirks near the fiducial point. Forcing information through persistence diagrams extracts physical, geometric features that survive when moving to a more realistic simulator or across wider parameter priors.
  • Filter first, vectorize second: Learning how to view the data (the filtration) consistently yields bigger gains than learning how to read the resulting persistence diagram. On GRFs, learning the vectorization alone adds nothing over hand-crafted persistence images, whereas adding a tiny 2-layer CNN filtration jumps performance significantly.
  • Readable representations: On noisy spirals, inspecting the learned MLP filtration reveals it automatically learns to "unroll" the spiral backbone while ignoring background clutter—interpretability you simply don't get from black-box pooling.

Key Results

  • Approaching Theoretical Ceilings: On noisy spirals, TopoFisher (TF-TDA-MLP) captures 78.2% of the total available Fisher information, beating fixed topological baselines (70.1%) and matching an unconstrained MLP (78.1%). On GRFs, TF-CNN-PersLay captures 85.6% of total information (vs. 88.4% for IMNN) while using 37–55$\times$ fewer trainable parameters.
  • Cosmology & Parameter Efficiency: On weak lensing, TopoFisher reaches $\log|F| \approx \mathbf{21.6}$, blowing past standard cosmological summaries like the power spectrum (13.8), peak counts (17.1), and wavelet scattering (19.3). It lands just shy of the black-box IMNN (22.4) while using up to $\sim$80$\times$ fewer parameters (2,055 vs. 168,210).
  • Superior Robustness: Under simulator shift (lognormal $\rightarrow$ LPT), the IMNN crashes from $\log|F| = 22.4$ down to 8.9, whereas TF-CNN-PersLay retains 12.8. Furthermore, when plugged into Neural Posterior Estimation (NPE) across a wide prior, TopoFisher achieves the best held-out negative log-likelihood ($-6.91$ and $-6.89$ vs. $-6.64$ for IMNN).

Limitations and Future Work

  • Persistent homology is a compute bottleneck: Despite tiny parameter counts, computing persistence diagrams dominates runtime—consuming up to 99.6% of training time when recomputed every epoch (TF-CNN-PersLay). Consequently, the much larger IMNN still trains faster in wall-clock time.
  • Local and scaling constraints: Because TopoFisher relies on finite differences around a fiducial point under a Gaussian assumption, simulation cost scales linearly with parameter dimension ($n_s + 2dn_d$), and the gap to the theoretical ceiling widens as dimensions grow.
  • Hand-crafted physics still transfers best: Under simulator shift, fixed, unlearned summaries like wavelet scattering (13.86) and power spectra (13.84) still edged out all learned representations. Exploring multi-fiducial training with learned filtrations and testing against systematic simulator misspecification are queued up as next steps.

Summary updated

Abstract

Persistence diagrams provide stable, interpretable summaries of geometric and topological structure, but persistence-based pipelines for parameter inference rely on hand-chosen filtrations, vectorizations, and compressors, without an objective tied to parameter uncertainty. We introduce \textbf{TopoFisher}, a differentiable persistent-homology pipeline that learns these stages by maximizing local Gaussian Fisher information from simulations near a fiducial parameter value, without posterior samples or regression targets. We give sufficient conditions under which the log-determinant Fisher loss is locally Lipschitz in the trainable parameters. On noisy spirals and Gaussian random fields, where the total Fisher information is known, learning the filtration improves on average over fixed topological pipelines and approaches unconstrained neural summaries. On weak gravitational lensing, the learned topological summaries reach $\log|F|\approx 21$, above the power spectrum ($13.8$), peak counts ($17.1$), and wavelet scattering ($19.3$), and close to an Information Maximising Neural Network (IMNN, $22.4$) with up to $\sim80\times$ fewer trainable parameters. Under a shift from lognormal to LPT-based simulations they lose less information than the IMNN ($\log|F|\approx 12.8$ versus $8.9$), and in neural posterior estimation they reach the lowest held-out negative log-likelihood among Fisher-trained and hand-crafted summaries, with calibrated posteriors. Fisher-trained topological summaries are thus a compact front end for simulation-based inference, more robust than unconstrained neural summaries.
BibTeX
@inproceedings{biagetti2026topofisher,
  author = {Matteo Biagetti and Mathieu Carrière and Francesco Conti and Enrico Maria Ferrari and Sven Heydenreich and Karthik Viswanathan},
  title = {{TopoFisher: Learning Topological Summary Statistics by Maximizing Fisher Information}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=B1JksRv4SE},
}
Figure