Beyond Graphs: Can Large Language Models Comprehend Hypergraphs?

Yifan Feng, Chengwu Yang, Xingliang Hou, Shaoyi Du, Shihui Ying +2 more
2/12/2026

No official code found. Best implementation: iMoonLab/LLM4Hypergraph (42 stars, Apache-2.0, last commit 2025-01-26).

Abstract

Existing benchmarks like NLGraph and GraphQA evaluate LLMs on graphs by focusing mainly on pairwise relationships, overlooking the high-order correlations found in real-world data. Hypergraphs, which can model complex beyond-pairwise relationships, offer a more robust framework but are still underexplored in the context of LLMs. To address this gap, we introduce LLM4Hypergraph, the first comprehensive benchmark comprising 21,500 problems across eight low-order, five high-order, and two isomorphism tasks, utilizing both synthetic and real-world hypergraphs from citation networks and protein structures. We evaluate six prominent LLMs, including GPT-4o, demonstrating our benchmark's effectiveness in identifying model strengths and weaknesses. Our specialized prompting framework incorporates seven hypergraph languages and introduces two novel techniques, Hyper-BAG and Hyper-COT, which enhance high-order reasoning and achieve an average 4% (up to 9%) performance improvement on structure classification tasks. This work establishes a foundational testbed for integrating hypergraph computational capabilities into LLMs, advancing their comprehension. The source codes are at https://github.com/iMoonLab/LLM4Hypergraph.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

The source code of ICLR 2025 "Beyond Graphs: Can Large Language Models Comprehend Hypergraphs?"

427Shell, PythonOct 2, 20241 years agoApache-2.0
hypergraphhypergraph-neural-networksllm

Similar Papers

Cite this paper

@article{feng2026beyond,
  title  = {Beyond Graphs: Can Large Language Models Comprehend Hypergraphs?},
  author = {Yifan Feng and Chengwu Yang and Xingliang Hou and Shaoyi Du and Shihui Ying and Zongze Wu and Yue Gao},
  year   = {2026},
  eprint = {2410.10083},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.10083},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.10083.svg)](https://codeofpaper.com/paper/2410.10083)

Discussion