Manuscript Offprint

arXiv:2611.00511

Efficient and Scalable Multi-View Masked Autoencoder for Heterogeneous Graph Self-Supervised Learning

Hao Geng, Deqing Wang, Lihao Ge, Chenguang Du, Fuzhen Zhuang, Bowen Yang, Yanlin Hu, Songtao Wang

Hao Geng, Deqing Wang, Lihao Ge, Chenguang Du, Fuzhen Zhuang, Senior Member, IEEE, Bowen Yang, Yanlin Hu, and Songtao Wang

Abstract—Recent years have witnessed the flourishing of self-supervised learning (SSL) on heterogeneous graphs, e.g., masked autoencoder (MAE)-based methods. However, existing MAE-based methods mostly suffer from three issues, including the prohibitive computational cost of constructing meta-path-induced subgraphs, the limitations of uniform random masking, and the suboptimal objective of reconstructing potentially noisy or uninformative original node features. To address these issues, we propose the multiview masked autoencoder (MVMAE)—a novel, efficient, and scalable framework for heterogeneous graph SSL. First, MVMAE introduces a novel multiview mask-then-reconstruct strategy. Instead of masking individual nodes or features, MVMAE randomly masks entire meta-path views and guides the model to reconstruct their representations from remaining visible views. This approach shifts the learning objective to a high-level, semantic task, providing a more robust and informative supervisory signal that is effective even when initial node features are absent or flawed. Then, to handle the computational demands, MVMAE employs an efficient offline aggregation mechanism that precomputes and reuses representations for each meta-path view, completely avoiding the costly construction of meta-path-induced subgraphs. Next, to fuse the representations of each view, MVMAE uses a Transformer-based multiview fusion encoder to capture the complex correlations between views, and a deliberately simple MLP decoder to compel the encoder to learn highly expressive and robust node representations. Extensive experiments on six real-world datasets, including three large-scale graphs, demonstrate that MVMAE consistently outperforms state-of-the-art self-supervised and even semisupervised baselines, confirming its superior effectiveness and scalability. Our source code is released at https://github.com/hcmdgh/MVMAE.

Index Terms—Graph representation learning, heterogeneous graph neural network (HGNN), masked autoencoder (MAE), self-supervised learning (SSL).

I. INTRODUCTION

Recent years have witnessed the flourishing of heterogeneous graph representation learning (HGRL) in data mining and knowledge discovery [1], [2]. A heterogeneous graph is a potent data structure for representing diverse types of entities and complex relationships between them. Consequently, numerous real-world systems can be modeled as heterogeneous graphs, enabling a wide range of applications in domains such as recommender systems [3], bioinformatics [4], and academic networks [5]. For effectively modeling heterogeneous graphs, heterogeneous graph neural networks (HGNNs) have emerged as a state-of-the-art methodology, demonstrating remarkable efficacy in capturing rich structural and semantic information [2], [6], [7]. However, most HGNNs operate under supervised or semisupervised paradigms [8], where the learning process relies heavily on labeled data. This reliance presents a significant practical bottleneck, as label acquisition in real-world applications is often challenging and prohibitively expensive [1]. To mitigate this issue, self-supervised learning (SSL) offers a promising solution by learning supervisory signals directly from the data itself, bypassing the need for explicit labels.

Contrastive learning methods dominate graph SSL [9]–[11], but their success depends on challenging data augmentation and negative sampling strategies [12]. Most graph augmentations, like node dropping or edge perturbation, are heuristic-based, leading to inconsistent performance. This makes finding an optimal strategy a costly trial-and-error process with no guarantee of generalizability [10], [13]. Furthermore, negative sampling is often computationally demanding, and suboptimal sampling strategies can introduce uninformative samples that degrade model performance [14].

Generative SSL methods circumvent the issues associated with contrastive approaches by learning representations through the direct reconstruction of input data [12], [15]–[17]. Among these, the masked autoencoder (MAE) framework has proven particularly effective, initially demonstrating remarkable success in computer vision [18] and natural language processing [19] by learning to predict masked portions of the input data. Inspired by these advancements, the MAE paradigm is adapted to the graph domain. For instance, GraphMAE [12] learns to reconstruct randomly masked node features. HGMAE [8] further extends the approach to heterogeneous graphs by reconstructing both masked nodes and edges in each meta-

