Extracting Complex Topology from Multivariate Functional Approximation: Contours, Jacobi Sets, and Ridge-Valley Graphs

Guanqun Ma, David Lenz, Hanqi Guo, Tom Peterka, Bei WangarXiv 2025

TL;DR

This paper introduces the first framework to directly extract complex topological features—such as contours, Jacobi sets, and ridge-valley graphs—from Multivariate Functional Approximation (MFA) models without discretizing the domain. By leveraging high-order derivatives and particle tracing, the approach eliminates aliasing artifacts and spurious features common in traditional grid-based methods.

What Problem Does This Paper Address?

Topological data analysis (TDA) provides essential tools like contours, Jacobi sets, and ridge-valley graphs to help scientists visualize and understand complex datasets. Traditionally, these features are extracted from data sampled on discrete grids using algorithms like Marching Cubes.

Recently, implicit continuous models—such as functional approximations and implicit neural networks—have become popular for representing scientific data smoothly and compactly. However, to analyze these continuous models with existing TDA tools, researchers typically have to discretize them back onto a grid. This round-trip back to discrete space introduces aliasing artifacts (like jagged "zig-zag" lines), loses high-order derivative information, and introduces thousands of fake, spurious topological loops. This paper solves that problem by extracting topology directly from the continuous representation.

Figure 4: Overview of the MFA continuous method vs. the discrete method.

Methods

The authors focus on Multivariate Functional Approximation (MFA), which models data using continuous, piecewise smooth B-spline functions. Their framework consists of two main pillars:

  1. Contour Extraction via Particle Tracing: Instead of checking grid cells, the algorithm treats contour extraction as an initial value problem (IVP). It uses normalized gradient descent to locate starting points on a contour within individual polynomial patches (spans). From there, it uses a 4th-order Runge-Kutta (RK4) numerical integration scheme to trace the contour by moving perpendicular to the data's gradient vector.
  2. Unifying Complex Topology as Contours: The true elegance of the paper lies in how it handles more complex structures. A Jacobi set (which describes where the gradients of two functions align) and a Ridge-Valley graph (which delineates ridges and valleys) are mathematically transformed into a 0-isovalue contour extraction problem of a derived function ($h$ or $\tilde{h}$) built from the model's gradients and Hessians.

Because MFA models are processed patch-by-patch (span-by-span), the entire pipeline is naturally independent across patches and highly parallelizable using multithreading.

Visual comparison of continuous topological descriptors (top) vs. discrete grid-based extractions (bottom)

Datasets

The framework was evaluated on both synthetic benchmarks and real-world scientific datasets:

  • Synthetic Functions: Schwefel, Sinc, Gaussian pair, and Gaussian mixture models (used to validate mathematical accuracy against known ground truths).
  • S3D: A 2D slice from a turbulent combustion simulation measuring velocity magnitude.
  • Von Kármán Vortex Street & Boussinesq Approximation: 2D fluid dynamics simulations modeling flow around cylinders.
  • CESM: Global climate data from the Community Earth System Model, tracking downwelling long-wave flux.
  • Hurricane Isabel: A classic meteorological dataset tracking temperature and pressure fields.

Key Insights and Ideas

  • Reduction to Contours: Complex topological features like Jacobi sets and ridge-valley graphs don't need bespoke continuous tracking algorithms; they can be elegantly reduced to standard contour extraction problems of derived functions.
  • Bypassing the Grid Cleanly: Directly querying the continuous model yields mathematically smoother results. Grid-based methods create artificial "zig-zag" patterns because they approximate smooth curves using piecewise-linear segments over triangles or voxels.
  • Eliminating Spurious Topology: Discretization artifacts don't just look bad—they create false features. In discrete representations, jagged lines form tiny artificial triangles that grid-based TDA tools misinterpret as thousands of independent topological loops. Direct continuous extraction inherently avoids this.

Key Results

  • Artifact Elimination: For the Boussinesq Approximation dataset, the discrete method generated 43,888 spurious loops, while the MFA continuous method cleanly identified exactly 398 loops.
  • High Precision: Across all tests, the maximum numerical error ($e_{max}$) for the continuous method remained below the user-defined threshold of $10^{-10}$, whereas the discrete method routinely showed errors orders of magnitude higher (often $> 1.0$).
  • Parallel Efficiency: By utilizing multithreading with 8 threads, the continuous framework achieved a 7× to 8× computational speedup over its single-threaded baseline. While still slower than simple grid-based marching squares, it provides vastly superior topological fidelity.

Limitations and Future Work

  • Trajectory Gaps and Misconnections: If two distinct contour lines pass extremely close to one another, the particle tracing connection strategy can occasionally bridge them incorrectly or leave small gaps.
  • Initial Point Dependency: The root-finding step relies on uniform sampling within each patch to find starting points. If a topological feature is smaller than the sampling density, it might be missed entirely.
  • Future Directions: The authors plan to extend this framework from 2D to 3D domains and adapt it to extract even more complex topological structures, such as Morse-Smale complexes.

Summary updated

BibTeX
@misc{ma2025extracting,
  author = {Guanqun Ma and David Lenz and Hanqi Guo and Tom Peterka and Bei Wang},
  title = {{Extracting Complex Topology from Multivariate Functional Approximation: Contours, Jacobi Sets, and Ridge-Valley Graphs}},
  year = {2025},
  eprint = {2508.07637},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.07637},
}
Figure