Hypergraph as Language

Mengqi Lei, Guohuan Xie, Shihui Ying, Shaoyi Du, Jun-Hai Yong, Chuan Shi, Ling Tian, Siqi Li, Yue GaoarXiv 2026

TL;DR

This paper introduces Hyper-Align, the first hypergraph-native alignment framework that allows Large Language Models (LLMs) to directly understand complex, high-order data structures without flattening them into simple graphs or text descriptions. By treating hypergraphs as a language, Hyper-Align preserves group-level relationships, significantly outperforming existing graph-LLM methods in both in-domain and zero-shot tasks.

What Problem Does This Paper Address?

Graph neural networks and recent Graph-LLM integrations have focused heavily on pairwise relationships (e.g., Node A connects to Node B). However, real-world data is rarely that simple. Think of co-authorship on a research paper, group chats, or co-citation networks—these are best modeled as hypergraphs, where a single "hyperedge" can connect an arbitrary number of entities simultaneously.

Existing methods try to force hypergraphs into LLMs by either translating them into natural language descriptions (which causes massive information loss due to context limits) or flattening them into standard graphs via clique expansion (which destroys the holistic group identity). The authors address this fundamental gap: How can we make high-order hypergraph structures directly understandable by an LLM as native structural tokens?

Text-based vs. Hypergraph-as-Language paradigm

Methods

The authors propose Hyper-Align, which maps hypergraph contexts into continuous tokens consumable by a frozen base LLM.

Overall framework of Hyper-Align

The architecture consists of three main components:

  1. Hypergraph Incidence Detail Template with Overview (HIDT-O): A serialization method that builds a fixed-shape incidence tree by alternating between vertices and hyperedges, combined with an order-aware overview suffix to capture broader structural distributions.
  2. Hypergraph Incidence Projector (HIP): Instead of using a standard MLP, HIP explicitly decouples textual semantics from structural properties. It uses a lightweight Hyper-Incidence Block to perform bidirectional message passing between vertex and hyperedge tokens within the projector space before they reach the LLM.
  3. Hypergraph-as-Language Protocol: A unified input interface that combines the structural hypergraph tokens with natural language prompts (Background-Details-Question) to query the frozen LLM.

During training, the base LLM remains frozen, and only the HIP is tuned using standard causal language modeling loss alongside two novel structural regularizers: order bucket reconstruction and relation reconstruction.

Datasets

To evaluate the framework, the authors introduce HyperAlign-Bench, featuring two core tasks: vertex classification (VC) and hyperedge classification (HEC).

  • Arxiv-HG (Main Dataset): A co-citation hypergraph built from OGBN-Arxiv containing 169,343 vertices and 123,826 hyperedges.
  • Cross-Domain Datasets: Four reorganized datasets derived from HyperBERT used exclusively for zero-shot evaluation to test out-of-domain generalization: Cora-CC, PubMed, DBLP, and IMDB.

Key Insights and Ideas

  • Lossless Structural Alignment: Moving away from "Hypergraph-to-Language" (text descriptions) to "Hypergraph-as-Language" (structural tokens) prevents severe compression and preserves the exact vertex-hyperedge incidence structure.
  • Bidirectional Projector Dynamics: The HIP projector doesn't just project tokens linearly; it runs a mini message-passing protocol internally. This allows vertex tokens to learn about their hyperedges (and vice versa) before hitting the LLM.
  • Joint Task Synergy: Training the model simultaneously on both vertex-level and hyperedge-level tasks forces the projector to learn a more generalized, robust structural alignment, significantly boosting zero-shot performance.

Key Results

  • In-Domain Superiority: On the Arxiv-HG dataset, Hyper-Align achieved 76.9% accuracy on Vertex Classification and 78.2% on Hyperedge Classification, outperforming the best graph-LLM baselines (like GOFA and TEA-GLM) by over 6-7 percentage points.
  • Robust Zero-Shot Transfer: When evaluated on unseen domains without any fine-tuning, Hyper-Align maintained a massive lead, scoring an average zero-shot accuracy of 73.5% (VC) and 65.7% (HEC), compared to the next best model's 63.3% and 60.7%.
  • High-Order Resilience: Stratification analysis showed that as the size of the hyperedges increased (i.e., more nodes per hyperedge), the performance gap between Hyper-Align and traditional clique-expansion methods widened, proving its native advantage in handling dense group dynamics.

Limitations and Future Work

  • Overfitting Risks: The ablation studies showed that training beyond 2 epochs led to a sharp decline in zero-shot performance, indicating that the projector easily overfits the source hypergraph distribution if tuned too long.
  • Computational Scaling: While HIDT-O uses sampling budgets to keep sequence lengths manageable (max 160 tokens), scaling to massive, ultra-dense hypergraphs with deep neighborhoods remains a challenge.
  • Future Directions: The authors suggest extending this native alignment paradigm to other complex topological structures, such as simplicial complexes or heterogeneous hypergraphs.

Summary updated

BibTeX
@misc{lei2026hypergraph,
  author = {Mengqi Lei and Guohuan Xie and Shihui Ying and Shaoyi Du and Jun-Hai Yong and Chuan Shi and Ling Tian and Siqi Li and Yue Gao},
  title = {{Hypergraph as Language}},
  year = {2026},
  eprint = {2605.21858},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.21858},
}
Figure