Received 23 October 2024; revised 18 July 2025 and 23 February 2026; accepted 13 October 2026. This work was supported in part by the National Natural Science Foundation of China under Grant 62276015 and in part by the Fundamental Research Funds for the Central Universities under Grant GW2025-09. (Corresponding author: Songtao Wang.)

Hao Geng and Lihao Ge are with Beihang University, Beijing 100191, China (e-mail: genghao@buaa.edu.cn; glh6660815@gmail.com).

Deqing Wang and Fuzhen Zhuang are with Beihang University, Beijing 100191, China, and also with the Zhongguancun Laboratory, Beijing 100194, China (e-mail: dqwang@buaa.edu.cn; zhuangfuzhen@buaa.edu.cn).

Chenguang Du and Songtao Wang are with the Zhongguancun Laboratory, Beijing 100194, China (e-mail: duchenguang@buaa.edu.cn; wangst@zgclab.edu.cn).

Bowen Yang is with the Westlake University, Hangzhou 310030, China (e-mail: by296@cantab.ac.uk).

Yanlin Hu is with the National Computer Network Emergency Response Technical Team/Coordination Center of China, Beijing 100029, China (e-mail: yanlinhu@cert.org.cn).

Digital Object Identifier 10.1109/TNLLS.2026.3745261.

Figure

Fig. 1. Example of meta-path-induced subgraphs in OAG. GPAP\mathcal{G}_{PAP} and GPCP\mathcal{G}_{PCP} are two subgraphs induced by meta-paths P-A-P and P-C-P, respectively.

path-induced subgraph. However, despite their promising performance on certain graph learning tasks, existing generative SSL methods overlook critical challenges inherent in real-world graphs, thereby limiting their practical applicability.

C1: Storage and Computational Bottlenecks via Metapath-induced Density Explosion: A meta-path is a sequence of relations defining a composite relation between node types, serving as a high-level blueprint for capturing complex semantics in heterogeneous graphs. To model graph heterogeneity, most existing graph representation learning methods decompose the heterogeneous graph into multiple meta-path-induced subgraphs. However, this process often encounters severe scalability issues in practice. As illustrated in Fig. 1, in datasets like the Open Academic Graph (OAG) [5], metapaths such as paper-conference-paper (P-C-P) can lead to a “density explosion” of the resulting adjacency matrices. Due to the “small-world effect” and the prevalence of high-degree nodes (e.g., a single conference or author linked to thousands of papers), the number of meta-path instances representing the nonzero (nnz) elements in the induced subgraph can grow even quadratically. For instance, a meta-path connecting 10,000 papers via a shared conference can generate 10810^8 edges, producing a dense intermediate matrix that far exceeds the memory capacity of modern GPUs. Consequently, while sparse matrix multiplication (SpMM) theoretically avoids explicit O(∣V∣2)O(|\mathcal{V}|^2) construction, the prohibitive storage and computational overhead of these dense meta-path-induced edges severely hinder the scalability of existing methods to large-scale heterogeneous graphs.

C2: Limitations of Microlevel Uniform Random Masking in Graph SSL: Existing graph SSL methods, including GraphMAE [12] and HGMAE [8], typically rely on a uniform random masking strategy at the microlevel. This technique involves randomly masking a portion of individual node features or edges and training the model to reconstruct the masked content. While straightforward, a critical flaw of this strategy lies in its exclusive focus on isolated, microlevel components. By restricting the masking target to individual nodes or edges, these methods often fail to challenge the model to capture complex, high-level structural semantics. For instance, within a densely interconnected community of a graph where node features tend to be highly homogeneous, predicting a masked node's feature from its local neighbors is a relatively trivial

task. Such a scenario creates an overly simplistic reconstruction objective, which severely constrains the model's ability to learn expressive, robust, and discriminative representations. To overcome this limitation, it is crucial to shift the masking target from microlevel elements to macrolevel structures (e.g., meta-path views) and introduce challenging cross-semantic reasoning into the reconstruction process.

