TL;DR
The paper introduces SAHE (Scalable Attributed Hypergraph node and hyperedge Embedding), a novel framework that simultaneously generates high-quality embeddings for both nodes and hyperedges in large-scale attributed hypergraphs. By unifying node and hyperedge similarity metrics into a shared mathematical core and leveraging randomized linear algebra, SAHE achieves state-of-the-art accuracy across multiple downstream tasks while scaling linearly to million-scale datasets.
What Problem Does This Paper Address?
Many real-world systems—such as social networks, e-commerce sessions, and bio-networks—are best represented as attributed hypergraphs. Unlike standard graphs where edges connect exactly two nodes, hyperedges can connect any number of nodes simultaneously, capturing higher-order group relationships. Furthermore, nodes in these networks often come with rich attribute vectors (e.g., user profiles or text features).
To use this data in machine learning, we need to map both nodes and hyperedges into compact vector spaces—a problem known as Attributed Hypergraph Node and hyperEdge Embedding (AHNEE).
However, existing methods face a nasty trade-off between effectiveness and scalability:
- Information Loss: Some methods flatten hypergraphs into standard graphs (via clique or star expansion), which dilutes the higher-order structural information. Others ignore node attributes entirely or fail to natively embed hyperedges (often resorting to simply averaging node embeddings).
- The Scalability Wall: Advanced methods that try to capture long-range, multi-hop relationships typically require computing and materializing massive, dense similarity matrices. This leads to quadratic time and memory complexities, making them unusable on large datasets.
Methods
SAHE overcomes these limitations through a clever combination of graph theory and randomized numerical linear algebra. The pipeline consists of four main phases:
- Attribute-Extended Hypergraph Construction: To seamlessly blend structure and attributes, SAHE constructs an extended hypergraph ($\mathcal{H}$). For each node, it finds its $K$-nearest neighbors based on attribute cosine similarity and groups them into a new "attribute-based hyperedge." A volume-balancing parameter ($\beta$) ensures that attribute information doesn't overwhelm the original structural topology.
- Higher-Order Similarity Formulations: The authors define two symmetric, multi-hop similarity measures based on Random Walks with Restart (RWR): HMS-N for node pairs and HMS-E for hyperedge pairs (computed on the dual hypergraph where hyperedges become nodes).
- Unified Matrix Decomposition: Instead of computing these two massive similarity matrices separately, SAHE proves theoretically that both HMS-N and HMS-E share a core computational bottleneck: a normalized incidence matrix $\tilde{\mathbf{H}}$. By performing a single Truncated Singular Value Decomposition (SVD) on this sparse matrix, SAHE lays the groundwork for both node and hyperedge embeddings simultaneously.
- Linear-Time Approximations: To avoid the quadratic cost of applying an element-wise truncated logarithm (
tlog) to dense matrices, SAHE employs Polynomial Tensor Sketching (PTS). This technique approximates the non-linear similarity matrix in projection space. Finally, the Lanczos method is used for fast eigendecomposition, yielding the final embeddings ($\mathbf{Z}_V$ and $\mathbf{Z}_E$) in linear time.
Datasets
The authors evaluated SAHE on 10 real-world datasets spanning various domains and scales:
- Small/Medium Scale: DBLP-CA, Cora-CA, Cora-CC, Citeseer (citation networks), Mushroom (categorical traits), 20News (text/keywords), DBLP (co-authorship), and Recipe (recipe-ingredients).
- Million-Scale: Amazon (2.27M nodes, 4.28M hyperedges) and MAG-PM (2.35M nodes, 1.08M hyperedges).
Key Insights and Ideas
- The Dual Space Matters: Simply averaging node embeddings to represent a hyperedge yields suboptimal results. To truly capture group semantics, hyperedges must be treated as first-class citizens and embedded via a dual hypergraph representation.
- The Matrix Densification Trap: The true killer of scalability in graph embeddings isn't the number of nodes, but the fact that sparse graph matrices quickly become completely dense when you compute multi-hop relationships or apply non-linear functions like logarithms.
- Sketching the Non-Linearity: Using Polynomial Tensor Sketching to bypass explicit matrix materialization allows SAHE to apply non-linear transformations (
tlog) implicitly, keeping the computational complexity strictly linear with respect to the number of nodes and hyperedges.
Key Results
SAHE was tested against 11 baselines across three downstream tasks: node classification, hyperedge link prediction, and hyperedge classification.
- Superior Quality: SAHE consistently ranked first overall across all tasks. On the dense Recipe dataset, it outperformed the best baseline by 24.8% in Micro-F1 for node classification. On the massive Amazon dataset, it achieved 90.9% accuracy for hyperedge link prediction, outperforming the closest scalable baseline (LightNE) by 17.7%.
- Drastic Speedups: Thanks to its linear complexity, SAHE runs orders of magnitude faster than its competitors. For example, on the Citeseer dataset, SAHE was 422.5× faster than BiANE and 15.3× faster than AnECI. On the million-scale datasets where most baselines crashed due to time or memory limits, SAHE finished in just a few minutes.
Limitations and Future Work
While SAHE provides an exceptionally fast and accurate solution for static attributed hypergraphs, the authors note two main avenues for future improvement:
- Dynamic Hypergraphs: Real-world networks evolve over time. The current framework requires re-running the decomposition when the graph changes. Future work will focus on developing an incremental decomposition algorithm to handle streaming or evolving hypergraphs.
- Hardware Acceleration: The current implementation of SAHE runs entirely on the CPU. Implementing a GPU-accelerated version of the tensor sketching and Lanczos steps could yield even greater speedups.
Summary updated