Skip to content
ImagineWorld

HNHN: Hypergraph Networks with Hyperedge Neurons

node_idnode-paper_arxiv-2006.12278_hnhn-hypergraph-networks-with-hyperedge-neurons
node_typenode-paper
schema_profileworld.node_paper.v1
alternate_namesarxiv-2006.12278, dong-sawin-bengio-hnhn-2020, hnhn
statusactive
orthogonal_scopemanifold, entropy, authority, state
manifoldworld
entropymedium
authorityguides
stateexternal
domainimagineworld.net
node_interiorrosetta_contract
unisonHNHN is Tier 0 substrate for kernel/connectome architectural encoding because it treats hyperedges as learnable representational objects rather than reducing them to pairwise graph edges. For imagineos, this grounds typed hyperedge neurons, relation-as-object message passing, and graph traversal over n-ary cognitive relations.
governed_byWORLD-MANIFOLD
constitutional_citationCONSTITUTION
evidence_bundleworld-bundle-paper
compared_byworld-comparison-pillar-g-concurrency-storage-distributed-systems-and-graph-learning
pillar_membershipG - hypergraph neural networks, hyperedge representation learning, and graph-structured architectural encoding
publication_classarxiv_preprint
paper_titleHNHN: Hypergraph Networks with Hyperedge Neurons
paper_authorsYihe Dong, Will Sawin, Yoshua Bengio
paper_author_affiliationsMicrosoft, Department of Mathematics, Columbia University, Mila, Université de Montréal
paper_abstractHypergraphs provide a natural representation for many real world datasets. We propose a novel framework, HNHN, for hypergraph representation learning. HNHN is a hypergraph convolution network with nonlinear activation functions applied to both hypernodes and hyperedges, combined with a normalization scheme that can flexibly adjust the importance of high-cardinality hyperedges and high-degree vertices depending on the dataset. We demonstrate improved performance of HNHN in both classification accuracy and speed on real world datasets when compared to state of the art methods.
arxiv_id2006.12278
arxiv_urlhttps://arxiv.org/abs/2006.12278
arxiv_categories{"primary":"cs.LG","secondary":["cs.AI","stat.ML"]}
arxiv_v1
arxiv_submitted_at2020-06-22
arxiv_updated_at2020-06-22
arxiv_doi10.48550/arXiv.2006.12278
peer_review_venueGraph Representation Learning and Beyond Workshop at ICML 2020
source_pdforganism/imagineworld/corpus/4_relational-geometry/geometric-graph-learning/by_article/hnhn-hypergraph-networks-with-hyperedge-neurons/source/arxiv-2006.12278.pdf
source_pdf_sha256de16ada1d2b0ff3efe8a1187ee1cd0f0f6696ada13c5aea7214a53c1e16c84ca
source_latex_archiveorganism/imagineworld/00-intake/converting/HNHN: Hypergraph Networks with Hyperedge Neurons.tar.gz
source_latex_archive_sha25614548fcd0beeee057f4b8b84e171c8216a2e6562142266f92132de08469f8324
ocr_sourcearxiv_latex_source
ocr_quality_classverbatim_latex
extraction_toolkimi-k2.6-5.4-codex-local-mechanical-extractor
extraction_pipeline_versionworld-ingest-arxiv-llm-prompt-template-v1.0
extracted_at2026-05-16T10:39:29+00:00
math_preserved_as_latextrue
figures_extractedtrue
references_structurally_parsedtrue
cites_arxiv{"arxiv_id":"1902.09702","title":"Hypergraph convolution and hypergraph attention","in_sections":["UNKNOWN"]}, {"arxiv_id":"1911.02613","title":"Hyper-SAGNN: a self-attention based graph neural network for hypergraphs","in_sections":["UNKNOWN"]}
cites_external{"doi":"10.48550/arXiv.2006.12278","title":"HNHN: Hypergraph Networks with Hyperedge Neurons","venue":"arXiv"}
cited_by_arxiv
supersedes
superseded_by
distill_corpus_weight3
distill_corpus_tier0
distill_relevance_gapsgap-11-kernel-connectome-architectural-encoding, gap-2-concept-bottleneck-typed-attention
distill_relevance_phase_i_guidesi-1-corpus-assembly-methodology
training_signal_rolehypergraph_neural_network_architecture_anchor
training_signal_typetier_0_constitutional_for_hypergraph_connectome_encoding
pillar_normalizedG-hypergraph
created_at2026-05-16T10:39:29+00:00
updated_at2026-10-14T05:20:09Z
local graph

HNHN: Hypergraph Networks with Hyperedge Neurons

Section titled “HNHN: Hypergraph Networks with Hyperedge Neurons”

Authors: Yihe Dong, Will Sawin, Yoshua Bengio arXiv: 2006.12278 • Venue: Graph Representation Learning and Beyond Workshop at ICML 2020 Source: arXiv LaTeX HNHN: Hypergraph Networks with Hyperedge Neurons.tar.gz (sha256: 14548fcd0beeee057f4b8b84e171c8216a2e6562142266f92132de08469f8324), extracted 2026-05-16T10:39:29Z via kimi-k2.6-5.4-codex-local-mechanical-extractor

[!abstract] Abstract Hypergraphs provide a natural representation for many real world datasets. We propose a novel framework, HNHN, for hypergraph representation learning. HNHN is a hypergraph convolution network with nonlinear activation functions applied to both hypernodes and hyperedges, combined with a normalization scheme that can flexibly adjust the importance of high-cardinality hyperedges and high-degree vertices depending on the dataset. We demonstrate improved performance of HNHN in both classification accuracy and speed on real world datasets when compared to state of the art methods.


