-
Notifications
You must be signed in to change notification settings - Fork 86
Hypergraph Heat Kernel Lift (Hypergraph to Simplicial)
This PR implements the hypergraph-to-simplicial topological conversion described in the paper below (1), which is aimed at encoding the higher-order information of a hypergraph into a weighted simplicial complex without loss of information. One notable application of this approach is to bring the power of the heat kernel to the realm of hypergraphs.
Note this is not a 'lift' in the sense that we are going from a higher order structure to a (theoretically) lower order one, though the submission requirements mention this is allowed.
To illustrate this lift, consider the set of all hypergraphs whose simplicial closures are given by the maximal simplices
Of course, a natural weight map is the identity map
Instead, below are 5 hypergraphs and their simplicial lifts weighted using the lift implemented here, along with two featurizations on the right; the first of these shows the amount of heat diffused at each vertex across time starting with a unit amount of heat at the red vertex, the second shows the heat kernel signature, a natural featurization one could associate with this lift. Keeping in line with simplicial weights representing thermal conductivity in the Laplacian sense, the 'width' of each edge is inversely proportional to its weight deduced by the input hypergraph.
To illustrate the diffusion curves, consider the 3rd row: the red vertex (0) starts with a unit amount of heat, which it diffuses through the weighted edges (0,1) and (0,2) via the heat kernel. The blue vertex heats up faster than the green due to having higher conductivity, and the orange vertex (3) heats up the slowest due to being not adjacent to the heat source (0).
Observe from above that not only is the HKS able to distinguish between different hypergraphs, but also symmetrically related graphs are handled naturally. To demonstrate this, below is a plot of the MDS embedding computed from the Euclidean distance matrix over the HKS-features, for a heuristic choice of time points
Though not exhibiting perfect symmetry, many of the distances are quite intuitive, and each of the
The high-level algorithmic pipeline of this lift is as follows:
- Define an undirected hypergraph
$H = (V, \mathcal{E})$ to be converted to simplicial complex - Take the downward / simplicial closure
$S$ of$H$ - For each simplex
$\sigma \in S$ , compute a weight map$f: S \to R_+$ by combining the simplex's topological weight$w_\sigma$ with its associated affinity weight$\omega_\sigma$ :
- The computed weight function
$w(\sigma)$ induces an inner product$\langle \rangle_w$ on the cochain space$C^p(S, \mathbb{R})$ of$S$ . To capture higher-order interactions exploiting this inner product, choose a weighted Hodge Laplacian operators$\mathcal{L}_p$ :
- Choose a weight-dependent featurization of
$\mathcal{L}_p$ for learning purposes; a classical featurization is the Heat Kernel Signature, which captures multiscale diffusion-based information via the heat kernel.
There are many ways to map higher-order interactions to simplicial weights; to define a notion of 'topological weight', (1) define a weighting scheme that satisfies:
This lifting implements the weighting scheme defined by Eq. 3 & Eqs. (63-65) from (1), which not only satisfies all these properties, but can also be computed quickly for the
For hypergraphs, the affinity weight is deduced by the number of times
The primary use-case for this simplex-weight mapping is to make a valid inner product on the cochain space that captures higher-order interactions using only simplicial structure. In particular, multiscale invariants such as those deriving from the heat kernel were shown in [1] to yield more information gain than in the unweighted settings.
-
Weighted simplicial complexes and their representation power of higher-order network data and topology." Physical Review E 106.3 (2022): 034319, by Baccini, Federica, Filippo Geraci, and Ginestra Bianconi.
-
Sun, Jian, Maks Ovsjanikov, and Leonidas Guibas. "A concise and provably informative multi‐scale signature based on heat diffusion." Computer graphics forum. Vol. 28. No. 5. Oxford, UK: Blackwell Publishing Ltd, 2009.
From https://github.com/pyt-team/challenge-icml-2024/pull/58
- Defining GCCNs
- Defining backbone models
- Reproducing experiments
-
Graph to Simplicial Complex
-
Graph to Cell Complex
-
Graph to Hypergraph
-
Graph to Combinatorial
-
Pointcloud to Graph
-
Pointcloud to Simplicial
-
Pointcloud to Hypergraph
-
Hypergraph to Simplicial
-
Hypergraph to Combinatorial