C3: Limitations of Reconstructing Original Node Features in Graph SSL: Another significant issue arises from the common practice of reconstructing original node features as the self-supervised objective in graph SSL methods. While intuitive, this paradigm has two primary weaknesses. First, the original node features themselves may be inherently flawed. These features can often contain noise, irrelevant information, or be incomplete. For example, in the AMiner dataset, all nodes lack initial features. Researchers often use a random Gaussian distribution to generate them, with no semantic meaning. When the model is tasked with reconstructing these corrupted or deficient features, the learning process can be misguided, leading to poor performance in downstream tasks. Second, original node features exclusively describe the intrinsic properties of individual nodes. This narrow focus neglects the broader contextual information derived from a node's position and relationships within the graph's topology. By tasking the model solely with the reconstruction of these intrinsic attributes, crucial information is overlooked, including the complex correlations between interconnected nodes and the rich structural and semantic information embedded in the graph structure. Consequently, the model's capacity to learn a comprehensive and robust representation of the graph is severely constrained.

To address these issues, we propose the multiview masked autoencoder (MVMAE) model for heterogeneous graph SSL. We treat each meta-path as a distinct “view” of the heterogeneous graph, as each meta-path view encapsulates a specific structural aspect of the graph.

To address C1, we propose an efficient offline aggregation mechanism that completely avoids the explicit construction of costly meta-path-induced subgraphs. Inspired by the simplification of graph convolutions [20], [21], our approach computes aggregated features for each meta-path view via a sequence of sparse-dense matrix multiplications. This process has a linear complexity in the number of edges. It involves no trainable parameters, allowing it to be performed as a one-time offline precomputation. This drastically reduces the computational burden during training while maintaining remarkable performance.

To address C2 and C3, we introduce a multiview mask-then-reconstruct strategy. Instead of masking individual nodes or edges, we randomly mask a portion of the meta-path views. The model is then tasked with reconstructing the representations of these masked views using the remaining visible views. This approach shifts the learning objective from a low-level and uniform masking task to a high-level and semantic one. Furthermore, rather than reconstructing flawed original features (as pointed out in C3), the model learns to reconstruct the semantically rich meta-path view representations generated by our offline aggregator. This provides a stable and informative supervisory signal, enabling robust learning even on graphs that lack meaningful initial features. The intuition behind our strategy is that the semantics of each meta-path are often correlated. For example, in an academic graph, this paper-author-paper (P-A-P) meta-path and the paper-paper (P-P) meta-path both contain semantic signals that can help to predict this paper-field-paper (P-F-P) meta-path, as authors tend to publish in and cite papers from the same field. By explicitly training the model to find these connections, it learns a deeper understanding of the graph's structure.

To fuse multiple meta-path views into a unified representation, we propose a multiview fusion encoder that leverages the Transformer architecture [22]. For each node, we treat its set of view embeddings as a sequence of tokens. Then a self-attention mechanism captures the correlations between these views, fusing them into a single and unified node representation. Next, the fused representation is fed to a simple MLP decoder to perform the reconstruction task. The deliberate simplicity of the MLP decoder forces the encoder to learn highly expressive and informative representations, as it cannot rely on a powerful decoder to compensate for information loss.

Our main contributions are summarized as follows:

  1. We propose a novel self-supervised method for heterogeneous graphs—masking and reconstructing meta-path views. Since meta-path views contain richer structural and semantic information, this strategy enables the model to capture rich semantic and structural information in the whole graph.

  2. To avoid the prohibitive cost of constructing meta-path-induced subgraphs, we design an efficient offline aggregation mechanism that can be precomputed with a complexity linear in the number of edges.

  3. We propose to utilize multiview representations generated by a parameter-free mechanism as reconstruction targets. This not only provides an informative and robust supervision signal but also elegantly addresses the “trivial solution” problem in the MAE paradigm.

  4. Extensive experiments on five real-world datasets demonstrate that our proposed model not only outperforms state-of-the-art unsupervised baselines but also surpasses several supervised counterparts. Furthermore, its strong performance on two large-scale datasets confirms its scalability and effectiveness.

References (40)