S2Aligner: Pair-Efficient Transferable Pre-Training for Sparse Text-Attributed Graphs
arXiv:2605.18579v1 [cs.LG] 18 May 2026
Yuhan Wang2 , Haopeng Zhang1 , Yibo Ding1 , Jiaqi Yu1 , Xinyu Zhao1 Yuhang Liu3 , Ziwei Zhang1 , Xiao Wang1 , Ruijie Wang1∗ 1 School of Computer Science and Engineering, Beihang University 2 School of Computer Science and Engineering, Beijing University of Technology 3 School of New Media and Communication, Tianjin University {24373469,dingyibo,24373465,25371032,zwzhang,xiao_wang,ruijiew}@buaa.edu.cn [email protected], [email protected]
Abstract Pre-training on text-attributed graphs (TAGs) is central to building transferable graph foundation models, where LLM-as-Aligner methods align graph and text representations through the semantic knowledge of large language models. However, these methods usually assume that node texts provide sufficient and reliable supervision, an assumption often violated in real-world sparse TAGs. When textual anchors are missing, noisy, or uneven across domains, graph structures must be aligned with weak semantic evidence, leading to unreliable structure–semantics correspondence and sparsity-induced transfer bias. This paper presents S2 Aligner, a Sparsity-aware and Structure-enhanced LLM-as-Aligner framework for graph– text pre-training on sparse TAGs. The key idea is to decouple semantic alignment from structural modeling, allowing topology-aware signals to enhance alignment without contaminating the shared semantic space. Specifically, S2 Aligner decomposes graph–text representations into semantic and structural components, uses structure-oriented reconstruction with consistency control to inject reliable topology cues into text representations, and suppresses inconsistent structural signals under textual sparsity. Moreover, S2 Aligner introduces sparsity-aware cross-domain risk balancing, which calibrates domain risks through a global-domain density ratio and downweights unreliable sparse samples via graph reliability estimation. Theoretical analysis shows that this objective reduces cross-domain generalization gaps by controlling domain risk discrepancy. Extensive experiments across diverse graph domains, sparsity levels, and downstream tasks demonstrate that S2 Aligner consistently outperforms existing baselines.
1
Introduction
Graph foundation models (GFMs) have recently emerged as a promising paradigm for inductive graph learning. They aim to distill transferable structural and semantic priors from large-scale graph corpora, reducing the need for task-specific supervision and costly fine-tuning [18, 12, 27]. This paradigm is particularly suitable for text-attributed graphs (TAGs), common in citation networks, social platforms, and e-commerce systems [6, 7, 4, 3], where node texts provide rich semantics and edges capture relational structure. Recently, cross-modal graph-text alignment has become a central direction for TAG pretraining [37, 43, 19], aligning graph or subgraph embeddings with textual embeddings, often leveraging large language models (LLMs) as aligners — the so-called LLM-as-Aligner paradigm (Figure 1). ∗ Corresponding author.
Preprint.
100
Full Text
77.5%
6
83.5%
86.6%
80 70
6.36
4 3.16
0
60 Markers / 1K tokens Uncertain summaries
57.4%
Full
90
10%
5%
3%
90
Graph-to-Text MRR (%)
Markers / 1K tokens
9.30 90.4%
8
2
Figure 1: Aligner.
9.33
Uncertain summaries (%)
10.38
10
50
+5.7%
Semantic +Struct
81.00
80
76.66
70
-4.4% 65.52
62.62
60 50
Full
1%
Sparse
T2N Retrieval (%)
12
100
Sparse Text 93.97
86.47
96.45
80.42
80 60 40
38.85
44.50
48.88
33.63
20 0
MRR
R@1
R@5
R@10
LLM-as- (a) Uncertainty vs. Sparsity (b) Structural supplementation (c) Full vs. sparse retrieval Figure 2: (a) Summary uncertainty increases. (b) Naive structural supplementation becomes harmful. (c) Full vs. Sparse alignment.
Despite its promise, the LLM-as-Aligner paradigm relies on a strong assumption: textual evidence should be sufficient to provide reliable supervision for graph-text alignment [37, 43, 19]. This assumption is often violated in real-world TAGs. Node texts can be missing, short, noisy, or highly uneven across domains. In this case, the text view becomes an incomplete anchor for the graph view. Rich graph structures must be aligned with weak and ambiguous semantic signals, making the learned structure–semantics correspondence unreliable. The problem is further amplified by recent methods that use LLM-generated subgraph summaries as supervision [43, 19]. When textual contexts are sparse, LLMs have to infer missing semantics from incomplete evidence, which may introduce uncertainty and bias into the alignment signal. This raises a fundamental question: how can graph-text pretraining learn transferable structure–semantics correspondence when the cross-modal supervision itself is sparse and unreliable? This paper studies LLM-as-Aligner pretraining on sparse TAGs, preserving transferable pretraining while reducing dependence on dense textual supervision. It introduces two coupled challenges: Challenge 1: Unreliable structure–semantics alignment. In sparse text-attributed graphs, textual anchors are incomplete or ambiguous, while the graph structure remains rich. This imbalance can cause the model to misalign structural patterns with noisy text, failing to learn faithful structure– semantics correspondences. Figure 2 illustrates this issue: (a) text sparsity increases semantic uncertainty, weakening alignment anchors; (b) structural supplementation helps under dense text but may amplify mismatches under sparse text; (c) sparse-text graph–text retrieval performs substantially worse than full-text retrieval, highlighting the limited robustness of LLM-as-Aligner models. Challenge 2: Sparsity-induced transfer bias. Sparse texts also weaken zero-shot generalization. Different domains require different densities of alignment signals, since some domains can transfer with coarse semantic anchors while others depend on finer graph–text correspondences. Text sparsity makes such reliability uneven across domains. Standard pretraining may therefore overfit to domains with sufficient anchors or learn biased correlations from noisy ones, causing imbalanced domain risks and unstable transfer to unseen sparse TAGs. Thus, robust cross-domain generalization requires sparsity-aware risk balancing to extract domain-invariant representations under sparse supervision. To address the above challenges, we propose S2 Aligner, a sparsity-aware and structure-enhanced LLM-as-Aligner framework for graph–text pretraining on sparse TAGs. The overall idea is to decouple semantic alignment from structural modeling, so that sparse and uncertain structural cues can be used to enhance graph–text alignment without directly contaminating the shared semantic space. For Challenge 1, S2 Aligner separates each graph–text representation into semantic and structural components. The semantic components define the main alignment space, while the structural components are modeled through structure-oriented reconstruction. By using reconstruction consistency to control structural enhancement, S2 Aligner injects reliable topology-aware signals into text representations and suppresses inconsistent structural cues, thereby mitigating structural negative transfer under textual sparsity. For Challenge 2, S2 Aligner introduces a sparsity-aware cross-domain risk balancing mechanism. It calibrates domain risks with a global-domain density ratio and further uses graph reliability to reduce the impact of unreliable sparse samples. This encourages the model to focus on domain-invariant graph–text correspondences rather than sparse domain-specific correlations. Theoretical analysis suggests that this objective can reduce the cross-domain generalization gap by controlling domain risk discrepancy. Our contributions are summarized as follows:
2
• We propose S2 Aligner, a sparsity-aware and structure-enhanced LLM-as-Aligner framework for sparse TAGs. It transforms uncertain topological signals into verifiable structural enhancements and incorporates sparsity-aware risk balancing for better cross-domain generalization. • We design a sparsity-aware cross-domain risk balancing mechanism. It filters noisy samples using graph reliability evaluation and calibrates cross-domain risks via a global-domain density ratio, reducing domain-biased alignment and improving generalization. • Extensive experiments validate our method across sparsity levels, graph domains, and downstream tasks. Notably, even with only 10% textual attributes, it surpasses baselines trained with full attributes, demonstrating superior sparsity generalization and data efficiency.
2
Preliminary
LLM-as-Aligner for graph problems. Following GraphCLIP [43], we define a text-attributed graph (TAG) as G = (V, E, T ), where V and E denote the node and edge sets, and T = {(gi , ti )}M i=1 denotes a collection of graph-text pairs. Here, gi can be a node, a sampled subgraph, or an entire graph, and ti is the associated textual information, such as a textual attribute, structural summary, or label prompt. Given a graph encoder fG and a text encoder fT , each pair is encoded as zg,i = READOUT(fG (gi )) ,
zt,i = READOUT(fT (ti )) ,
(1)
For a mini-batch T , graph and text representations are aligned by a symmetric contrastive loss: " # X 1 exp (sim(zg,i , zt,i )/τ ) exp (sim(zg,i , zt,i )/τ ) Lalign (T ) = − log P − log P , 2|T | j exp (sim(zg,i , zt,j )/τ ) j exp (sim(zg,j , zt,i )/τ ) (gi ,ti )∈T
(2) where sim(·, ·) denotes cosine similarity and τ is a temperature parameter. This objective treats the matched graph–text pair as the positive pair and all other pairs in the mini-batch as negatives. Sparse text-attributed graph problem. In real-world TAGs, textual attributes are often missing, incomplete, or unreliable. We define a sparse TAG as Ge = (V, E, Te ), where Te ⊆ T denotes the observed sparse graph–text pair set. A straightforward solution is to optimize the graph and text encoders over the sparse pairs: min Lalign (Te ), (3) θG ,θT
where θG and θT are the parameters of fG and fT , respectively. However, directly aligning sparse graph–text pairs can be unstable, since missing or unreliable textual attributes provide weak supervision and may introduce noisy cross-modal correspondences. Although the above formulation is general, we instantiate gi as a sampled subgraph in practice to exploit local structural context. After pre-training, zero-shot prediction is performed by converting each candidate label c ∈ Y into a textual description tc and selecting the label with the highest graph–prompt similarity: ŷ = arg max sim (fG (g), fT (tc )) . (4) c∈Y
3
Method
In this section, we present S2 Aligner, a sparsity- and structure-enhanced LLM-as-Aligner framework (Figure 3) for pretraining on sparse text-attributed graphs. First, we decouple graph–text representations into semantic and structural components, separating semantic alignment from structural modeling (Sec. 3.1). Next, structure-oriented reconstruction injects reliable structural signals while suppressing inconsistent cues (Sec. 3.2). Finally, Sparse-aware Cross-domain Risk Balancing reweights source-domain risks using cross-domain support and graph reliability to enhance zero-shot cross-graph generalization (Sec. 3.3). Together, these components enable robust graph–text alignment under sparse supervision and enhance transferability to unseen domains. 3
Inputs
Sec.3.1&3.2 Structure Reconstruction 𝒛𝒄𝒈,𝒊 (content)
Graph Encoder (GNN)
D1 Academic
𝒛𝒔𝒈,𝒊 (structure)
?
…
D2 E-commerce
?
𝒛𝒄𝒕,𝒊 (content)
Text Encoder (LLM)
𝒛𝒔𝒕,𝒊 (structure)
?
𝓛𝒓𝒆𝒄 Reconstruction Head
?
Φ𝑟𝑒𝑐
… Uncertainty
Dk Web
…
High Uncertainty Low-quality LLM summary (example)
Samples
After Before (uneven risks) (balanced risks) Re R′e
𝒛 𝒄𝒕,𝒊
… 0 𝑫𝟏𝑫𝟐
*
𝜿 𝒛ො 𝒔𝒈,𝒊 , 𝒛ത 𝒔𝒈,𝒊
… 𝑫𝒌
0 𝑫𝟏𝑫𝟐
𝑫𝒌
𝑲
𝟏 ഥ )𝟐 𝓛𝒓𝒊𝒔𝒌 = (𝑹𝒆 − 𝑹 𝑲
Certainty
①
Reliability Weight structure-semantic text structural consistency 𝒄𝒊 stability𝒅𝒊 completeness 𝒂𝒊
𝒆=𝟏
𝑹⋆𝟏 , 𝑹𝟐⋆ , 𝑹⋆𝟑 , … , 𝑹⋆𝑲 .
Domain Balancing Weight
Global 𝒑𝟎
② ③ ⓝ
𝝆𝒊 = 𝒄𝒍𝒊𝒑 𝝀𝒅 𝒅𝒊 +𝝀𝒂 𝒂𝒊 + 𝝀𝒄 𝒄𝒊 , 𝟎, 𝟏
𝓛𝒅𝒆𝒏
Density Ratio
𝒓𝒊 =
aggregate sparse reliability 𝝆𝒊
…
(hedging words → unreliable)
𝒛𝒄𝒕,𝒊
Weight Estimation-→ 𝒘
Summary
Node n1 could be categorized into computer science, its neighbor n2 might belong to a related research field…
Domain Risk Balancing 𝒛෪𝒔𝒈
෩ 𝓛𝒕𝒐𝒕𝒂𝒍 = 𝓛+ 𝒂𝒍𝒊𝒈𝒏 𝓣; 𝝎 + 𝜶𝓛𝒓𝒆𝒄 + 𝝂𝓛𝒅𝒆𝒏 +𝝁𝓛𝒓𝒊𝒔𝒌
? ?
Cross-Domain Generalization
෩ 𝓛+ 𝒂𝒍𝒊𝒈𝒏 𝓣; 𝝎
𝒑𝟎 𝒛𝒊 𝒑𝒆 𝒛𝒊 + 𝝐
Domain 𝒑𝒆
Sec.3.3
Figure 3: The overall framework of S2 Aligner is shown in the figure above. It encodes sparse text-attributed graphs into content and structural components and applies latent reconstruction on the structural branch to reduce negative transfer from sparse text. We further introduce Sparseaware Cross-domain Risk Balancing, aligning multi-source domain risks via density estimation and reliability weighting to learn domain-invariant features for robust cross-domain generalization. 3.1
Content-Structure Factorization
In text-sparse cross-modal alignment scenarios, topological structure is crucial for capturing graph–text correspondences. However, structural information generated from text often exhibits high uncertainty, which may introduce noise and lead to negative transfer. To address this issue, we disentangle content semantics and structural information into two independent branches: • Semantic alignment branch: relies solely on deterministic content information, extracting stable semantics from node attributes while avoiding interference from high-uncertainty structural text. • Structural branch: kept independent and purified through a structure reconstruction task, extracting reliable topological information to fully leverage the positive transfer effect of structure. For each graph sample g, we construct two complementary text views: a semantic summary S that characterizes attribute semantics, and a structure-aware description S s that represents topological features. The semantic summary focuses on the content information at the node attribute level, while the structure-aware description captures neighborhood patterns, connection topology, and the structural roles of nodes. On the graph modality side, we learn and obtain the graph content embedding zcg,i and graph structure embedding zsg,i from the subgraph representation and topological structure, respectively. On the text modality side, the two types of text views are encoded into the text content embedding zct,i and text structure embedding zst,i , respectively. The content embedding pair (zcg,i , zct,i ) forms the main semantic alignment space; the structural embedding pair (zsg,i , zst,i ) is used for the topology-oriented structure reconstruction in Sec. 3.2, which completes the denoising and purification of structural text representations as well as the modeling of positive transfer. 3.2
Structure-Oriented Reconstruction
To filter out noise and redundancy in high-uncertainty structural text while extracting reliable topological information, we use the graph-side structural embedding as a gradient-detached topological 4
target and train the text-side structural embedding to reconstruct it: X X 1 1 1 − sim b zsg,i , z̄sg,i = 1 − sim ϕrec (zst,i ), detach(zsg,i ) , Lrec = e e |T | |T | (gi ,ti )∈Te
(gi ,ti )∈Te
(5) where b zsg,i = ϕrec (zst,i ) is the reconstructed structural embedding, z̄sg,i = detach(zsg,i ) is the gradientdetached topology target, and ϕrec (·) is a lightweight reconstruction head. We further use the reconstruction consistency as a reliability gate for structural injection. Instead of introducing a separate score equation, we directly define the enhanced text embedding as 1 + sim(a, b) . (6) 2 Here, κ(·, ·) ∈ [0, 1] measures how well the structure-aware text recovers graph topology. If the structural description is unreliable, the gate shrinks and the injected structural signal is suppressed. Thus, only recoverable, topology-consistent structural information is injected into the text anchor. s e zct,i = norm zct,i + κ b zsg,i , z̄sg,i b zg,i ,
κ(a, b) =
For each sample, we define the enhanced contrastive loss as # " c c c c e e sim z sim z exp , z exp , z /τ /τ 1 g,i t,i g,i t,i − log P . ℓ+ − log P i = c c 2 ec ec (gj ,tj )∈Te exp sim zg,i , zt,j /τ (gj ,tj )∈Te exp sim zg,j , zt,i /τ (7) To connect the reconstruction module with the risk balancing module, we write the batch-level alignment loss in a weighted form. Therefore, the alignment loss and base training loss is: P + (g ,t )∈Te ωi ℓi + e ; ω + αLrec , e T (8) , Lbase = L+ Lalign T ; ω = P i i align (gi ,ti )∈Te ωi where α controls the strength of structure-oriented reconstruction. Next, we introduce how to design ω to adaptively adjust each sample’s contribution to the overall loss and to guide the model to focus on invariant features across modalities and views. 3.3
Sparse-aware Cross-domain Risk Balancing
Sparse graph–text pre-training usually involves multiple source domains with different graph structures, textual sparsity levels, and noise patterns. Let {De }K e=1 denote K source domains, where each domain contains graph–text pairs (gi , ti ). Although the enhanced alignment loss in Eq. (8) improves sample-level robustness, directly minimizing the pooled empirical risk can still overfit domain-specific sparse patterns. To address this issue, we propose Sparse-aware Cross-domain Risk Balancing, which assigns each sample a reliability-aware density-ratio weight and further regularizes the risks across source domains. Shared-support density ratio. For each pair (gi , ti ) from domain De(i) , let zi denote representation of each sample. We estimate two densities over zi : a global density p0 (zi ) over all source domains and a domain-specific density pe(i) (zi ) within its source domain. The density ratio is defined as γ X p0 (zi ) 1 ri = , Lden = − log p0 (zi ) + log pe(i) (zi ) , (9) e pe(i) (zi ) + ϵ |T | e (gi ,ti )∈T
where ϵ is a small constant for numerical stability, γ controls the sharpness of density-ratio reweighting, and Te denotes the current mini-batch. Intuitively, ri upweights samples lying in the cross-domain shared support and downweights samples dominated by domain-specific structural bias. Sparse graph reliability. Density compatibility alone cannot identify unreliable sparse samples. We therefore introduce a sparse reliability score ρi to measure whether the graph–text pair provides trustworthy supervision. Specifically, we consider three complementary signals: structural stability, textual completeness, and structure–semantic consistency: X 1 + sim zcg,i , zct,i 1 |Vt (gi )| di = exp pi,j log pi,j , ai = , ci = . (10) log Ni |V(gi )| 2 j∈V(gi )
5
Here, pi,j denotes the probability of visiting node j in subgraph gi starting from the center node vc via a random walk. zsg,i,r is the structural representation of the r-th perturbed view of gi , Vt (gi ) denotes nodes with observed textual attributes, and V(gi ) denotes all nodes in the sampled graph object. The final sparse reliability score is ρi = clip(λd di + λa ai + λc ci , 0, 1)
(11)
where λd , λa , and λc control the contribution of the three reliability factors. A sample receives a higher reliability score when it exhibits more stable topology, more complete textual attributes, and stronger structure–semantic consistency. Adaptive sample weighting. We combine the density ratio and sparse reliability into a unified sample weight. For each mini-batch domain subset Tee = Te ∩ De , the normalized weight is |Tee(i) |ri ρi , (gj ,tj )∈Tee(i) rj ρj
ωi = P
(gi , ti ) ∈ Tee(i) .
(12)
This intra-domain normalization keeps the average weight within each source domain close to one, preventing domains with larger density values or higher textual completeness from dominating the training objective. Built upon the enhanced per-sample contrastive loss ℓ+ i derived in Eq. (7), we further formulate the weighted empirical risk for each domain De as P + K 1 X (gi ,ti )∈Tee ωi ℓi Re = P Re . (13) , R̄ = K e=1 (gi ,ti )∈Tee ωi Cross-domain risk balancing. To encourage the model to learn domain-invariant graph–text alignment rather than sparse domain-specific shortcuts, we penalize the dispersion of weighted risks across source domains: K 2 1 X Lrisk = Re − R̄ . (14) K e=1 Unlike pairwise domain constraints, this variance-style regularizer provides a compact objective for aligning all source-domain risks. Finally, the Sparse-aware Cross-domain Risk Balancing mechanism is plugged into Eq. (8) by using the weights ω = {ωi }(gi ,ti )∈Te . The overall objective is e Ltotal = L+ (15) align T ; ω + αLrec + µLrisk + νLden , where α, µ, and ν control structure-oriented reconstruction, cross-domain risk balancing, and density estimation, respectively. 3.4
Theoretical Analysis
We provide a theoretical justification for the risk balancing mechanism from the perspective of weighted risk equalization. Invariant learning methods [1, 23, 13] reduce out-of-domain generalization error by encouraging different source domains to share similar risks. However, when graph–text supervision is sparse, direct risk matching may still be biased by domain-specific structural distributions and unreliable text attributes. SCRB addresses this issue by using the global-domain density ratio to align shared structural support and using sparse reliability to suppress unreliable samples. Theorem 3.1 (Sparse-aware weighted risk equalization). Let D1 , . . . , DK be K source domains. For a graph–text pair (g, t) ∼ Pe , let z = ϕ(g) denote its structural key, where ϕ(·) corresponds to the graph-side structural representation used in Eq. (9). Let pe (z) be the marginal density of z in domain De , and let K X p0 (z) p0 (z) = πe pe (z), re (z) = , (16) pe (z) e=1 6
Table 1: Zero-shot node classification accuracy (%) on unseen target datasets under the 10% text sparsity setting. Results are averaged over five random seeds. Academic
Method
E-commerce
Web
Avg.
Cora
CiteSeer
Books-History
Ele-Computers
Ele-Photo
WikiCS
SBERT Qwen3-0.6B
59.67 ± 1.76 41.48 ± 1.66
66.93 ± 1.82 51.13 ± 0.95
41.18 ± 0.56 39.31 ± 0.61
41.01 ± 0.26 12.35 ± 0.09
38.36 ± 0.44 32.87 ± 0.40
60.87 ± 0.01 40.94 ± 0.01
59.91 ± 0.73 64.47 ± 0.63
52.56 40.36
GraphGPT LLaGA OFA ZeroG
14.45±0.37 30.15±1.88 8.09±0.01 53.47±1.19
18.38±0.32 35.72±1.01 20.53±0.01 50.16±0.01
55.58±0.03 45.48±0.92 7.86±0.01 35.69±0.49
17.29±0.06 28.36±0.85 7.40±0.07 33.79±0.18
40.89±0.02 25.91±0.47 28.45±0.07 36.23±0.50
4.42±0.05 30.27±0.56 12.74±0.07 51.29±0.01
45.94±0.28 48.63±1.14 41.64±0.14 52.56±0.67
28.14 34.93 18.10 44.74
DGI GRACE BGRL GraphMAE G2P2
27.36±1.08 34.90±0.51 13.52±1.74 11.29±3.89 29.78±3.04
33.27±0.15 28.69±1.98 17.41±2.90 16.77±4.86 34.85±6.09
13.39±0.33 24.42±1.86 6.85±2.86 11.72±22.27 17.28±3.68
13.86±0.70 20.07±1.27 13.45±7.96 6.64±5.68 20.25±4.39
12.49±0.64 21.56±0.99 7.95±4.05 11.05±15.36 20.31±5.86
46.85±3.42 55.93±0.99 9.42±6.41 9.82±3.96 28.32±3.84
58.63±0.16 46.75±2.68 46.13±8.49 63.71±0.01 53.47±3.31
29.41 33.19 16.39 18.71 29.18
ADAligner GraphCLIP S2 Aligner
60.51±1.64 57.68±0.70 66.73±1.40
64.52±1.77 63.73±1.91 67.25±2.32
51.94±1.70 49.79±3.02 56.00±1.01
50.45±1.24 59.09±1.84 60.18±2.89
41.06±0.92 36.78±2.73 44.01±1.09
57.65±3.01 58.58±3.78 62.29±3.61
54.84±1.57 60.48±2.03 62.71±0.21
54.42 55.16 59.88
PK where πe > 0 and e=1 πe = 1. Assume that all domains share the same support over z, and that the conditional reliability-weighted loss is invariant across domains: E(g,t)∼Pe [ρ(g, t)ℓ(g, t) | z] = m(z), ∀e ∈ {1, . . . , K}. (17) Then the density-ratio weighted risks are equal across all source domains: ⋆ R1⋆ = R2⋆ = · · · = RK , Re⋆ = E(g,t)∼Pe [re (z)ρ(g, t)ℓ(g, t)] . (18) Proof. The detailed proof is provided in Appendix D.1.
4
Experiments
4.1
Experimental Setup
Datasets. We evaluate S2 Aligner on text-attributed graph datasets from academic, e-commerce, social, and Wikipedia domains. Following the graph–text pre-training setting, ogbn-ArXiv [11], ArXiv_2023 [9], PubMed [29], ogbn-Products [11], and Reddit [12] are used as source datasets, while Cora [29], CiteSeer [29], Books-History [40], Ele-Computers [40], Ele-Photo [40], WikiCS [22], and Instagram [12] are used as unseen target datasets. To simulate sparse TAG scenarios, we retain only 1%, 3%, 5%, or 10% of node textual attributes during pre-training. Unless otherwise specified, experiments are conducted under the 10% sparsity setting. Baselines. We compare S2 Aligner with three groups of baselines: (1) LLM-only methods, including SBERT [26] and Qwen3-0.6B [41], which use textual information without explicitly modeling graph structure; (2) representative TAG methods, including GraphGPT [31], LLaGA [5], OFA [17], ZeroG [16], ADAligner [19], and GraphCLIP [43]; and (3) self-supervised graph methods applied to TAGs, including DGI [34], GRACE [42], BGRL [32], GraphMAE [10], and G2P2 [37]. Evaluation and Implementation. We evaluate zero-shot node classification, link prediction, and cross-modal retrieval. We report accuracy for node classification, AUC for link prediction, and MRR/Recall@K for retrieval. All results are averaged over five random seeds and reported as mean ± standard deviation. For S2 Aligner, we use a graph transformer-based encoder and a frozen pretrained language encoder. The trainable modules are optimized with graph–text contrastive learning, structure-oriented reconstruction, and reliability-aware robust training. 4.2
RQ1: Zero-Shot Inference on Target Data
We first evaluate whether S2 Aligner can generalize to unseen target graphs without task-specific fine-tuning. After pre-training on sparse source TAGs, the model is directly applied to target datasets for zero-shot inference. We consider three downstream tasks—node classification, link prediction, and cross-modal retrieval—which respectively assess semantic label prediction, topology-aware transfer, and fine-grained graph–text alignment. Node Classification. Table 1 reports the zero-shot node classification accuracy on seven target datasets under the 10% text sparsity pre-training setting. S2 Aligner achieves the best overall performance among all compared methods and shows consistent improvements over strong graph–text 7
Table 2: Zero-shot link prediction perfor- Table 3: Cross-modal retrieval results under globallevel and category-level settings. mance measured by AUC. Cora 83.11 ± 0.41 58.90 ± 0.28 84.65 ± 0.94 55.72 ± 3.86 68.91 ± 2.85 77.44 ± 2.32 91.06±0.09
Acad. E-com.
Method
MRR
R@1
R@5
R@10
Global
GraphCLIP N2T T2N S2 Aligner N2T T2N
Task
7.56±1.92 38.85±1.78 9.84±3.64 95.62±0.27
4.62±1.31 33.63±1.77 5.74±2.69 93.13±0.45
10.07±2.71 44.50±1.81 13.47±4.58 98.64±0.23
13.70±3.36 48.88±2.14 18.23±5.64 99.24±0.14
Category GraphCLIP N2T T2N S2 Aligner N2T T2N
19.75±2.45 44.33±1.64 20.99±3.94 96.79±0.23
12.09±2.16 38.21±1.64 12.60±3.35 94.89±0.26
26.79±2.96 50.78±1.97 28.92±4.91 99.05±0.34
35.59±3.41 48.88±2.14 38.17±5.16 99.49±0.16
Acad. E-com.
Web
Avg. Acc. (%)
60
40
GraphCLIP Time Ours Time
Ours-1% > GraphCLIP-10%
+6.2 +4.2
+4.0 +3.8
50
20
40
10
30
0
10%
5%
3%
1%
Small 23M
30
Avg. Acc. (%)
62.0
+5.0
GraphCLIP Acc. Ours Acc.
Time / Epoch (min)
63.7
+1.8
49.6
Web
Web
w/o Web +1.1 60.9
62.8
60.9
48.5
40
+5.6 42.9
50
59.4
60
+1.9
56.3
Acad. E-com.
61.3
65.2
62.5
Web
w/o E-commerce +3.5
70
+2.4 +5.8
62.4
Acad. E-com.
70.66 ± 0.23 63.97 ± 0.13 83.61 ± 0.12 76.54 ± 0.43 89.00 ± 2.98 70.45 ± 2.52 91.76±0.12
Setting
Ours
50.5
40
53.4
48.5
50
59.5
+3.0 +4.8
History
w/o Academic
+10.2
55.0
Full
67.0
60.7
60
55.9
Accuracy (%)
Accuracy (%)
GraphCLIP +6.3
78.91 ± 1.49 59.82 ± 0.12 85.18 ± 0.14 69.02 ± 0.47 66.02 ± 6.46 73.33 ± 1.85 87.15±0.11
60.6
SBERT OFA ZeroG GraphMAE GraphCLIP ADAligner S2 Aligner
WikiCS
54.6
Method
70
67.0
Mid 110M
Large 0.6B
67.0 67.1
65
62.5
60
60.9
62.8
54.2 54.8 53.4
55 50 45
Acad.
Com.
Web
Figure 4: Effect of source- Figure 5: Performance-efficiency Figure 6: Effect of language endomain composition on zero- trade-off under varying text spar- coder scale on zero-shot transfer. shot transfer. sity levels. alignment baselines. Compared with GraphCLIP, S2 Aligner improves the average accuracy from 55.16% to 59.88%, demonstrating stronger transferability under sparse textual supervision. The gains are especially evident on Cora, CiteSeer, Books-History, and Ele-Photo. We further observe that our learned node representations better capture the semantic distinctions among nodes compared with GraphCLIP, for a visual comparison, see Appendix G.2. Link Prediction. We further evaluate zero-shot link prediction for transferable structural information. The pre-trained model is applied to target datasets without task-specific fine-tuning. For link prediction, we report average AUC scores and standard deviations over five runs with different random seeds. As shown in Table 2, S2 Aligner achieves strong zero-shot performance. On Cora, WikiCS, and History, it obtains the best AUC scores, outperforming baselines. Cross-modal Retrieval.We further evaluate cross-modal retrieval under both global-level and category-level settings, including node-to-text (N2T) and text-to-node (T2N) retrieval on the WikiCS dataset. As shown in Table 3, S2 Aligner consistently outperforms GraphCLIP across almost all retrieval metrics in both settings. The improvement is particularly significant for T2N retrieval, where S2 Aligner achieves much higher MRR and Recall scores, indicating that the learned text representations can more accurately retrieve the corresponding graph instances. Under the category-level setting, S2 Aligner also maintains consistent gains, suggesting that the proposed sparse structural alignment improves not only global graph–text matching but also fine-grained category-aware retrieval.
4.3
RQ2: Explorations on Source Datasets
To investigate how source-domain composition affects transferability, we compare S2 Aligner with GraphCLIP under different source dataset configurations. Following GraphCLIP, we consider four settings: using all source datasets, removing academic datasets, removing e-commerce datasets, and removing web datasets. We report the average target accuracy grouped by target domain, including academic, e-commerce, and web domains. As shown in Figure 4, S2 Aligner consistently outperforms GraphCLIP across all source-domain configurations and target-domain groups. The gains remain clear even when one source domain is removed, indicating that S2 Aligner does not simply rely on domain-specific shortcuts from the source data. Instead, the proposed sparsity-aware structural alignment encourages more transferable graph–text representations that remain effective under reduced source-domain diversity. 8
4.4
RQ3: Zero-Shot Robustness & Efficiency Experiment
Varying Text Sparsity: Performance and Efficiency. We further evaluate S2 Aligner under text sparsity levels of 1%, 3%, 5% and 10%, aiming to explore whether promising graph-text alignment can be preserved when only limited node textual attributes are accessible during pre-training. As illustrated in Figure 5, S2 Aligner steadily outperforms GraphCLIP under all sparsity configurations; notably, the model trained merely with 1% textual attributes achieves even better performance than GraphCLIP trained with 10% textual attributes, demonstrating superior sparsity generalization and higher data efficiency. Apart from consistent performance gains, our method also achieves substantial computational acceleration.The proposed approach considerably reduces per-epoch training overhead, yielding markedly lower runtime cost compared with GraphCLIP. These observations confirm that our framework delivers competitive zero-shot transfer performance with limited textual attributes and lower computational overhead, making it well-suited for large-scale sparse text-attributed graph scenarios. Detailed time and space complexity analysis of S2 Aligner is provided in the Appendix H. Varying Language Model Scale. We evaluate the effect of language encoder scale by replacing the text encoder with MiniLM-L6 [36], E5 [35], and Qwen3-0.6B [41] (small, medium, and large). As shown in Figure 6, performance differences are minor, with the small encoder already competitive. While the large encoder slightly improves some domains, overall gains are limited, indicating that S2 Aligner’s transferability is primarily driven by its sparsity-aware, structure-enhanced alignment rather than encoder scale. Hyperparameter Sensitivity. S2 Aligner shows stable performance across a wide range of hyperparameter settings, including α (structural reconstruction), µ (cross-domain risk balance), and ν (density estimation), consistently outperforming GraphCLIP (detailed results in Appendix G.1). We also report the fixed choice of the three reliability factors, λd , λa , and λc . RQ4: Ablation Study
As shown in Figure 7, removing any key component leads to performance degradation, confirming that all modules contribute to the final results. Specifically, w/o Structural Reconstruction drops notably on the e-commerce and Web domains, highlighting the importance of topology-aware auxiliary supervision under sparse textual conditions; w/o Risk Balancing also reduces performance, indicating that sparseaware cross-domain risk balancing helps mitigate domainbiased alignment and improve transferability; w/o Summary consistently degrades performance, particularly on the academic domain, demonstrating that semantic summaries are essential for stable graph–text alignment.
5