---
title: "CHoE: Cross-Domain Heterogeneous Graph Prompt Learning via Structure-Conditioned Experts"
authors:
  - "Peiyuan Li"
  - "Yongqi Huang"
  - "Jitao Zhao"
  - "Dongxiao He"
  - "Di Jin"
  - "Weixiong Zhang"
doi: "10.24963/ijcai.2026/309"
url: "https://ijcai.org/proceedings/2026/309"
pdf: "https://ijcai.org/proceedings/2026/0309.pdf"
venue: "Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence"
year: 2026
pages: "2780-2788"
track: "Main Track"
keywords:
  - "Data Mining: Mining graphs"
---

# CHoE: Cross-Domain Heterogeneous Graph Prompt Learning via Structure-Conditioned Experts

Peiyuan Li, Yongqi Huang, Jitao Zhao, Dongxiao He, Di Jin, Weixiong Zhang

*Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence*, pages 2780-2788. DOI: [10.24963/ijcai.2026/309](https://doi.org/10.24963/ijcai.2026/309)

## Abstract

Heterogeneous Graph Prompt Learning (HGPL) has emerged as a promising paradigm for bridging the gap between the objectives of pre-training foundation models and their downstream applications in heterogeneous graph settings. However, existing HGPL methods are primarily designed for in-domain scenarios, whereas real-world deployments often span multiple domains, and the data used for pre-training and downstream tasks may originate from different distributions. Consequently, the applicability of current HGPL approaches is limited in in-domain settings, and their performance typically degrades when application domains shift. To address this serious limitation, we develop CHoE, a cross-domain HGPL method built upon an expert network. During pre-training, we introduce and train structure-conditioned experts, and during prompt tuning, we propose a structure-aware expert routing and load balancing mechanism to select structurally compatible experts for each meta-path view. In addition, we design a prompt-based semantic fusion module to integrate representations across views for downstream prediction. Extensive experiments show that CHoE consistently improves performance in few-shot cross-domain applications, outperforming all baseline approaches.

## Full text

<!-- Extracted from the PDF with Docling; the PDF is the version of record. -->

## 1 Introduction

Heterogeneous Graphs (HGs) are ubiquitous across nearly all application domains, including biomedical [Davis et al., 2017] networks in biological and medical applications and bibliographic [Hu et al., 2020] networks in scientific research. In recent years, Heterogeneous Graph Neural Networks (HGNNs) have attracted significant attention for modeling and analyzing HGs. Most HGNN methods rely heavily on large amounts of labeled data, which is costly to obtain. To mitigate label dependency, "the pre-training and then finetuning" paradigm provides an effective alternative by using

∗Corresponding author.

[Code is avaliable at: https://github.com/hedongxiao-tju/CHoE](https://github.com/hedongxiao-tju/CHoE)

unlabeled data to learn and adapt general knowledge to specific downstream tasks. This paradigm reduces dependence on labeled data while maintaining transferability across diverse downstream applications [Hu et al., 2020].

In practice, adapting a pre-trained model to accommodate diverse downstream conditions requires efficient, robust mechanisms beyond task-specific full fine-tuning [Shan et al., 2026]. Inspired by the success of prompt learning in natural language [Zhou et al., 2022] and computer vision [Nie et al., 2023], recent studies have attempted to extend this paradigm to graphs. Graph Prompt Learning (GPL) [Sun et al., 2023] has emerged as a powerful and versatile approach. By constructing flexible, lightweight prompting modules for specific downstream tasks, GPL aligns pre-trained models with downstream tasks and alleviates negative transfer [Huang et al., 2025]. Most existing GPL methods fix the parameters of pretrained models and only fine-tune lightweight prompt modules, enabling efficient adaptation of pre-trained models to downstream tasks. Some studies have explored GPL methods in heterogeneous graphs. HGPrompt [Yu et al., 2024] decomposes a heterogeneous graph into multiple homogeneous subgraphs and introduces unified-feature and subgraph-specific prompts, enabling models to adapt to downstream tasks. HetGPT [Ma et al., 2024] further enriches prompt design by incorporating virtual-class prompts and introducing nodespecific feature prompts. HetGPT also employs a multi-view neighborhood aggregation mechanism to model semantic and structural information in heterogeneous graphs.

However, despite recent advancements, existing HGPL methods are typically designed for in-domain scenarios. In real-world applications, models are often required to operate across domains, where source and target domains follow distinct distributions [Liang et al., 2026; Wang et al., 2026]. For example, a model may be pre-trained for biomedical networks but is applied to downstream applications on chemicals. The applicability of these HGPL methods remains limited for cross-domain scenarios. Changes in application domains typically degrade the performance of HGPL methods. As shown in Figure 1, existing HGPL methods exhibit reduced performance in cross-domain settings, and carefully designed prompt modules are less competitive than fully finetuning the pre-trained model. Therefore, addressing the performance degradation problem in cross-domain scenarios is an urgent issue in heterogeneous graph learning.

Figure 1: Motivation Experiments. We present the performance of HeCo and HetGPT when pre-trained on Aminer and Freebase and fine-tuned on the DBLP dataset. The percentage drops (∆) reflect the performance degradation caused by domain shifts compared with in-domain settings (i.e., pre-training and fine-tuning on DBLP).

![Image](https://ijcai.org/proceedings/2026/fulltext/309/image_000000_358510e209b973f11a136692960dc723dad2b62f5d5471bf57b366347e90cc42.png)

Effective cross-domain learning on heterogeneous graphs faces two key challenges. The first is making a pre-trained model compatible with downstream graphs from different domains. In such settings, both the types and counts of metapaths can vary. Because existing methods are tightly coupled to pre-defined meta-paths, their pre-trained representations transfer poorly to new domains. The second challenge is enabling knowledge transfer under semantic and structural distribution shifts. Semantic and structural patterns often differ significantly across domains. Even simple adaptations that render current methods nominally cross-domain tend to fail under these shifts, resulting in noticeable performance degradation. Therefore, there is a clear need for a cross-domain framework that keeps pre-trained models compatible with diverse downstream graphs while explicitly bridging semantic and structural discrepancies between domains.

To address these challenges, we propose CHoE, a crossdomain HGPL method built upon an expert network perspective. In the pre-training stage, we design a generative self-supervised learning framework that reconstructs masked node features and edges, encouraging the model to learn universal semantic and structural knowledge from the source domain. In the prompt-tuning stage, we introduce structure-conditioned experts learned during pre-training, allowing each meta-path view in the downstream graph to adaptively select and combine expert representations. Specifically, we develop a structure-aware expert routing mechanism that evaluates experts according to their ability to model the downstream graph structure and selects those that are structurally compatible, together with a load balancing mechanism that uses accumulated routing statistics from previous epochs to promote balanced expert usage and prevent biased expert selection. At the semantic level, we propose a prompt-based semantic fusion module that introduces meta-path-specific prompts to enable adaptive fusion of representations from different semantic views, thereby achieving more robust and efficient knowledge transfer across domains. In summary, our main contributions are as follows:

- We identify an under-explored but practically impor-
- tant cross-domain scenario for heterogeneous graph and show that existing HGPL methods degrade under semantic and structural shifts.
- We propose CHoE, a cross-domain HGPL method based on structure-conditioned experts. By transferring a pretrained expert pool and enabling structure-aware routing and load balancing, CHoE mitigates cross-domain structural discrepancies. Moreover, a prompt-based semantic fusion module is introduced to achieve cross-domain semantic adaptation.
- We conduct extensive few-shot experiments on four heterogeneous graph datasets. The results consistently demonstrate the effectiveness and robustness of CHoE in both cross-domain and few-shot settings.

## 2 RelatedWork

Heterogeneous graph pre-training. Graph pre-training has attracted growing attention in recent years, and numerous methods for heterogeneous graphs have been proposed. Among them, DMGI [Park et al., 2020] and HDMI [Jing et al., 2021] extend DGI [Veliˇckovi´c et al., 2019] to heterogeneous settings by maximizing mutual information between node representations and graph-level summaries within each meta-path view and then aggregating multi-view representations into a unified embedding. Inspired by graph contrastive learning, HeCo [Wang et al., 2021] employs a cocontrastive framework that contrasts local and higher-order views, whereas HGCML [Wang et al., 2023] performs multiview contrastive learning by constructing several meta-pathbased views. HGMAE [Tian et al., 2023] adopts a generative approach that reconstructs masked node features and masked edges. In contrast to these meta-path-dependent approaches, HERO [Mo et al., 2024] dispenses with pre-defined metapaths by modeling homophily through a self-expression matrix and capturing heterogeneity via a type-aware attentionbased aggregation of node representations

Heterogeneous graph prompt learning. Heterogeneous graph pre-training methods have shown strong representation learning capabilities but often suffer from negative transfer when adapted to diverse downstream tasks. HGPL has thus emerged as a new paradigm. HGPrompt [Yu et al., 2024] decomposes a heterogeneous graph into multiple homogeneous subgraphs and introduces unified-feature and subgraph-specific prompts, while HetGPT [Ma et al., 2024] further enriches the prompt space by incorporating virtualclass prompts and node-specific feature prompts, together with a multi-view neighborhood aggregation mechanism to capture complex neighborhood. HiGPT [Tang et al., 2024] leverages context-parameterized heterogeneity projectors and large language models to generate node representations and applies instruction tuning to better align with downstream tasks. Distinct from prior work that primarily emphasizes prompt design, GPAWP [Wei et al., 2025] instead investigates how prompts function in practice, proposing a promptimportance evaluation mechanism to quantify their contributions and prune ineffective or negatively impactful prompts.

Despite their effectiveness, existing methods remain limited to in-domain settings and have not yet fully achieved cross-domain transfer, which this paper aims to address.

## 3 Preliminary

Definition 3.1 Heterogeneous Graph. We define a heterogeneous graph as G = (V, E, A, R, X, P), where V = {vi}Ni=1 denotes the set of N nodes and X = {xi}Ni=1 represents the corresponding node features. The edge set is defined as E = {(va, r, vb)}Mj=1 , where each edge connects node va to node vb via a relation type r ∈ R. A and R denote the sets of node types and relation types, respectively, with |A| + |R| &gt; 2. P = {pi}|P| i=1 is a set of meta-paths, where each meta-path pi is defined as a sequence of relations r1, r2, . . . , rs, i.e., v1 r1 -→ v2 r2 -→ · · · rs -→ vs+1, and s is the length of the meta-path.

Definition 3.2 Heterogeneous Graph Prompt Learning. HGPL adapts a pre-trained heterogeneous graph model to downstream applications by introducing learnable prompt parameters while keeping the pre-trained model fixed. Given a heterogeneous graph G with a set of meta-paths P, HGPL injects prompts into node features or graph topology to guide task-specific learning. Formally, it can be defined as:

<!-- formula-not-decoded -->

where Gi denotes the graphs corresponding to meta-path pi ∈ P, pi is a learnable prompt specific to pi, and f(·) is a prompt injection function, producing the prompted graph ˜ Gi for downstream tasks.

Definition 3.3 Mixture of Experts (MoE). MoE has achieved notable success in language [Cai et al., 2025] and vision [Riquelme et al., 2021] domains. It is a modular learning paradigm consisting of a set of experts and a routing function that selects and combines compatible experts. In graph representation learning, given an input representation hi of a node vi, an MoE model maintains an expert pool E = {E1, E2, . . . , EM}, where each expert Em(·) ∈ RN×d is a learnable function. A routing function g(·) generates the routing weights αi from hi via a softmax operation. The output of the MoE h′i is obtained as:

<!-- formula-not-decoded -->

## 4 Methodology

To resolve the challenges described in Section 1, we propose CHoE, which consists of four components: a selfsupervised pre-training framework, a structure-conditioned experts prompt-tuning module, a structure-aware expert routing and load balancing mechanism, and a prompt-based semantic fusion module. The overall CHoE framework is illustrated in Figure 2.

## 4.1 Self-supervised Graph Pre-training

In the pre-training stage, we adopt a generative learning framework to learn general semantic and structural information in the source domain. Given a heterogeneous graph Gsrc = (Vsrc,Xsrc,P), which contains a set of pre-defined meta-paths P = {pi}|P| i=1 , all methods in this subsection are performed on a single meta-path view unless otherwise noted. We first construct a meta-path-based adjacency matrix A ∈ RN×N via meta-path sampling [Dong et al., 2017], and apply Singular Value Decomposition (SVD) to align feature dimensions across domains, obtaining N×F -dimensional node features Xsrc ∈ RN×F . Then, we design an autoencoder architecture, in which the encoder fE(·) ∈ RN×d encodes node features Xsrc and meta-path-based adjacency matrices A to node representations, and the decoder fD(·) ∈ RN×F reconstructs the graph structure and node features from the learned representations.

## Masked Feature and Edge Reconstruction Tasks

To achieve self-supervised heterogeneous graph pre-training, inspired by the representative masked reconstruction paradigm GraphMAE [Hou et al., 2022], we design masked feature and edge reconstruction tasks that aim to capture semantic and structural information in heterogeneous graphs.

In the masked feature reconstruction task, for the adjacency matrix A, we construct a feature masking matrix following a Bernoulli distribution Mf ∼ Bernoulli(r1), where r1 is the feature masking ratio. The masked features are obtained as ˜X = Mf⊙Xsrc+(1-Mf)⊙X[M], where X[M] denotes learnable mask embeddings. We feed ˜X and A into the encoder fE(·) to obtain the node representations Hf. Subsequently, the decoder fD(·) reconstructs the node features as ˆX ∈ RN×F , which can be formulated as:

<!-- formula-not-decoded -->

The feature reconstruction loss Lf is formulated to measure the discrepancy between the ˆX and ˜X with a scaling factor γ1, which is defined as:

<!-- formula-not-decoded -->

where V m src denotes the set of masked nodes. By applying the above procedure to each meta-path view pi ∈ P, we obtain {Lif }|P| i=1 . To aggregate Lif across meta-path views, we introduce an attention vector q ∈ RF to compute the importance score for each meta-path, and then apply a softmax to obtain the attention weight wi f , which is defined as:

<!-- formula-not-decoded -->

where W is a learnable weight matrix and b is a bias vector. The loss Lfeat is defined as the weighted aggregation of L i f across all meta-paths:

<!-- formula-not-decoded -->

In the masked edge reconstruction task, for the adjacency matrix A, we construct an edge masking matrix Me ∼ Bernoulli(r2), where r2 is the edge masking rate. The masked adjacency matrix is obtained as ˜A = Me ⊙ A. Given the node features Xsrc ∈ RN×F and ˜A, the fE(·) encodes the node representations He, which are further decoded by fD(·) to obtain Z. This process can be formulated as:

Figure 2: Overall framework of CHoE.

![Image](https://ijcai.org/proceedings/2026/fulltext/309/image_000001_c84565b51e63656a8e1169a4c9e618065df3ba66d982e50a750d813763b1986e.png)

<!-- formula-not-decoded -->

We compute the discrepancy between ˆA = σ(ZZ⊤) and A with a scaling factor γ2:

<!-- formula-not-decoded -->

After applying the edge reconstruction task to all meta-paths, we obtain {Lie }|P| i=1 . We then calculate the corresponding attention weight wie according to Eq. 5, and the loss Ledge is obtained via a weighted aggregation:

<!-- formula-not-decoded -->

Finally, the pre-training loss Lpre is defined as:

<!-- formula-not-decoded -->

where λedge is used to balance the Lfeat and Ledge.

## 4.2 Structure-Conditioned Experts Prompt-tuning

In the fine-tuning stage, meta-paths in downstream graphs often differ from those in the source domain in type and number, limiting the compatibility of pre-trained models with downstream graphs. To address this challenge, we introduce structure-conditioned experts. The encoder fE(·) has learned general knowledge in the pre-training stage. We fix its parameters and adopt it as an expert pool E = {El | l = 1, 2 . . .L}. For the l-th expert El , it contains structure-conditioned experts, which is expressed as El = {El i | i = 1, 2 . . . |P|}, where each expert corresponds to a source-domain meta-path. Each El i is implemented as a Graph Attention Network [Veliˇckovi´c et al., 2018] encoder.

Given a heterogeneous graph Gtar = (Vtar,Xtar, T ), which contains a set of meta-paths T = {tj}|T | j=1 , all methods in this subsection are performed on a single meta-path view unless otherwise noted. We construct a meta-path-based adjacency matrix A and align feature dimensions across domains, obtaining N × F -dimensional node features Xtar ∈ RN×F . We then define Hl as the node representations at the l-th expert layer, with H0 = Xtar. Each expert El i generates the expertspecific node representations Hli , which are as follows:

<!-- formula-not-decoded -->

## Structure-Aware Expert Routing and Load Balancing

After obtaining node representations Hli of all experts at layer l, we learn routing weights to aggregate them into Hl . Based on the structural distribution discrepancy across domains, we design a routing mechanism that evaluates the structural consistency between A and Hli . An expert that can reconstruct a meta-path view should be assigned a large routing weight for that view. Moreover, connected nodes in the meta-path view are expected to have similar representations. Formally, given positive samples va, vb ∈ Vtar and negative samples vc, vd ∈ Vtar, we construct positive and negative sample sets:

<!-- formula-not-decoded -->

where positive samples are randomly selected from connected node pairs and negative samples are sampled from other node pairs. We compute the similarity for each sampled node pair and obtain a positive score s+l i and a negative score s-l i by averaging the similarities within each set:

<!-- formula-not-decoded -->

where hlu,i denotes the representation of node vu produced by El i . Then, we compute the expert score rli :

<!-- formula-not-decoded -->

where τ denotes the temperature parameter.

Then, we note that assigning expert weights solely based on expert scores can lead to severe expert imbalance, where a small subset of experts dominates the routing decisions across layers. To address this issue, we further introduce a load balancing mechanism that adaptively penalizes experts based on their cumulative routing weights in previous epochs, encouraging a more balanced allocation of experts. Specifically, we maintain an expert load counter mi that records the cumulative sum of routing weights assigned to expert Ei across all layers over previous epochs. At the current epoch, we compute the relative load of expert Ei as:

<!-- formula-not-decoded -->

Based on ˜mi, we use an exponential decay regularization term γi to compute the final routing score ˜ rli :

<!-- formula-not-decoded -->

where λbalance controls the strength of expert balancing. Subsequently, the routing weights are computed by applying normalization to the routing scores:

<!-- formula-not-decoded -->

Finally, we aggregate these expert-specific representations Hli using the routing weights αli to obtain H l , and update the expert load counter mi with αli :

<!-- formula-not-decoded -->

## Prompt-Based Semantic Fusion Module

While the structure-aware expert routing mechanism selects the most compatible experts for each meta-path from a structural perspective, thereby producing node representations for each meta-path view, the downstream tasks further require an effective integration of these representations. Therefore, we introduce a prompt-based fusion module to adaptively aggregate representations across different semantic views.

After applying the above procedure layer by layer to each meta-path view tj ∈ T , we obtain a set of representations at the L-th expert layer for all meta-path views in the target domain: {HLj }|T | j=1 . Then, to generate a global representation for each meta-path view, we perform mean pooling over all nodes:

<!-- formula-not-decoded -->

in which hj denotes the global representation of meta-path tj . We introduce a learnable prompt vector pj for each metapath to assess its semantic importance, computing a semantic importance score sj that is further normalized across all metapaths to obtain the corresponding semantic weight βj :

<!-- formula-not-decoded -->

Table 1: Statistics of heterogeneous graph datasets.

| Dataset   | Node Type                                                            | Meta-path         |   Classes |
|-----------|----------------------------------------------------------------------|-------------------|-----------|
| ACM       | Paper (P): 4019 Author (A): 7167 Subject (S): 60                     | PAP, PSP          |         3 |
| DBLP      | Author (A): 4057 Paper (P): 14328 Conference (C): 20 Term (T): 7723  | APA, APCPA, APTPA |         4 |
| Freebase  | Movie (M): 3492 Actor (A): 33401 Director (D): 2502 Writer (W): 4459 | MAM, MDM, MWM     |         4 |
| AMiner    | Paper (P): 6564 Author (A): 13329 Reference (R): 35890               | PAP, PRP          |         3 |

The final Hfinal is obtained by aggregating meta-path-specific node representations with their semantic weights and then fed into a linear classifier fC(·):

<!-- formula-not-decoded -->

During the fine-tuning stage, we optimize the Lft over labeled nodes:

<!-- formula-not-decoded -->

where V label tar is the set of labeled nodes, yv and ˆyv denote the true label and predicted label of node v, respectively. Notably, only {pj}|T | j=1 , and the parameters of fC(·), are updated during fine-tuning, enabling the pre-trained model to achieve efficient cross-domain transfer.

## 5 Experiments

## 5.1 Experimental Setup

## Datasets and Baselines

In our experiments, we adopt four widely used heterogeneous graph datasets: ACM, DBLP, Aminer, and Freebase. Each dataset consists of multiple node types and meta-paths. The statistics of the datasets are shown in Table 1. We compare our method with five representative categories of existing methods, including: (1) homogeneous self-supervised methods: DGI [Veliˇckovi´c et al., 2019] and GRACE [Zhu et al., 2020]; (2) heterogeneous self-supervised methods: HeCo [Wang et al., 2021], HGMAE [Tian et al., 2023], and HERO [Mo et al., 2024]; (3) homogeneous graph prompt learning methods: GraphPrompt [Liu et al., 2023], GPFplus [Fang et al., 2023], and EdgePrompt [Fu et al., 2025]; (4) heterogeneous graph prompt learning methods: HGPrompt [Yu et al., 2024] and HetGPT [Ma et al., 2024]; (5) cross-domain homogeneous graph prompt learning methods: GraphLoRA [Yang et al., 2025].

Table 2: Cross-domain node classification. Macro-F1 and Micro-F1 for 5-shot tasks, where all models are pre-trained on the ACM dataset and fine-tuned on four target datasets, over eleven baselines. The best results are highlighted in bold, and the runner-up with an underline.

| Method      | ACM - Macro-F1   | ACM - Micro-F1   | DBLP - Macro-F1   | DBLP - Micro-F1   | Aminer - Macro-F1   | Aminer - Micro-F1   | Freebase - Macro-F1   | Freebase - Micro-F1   |
|-------------|------------------|------------------|-------------------|-------------------|---------------------|---------------------|-----------------------|-----------------------|
| DGI         | 81.85±4.95       | 81.73±5.44       | 78.55±6.86        | 79.74±5.48        | 25.76±3.45          | 32.35±6.85          | 32.73±1.97            | 34.89±2.72            |
| GRACE       | 82.55±6.17       | 82.01±6.92       | 70.60±5.74        | 71.78±5.80        | 24.64±2.50          | 29.83±5.31          | 33.08±2.72            | 35.14±3.78            |
| HeCo        | 74.40±3.80       | 76.37±2.19       | 87.27±0.89        | 88.06±0.90        | 24.07±2.34          | 27.64±3.97          | 36.68±3.69            | 40.07±3.64            |
| HGMAE       | 81.32±4.65       | 81.31±4.32       | 75.44±8.47        | 76.75±7.93        | 24.27±3.43          | 31.66±6.90          | 32.45±2.36            | 35.79±3.47            |
| HERO        | 83.24±7.86       | 83.83±7.32       | 80.40±5.70        | 80.75±5.65        | 27.98±8.23          | 29.50±7.81          | 31.41±7.89            | 33.33±7.30            |
| GraphPrompt | 70.64±6.91       | 70.19±8.87       | 87.03±0.81        | 87.82±0.79        | 28.04±2.04          | 31.52±2.86          | 39.96±3.18            | 43.39±2.97            |
| GPF-plus    | 82.20±7.83       | 82.67±8.08       | 56.45±14.24       | 59.12±12.21       | 20.27±4.38          | 33.57±11.30         | 28.43±3.75            | 36.61±5.40            |
| EdgePrompt  | 33.72±17.05      | 46.80±16.02      | 56.67±13.31       | 61.22±11.65       | 15.77±4.75          | 32.92±15.78         | 23.72±4.16            | 34.37±7.23            |
| HGPrompt    | 71.36±6.68       | 71.08±7.96       | 88.18±2.15        | 89.01±2.00        | 29.56±2.64          | 35.81±4.12          | 40.91±3.26            | 42.83±4.06            |
| HetGPT      | 65.56±8.14       | 72.74±3.94       | 58.83±17.16       | 64.13±14.19       | 20.74±2.67          | 48.01±8.40          | 29.94±7.44            | 45.65±2.21            |
| GraphLoRA   | 67.86±11.90      | 69.47±9.79       | 69.21±9.75        | 70.43±9.71        | 25.29±1.97          | 28.68±2.19          | 32.92±1.22            | 34.08±1.32            |
| CHoE        | 83.27±2.19       | 83.79±1.92       | 88.47±0.90        | 89.47±0.75        | 53.87±6.41          | 62.16±6.99          | 49.75±4.38            | 51.81±5.47            |

Figure 3: Cross-domain node classification over four datasets under different shot settings.

![Image](https://ijcai.org/proceedings/2026/fulltext/309/image_000002_4463349065ad9036fe3fa878cd52e3613273f02fd6486038f872ec6abe0d87ac.png)

## Implementation Details

We follow [Dong et al., 2017] to select meta-paths for each dataset. For the proposed CHoE, we adopt HAN [Wang et al., 2019] as the encoder and decoder in the pre-training stage. For both the baselines and our method, models are pretrained for 10,000 epochs and fine-tuned for 500 epochs, with early stopping (patience=20). We independently searched for the learning rates for the pre-training and fine-tuning stages within the range of 1e-5 to 0.01. To obtain reliable results, we perform 20 repeated runs for each of 5 fixed random seeds, reporting average results over 100 trials.

## 5.2 Cross-Domain Node Classification

5-shot experiments on different downstream datasets. We report 5-shot node classification on four datasets using ACM for pre-training. As shown in Table 2, CHoE consistently outperforms all baselines, with the largest gains on Aminer and Freebase. On DBLP, the improvement is smaller because its dense graph structure enables baselines (e.g., HGPrompt and GraphPrompt) to capture sufficient structural information during fine-tuning, reducing the difficulty of crossdomain transfer. On ACM, CHoE achieves competitive performance against strong in-domain baselines (e.g., HERO and GRACE), demonstrating its effectiveness in both crossdomain and in-domain settings.

1/3-shot experiments on different downstream datasets. We conduct 1-shot and 3-shot node classification experiments using ACM for pre-training to evaluate the cross-domain adaptability of CHoE. As shown in Figure 3, CHoE consistently outperforms all baselines across different settings. The performance gains are more significant on Aminer and Freebase as the number of shots increases, while stable improvements are observed on DBLP. On ACM, CHoE remains competitive with strong in-domain baselines.

5-shot experiments on different pre-training datasets. To further evaluate the cross-domain capability of CHoE, we conduct 5-shot node classification on all combinations of ACM, DBLP, Aminer, and Freebase as upstream and downstream datasets, as shown in Table 4. CHoE achieves superior and more stable performance across most settings. Although HGPrompt shows higher performance in some upstream domains, its results often performance under domain shifts, indicating limited transferability. In contrast, CHoE generalizes better across domains, particularly on Aminer and Freebase, demonstrating stronger cross-domain knowledge transfer ability.

Table 3: Ablation study. "w/o PR", "w/o LB", and "w/o ER" denote variants without the prompt module, load balancing mechanism, and structure-aware expert routing mechanism, respectively.

| Variants   | ACM - Macro-F1   | ACM - Micro-F1   | DBLP - Macro-F1   | DBLP - Micro-F1   | Aminer - Macro-F1   | Aminer - Micro-F1   | Freebase - Macro-F1   | Freebase - Micro-F1   |
|------------|------------------|------------------|-------------------|-------------------|---------------------|---------------------|-----------------------|-----------------------|
| CHoE       | 83.27±2.19       | 83.79±1.92       | 88.47±0.90        | 89.47±0.75        | 53.87±6.41          | 62.16±6.99          | 49.75±4.38            | 51.81±5.47            |
| w/o PR     | 75.21±4.07       | 75.20±4.80       | 83.67±4.58        | 84.90±4.00        | 48.14±7.11          | 56.95±5.69          | 46.41±5.43            | 48.73±5.92            |
| w/o LB     | 80.36±3.41       | 81.12±3.42       | 84.31±13.85       | 84.94±12.99       | 45.82±10.52         | 57.12±8.80          | 46.27±6.50            | 48.34±7.16            |
| w/o ER     | 71.16±9.55       | 75.17±7.97       | 74.16±5.84        | 75.45±5.33        | 42.13±8.60          | 49.43±9.02          | 43.99±5.19            | 45.77±6.08            |

Table 4: Cross-domain node classification. Macro-F1 on 5-shot cross-domain node classification tasks under all combinations of upstream and downstream datasets from four datasets.

| Upstream   | Macro-F1 - HGMAE   |   Macro-F1 - HGPrompt |   Macro-F1 - HetGPT | Macro-F1 - CHoE   | Downstream   |
|------------|--------------------|-----------------------|---------------------|-------------------|--------------|
|            | 81.32              |                 71.36 |               65.56 | 83.18             | ACM          |
|            | ACM 75.44          |                 88.18 |               58.83 | 88.45             | DBLP         |
|            | 24.27              |                 29.56 |               20.74 | 53.87             | Aminer       |
|            | 32.45              |                 40.91 |               29.94 | 49.36             | Freebase     |
|            | 80.10              |                 72.88 |               58.49 | 79.63             | ACM          |
|            | DBLP 72.92         |                 85.68 |               73.80 | 76.38             | DBLP         |
|            | 26.22              |                 26.77 |               21.26 | 47.41             | Aminer       |
|            | 30.62              |                 38.97 |               30.06 | 46.19             | Freebase     |
|            | 78.32              |                 71.92 |               51.53 | 79.63             | ACM          |
|            | Aminer 61.16       |                 82.29 |               67.68 | 81.74             | DBLP         |
|            | 27.66              |                 31.17 |               19.79 | 53.43             | Aminer       |
|            | 32.25              |                 39.36 |               30.09 | 46.16             | Freebase     |
|            | 78.34              |                 71.14 |               45.71 | 80.58             | ACM          |
|            | Freebase 60.07     |                 81.90 |               60.97 | 84.30 54.39       | DBLP         |
|            | 26.93              |                 26.85 |               19.81 |                   | Aminer       |
|            | 31.51              |                 42.39 |               32.13 | 48.58             | Freebase     |

## 5.3 Ablation Study

To evaluate the effectiveness of each component in CHoE, we compare it with three variants: "w/o PR" (without the prompt module), "w/o LB" (without load balancing), and "w/o ER" (without structure-aware expert routing and load balancing). As shown in Table 3, we report 5-shot node classification on four datasets using ACM for pre-training. Removing expert routing leads to the largest performance drop, highlighting the importance of selecting structure-compatible experts for downstream graphs. Performance also decreases for w/o PR" and "w/o LB", demonstrating the effectiveness of the prompt module and load balancing mechanism.

## 5.4 Hyperparameter Analysis

To evaluate the sensitivity of CHoE to hyperparameters, we conduct analyses on the balancing coefficient λbalance, the temperature parameter τ, and the number of model layers L. As shown in Figure 4, the performance remains stable across a wide range of λbalance and τ, indicating that CHoE is not sensitive to these hyperparameters. We further investigate the effect of the model depth by varying the number of layers L. As shown in Table 5, CHoE achieves the best performance when L = 2 on all four datasets. 1-layer model lacks sufficient capacity to capture the structural and semantic knowledge from source domain. Increasing the number of layers to 3 leads to performance degradation, which may be caused by over-smoothing and the introduction of redundant information. This result suggests that a moderate model depth is more effective.

Figure 4: Hyperparameter analysis. Sensitivity of the balancing coefficient λbalance and the temperature parameter τ on four datasets.

![Image](https://ijcai.org/proceedings/2026/fulltext/309/image_000003_7d8ec86ffef8bd73c0a771d35fa6ee93e5df59c65bacb2743c1ace9f9515d7f7.png)

Table 5: Hyperparameter analysis. Macro-F1 of different model layers L on four datasets.

|   L |   ACM |   DBLP |   Aminer |   Freebase |
|-----|-------|--------|----------|------------|
|   1 | 80.45 |  79.10 |    46.45 |      35.36 |
|   2 | 83.27 |  88.47 |    53.87 |      49.75 |
|   3 | 78.69 |  82.55 |    45.94 |      35.13 |

## 6 Conclusion

In this work, we find that existing HGPL methods rely on an in-domain assumption. Through a motivation experiment, we observe that HGPL methods suffer from severe performance degradation under domain shifts. Based on the observation, we identify two key challenges: model incompatibility and knowledge transfer difficulties. To address these challenges, we propose CHoE. CHoE introduces structureconditioned experts to transfer a pre-trained expert pool to downstream domains. It further incorporates a structureaware expert routing and load balancing mechanism to select structurally compatible experts, and a prompt-based semantic fusion module to integrate different semantic views. Extensive experiments validate the effectiveness of CHoE in crossdomain and in-domain scenarios. In summary, we propose a cross-domain HGPL method that accounts for model compatibility and cross-domain knowledge transfer, offering new insights for the heterogeneous graph foundation models.

## Acknowledgments

This work was supported by the National Natural Science Foundation of China (No. 62422210, No. 62276187, No. 92370111, and No. 62272340), the Hong Kong RGCThemebased Strategic Target Grant Scheme (STG STG1/M-501/23N), the Hong Kong Global STEM Professor Scheme, and the Hong Kong Jockey Club Charities Trust.

## Contribution Statement

Peiyuan Li and Yongqi Huang contributed equally to this work.

## References

1. [Cai et al., 2025] Weilin Cai, Juyong Jiang, Fan Wang, Jing Tang, Sunghun Kim, and Jiayi Huang. A survey on mix- ture of experts in large language models. IEEE Transac- tions on Knowledge and Data Engineering, 2025.
2. [Davis et al., 2017] Allan Peter Davis, Cynthia J Grondin, Robin J Johnson, Daniela Sciaky, Benjamin L King, Roy McMorran, Jolene Wiegers, Thomas C Wiegers, and Carolyn J Mattingly. The comparative toxicoge- nomics database: update 2017. Nucleic acids research, 45(D1):D972-D978, 2017.
3. [Dong et al., 2017] Yuxiao Dong, Nitesh V Chawla, and Ananthram Swami. metapath2vec: Scalable representa- tion learning for heterogeneous networks. In Proceed- ings of the 23rd ACM SIGKDD international conference on knowledge discovery and data mining, pages 135-144, 2017.
4. [Fang et al., 2023] Taoran Fang, Yunchao Zhang, Yang Yang, Chunping Wang, and Lei Chen. Universal prompt tuning for graph neural networks. Advances in Neural In- formation Processing Systems, 36:52464-52489, 2023.
5. [Fu et al., 2025] Xingbo Fu, Yinhan He, and Jundong Li. Edge prompt tuning for graph neural networks. In The Thirteenth International Conference on Learning Repre- sentations, 2025.
6. [Hou et al., 2022] Zhenyu Hou, Xiao Liu, Yukuo Cen, Yux- iao Dong, Hongxia Yang, Chunjie Wang, and Jie Tang. Graphmae: Self-supervised masked graph autoencoders. In Proceedings of the 28th ACM SIGKDD conference on knowledge discovery and data mining, pages 594-604, 2022.
7. [Hu et al., 2020] Weihua Hu, Bowen Liu, Joseph Gomes, Marinka Zitnik, Percy Liang, Vijay Pande, and Jure Leskovec. Strategies for pre-training graph neural net- works. In International Conference on Learning Repre- sentations, 2020.
8. [Huang et al., 2025] Yongqi Huang, Jitao Zhao, Dongxiao He, Xiaobao Wang, Yawen Li, Yuxiao Huang, Di Jin, and Zhiyong Feng. One prompt fits all: Universal graph adaptation for pretrained models. arXiv preprint arXiv:2509.22416, 2025.
9. [Jing et al., 2021] Baoyu Jing, Chanyoung Park, and Hang- hang Tong. Hdmi: High-order deep multiplex infomax. In Proceedings of the web conference 2021, pages 2414- 2424, 2021.
10. [Liang et al., 2026] Chundong Liang, Yongqi Huang, Dongxiao He, Peiyuan Li, Yawen Li, Di Jin, and Weixiong Zhang. Unified multi-domain graph pre- training for homogeneous and heterogeneous graphs via domain-specific expert encoding. arXiv preprint arXiv:2602.13075, 2026.
11. [Liu et al., 2023] Zemin Liu, Xingtong Yu, Yuan Fang, and Xinming Zhang. Graphprompt: Unifying pre-training and downstream tasks for graph neural networks. In Proceed- ings of the ACM web conference 2023, pages 417-428, 2023.
12. [Ma et al., 2024] Yihong Ma, Ning Yan, Jiayu Li, Masood Mortazavi, and Nitesh V Chawla. Hetgpt: Harnessing the power of prompt tuning in pre-trained heterogeneous graph neural networks. In Proceedings of the ACM Web Conference 2024, pages 1015-1023, 2024.
13. [Mo et al., 2024] Yujie Mo, Feiping Nie, Ping Hu, Heng Tao Shen, Zheng Zhang, Xinchao Wang, and Xiaofeng Zhu. Self-supervised heterogeneous graph learning: a ho- mophily and heterogeneity view. In The Twelfth Interna- tional Conference on Learning Representations, 2024.
14. [Nie et al., 2023] Xing Nie, Bolin Ni, Jianlong Chang, Gaofeng Meng, Chunlei Huo, Shiming Xiang, and Qi Tian. Pro-tuning: Unified prompt tuning for vision tasks. IEEE Transactions on Circuits and Systems for Video Technology, 34(6):4653-4667, 2023.
15. [Park et al., 2020] Chanyoung Park, Donghyun Kim, Jiawei Han, and Hwanjo Yu. Unsupervised attributed multiplex network embedding. In Proceedings of the AAAI confer- ence on artificial intelligence, volume 34, pages 5371- 5378, 2020.
16. [Riquelme et al., 2021] Carlos Riquelme, Joan Puigcerver, Basil Mustafa, Maxim Neumann, Rodolphe Jenatton, André Susano Pinto, Daniel Keysers, and Neil Houlsby. Scaling vision with sparse mixture of experts. Advances in Neural Information Processing Systems, 34:8583-8595, 2021.
17. [Shan et al., 2026] Lianze Shan, Jitao Zhao, Dongxiao He, Yongqi Huang, Zhiyong Feng, and Weixiong Zhang. Mug: Meta-path-aware universal heterogeneous graph pre-training. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pages 25260-25268, 2026.
18. [Sun et al., 2023] Xiangguo Sun, Jiawen Zhang, Xixi Wu, Hong Cheng, Yun Xiong, and Jia Li. Graph prompt learn- ing: A comprehensive survey and beyond. arXiv preprint arXiv:2311.16534, 2023.
19. [Tang et al., 2024] Jiabin Tang, Yuhao Yang, Wei Wei, Lei Shi, Long Xia, Dawei Yin, and Chao Huang. Higpt: Het- erogeneous graph language model. In Proceedings of the 30th ACM SIGKDD conference on knowledge discovery and data mining, pages 2842-2853, 2024.
20. [Tian et al., 2023] Yijun Tian, Kaiwen Dong, Chunhui Zhang, Chuxu Zhang, and Nitesh V Chawla. Hetero- geneous graph masked autoencoders. In Proceedings of the AAAI conference on artificial intelligence, volume 37, pages 9997-10005, 2023.
21. [Veličković et al., 2018] Petar Veličković, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Liò, and Yoshua Bengio. Graph attention networks. In Interna- tional Conference on Learning Representations, 2018.
22. [Veličković et al., 2019] Petar Veličković, William Fedus, William L Hamilton, Pietro Liò, Yoshua Bengio, and R Devon Hjelm. Deep graph infomax. In International Conference on Learning Representations, 2019.
23. [Wang et al., 2019] Xiao Wang, Houye Ji, Chuan Shi, Bai Wang, Yanfang Ye, Peng Cui, and Philip S Yu. Hetero- geneous graph attention network. In The world wide web conference, pages 2022-2032, 2019.
24. [Wang et al., 2021] Xiao Wang, Nian Liu, Hui Han, and Chuan Shi. Self-supervised heterogeneous graph neural network with co-contrastive learning. In Proceedings of the 27th ACM SIGKDD conference on knowledge discov- ery & data mining, pages 1726-1736, 2021.
25. [Wang et al., 2023] Zehong Wang, Qi Li, Donghua Yu, Xi- aolong Han, Xiao-Zhi Gao, and Shigen Shen. Heteroge- neous graph contrastive multi-view learning. In Proceed- ings of the 2023 SIAM international conference on data mining (SDM), pages 136-144. SIAM, 2023.
26. [Wang et al., 2026] Yi Wang, Jitao Zhao, Dongxiao He, Jia Li, Yuxiao Huang, and Zhiyong Feng. Topology-aware feature sorting enables universal modeling on homophilic and heterophilic graphs. In Proceedings of the ACM Web Conference 2026, pages 475-486, 2026.
27. [Wei et al., 2025] Chu-Yuan Wei, Shun-Yao Liu, Sheng-Da Zhuo, Chang-Dong Wang, Shu-Qiang Huang, and Mohsen Guizani. Heterogeneous graph prompt learning via adap- tive weight pruning. arXiv preprint arXiv:2507.09132, 2025.
28. [Yang et al., 2025] Zhe-Rui Yang, Jindong Han, Chang- Dong Wang, and Hao Liu. Graphlora: Structure-aware contrastive low-rank adaptation for cross-graph transfer learning. In Proceedings of the 31st ACM SIGKDD Con- ference on Knowledge Discovery and Data Mining V. 1, pages 1785-1796, 2025.
29. [Yu et al., 2024] Xingtong Yu, Yuan Fang, Zemin Liu, and Xinming Zhang. Hgprompt: Bridging homogeneous and heterogeneous graphs for few-shot prompt learning. In Proceedings of the AAAI conference on artificial intelli- gence, volume 38, pages 16578-16586, 2024.
30. [Zhou et al., 2022] Kaiyang Zhou, Jingkang Yang, Chen Change Loy, and Ziwei Liu. Learning to prompt for vision-language models. International Journal of Computer Vision, 130(9):2337-2348, 2022.
31. [Zhu et al., 2020] Yanqiao Zhu, Yichen Xu, Feng Yu, Qiang Liu, Shu Wu, and Liang Wang. Deep graph contrastive representation learning. arXiv preprint arXiv:2006.04131, 2020.