Much real world data can be represented as graphs, as data come in the form of objects and relations between the objects. In many cases, a relation can connect more than two objects. A hypergraph can naturally represent such structures. Take for instance paper-authorship graphs, where the vertices represent papers. Since one author can write multiple papers, it is natural to represent authors as hyperedges in a hypergraph.

Our goal is to learn representations of such structured data with a novel hypergraph convolution algorithm. In particular, we aim to rectify the shortcoming in existing graph-based approaches that, in the real world, there often exist relations connecting a set of nodes, with cardinality >2>2. We do this by using hypergraphs, where each edge can connect an arbitrary number of nodes. First let’s recall the vanilla graph neural network (GNN): fix a graph GG with nn vertices, and let A∈Rn×nA \in \mathbb{R}^{n\times n} be its adjacency matrix. Choosing a suitable dd, we define node representations X∈Rn×dX \in \mathbb{R}^{n \times d}, as well as weights W∈Rd×dW \in \mathbb{R}^{d\times d} and bias b∈Rdb \in \mathbb{R}^d, and a nonlinear activation function σ\sigma. In each layer of the GNN, the node representations are updated as:

X′=σ(AXW+b).(1)X' = \sigma(AXW + b). \tag{1}

Some past research has generalized this to hypergraphs by defining an appropriate hypergraph analogue of the adjacency matrix AA (Feng et al., 2018; Bai et al., 2019). For vertices ii and jj, the entry AijA_{ij} can be defined as a sum over hyperedges containing both ii and jj of a weight function, that may depend on the number of vertices in the hyperedge. However, these approaches do not fully utilize the hypergraph structure. In fact, the matrix AA defined this way can be seen to equal the adjacency matrix of the graph obtained by replacing each hyperedge with a (weighted) clique. Thus, the hypergraph algorithm will have no better accuracy on a given task than the corresponding graph algorithm, applied to this graph built from cliques.

Hyperedge nonlinearity. To solve this problem, we treat hyperedges as objects worthy of study in their own right. We therefore train a network with one representation XVX_V for hypernodes and another representation XEX_E for hyperedges. We can then use the hypernode-hyperedge incidence matrix for the convolution step. A nonlinear function σ\sigma then acts on both hypernodes and hyperedges. By making this change, we allow the network to learn nonlinear behavior of individual hyperedges, which plausibly exists in many real-world data sets. For instance, the probability that one author of a paper with unknown research interests works in a particular research area might be a nonlinear function of the number of other authors of the paper that work in that research area.

Normalization. In addition, we take a different, more flexible approach to normalization. Normalization in graph convolution is required because Equation (1) involves pooling the representations of all vertices adjacent to a given vertex. This produces large values for vertices of high degrees but small values for vertices of low degrees. Normalization ensures numerical stability during training. Different options exist for normalization, depending on how we weight the different vertices (as a function of their degrees). In the hypergraph setting, there is an analogous choice of how to weight different hypernodes and hyperedges. We allow these choices to depend on hyperparameters that are optimized for a given data set.

Indeed, there is little reason to suspect that the most mathematically elegant normalization formula, for instance using the symmetric normalized Laplacian, D−1/2LD−1/2D^{-1/2} L D^{-1/2}, necessarily gives the best accuracy for prediction tasks. Instead, normalization represents a choice of how to weight vertices of large degree compared to vertices of smaller degree. This choice should be made according to whether weighting vertices of large degree highly gives better accuracy on a particular dataest — e.g. on one social network, users with a large number of connections may be important and influential individuals whose activity is useful for prediction, while on another, they may be bots who make connections at random.

Our key contributions in this paper consist of introducing a hypergraph convolution network with nonlinear activation functions applied to both hypernodes and hyperedges, and a more flexible approach to normalization.

Paper Overview. This paper is organized as follows: In Model architecture and analysis, we begin by describing our hypergraph convolution method, HNHN (Hypergraph Network with Hyperedge Neurons), without the normalization step, to focus on the structure of the convolution. We analyze how HNHN relates to, and differs from, approaches that apply graph convolution to hypergraphs by using the clique or star expansion to transform hypergraphs into graphs. We then explain how HNHN relates to hypergraph convolution methods proposed in prior works. Finally, we introduce the normalization step. In Experiments, we empirically study aspects of HNHN, from classification accuracy on real datasets to dependence on hyperparameters.

First some notation: we define a hypergraph HH to consist of a set VV of hypernodes and set EE of hyperedges, where each hyperedge is itself a set of hypernodes. Let n=∣V∣n = |V| and m=∣E∣m = |E|. Indexing the hypernodes as viv_i for i∈1,…,ni \in {1, \dots, n}, and the hyperedges as vjv_j for j∈1,…,mj \in {1, \dots, m}, we define the incidence matrix A∈Rn×mA \in \mathbb{R}^{n \times m} by

