Topology-aware tensor decomposition for meta-graph learning

Hansi Yang, Quanming Yao

Abstract

Heterogeneous graphs generally refer to graphs with different types of nodes and edges. A common approach for extracting useful information from heterogeneous graphs is to use meta-graphs, which can be seen as a special kind of directed acyclic graph (DAG) with the same node and edge types as the heterogeneous graph. However, designing proper meta-graphs is challenging. Recently, there have been many works on learning suitable meta-graphs from a heterogeneous graph. Existing methods generally introduce continuous weights for edges that are independent of each other, which ignores the topological structure of meta-graphs and can be ineffective. To address this issue, we propose a new viewpoint from tensor on learning meta-graphs. Such a viewpoint not only helps interpret the limitation of existing works by CANDECOMP/PARAFAC (CP) decomposition, but also inspires us to propose a topology-aware tensor decomposition, called TENSUS, that reflects the structure of DAGs. The proposed topology-aware tensor decomposition is easy to use and simple to implement, and it can be taken as a plug-in part to upgrade many existing works, including node classification and recommendation on heterogeneous graphs. Experimental results on different tasks demonstrate that the proposed method can significantly improve the state-of-the-arts for all these tasks.

Introduction: The Challenge of Heterogeneous Graphs

Real-world data is often "heterogeneous"—consider a research database where nodes represent authors, papers, and venues, all connected by distinct types of links. To analyze these complex structures, researchers utilize meta-graphs: small templates (Directed Acyclic Graphs or DAGs) that describe multi-hop relationships, such as "Author A published a Paper in Venue V that was cited by Author B."

Illustration of a heterogeneous graph (a), a simple meta-path (b), and a more complex meta-graph (c).

The primary challenge lies in the fact that designing these meta-graphs manually requires deep domain expertise. While recent automated methods attempt to learn these patterns from data, they typically treat every edge in the template as independent. This ignores the topology—the inherent connectivity between edges. Mathematically, this independence limits the expressive power of the model, preventing it from capturing the most nuanced and useful patterns in the data.

The TENSUS Framework: Topology-Aware Learning

To bridge this gap, the researchers introduced a tensor-based perspective. They demonstrated that existing state-of-the-art methods (like DiffMG or GTN) are actually performing a very simple form of tensor decomposition known as rank-1 CP (CANDECOMP/PARAFAC). In tensor theory, rank-1 decompositions are limited in their representational capacity.

To address this, the authors proposed TENSUS (Tensor Meta-graph Learning), which features:

  1. Topology-Aware Decomposition: Instead of rank-1 CP, TENSUS uses a decomposition inspired by Tensor Train (TT) models. This allows the model to share latent factors across connected edges in the meta-graph.
  2. Higher Rank ($d > 1$): By increasing the rank of the decomposition, the model captures complex interactions between different edge types.
  3. Differentiable Plug-in: TENSUS is a modular component that can be integrated into existing Graph Neural Networks (GNNs) and trained end-to-end using standard gradient descent.
The TENSUS framework showing differentiable meta-path learning through sequential transformations (A-P-V-P-A).

Experimental Results

The authors evaluated TENSUS on node classification (DBLP, ACM, IMDB) and recommendation tasks (Yelp, Douban, Amazon). TENSUS consistently outperformed all baselines, including those using manually designed meta-paths (HAN, MAGNN) and automated learning methods (DiffMG).

  • Node Classification: On the IMDB dataset, TENSUS achieved a Macro-F1 score of 64.16, a significant improvement over DiffMG’s 61.04.
  • Recommendation: On the Amazon dataset, TENSUS reached an AUC of 77.72%, compared to 75.28% for the previous state-of-the-art.
  • Efficiency and Stability: Despite its increased complexity, TENSUS maintains a low parameter count due to its Tensor Train inspiration. It also exhibits greater stability during training and converges to superior solutions compared to independent-edge models.

Conclusion and Future Work

TENSUS reframes meta-graph learning as a tensor problem, allowing for the application of established tensor algebra to graph theory. While highly effective, the model's performance is sensitive to the choice of rank $d$, and it currently requires a predefined "skeleton" structure (DAG) as input. Future research may focus on automatically evolving the skeleton structure alongside the tensor decomposition parameters to further automate the discovery of complex data patterns.

Summary updated

BibTeX
@article{yang2021topology,
  author = {Hansi Yang and Quanming Yao},
  title = {{Topology-aware tensor decomposition for meta-graph learning}},
  journal = {CAAI Trans. Intell. Technol.},
  year = {2021},
}
Figure