# Uncovering Semantic Hierarchies in Text-Attributed Graphs via Variational EM-based LLM–GNN Synergy

*Yunhui Liu, Xudong Jin, Qizhuo Xie, Chunhui Zhao, Xiao Luo, Tao Zheng, Bin Chong, Tieke He*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152617) · [OpenReview](https://openreview.net/forum?id=Rm5u5TMKcq) · [Open on the map](../papers.html#p152617)

Category: [Graphs, OOD Detection & Medical Imaging](../pcat/7.md) › [Hyperbolic Graph Representation Learning](../pgroup/469.md) · Type: new method · Keywords: semantic hierarchy discovery, text-attributed graphs, LLM-GNN synergy, Variational EM, graph representation learning

Areas: [Graph Learning](../areas/graph-learning.md) › Graph Reasoning and Representation › Graph-Language Models

## Summary
SHiFT synergizes LLMs and GNNs in a Variational EM framework to uncover semantic hierarchies in text-attributed graphs.

## Explained to a 5-year-old
We have lots of words and pictures that are connected like a web. Usually, we look at these words and pictures as flat lists, but in real life things have levels, like animals, pets, dogs, and a specific breed. This paper wants to make a big tree that shows those levels. They use a clever computer program that understands language to help decide what goes on each level of the tree. They also use another computer program that looks at how the pictures are linked to keep the tree consistent. The robot only changes the tree when it sees something wrong, so it saves work. In the end, we get a nice tree that helps us understand the pictures better.

## Explained to a 5-year-old, longer
Imagine you have a bunch of words and pictures that are connected like a web. Usually, we look at these words and pictures as flat lists, but in real life things have levels, like animals, pets, dogs, and a specific breed. This paper wants to make a big tree that shows those levels. They use a clever computer program that understands language to help decide what goes on each level of the tree. They also use another computer program that looks at how the pictures are linked to keep the tree consistent. The language program only changes the tree when it finds something strange, which saves a lot of time. In the background, they use a special way of training called Expectation-Maximization that works like a game between the two programs. The first step makes the tree, the second step checks it with the picture program. They also prove that their method works like a known mathematical idea. Experiments show that their method works better than old methods and finds trees that people can read easily. The result is a helpful tool for anyone who wants to understand complex networks of words and pictures. It can be used in many fields, like organizing knowledge or improving search engines. The method is simple enough to be used on regular computers, not just huge supercomputers.

## For a technical reader
SHiFT combines large language models (LLMs) with graph neural networks (GNNs) in an Expectation-Maximization (EM) framework to learn hierarchical representations from text-attributed graphs. In the E-step, an LLM acts as an expert taxonomist, generating a semantic tree while a lightweight mapping and diagnosis strategy updates the hierarchy only on anomalies, reducing inference cost. The M-step aligns the GNN encoder with the induced hierarchy using clustering partitions, topological skeletons, and semantic concepts. Theoretical analysis shows that the overall procedure can be viewed as a generalized Variational EM algorithm. Experiments demonstrate state-of-the-art performance and the discovery of human-readable taxonomies.

## Problem
Learning representations on text-attributed graphs often ignores the hierarchical granularity present in real-world data, resulting in flat semantic spaces. There is a need for methods that can capture coarse-to-fine semantic structures while leveraging both language understanding and graph structure.

## Method
The approach uses an Expectation-Maximization paradigm where an LLM acts as an expert taxonomist to generate a semantic tree, and a lightweight mapping and diagnosis strategy updates the hierarchy only when anomalies are detected. In the M-step, the GNN encoder is aligned with the induced hierarchy through clustering, topological skeleton, and semantic concept matching. Theoretical analysis frames the method as a generalized Variational EM algorithm.

## Results
The approach achieves state-of-the-art performance and discovers high-quality, human-readable taxonomies.

## Contributions
It introduces a novel synergy between LLMs and GNNs within a Variational EM framework to explicitly model semantic hierarchies, and provides a lightweight hierarchy update mechanism that reduces inference costs. The method also offers a theoretical interpretation as a generalized Variational EM algorithm.

## Research questions this paper is counted under

- [How can graph models capture fine-grained structural patterns beyond simple node neighborhoods for tasks like link prediction and node classification?](../q/56.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152617)