Aij={1vi∈ej 0vi∉ejA_{ij} = \begin{cases} 1 & v_i \in e_j \ 0 & v_i \notin e_j \end{cases}

We then update the hypernode representations XV∈Rn×dX_V \in \mathbb{R}^{n \times d} and hyperedge representations XE∈Rm×dX_E \in \mathbb{R}^{m \times d} by a convolution using the incidence matrix AA. Thus, our update rule is given by the formulas

XE′=σ(ATXVWE+bE)andXV′=σ(AXE′WV+bV)X_{E}' = \sigma(A^T X_V W_E + b_E) \quad\text{and}\quad X_{V}' = \sigma(A X_E' W_V + b_V)

where σ\sigma is a nonlinear activation function, WV,WE∈Rd×dW_V, W_E \in \mathbb{R}^{d \times d} are weight matrices, and bV,bE∈RDb_V, b_E \in \mathbb{R}^D are bias matrices.

We use Ni\mathcal{N}_i throughout to denote the edge neighborhood of viv_i, i.e. the set of jj with vi∈ejv_i \in e_j. Similarly, Nj\mathcal{N}_j denotes the vertex neighborhood of eje_j, i.e. the set of ii with vi∈ejv_i \in e_j.

Algorithm 1 — HNHN hypergraph convolution algorithm for node prediction

Input: Hypergraph incidence matrix A ∈ ℤ^{n×m}, hypernode representations X_V
Input: Set of target labels {y}_{k∈L}
Compute: D_{E,l,α}, D_{V,r,α}, D_{V,l,α}, and D_{E,r,α} as in §Hypergraph normalization
for i = 1 to n_epochs do
Initialize X_E ← 0; project X_V to hidden dimension
for j = 1 to n_layers do
Normalize hypernodes: X̃_V = D_{E,l,β}⁻¹ · A · D_{V,r,β} · X_V
Update hyperedges: X_E = σ( X̃_V · W_{E,j} + b_{E,j} )
Normalize hyperedges: X̃_E = D_{V,l,α}⁻¹ · A · D_{E,r,α} · X_E
Update hypernodes: X_V = σ( X̃_E · W_{V,j} + b_{V,j} )
Compute cross-entropy loss between {y}_{k∈L} and predictions using {X_V}_{k∈L}
Backpropagate on loss and optimize parameters, e.g. {W_E}_j, {W_V}_j, {b_E}_j, {b_V}_j
Return: Learned representations X_V, X_E for prediction tasks

Relationship with clique and star expansions

Section titled “Relationship with clique and star expansions”

In this subsection, we discuss how HNHN hypergraph convolution relates to graph convolution. To apply graph convolution to hypergraph problems, we must build a graph GG from our hypergraph HH. There are two main approaches to this in the literature.

The first, the clique expansion (Sun et al., 2008; Zhou et al., 2007; Tu et al., 2018; Zhang et al., 2018) produces a graph whose vertex set is VV by replacing each hyperedge e=v1,…,vke = {v_1, \dots, v_k} with a clique on the vertices v1,…,vk{v_1, \dots, v_k}. A slight variant of this produces a weighted graph where the weight of each edge in the clique is equal to some fixed function of kk. We will consider another variant GcG_c, where we replace each hyperedge with a clique plus an edge from each vertex v1,…,vkv_1, \dots, v_k to itself.

The second, the star expansion or bipartite graph model (Zien et al., 1999), produces a graph G∗G_* whose vertex set is V∪EV \cup E, with an edge between a hypernode vv and a hyperedge ee if v∈ev \in e, and with no edges between hypernodes and hypernodes or hyperedges and hyperedges, making the graph bipartite. (For e=v1,…,vke = {v_1, \dots, v_k} a hyperedge, the subset e,v1,…,vk{e, v_1, \dots, v_k} is a star graph, explaining the name.)

We briefly summarize the relationships between our method and graph convolution on these two graphs:

  • If we use the same weights for hypernodes and hyperedges, setting WE=WVW_E = W_V and bE=bVb_E = b_V, then our method is equivalent to graph convolution on the star expansion G∗G_*.
  • If we remove the nonlinear activation function σ\sigma, and consider only a linear map, then our method is equivalent to graph convolution on the clique expansion GcG_c.

These claims will be formally justified in Equation (2) and Lemma 2.

Note here that if we remove both the nonlinear activation function and the weight matrix, so we consider only the linear action of the adjacency matrix, then graph convolution on GcG_c and G∗G_* are equivalent to each other, because the spectra of the adjacency matrices of GcG_c and G∗G_* are related by a simple operation (explained after Lemma 2).

We now explain the advantages of our method over graph convolution on both the clique and star expansion.

Comparison with clique expansion. The clique expansion is a problematic approach to studying any hypergraph problem because it involves a loss of information — i.e. there can be two distinct hypergraphs on the same vertex set with the same clique expansion. An example is provided by the Fano plane.

This is the hypergraph FF with vertex set 1,2,3,4,5,6,7{1,2,3,4,5,6,7} and the seven hyperedges 1,2,3,1,4,5,1,6,7,2,4,6,2,5,7,3,4,7,3,5,6{{1,2,3}, {1,4,5}, {1,6,7}, {2,4,6}, {2,5,7}, {3,4,7}, {3,5,6}}. Because each pair of distinct vertices lies in exactly one hyperedge, the clique expansion of FF is the complete graph K7K_7 on seven vertices.

Figure 1 — The Fano plane, and a copy with the nodes 3 and 6 permuted. Hypernodes are numbered 11 through 77. The six straight lines and the circle represent hyperedges. When given the hypernode label numbers, or other equivalent information, as input features, approaches based on the clique expansion will not be able to distinguish these two hypergraphs, while HNHN and other approaches can. (Source images not embedded: plots/Fano_plane0.png, plots/Fano_plane1.png)

If we permute the seven hypernodes of FF by an arbitrary permutation in S7S_7, changing the hyperedges appropriately, we will obtain another hypergraph whose clique expansion is again K7K_7 for the same reason. However it will usually not be the same graph. In fact, by the orbit-stabilizer theorem we can obtain 7!168=30\frac{7!}{168} = 30 different hypergraphs this way, where 168168 is the number of permutations that stabilize FF.

Hence graph convolution on the clique expansion will not be able to solve problems on FF whose answers change when the hypernode labels are permuted. More generally, examples of this kind can be produced of hypergraphs on q2+q+1q^2 + q + 1 hypernodes for any prime power qq, using finite projective planes.

Comparison with star expansion. The star expansion does not lose information in this way. However, it treats hypernodes and hyperedges the same. Because, in many datasets, hypernodes and hyperedges describe completely different objects, it is reasonable to give them different weight matrices, and we expect the additional expressive power to improve accuracy.

Agarwal et al. (2006) showed that clique expansion and star expansion are equivalent in a certain sense, and has been cited to claim that they are equivalent in general. However, this paper worked in a linear setting, considering just the action of the adjacency matrix. In a neural network setting, when a nonlinear activation function σ\sigma is included, their proof does not apply.

Weight simplification. We now explain how removing the distinction between WVW_V and WEW_E reduces HNHN to graph convolution on G∗G_*.

For this purpose, let B∈R(n+m)×(n+m)B \in \mathbb{R}^{(n+m) \times (n+m)} be the adjacency matrix of G∗G_*. Then

B=(0AAT0)B = \begin{pmatrix} 0 & A \\ A^T & 0 \end{pmatrix}

If we set WE=WV=WW_E = W_V = W and bE=bV=bb_E = b_V = b in the update rule, we have for all ii:

XEi+1=σ(ATXViW+b)andXVi+1=σ(AXEi+1W+b)X_E^{i+1} = \sigma(A^T X_V^{i} W + b) \quad\text{and}\quad X_V^{i+1} = \sigma(A X_E^{i+1} W + b)

and for all ii we define X2iX^{2i} to be the concatenation of XViX_V^i with the m×dm \times d matrix of zeroes, and X2i+1X^{2i+1} to be the concatenation of the n×dn \times d matrix of zeroes with XEi+1X_E^{i+1}, then for all ii we have

Xi+1=σ(BXiW+b)(2)X^{i+1} = \sigma(B X^i W + b) \tag{2}

because the matrix BB sends the EE coordinates to the VV coordinates and vice versa.

Linear simplification. To relate graph convolution on GcG_c with hypergraph convolution, we first relate the adjacency matrix of GcG_c to the incidence matrix AA.

Lemma 1. Let CC be the adjacency matrix of GcG_c. Then C=AATC = AA^T.

Proof. By definition

(AAT)i1i2=∑jAi1jAi2j=∑j vi1∈ej vi2∈ej1(A A^T)_{i_1 i_2} = \sum_{j} A_{i_1 j} A_{i_2 j} = \sum_{\substack{j \ v_{i_1} \in e_j \ v_{i_2} \in e_j}} 1

and Ci1i2C_{i_1 i_2} is the number of edges from vi1v_{i_1} to vI2v_{I_2} in GcG_c. Recall that GcG_c is the graph obtained from HH by replacing each hyperedge with a clique and a union of self-edges. The clique obtained from a hyperedge eje_j contains an edge from vi1v_{i_1} to vi2v_{i_2} if and only if vi1∈ej,,vi2∈ej,v_{i_1} \in e_j,, v_{i_2} \in e_j, and vi1≠vi2v_{i_1} \neq v_{i_2}, and the self-edges obtained from a hyperedge ee contain an edge from vi1v_{i_1} to vi2v_{i_2} if and only if vi1=vi2∈ejv_{i_1} = v_{i_2} \in e_j, so in total the number of edges from vi1v_{i_1} to vi2v_{i_2} of GcG_c is the number of hyperedges containing both vi1v_{i_1} and vi2v_{i_2}.

Because each entry of CC equals the corresponding entry of AATA A^T, it follows that C=AATC = AA^T. ∎

The next lemma shows that convolution on HH, without the nonlinear activation function σ\sigma, is equivalent to convolution on GcG_c.

Lemma 2. If we define

XE′=ATXVWE+bEandXV′=AXE′WV+bVX_{E}' = A^T X_V W_E + b_E \quad\text{and}\quad X_{V}' = A X_E' W_V + b_V

then

XV′=CXVWc+bc(3)X_V' = C X_V W_{c} + b_c \tag{3}

where CC is the adjacency matrix of GcG_c, Wc∈Rd×dW_c \in \mathbb{R}^{d \times d}, and bc∈Rdb_c \in \mathbb{R}^d.

Proof. We have

XV′=AXE′WV+bV=A(ATXVWE+bE)WV+bV=AATXVWEWV+AbEWV+bV.X_V' = A X_E' W_V + b_V = A (A^T X_V W_E + b_E) W_V + b_V = A A^T X_V W_E W_V + A b_E W_V + b_V.

Setting Wc=WEWVW_c = W_E W_V and bc=AbEWV+bV,b_c = A b_E W_V + b_V, and using C=AATC = AA^T, we obtain Equation (3). ∎

Relationship between clique and star expansions. It is a classical result that the eigenvalues of BB are equal to the set of square roots of eigenvalues of AAT=CA A^T = C together with m−nm - n additional zeroes (see e.g. Bhattacharya et al., 2008). Thus, the spectral theory of G∗G_* is no more complex or simpler than the spectral theory of GcG_c.

Both HGNN (Feng et al., 2018) and the method of HCHA (Bai et al., 2019) (when the optional attention module is not used) are mathematically equivalent to ordinary graph convolution on the clique expansion. As shown above with the Fano plane, these approaches don’t utilize all structural information in the hypergraph.

HyperGCN (Yadati et al., 2019) relies on replacing a hypergraph with a graph, but in a more subtle way then a clique expansion. Rather than replacing a hyperedge v1,…,vk{v_1, \dots, v_k} by a clique, i.e., an edge between every pair of vertices, they pick two special vertices from v1,…,vk{v_1, \dots, v_k}, called mediators, and keep only the edges connecting to at least one of the two mediators (Chan & Liang, 2020).

This also does not always retain the full information from the hypergraph structure. In fact, in the case where every hyperedge contains at most three hypernodes, HyperGCN is equivalent to the clique expansion, because every edge in the clique touches at least one mediator. As every hyperedge in the Fano plane contains three hypernodes, the Fano plane again shows that this method doesn’t use all the structural information. Furthermore, HNHN gives a principled way of representing a hyperedge, without devising rules for selecting representatives for each.

Yadati et al. (2019) suggests that hypergraph convolution should be modeled on hypergraph analogues of the graph Laplacian that, unlike the usual Laplacian, are nonlinear. We instead use the (linear) incidence matrix to encode the graph structure and rely on the activation function of the neural network to incorporate nonlinearity.

Another hypergraph learning method, Hyper-SAGNN (Zhang et al., 2019), uses a very different architecture. Rather than studying the global graph structure, Hyper-SAGNN focuses on a fixed set of vertices to predict whether they are connected by a hyperedge, treating them symmetrically when doing so.

On the other hand, some prior graph convolution works have taken a similar approach to HNHN by placing neurons on each hyperedge. These include Kearnes et al. (2016), and, building on their work, Gilmer et al. (2017). Unlike HNHN, these works restrict to the case of graphs, and they do not use our normalization scheme, discussed below.

One common message passing scheme is to normalize the messages by the cardinality of the neighborhood after message pooling. In the case of passing messages from hyperedges to hypernodes, this can be expressed as

XV′=σ(DV−1AXE′WV+bV)X_V' = \sigma(D_V^{-1} A X_E' W_V + b_V)

where DV∈Rn×nD_V \in \mathbb{R}^{n \times n} is the diagonal matrix defined by

(DV)i1i2={∣Ni1∣i1=i2 0i1≠i2(D_V)_{i_1 i_2} = \begin{cases} |\mathcal{N}_{i_1}| & i_1 = i_2 \ 0 & i_1 \neq i_2 \end{cases}

This ensures, for unbounded activation functions σ\sigma like ReLU, that the representation vector does not grow rapidly from one layer to the next when viv_i has large degree, and, for bounded activation functions σ\sigma, that the input of σ\sigma is not too large (because bounded activation functions are approximately constant on large values, which leads to vanishing gradient). We could also multiply on the left and right by DV−1/2D_V^{-1/2}, which would be equivalent for activation functions like ReLU that commute with multiplication by a positive real number.

However, the contribution of each hyperedge is given the same weight, regarldess of its degree. We consider a generalization where, before summing over hyperedges incident to a given hypernode, we weight the contribution of each hyperedge by a power of its degree, depending on a real parameter α\alpha:

XV′=σ(DV,l,α−1ADE,r,αXE′WV+bV)X_V' = \sigma(D_{V,l,\alpha}^{-1} A D_{E,r,\alpha} X_E' W_V + b_V)

where DE,r,α∈Rm×mD_{E,r,\alpha} \in \mathbb{R}^{m \times m} and DV,l,α∈Rn×nD_{V,l,\alpha} \in \mathbb{R}^{n \times n} are the diagonal matrices given by

(DE,r,α)j1j2={∣Nj1∣αj1=j2 0j1≠j2and(DV,l,α)i1i2={∑j∈Ni1∣Nj∣αi1=i2 0i1≠i2(D_{E,r,\alpha})_{j_1 j_2} = \begin{cases} |\mathcal{N}_{j_1}|^\alpha & j_1 = j_2 \ 0 & j_1 \neq j_2 \end{cases} \quad\text{and}\quad (D_{V,l,\alpha})_{i_1 i_2} = \begin{cases} \sum_{j \in \mathcal{N}_{i_1}} |\mathcal{N}_j|^\alpha & i_1 = i_2 \ 0 & i_1 \neq i_2 \end{cases}

If α=0\alpha = 0, then DE,r,αD_{E,r,\alpha} is the identity matrix and DV,l,α=DVD_{V,l,\alpha} = D_V, so this generalizes the normalization above.

Equivalently, to calculate the (i,t)th(i,t)^{th} entry of XV′X_V', the matrix multiplication above gives the following formula:

(XV′)it=∑j∈Ni∣Nj∣α∑s=1d(XE′)is(WV)st∑j∈Ni∣Nj∣α+(bV)t(X_V')_{it} = \frac{\sum_{j \in \mathcal{N}_i} |\mathcal{N}_j|^{\alpha} \sum_{s=1}^d (X_E')_{is} (W_V)_{st}}{\sum_{j \in \mathcal{N}_i} |\mathcal{N}_j|^\alpha} + (b_V)_t

Here the DE,r,αD_{E,r,\alpha} matrix produces the factor ∣Nj∣α|\mathcal{N}_j|^{\alpha} in each term in the numerator. After including DE,r,αD_{E,r,\alpha} we choose the DE,l,αD_{E,l,\alpha} matrix to produce the factor ∑j∈Ni∣Nj∣α\sum_{j \in \mathcal{N}_i} |\mathcal{N}_j|^\alpha in the denominator, to normalize for the total size of the numerator.

When α>0\alpha > 0, the contributions of hyperedges with large degrees are increased compared with the previous normalization, while if α<0\alpha < 0, their contributions are decreased. We treat α\alpha as a hyperparameter to be optimized for a given data set.

By fixing α=0\alpha = 0, as is equivalent to the normalization in many prior works (Kipf & Welling, 2017; Bai et al., 2019; Feng et al., 2018), we would be assuming that hyperedges of different sizes have equal importance, on average, for learning the representation of vertices. Instead, we believe that on some datasets, hyperedges with a large number of vertices are an ineffective guide to labels, compared to hyperedges with a small number of vertices, while for other datasets it may be the other way around. For instance, in coauthorship graphs, papers with a large number of authors may frequently reflect large collaborations between scientists of different fields, and thus will not be as predictive as papers with a smaller number of authors. By allowing a varying hyperpameter α\alpha, we can choose a weighting for hyperedges that is appropriate for a given dataset.

Analogously, we weight vertices in terms of their degrees according to hyperparameter β∈R\beta \in \mathbb{R}:

XE′=σ(DE,l,β−1ADV,r,βXVWE+bE)X_E' = \sigma(D_{E,l,\beta}^{-1} A D_{V,r,\beta} X_V W_E + b_E)

where

(DE,l,β)j1j2={∑i∈Nj1∣Ni∣βj1=j2 0j1≠j2and(DV,r,β)i1i2={∣Ni1∣βi1=i2 0i1≠i2(D_{E,l,\beta})_{j_1 j_2} = \begin{cases} \sum_{i \in \mathcal{N}_{j_1}} |\mathcal{N}_i|^\beta & j_1 = j_2 \ 0 & j_1 \neq j_2 \end{cases} \quad\text{and}\quad (D_{V,r,\beta})_{i_1 i_2} = \begin{cases} |\mathcal{N}_{i_1}|^\beta & i_1 = i_2 \ 0 & i_1 \neq i_2 \end{cases}

As outlined in Algorithm 1, the inputs of our algorithm are the incidence relations between the hypernodes and hyperedges, the input feature vectors of the hypernodes, and the target labels for a subset of the hypernodes. From the hypergraph structure, we extract neighborhood information to compute the normalization factors as in Hypergraph normalization, then each layer of HNHN hypergraph convolution relays signals from the hypernodes to the hyperedges, with a nonlinearity and node-specific normalization, then analogously from hyperedges to hypernodes. Finally the loss is calculated using cross entropy between the predicted labels based on the learned node representations and the given target labels. Dropout is added to any convolution layer that’s not the last to mitigate overfitting (Srivastava et al., 2014). ReLU (Glorot et al., 2011) is used as the nonlinearity throughout.

While Algorithm 1 is stated in terms of the incidence matrix AA for clarity, HNHN convolution doesn’t require any explicit instantiation of AA, which has size O(mn)O(mn). Even though the number of nonzero entries in AA is usually much smaller and thus can be represented as a sparse matrix, never instantiating AA is more advantageous for training, as GPUs are much more adaptable for dense over sparse operations (Xu et al., 2018). Our implementation uses efficient GPU operations that only uses indices of hyperedges connected to a hypernode and of hypernodes connected a hyperedge, without ever instantiating the incidence matrix. This contributes to the fast HNHN runtimes as reported in Table 2.

Model training uses the Adam optimizer (Kingma & Ba, 2015) with a schedule that multiplicatively reduces the learning rate by a factor 0.51 per 100 epochs. While we tune hyperparameters per dataset and task, we found HNHN performance to be robust with respect to hyperparameter variations. The hyperparameters used are: 0.3 dropout rate; 0.04 initial learning rate; 200 training epochs; and the hidden dimension is 400 for all datasets except PubMed, with hidden dimension 800.

For a hypergraph HH with nn hypernodes, mm hyperedges, average vertex degree δV\delta_V, and hidden dimension dd, the time complexity of HNHN is O(nδVd+nd2+md2)O(n \delta_V d + n d^2 + m d^2). This complexity is because multiplying XVX_V by ATA^T or XEX_E by AA takes time proportional to the number of nonzero entries of AA, which is nδVn \delta_V, times dd. Multiplying by WVW_V takes O(nd2)O(n d^2) while multiplying by WEW_E takes time O(md2)O(m d^2). Finally, applying σ\sigma to each entry takes time O(nd+md)O(nd + md) which is ≤O(nd2+md2)\leq O(n d^2 + m d^2).

Thus, HNHN is similar to the most computationally efficient existing hypergraph convolution algorithms, such as HyperGCN. HyperGCN replaces each hyperedge eje_j with 2∣Nj∣−3=O(∣Nj∣)2|\mathcal{N}_j| - 3 = O(|\mathcal{N}_j|) edges, thus replacing HH with a graph that has O(mδE)=O(nδV)O(m \delta_E) = O(n \delta_V) edges, where δE\delta_E is the average hyperedge degree of HH. Applying graph convolution on this graph then takes time proportional to the number of edges, which is again O(nδV)O(n \delta_V).

HNHN is faster than hypergraph algorithms based on clique expansion, which require replacing a hyperedge eje_j with ∣Nj∣(∣Nj∣−1)2=O(∣Nj∣2)\frac{|\mathcal{N}_j|(|\mathcal{N}_j| - 1)}{2} = O(|\mathcal{N}_j|^2) edges, for a total of O(mδE2)=O(nδVδE)O(m \delta_E^2) = O(n \delta_V \delta_E) edges, producing a graph on which graph convolution takes time O(nδVδEd)O(n \delta_V \delta_E d).

Table 2 describes the timing results for training node classification. Consistent with the above analysis, algorithms that expand each hyperedge into a linear number of edges perform faster than clique expansion-based algorithms.

We evaluate the quality of HNHN hypergraph representations on several commonly used benchmark datasets: CiteSeer (Bhattacharya & Getoor, 2007) and PubMed (Namata et al., 2012), both co-citation datasets, Cora (Liu & Getoor, 2003; Sen et al., 2008) and DBLP (Leibniz Center for Informatics), both co-authorship datasets. Co-authorship data consist of a collection of papers with their authors. To create a hypergraph, each paper becomes a hypernode and each author a hyperedge. The hypernodes v1,…,vkv_1, \dots, v_k are connected to a hyperedge ee if the papers corresponding to v1,…,vkv_1, \dots, v_k are written by the author corresponding to ee. Co-citation data consists of a collection of papers and their citation links. To create a hypergraph, each hypernode represents a paper, the hypernodes v1,…,vkv_1, \dots, v_k are connected to the hyperedge ee if the papers corresponding to v1,…,vkv_1, \dots, v_k are cited by ee.

Cora co-authorship data were extracted and parsed from the source (McCallum). Papers from the top ten subject categories are used, alongside their authorship information and content. Hypernodes not connected to any hyperedge, as well as hyperedges containing only one hypernode, were removed. From the abstracts, TFIDF representations with a vocabulary size of 1000 are created as initial input features. To build the vocabulary, the most frequent one- and two-grams from all abstracts are selected, with a simple stopword removal mechanism: any term that occurs in more than 20% of documents are discarded.

DBLP data were collected from (AMiner) and processed as described in (Yadati et al., 2019): bag-of-words vectors using paper abstracts from five computer science conferences across six subject categories, with the additional step of removing hypernodes not connected to any hyperedge, as our goal is to analyze what can be learned from the hypergraph structure via convolution and message-passing, rather than merely using the node features. Because hypernodes with degree zero have trivial hypergraph structure, and predictions for them would only depend on the features of that node, we remove them from both our training and test sets.

Pubmed and CiteSeer hypergraphs are created using the cocitation relations as given in (UCSC Statistical Relational Learning Group), and as above dangling nodes not attached to any hyperedge are removed. The model input features are TFIDF and bag-of-words vector representations of the document contents for Pubmed and CiteSeer, respectively. Further dataset information are detailed in Table 1.

Table 1 — Further dataset details. ∣V∣\lvert V\rvert denotes number of hypernodes, ∣E∣\lvert E\rvert the number of hyperedges. These datasets were chosen to represent a spectrum with variations in graph sizes, node-to-edge ratio, linkage type (co-authorship vs. co-citation), and numbers of classes.

Dataset∣V∣\lvert V\rvert∣E∣\lvert E\rvert# classesAvg. edge sz.Avg. node deg.Label rateFeature dim.
Cora163137389104.261.935.2%1000
CiteSeer1498110762.611.4015%3703
DBLP413022236364.713.534.2%1425
PubMed3840796334.359.022%500

Hypernode prediction. Given a hypergraph and node labels on a small subset of hypernodes, this task is to predict labels on the remaining hypernodes. To train, cross-entropy loss is calculated between the predicted and target labels. We use the Adam (Kingma & Ba, 2015) optimizer with a learning rate scheduler that multiplicatively reduces the learning rate at regular intervals.

Hyperparameters α\alpha and β\beta are determined by 55-fold cross-validation on the training set. We tune hyperparameters such as the number of layers and dropout rate. In practice, at most two convolution layers are needed to achieve the reported accuracies. Experiments are done on a 24-core 2.6 GHz-CPU machine with a Nvidia P40 GPU. As shown in Table 2, HNHN outperforms state of the art techniques across datasets, while achieving competitive timing results.

Table 2 — Hypernode classification accuracy and timing results. Accuracies are in %, timings are measured in seconds. “HyperGCN Fast” is HyperGCN’s fast variant. Bold marks the best per column.

Accuracy (%):

MethodDBLPCoraCiteSeerPubMed
HyperGCN71.3±1.255.0±.954.7±9.860.0±10.7
HyperGCN Fast70.5±14.345.2±12.956.1±11.254.4±10.0
HGNN77.6±.458.2±.361.1±2.263.3±2.2
HNHN85.1±.263.9±.864.8±1.675.9±1.5

Timing (seconds):

MethodDBLPCoraCiteSeerPubMed
HyperGCN563.4±27.8183.4±2.715.6±.2171.1±2.8
HyperGCN Fast11.5±.12.9±.11.1±0.2.5±.1
HGNN802.9±59.2298.4±12.230.5±.8270.1±10.5
HNHN44.2±1.313.6±5.41.3±.126.6±.4

Reducing feature dimensions. We experiment with node prediction after reducing the input feature dimensions using latent semantic analysis (Deerwester et al., 1990). As expected, this led to faster training, at the cost of slightly reduced accuracy. On Cora, after the input feature dimension is reduced from 10001000 to 300300, the accuracies are 63.69±0.58, 56.63±0.33, and 42.4±1.58, for HNHN, HGNN, and HyperGCN, respectively, with corresponding training times, 10.84±0.14, 152.34±1.14, and 182.56±2.38 seconds. This is a drop of 0.17, 1.52, and 12.6 points in accuracy, respectively, while the running time is 79.5%, 51.1%, and 98.8% that of the non-reduced case. The accuracy advantage of HNHN over state of the art methods is preserved in this setting, showing it is also suitable when computational resources are limited.

Edge representations learning. Compared to approaches that rely on hyperedge expansions, HNHN has the advantage in that it produces one dedicated vector representation per hyperedge. This differs from prior works that expand out a hyperedge into multiple nodes or select a representative subset of hypernodes for each hyperedge (Feng et al., 2018; Yadati et al., 2019). Hence HNHN learned representations can be easily adapted for downsteam edge-related tasks such as edge prediction. Indeed, on the co-citation dataset CiteSeer where both hypernodes and hyperedges represent papers, when given 1515% of hyperedge labels (and no hypernode labels), the hyperedge classification accuracy is 62.79±1.4362.79 \pm 1.43. This is comparable with the 64.76±1.6364.76 \pm 1.63 hypernode prediction accuracy (when only 1515% of the hypernodes are labeled), reflecting the hyperedge-hypernode symmetry in HNHN.

As discussed in Hypergraph normalization, the normalization parameter α\alpha controls how much weight difference exists between hyperedges of different cardinalities. When α>0\alpha > 0, larger-sized hyperedges are given greater weight; when α<0\alpha < 0, smaller hyperedges are weighted more. Analogously for β\beta on weights of hypernodes. Figure 2 demonstrates the effects of α\alpha and β\beta on CiteSeer node prediction accuracy, showing that the commonly used normalization corresponding to the special case α=β=0\alpha = \beta = 0 is not necessarily optimal for node prediction. We note that the effects of β\beta on the accuracy shown in Figure 2 are greater than the effects of α\alpha. This is likely because the vertex degrees (which we raise to the power β\beta) vary more than the edge degrees (which we raise to the power α\alpha). Indeed, the vertex degrees on this dataset have a standard deviation of 3.083.08, compared to an average degree of 2.072.07, for a ratio of 1.491.49, while the edge degrees have a standard deviation of 1.671.67 with an average degree of 2.82.8, for a ratio of only 0.600.60.

Figure 2 — Node classification accuracy on CiteSeer as a function of the normalization parameters. Left: varying α\alpha while fixing β=0\beta = 0. Right: varying β\beta while fixing α=0\alpha = 0. This shows normalization has tangible effects on accuracy, and that the commonly used normalization corresponding to α=β=0\alpha = \beta = 0 is not always optimal. (Source images not embedded: plots/hyperAlpha.png, plots/hyperBeta.png)

  1. Agarwal, S., Branson, K., & Belongie, S. (2006). Higher order learning with graphs. ICML ‘06: Proceedings of the 23rd International Conference on Machine Learning, 17–24.
  2. AMiner. AMiner DBLP data. https://aminer.org/lab-datasets/citation/DBLP-citation-Jan8.tar.bz.
  3. Bhattacharya, A., Friedland, S., & Peled, U. N. (2008). On the first eigenvalue of bipartite graphs. The Electronic Journal of Combinatorics, 15.
  4. Bhattacharya, I., & Getoor, L. (2007). Collective entity resolution in relational data. TKDD.
  5. Bai, S., Zhang, F., & Torr, P. H. S. (2019). Hypergraph convolution and hypergraph attention. arXiv:1902.09702.
  6. Chan, T. H. H., & Liang, Z. (2020). Generalizing the hypergraph Laplacian via a diffusion process with mediators. Theoretical Computer Science, 806, 416–428.
  7. Deerwester, S., Dumais, S. T., Furnas, G. W., Landauer, T. K., & Harshman, R. (1990). Indexing by latent semantic analysis. Journal of the American Society for Information Science, 41(6), 391–407.
  8. Leibniz Center for Informatics. DBLP. https://dblp.uni-trier.de/.
  9. Feng, Y., You, H., Zhang, Z., Ji, R., & Gao, Y. (2018). Hypergraph neural networks. AAAI.
  10. Glorot, X., Bordes, A., & Bengio, Y. (2011). Deep sparse rectifier neural networks. AISTATS.
  11. UCSC Statistical Relational Learning Group. Citeseer for document classification. https://linqs.soe.ucsc.edu/data.
  12. Gilmer, J., Schoenholz, S. S., Riley, P. F., Vinyals, O., & Dahl, G. E. (2017). Neural message passing for quantum chemistry. Proceedings of the 34th International Conference on Machine Learning (ICML’17), 1263–1272. JMLR.org.
  13. Kingma, D., & Ba, J. (2015). Adam: A method for stochastic optimization. International Conference for Learning Representations (ICLR).
  14. Kearnes, S., McCloskey, K., Berndl, M., Pande, V., & Riley, P. (2016). Molecular graph convolutions: moving beyond fingerprints. Journal of Computer-Aided Molecular Design, 30(8), 595–608.
  15. Kipf, T., & Welling, M. (2017). Semi-supervised classification with graph convolutional networks. International Conference on Learning Representations (ICLR).
  16. Liu, Q., & Getoor, L. (2003). Link-based classification. ICML’03: Proceedings of the Twentieth International Conference on Machine Learning.
  17. McCallum, A. Cora information extraction data. https://people.cs.umass.edu/~mccallum/data.html.
  18. Zhang, M., Jiang, S., Cui, Z., & Chen, Y. (2018). Beyond link prediction: Predicting hyperlinks in adjacency space. Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence.
  19. Namata, G., London, B., Getoor, L., & Huang, B. (2012). Query-driven active surveying for collective classification. Proceedings of the Workshop on Mining and Learning with Graphs.
  20. Srivastava, N., Hinton, G., Krizhevsky, A., Sutskever, I., & Salakhutdinov, R. (2014). Dropout: A simple way to prevent neural networks from overfitting. The Journal of Machine Learning Research, 15(1), 1929–1958.
  21. Sun, L., Ji, S., & Ye, J. (2008). Hypergraph spectral learning for multi-label classification. ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 668–676.
  22. Sen, P., Namata, G., Bilgic, M., Getoor, L., Galligher, B., & Eliassi-Rad, T. (2008). Collective classification in network data. AI Magazine, 29(3).
  23. Tu, K., Cui, P., Wang, X., Wang, F., & Zhu, W. (2018). Structural deep embedding for hypernetworks. Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence.
  24. Xu, Q., Jeon, H., & Annavaram, M. (2018). Graph processing on GPUs: where are the bottlenecks? IEEE International Symposium on Workload Characterization.
  25. Yadati, N., Nimishakavi, M., Yadav, P., Nitin, V., Louis, A., & Talukdar, P. (2019). HyperGCN: A new method for training graph convolutional networks on hypergraphs. Advances in Neural Information Processing Systems, 1509–1520.
  26. Zhou, D., Huang, J., & Schölkopf, B. (2007). Learning with hypergraphs: clustering, classification, and embedding. Advances in Neural Information Processing Systems, 1601–1608.
  27. Zien, J. Y., Schlag, M. D. F., & Chan, P. K. (1999). Multilevel spectral hypergraph partitioning with arbitrary vertex sizes. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 18(9), 1389–1399.
  28. Zhang, R., Zou, Y., & Ma, J. (2019). Hyper-SAGNN: a self-attention based graph neural network for hypergraphs. arXiv:1911.02613.