You are AllSet: A Multiset Function Framework for Hypergraph Neural Networks

Eli Chien, Chao Pan, Jianhao Peng, Olgica Milenkovic

The Challenge of Higher-Order Interactions

While traditional graphs excel at modeling pairwise relationships, many real-world systems involve complex, "higher-order" interactions. Consider a group of researchers co-authoring a paper, or a set of diverse products purchased together in a single transaction. These scenarios are most naturally represented by hypergraphs, where a single "hyperedge" can connect any number of nodes.

The primary challenge in this domain is adapting deep learning techniques to these complex structures. Historically, most Hypergraph Neural Networks (HGNNs) have relied on Clique Expansion (CE)—a process that breaks hyperedges down into standard pairwise graph edges—or they have utilized fixed, heuristic propagation rules. Unfortunately, these approaches often discard the rich, higher-order information inherent in the hypergraph or fail to adapt to the specific nuances of different datasets. There is a clear need for a general, learnable framework that moves beyond rigid, "one-size-fits-all" rules.

The AllSet Framework

To address these limitations, the authors introduce AllSet, a novel paradigm that redefines HGNN layers. The core observation behind AllSet is that any message-passing step within a hypergraph can be decomposed into two distinct stages:

  1. Node to Hyperedge ($V \to E$): Aggregating the representations of all nodes contained within a specific hyperedge to create a unified hyperedge embedding.
  2. Hyperedge to Node ($E \to V$): Aggregating the representations of all hyperedges that contain a specific node to update that node's embedding.

Crucially, both of these steps involve operating on a multiset (a mathematical set where elements can appear multiple times). AllSet implements these stages using learnable multiset functions rather than fixed heuristics.

The AllSet framework illustrating the two-stage multiset functions compared to standard Clique Expansion.

The paper proposes two specific architectures within this framework:

  • AllDeepSets: Utilizes the Deep Sets approach. Elements in the multiset are transformed by a Multi-Layer Perceptron (MLP), summed together, and then passed through another MLP.
  • AllSetTransformer: Employs the Set Transformer architecture. It uses multi-head attention mechanisms to dynamically learn which elements in the multiset are most important for the aggregation step.

The authors provide theoretical proofs demonstrating that many state-of-the-art HGNNs (such as HGNN, HCHA, and HyperGCN) are actually restricted, special cases of the AllSet framework. By design, AllSet is significantly more expressive.

Extensive Dataset Evaluation

To rigorously test AllSet, the authors conducted an extensive evaluation across 13 diverse datasets. These include standard benchmarks like Cora, Citeseer, and Pubmed (cocitation); Cora-CA and DBLP-CA (coauthorship); and Zoo, 20Newsgroups, and Mushroom (categorical metadata). They also evaluated on Computer Vision datasets (ModelNet40 and NTU2012).

Importantly, the study introduces three newly curated benchmarks designed to push the limits of HGNNs:

  • Yelp: Restaurants act as nodes, and users' visits form the hyperedges.
  • House: Congresspersons are nodes, and committee memberships are hyperedges.
  • Walmart: Products are nodes, and co-purchased baskets form the hyperedges.
Statistics of the 13 benchmarking datasets used for evaluation.

These new datasets present unique challenges, often lacking initial node features (requiring random Gaussian initialization) and featuring exceptionally large hyperedges (as seen in the max |e| metric).

Key Insights and Results

The empirical results strongly validate the AllSet approach, with AllSetTransformer emerging as the most robust model. It matched or outperformed all baseline methods on 9 out of 10 standard datasets and swept all 3 of the newly curated datasets.

  • Heuristics are a Bottleneck: By making aggregation functions learnable, AllSet "discovers" the optimal propagation rule for a specific task, proving that fixed rules limit model adaptability.
  • The Power of Attention: While both AllDeepSets and AllSetTransformer are theoretical "universal approximators," the Transformer variant performs significantly better in practice. This indicates that the ability to selectively attend to specific nodes within a massive hyperedge is crucial.
  • Significant Accuracy Gains: AllSetTransformer achieved roughly a 4% improvement over the best baselines on the Yelp and Zoo datasets, and a 3% improvement on the Walmart dataset.
  • Consistent Robustness: Unlike baselines such as UniGCNII or HyperGCN—which excelled on certain datasets but failed dramatically on others (like Zoo or House)—AllSet maintained consistent, top-tier performance across the board.
  • Efficiency: Despite the integration of complex attention mechanisms, AllSet's execution time remains comparable to existing HGNNs, making it highly practical for large-scale data.

Future Directions

While AllSet establishes a new state-of-the-art for hypergraph node classification, the authors note several avenues for future exploration. Integrating more complex pooling strategies (like Janossy pooling) could further enhance the framework. Additionally, the current implementation primarily focuses on the multiset input; better utilizing the "second argument" of the update functions (the current state of the node or edge being updated) represents a promising direction. Finally, extending this highly expressive framework beyond node classification to tasks like hyperedge prediction remains an exciting open area for the field.

Summary updated

BibTeX
@inproceedings{chien2022you,
  author = {Eli Chien and Chao Pan and Jianhao Peng and Olgica Milenkovic},
  title = {{You are AllSet: A Multiset Function Framework for Hypergraph Neural Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=hpBTIv2uy_E},
}
Figure