Signed Graph Pre-Training and Prompt Learning

arXiv cs.LG Papers

Summary

The paper introduces TopoSIGN, a topology-guided graph pre-training and prompt learning framework for signed graphs, which combines structural encoding and persistent homology to improve transfer learning in tasks like link prediction and node classification.

arXiv:2609.25722v1 Announce Type: new Abstract: Signed graphs arise in trust--distrust networks, financial correlation systems, biological interaction graphs, and many other domains in which edges can be positive or negative and may also be directed. While signed graph neural networks have improved task-specific learning, graph transfer learning on signed graphs remains underdeveloped. In this paper, we introduce TopoSIGN, a pioneer topology-guided graph pre-training and prompt learning framework for signed graphs. TopoSIGN combines a structural encoder built on the magnetic signed Laplacian with a novel persistent-homology branch that summarizes signed topology through Dowker-complex persistence images. The fused embeddings are then transferred to a prompt learning function. Experimental results on synthetic and real-world datasets demonstrate the efficacy of TopoSIGN in extracting useful structural information in signed graphs, as well as the adaptability and flexibility of the proposed general framework.
Original Article
View Cached Full Text

Cached at: 09/23/26, 09:35 AM

# Signed Graph Pre-Training and Prompt Learning
Source: [https://arxiv.org/html/2609.25722](https://arxiv.org/html/2609.25722)
Rong PanAffiliation:Arizona State UniversityEmail:[Rong\.Pan@asu\.edu](mailto:)Yuzhou ChenAffiliation:University of California, RiversideEmail:[Yuzhou\.Chen@ucr\.edu](mailto:)Yixuan He††thanks:Corresponding author\.Affiliation:Arizona State UniversityEmail:[Yixuan\.He@asu\.edu](mailto:)

###### Abstract

Signed graphs arise in trust–distrust networks, financial correlation systems, biological interaction graphs, and many other domains in which edges can be positive or negative and may also be directed\. While signed graph neural networks have improved task\-specific learning, graph transfer learning on signed graphs remains underdeveloped\. In this paper, we introduce TopoSIGN, a pioneer topology\-guided graph pre\-training and prompt learning framework for signed graphs\. TopoSIGN combines a structural encoder built on the magnetic signed Laplacian with a novel persistent\-homology branch that summarizes signed topology through Dowker\-complex persistence images\. The fused embeddings are then transferred to a prompt learning function\. Experimental results on synthetic and real\-world datasets demonstrate the efficacy of TopoSIGN in extracting useful structural information in signed graphs, as well as the adaptability and flexibility of the proposed general framework\.

## 1Introduction

Graphs with both positive and negative interactions appear naturally in applications where agreement and disagreement, promotion and inhibition, or attraction and repulsion coexist\[[1](https://arxiv.org/html/2609.25722#bib.bib67),[2](https://arxiv.org/html/2609.25722#bib.bib22),[3](https://arxiv.org/html/2609.25722#bib.bib26)\]including trust and distrust links in online social networks, competitive and synergistic relations in biological systems, and positively or negatively correlated financial assets\. In many of these applications, edge polarity is as informative as connectivity itself, and in some cases, the graph is also directed\[[4](https://arxiv.org/html/2609.25722#bib.bib24)\], so both sign and orientation must be modeled jointly\. These properties make signed graph representation learning fundamentally different from the standard unsigned setting\.

Recent work on signed graph neural networks \(GNNs\) has made substantial progress on link sign prediction, node classification, and node clustering by explicitly modeling positive and negative relations, balance theory, or signed random walks\[[2](https://arxiv.org/html/2609.25722#bib.bib22),[4](https://arxiv.org/html/2609.25722#bib.bib24),[5](https://arxiv.org/html/2609.25722#bib.bib42),[6](https://arxiv.org/html/2609.25722#bib.bib46),[7](https://arxiv.org/html/2609.25722#bib.bib50),[8](https://arxiv.org/html/2609.25722#bib.bib51)\]\. In particular, MSGNN\[[4](https://arxiv.org/html/2609.25722#bib.bib24)\]extends the magnetic Laplacian from directed graphs to a magnetic signed Laplacian, thereby handling directed signed graphs within one Hermitian spectral framework\. However, most signed GNNs remain largely task\-specific and are trained end\-to\-end for a single supervised objective\. By contrast, graph pre\-training, prompt learning, and graph foundation models aim to learn transferable representations that can be adapted to multiple downstream tasks with limited labels\[[9](https://arxiv.org/html/2609.25722#bib.bib36),[10](https://arxiv.org/html/2609.25722#bib.bib34)\]\. This line of work has been highly active on unsigned graphs, but signed graphs have received far less attention\. SGPT\[[11](https://arxiv.org/html/2609.25722#bib.bib55)\]is the only existing graph pre\-training and fine\-tuning work on signed graphs so far, but their goal is fundamentally different from ours: SGPT transfers knowledge from unsigned graph learning to signed learning tasks, while here we pretrain and fine\-tune on signed tasks directly\.

Topology is another underused source of signal in signed graph representation learning\. Persistent homology \(PH\) and related topological data analysis \(TDA\)\[[12](https://arxiv.org/html/2609.25722#bib.bib29),[13](https://arxiv.org/html/2609.25722#bib.bib28),[14](https://arxiv.org/html/2609.25722#bib.bib27),[15](https://arxiv.org/html/2609.25722#bib.bib37),[16](https://arxiv.org/html/2609.25722#bib.bib39),[17](https://arxiv.org/html/2609.25722#bib.bib38)\]tools provide multi\-scale summaries of higher\-order connectivity patterns beyond local neighborhoods\. The recent directed\-graph framework TopoDIG\[[18](https://arxiv.org/html/2609.25722#bib.bib9)\]combined a magnetic Laplacian encoder with a Dowker\-complex topological branch\[[19](https://arxiv.org/html/2609.25722#bib.bib13)\]for pre\-training and prompting on directed unsigned graphs\. However, extending that idea to signed graphs is not trivial\. In addition to a sign\-aware GNN encoder, the TDA branch itself must be reconsidered: negative edges do not fit naturally into the unsigned filtration design used in prior work, and naively injecting signed weights into a scalar filtration can produce a poor match between the filtration semantics and the intended persistent\-homology interpretation\.

In this paper, we design for signed graph pre\-training a two\-branch structure, i\.e\., a spectral graph encoder plus a Dowker complex\-based topological encoder, ensuring that they are aligned with the semantic needs of signed graphs\. Concretely, we propose*TopoSIGN*, aTopology\-guided pre\-training and prompt learning model forsigned graphs\. First, we employ a signed directed GNN method, e\.g\., SSSNET\[[2](https://arxiv.org/html/2609.25722#bib.bib22)\]or MSGNN\[[4](https://arxiv.org/html/2609.25722#bib.bib24)\], for the structural encoder\. Second, and more importantly, we introduce a signed degree\-vector distance filtration that does not neglect signed information\. That is, instead of assigning each node a single scalar degree in the filtration definition, we associate with each node a two\-dimensional vector containing its positive and negative degrees and define a novel Dowker filtration through distances in this signed degree space\. This allows us to retain signed information inside the simple yet effective topological branch without resorting to multiparameter persistence\. After that, we fuse the learned embeddings of the two branches and apply a graph prompt learning paradigm\[[20](https://arxiv.org/html/2609.25722#bib.bib23),[9](https://arxiv.org/html/2609.25722#bib.bib36)\]for graph pre\-training and fine\-tuning\.

The main contributions of this work are as follows\.

- •We formulate*TopoSIGN*, the first topology\-guided graph pre\-training and prompt\-learning framework for signed graphs\.
- •We design for signed graphs a topology\-empowered graph prompt function that improves the transfer and generalization capabilities of GNNs\.
- •We conduct experiments on both synthetic and real\-world datasets with two instantiations of our framework and demonstrate its efficacy and flexibility\. The framework is general and compatible with various signed GNNs and prompt learning functions\.

## 2Related work

### 2\.1Signed graph representation learning

Signed graph learning has a long history in spectral clustering, matrix factorization, and balance\-theoretic embedding\[[21](https://arxiv.org/html/2609.25722#bib.bib43),[22](https://arxiv.org/html/2609.25722#bib.bib54),[23](https://arxiv.org/html/2609.25722#bib.bib44)\]\. Neural approaches extend these ideas by designing message passing or spectral filters that distinguish positive and negative relations\. SGCN uses balance theory to propagate separate representations through positive and negative neighborhoods\[[5](https://arxiv.org/html/2609.25722#bib.bib42)\]\. SiGAT and SDGNN incorporate signed directed motifs and signed aggregation objectives for link sign prediction on directed signed networks\[[24](https://arxiv.org/html/2609.25722#bib.bib45),[6](https://arxiv.org/html/2609.25722#bib.bib46)\]\. SNEA learns signed network embeddings with graph attention\[[25](https://arxiv.org/html/2609.25722#bib.bib47)\]\. For clustering, SSSNET introduces a semi\-supervised signed clustering objective that is not restricted to strong balance assumptions\[[2](https://arxiv.org/html/2609.25722#bib.bib22)\]\. Spectral signed GNNs include SLGNN\[[26](https://arxiv.org/html/2609.25722#bib.bib48)\], frequency\-based signed GNNs\[[27](https://arxiv.org/html/2609.25722#bib.bib49)\], SigMaNet\[[7](https://arxiv.org/html/2609.25722#bib.bib50)\], and MSGNN\[[4](https://arxiv.org/html/2609.25722#bib.bib24)\], which define signed or signed\-directed Laplacian operators for signed representation learning\. DSGC studies robust deep signed graph clustering through weak balance theory and graph denoising\[[8](https://arxiv.org/html/2609.25722#bib.bib51)\]\. SE\-SGformer develops a self\-explainable signed graph transformer for link sign prediction with signed random\-walk positional encodings\[[28](https://arxiv.org/html/2609.25722#bib.bib52)\]\. CopulaLSP models inter\-edge dependencies for scalable link sign prediction on signed graphs\[[29](https://arxiv.org/html/2609.25722#bib.bib53)\]\. Here we pick MSGNN\[[4](https://arxiv.org/html/2609.25722#bib.bib24)\]as one of our structural backbones since it is simple and effective to complement the more computationally expensive topological branch for our task, and it can directly handle the tasks of our interest, i\.e\., link prediction and node clustering\. SSSNET\[[2](https://arxiv.org/html/2609.25722#bib.bib22)\]is also picked due to its simplicity and efficacy\.

### 2\.2Graph pre\-training, prompting, and graph foundation models

Graph pre\-training learns reusable representations through self\-supervised objectives at node, edge, or graph level\. Representative methods include contrastive approaches such as DGI\[[30](https://arxiv.org/html/2609.25722#bib.bib56)\]and GraphCL\[[31](https://arxiv.org/html/2609.25722#bib.bib57)\], masked or reconstruction\-based models such as GraphMAE\[[32](https://arxiv.org/html/2609.25722#bib.bib58)\]and GraphMAE2\[[33](https://arxiv.org/html/2609.25722#bib.bib59)\], and task\-specific pre\-training frameworks such as S2PGNN\[[34](https://arxiv.org/html/2609.25722#bib.bib60)\]and BRep\-BERT\[[35](https://arxiv.org/html/2609.25722#bib.bib61)\]\. Prompt learning attempts to reduce the gap between pre\-training and downstream tasks\. GPPT uses edge prediction as the pretext task and introduces tokens to align node classification with pre\-training\[[9](https://arxiv.org/html/2609.25722#bib.bib36)\]; GraphPrompt unifies graph pre\-training and downstream tasks with prompt\-based readout\[[36](https://arxiv.org/html/2609.25722#bib.bib33)\]; GPF learns universal graph prompts\[[37](https://arxiv.org/html/2609.25722#bib.bib35)\]; and All\-in\-One formulates multi\-task graph prompting through meta\-learning\[[10](https://arxiv.org/html/2609.25722#bib.bib34)\]\. ProG provides a benchmark and systematic evaluation for graph prompt learning\[[20](https://arxiv.org/html/2609.25722#bib.bib23)\], while GCOPE\[[38](https://arxiv.org/html/2609.25722#bib.bib62)\]and OpenGraph\[[39](https://arxiv.org/html/2609.25722#bib.bib63)\]study cross\-domain transfer and open graph foundation modeling, respectively\. SAMGPT focuses on text\-free multi\-domain graph pre\-training and cross\-domain adaptation\[[40](https://arxiv.org/html/2609.25722#bib.bib64)\]\. UniGraph learns a unified cross\-domain model for text\-attributed graphs\[[41](https://arxiv.org/html/2609.25722#bib.bib66)\]\. GraphTOP adapts pre\-trained GNNs by topology\-oriented prompting through local edge rewiring\[[42](https://arxiv.org/html/2609.25722#bib.bib65)\]\. TopoDIG\[[18](https://arxiv.org/html/2609.25722#bib.bib9)\]fuses topological features and a directed graph neural network encoder into the GPPT\-like framework and extends the pre\-training and prompt learning framework to directed graphs with asymmetric sending and receiving patterns\. These methods establish strong transfer baselines, but most assume unsigned or text\-attributed graphs and do not natively model signed Laplacian structure or signed topological filtrations\. SGPT\[[11](https://arxiv.org/html/2609.25722#bib.bib55)\]is the only existing graph pre\-training and fine\-tuning work on signed graphs so far, but their goal is fundamentally different from ours: SGPT transfers knowledge from unsigned graph learning to signed learning tasks, while here we pretrain and fine\-tune on signed tasks directly\. Our approach gets inspiration from TopoDIG\[[18](https://arxiv.org/html/2609.25722#bib.bib9)\]by constructing a signed directed graph encoder and a topological encoder and feeding the concatenated outputs into a GPPT\-like prompting framework\.

### 2\.3Topological learning on graphs

Recent TDA\-based graph representation learning uses persistent homology and related topological summaries to encode connectivity, cycles, and higher\-order structures that are difficult for standard message passing to capture\. Early neural and kernel\-based methods include PersLay, which learns vectorized persistence\-diagram representations and introduces graph topological signatures\[[43](https://arxiv.org/html/2609.25722#bib.bib1)\], P\-WL, which augments Weisfeiler–Lehman subtree features with persistent cycle information\[[44](https://arxiv.org/html/2609.25722#bib.bib2)\], and Graph Filtration Learning, which learns a differentiable filtration function and uses persistent homology as a graph\-level readout\[[45](https://arxiv.org/html/2609.25722#bib.bib16)\]\. Later methods integrate topology more directly into GNN architectures: TRI\-GNN rewires local graph neighborhoods using persistent homology and uses topological summaries as side information for node classification\[[46](https://arxiv.org/html/2609.25722#bib.bib32)\]; TOGL injects global persistent\-homology features into message\-passing GNNs and improves expressiveness beyond standard WL\-limited aggregation\[[47](https://arxiv.org/html/2609.25722#bib.bib3)\]; and Wit\-TopoPool uses persistent homology and witness complexes to design topology\-aware pooling for graph classification\[[48](https://arxiv.org/html/2609.25722#bib.bib4)\]\. More recent work shifts from graph\-level summaries to localized and task\-adaptive topological features\. TTG\-NN combines persistent homology, graph convolution, and tensor operations to capture local and global graph structure\[[49](https://arxiv.org/html/2609.25722#bib.bib5)\]; Yan et al\.\[[50](https://arxiv.org/html/2609.25722#bib.bib6)\]use extended persistent homology on vicinity graphs to construct node\- and edge\-level topological features for node classification and link prediction; TensorMV\-GCL incorporates extended persistent homology into multi\-view graph contrastive learning\[[51](https://arxiv.org/html/2609.25722#bib.bib7)\]; and GraphTCL aligns GNN structural embeddings with persistent\-homology embeddings through cross\-view contrastive learning\[[52](https://arxiv.org/html/2609.25722#bib.bib8)\]\. TopoDIG extends this direction to directed graphs by combining magnetic\-Laplacian\-based directed graph encoding with Dowker\-complex\-based topological features in a pre\-training and prompting framework\[[18](https://arxiv.org/html/2609.25722#bib.bib9)\]\. Despite this progress, almost all TDA\-enhanced graph learning methods assume unsigned or merely weighted graphs\. For signed graphs, existing topological work mainly characterizes structural balance using simplicial homology and cohomology\[[53](https://arxiv.org/html/2609.25722#bib.bib10)\], but does not provide a modern pre\-training, prompting, or GNN representation\-learning framework\. Thus, signed topological graph learning remains largely open\.

## 3Methodology

![Refer to caption](https://arxiv.org/html/2609.25722v1/figures/toposign_framework.png)Figure 1:Overview of the TopoSIGN pre\-training and prompting framework\. Given an input signed \(possibly also directed\) graph with node attributes, TopoSIGN learns transferable representations through two complementary pathways \(with the gray box\)\. The first branch \(i\) applies signed graph encoder \(SGE\) layers to capture signed, directional, and local structural information\. In parallel, the second branch \(ii\) constructs a Dowker complex to encode higher\-order relational structures, which are transformed into compact topological embeddings via the topological representation learning \(TPL\) module using a projection layer\. The structural and topological representations are fused to form joint node embeddings\. Pre\-training is performed using a pairwise prediction objective on both node\-node and token\-node pairs with a shared MLP and pretext loss, enabling topology\-aware and prompt\-compatible representations for downstream tasks\.### 3\.1Problem formulation

Let𝒢=\(𝒱,ℰ,w,𝐗\)\\mathcal\{G\}=\(\\mathcal\{V\},\\mathcal\{E\},w,\\mathbf\{X\}\)be a signed graph, possibly directed and weighted, where𝒱=\{v1,…,vn\}\\mathcal\{V\}=\\\{v\_\{1\},\\ldots,v\_\{n\}\\\}is the node set,ℰ⊆𝒱×𝒱\\mathcal\{E\}\\subseteq\\mathcal\{V\}\\times\\mathcal\{V\}is the edge set,w:ℰ→ℝ∖\{0\}w:\\mathcal\{E\}\\rightarrow\\mathbb\{R\}\\setminus\\\{0\\\}assigns a nonzero signed weight to each edge, and𝐗∈ℝn×F\\mathbf\{X\}\\in\\mathbb\{R\}^\{n\\times F\}is the node\-feature matrix\. We denote positive and negative edge sets byℰ\+=\{\(u,v\)∈ℰ:w⁡\(u,v\)\>0\}\\mathcal\{E\}^\{\+\}=\\\{\(u,v\)\\in\\mathcal\{E\}:w\(u,v\)\>0\\\}andℰ−=\{\(u,v\)∈ℰ:w⁡\(u,v\)<0\}\.\\mathcal\{E\}^\{\-\}=\\\{\(u,v\)\\in\\mathcal\{E\}:w\(u,v\)<0\\\}\.The signed adjacency matrix𝐀∈ℝn×n\\mathbf\{A\}\\in\\mathbb\{R\}^\{n\\times n\}is defined entrywise asAu​v=w⁡\(u,v\)A\_\{uv\}=w\(u,v\)if\(u,v\)∈ℰ\(u,v\)\\in\\mathcal\{E\}and zero otherwise\. We further define the positive and negative magnitude matrices𝐀\+=max⁡\(𝐀,0\)\\mathbf\{A\}^\{\+\}=\\max\(\\mathbf\{A\},0\)and𝐀−=max⁡\(−𝐀,0\)\\mathbf\{A\}^\{\-\}=\\max\(\-\\mathbf\{A\},0\), where the maximum is taken elementwise\.

The pre\-training task does not involve any node labels and is based completely on observed edges\. Following\[[4](https://arxiv.org/html/2609.25722#bib.bib24)\], we consider different variations of the link prediction task for*signed and/or directed*networks\. In our default pre\-training task, link sign prediction \(SP\), one assumes that there is a link fromuutovvand aims to predict whether that link is positive or negative, i\.e\., whether\(u,v\)∈ℰ\+\(u,v\)\\in\\mathcal\{E\}^\{\+\}or\(u,v\)∈ℰ−\(u,v\)\\in\\mathcal\{E\}^\{\-\}\. The downstream task is node clustering, whose goal is to partition the node set into a disjoint union ofKKclusters,𝒱=𝒞0∪𝒞1∪⋯∪𝒞K−1\\mathcal\{V\}=\\mathcal\{C\}\_\{0\}\\cup\\mathcal\{C\}\_\{1\}\\cup\\cdots\\cup\\mathcal\{C\}\_\{K\-1\}\.

Persistent HomologyPersistent homology \(PH\) provides a principled framework for analyzing filtered simplicial complexes\[[54](https://arxiv.org/html/2609.25722#bib.bib21),[55](https://arxiv.org/html/2609.25722#bib.bib12),[56](https://arxiv.org/html/2609.25722#bib.bib11)\]\. Early applications primarily focused on point clouds𝒳⊂ℝN\\mathcal\{X\}\\subset\\mathbb\{R\}^\{N\}, where Vietoris\-Rips filtrations construct a sequence of nested complexesΔ1​\(𝒳\)⊂Δ2​\(𝒳\)⊂⋯\\Delta\_\{1\}\(\\mathcal\{X\}\)\\subset\\Delta\_\{2\}\(\\mathcal\{X\}\)\\subset\\cdots, enabling the tracking of topological features across multiple scales\[[57](https://arxiv.org/html/2609.25722#bib.bib20),[58](https://arxiv.org/html/2609.25722#bib.bib19)\]\. The resulting persistence diagram𝒟q​\(𝒳\)=\{\(bi,di\)\}\\mathcal\{D\}\_\{q\}\(\\mathcal\{X\}\)=\\\{\(b\_\{i\},d\_\{i\}\)\\\}records the birth and death times ofqq\-dimensional features \(whereq=\{0,1,…\}q=\\\{0,1,\\dots\\\}\), where longer lifetimes\(di−bi\)\(d\_\{i\}\-b\_\{i\}\)are typically interpreted as more structurally significant\. PH has also been extended beyond point clouds to structured domains such as graphs and images\. Unlike Euclidean data, graphs lack an intrinsic notion of scale, making the choice of filtration nontrivial\. To address this, two principal approaches have been proposed\. The first is the power\-based filtration, which nodes as points in a metric space induced by graph distances and constructs a Vietoris\-Rips filtration\[[59](https://arxiv.org/html/2609.25722#bib.bib17),[60](https://arxiv.org/html/2609.25722#bib.bib18)\]\. While conceptually straightforward, this approach is often computationally expensive\. The second, more practical approach is based on sublevel set filtrations, where a scalar functionffdefined on nodes or edges induces a sequence of nested subgraphs\[[61](https://arxiv.org/html/2609.25722#bib.bib15),[45](https://arxiv.org/html/2609.25722#bib.bib16)\]\. These subgraphs are then lifted to simplicial complexes via clique expansions\. A key interpretability distinction arises between these approaches\. In power filtrations, persistence reflects geometric scale, whereas in sublevel set filtrations, it reflects variations in the functionff\. Consequently, long persistence does not necessarily correspond to large\-scale structures\. The standard PH pipeline for graphs consists of three steps, i\.e\., filtration, persistence computation, and vectorization\. Given a graph𝒢=\(𝒱,ℰ\)\\mathcal\{G\}=\(\\mathcal\{V\},\\mathcal\{E\}\)and a functionf:𝒢→ℝf:\\mathcal\{G\}\\to\\mathbb\{R\}, a sequence of thresholds\{αi\}i=1n\\\{\\alpha\_\{i\}\\\}\_\{i=1\}^\{n\}induces nested subgraphs𝒢1⊂⋯⊂𝒢n\\mathcal\{G\}\_\{1\}\\subset\\cdots\\subset\\mathcal\{G\}\_\{n\},𝒢i⊂𝒢\\mathcal\{G\}\_\{i\}\\subset\\mathcal\{G\}satisfies =f⁡\(𝒢i\)≤αif\(\\mathcal\{G\}\_\{i\}\)\\leq\\alpha\_\{i\}\. Each subgraph is lifted to its clique complex𝒢^i\\hat\{\\mathcal\{G\}\}\_\{i\}, forming a filtration\{𝒢^i\}\\\{\\hat\{\\mathcal\{G\}\}\_\{i\}\\\}\. Persistence diagrams𝒟q​\(𝒢,f\)=\{\(bj,dj\)\}\\mathcal\{D\}\_\{q\}\(\\mathcal\{G\},f\)=\\\{\(b\_\{j\},d\_\{j\}\)\\\}summarize the birth and death of homological featuresHq​\(𝒢^i\)H\_\{q\}\(\\hat\{\\mathcal\{G\}\}\_\{i\}\), and can be converted into fixed\-length representations via persistence images or persistence landscapes\[[62](https://arxiv.org/html/2609.25722#bib.bib31),[63](https://arxiv.org/html/2609.25722#bib.bib14)\]\.

Despite their effectiveness, these constructions often suffer from significant computational overhead, particularly for large graphs due to the combinatorial growth of simplicial complexes\. To mitigate this challenge, in this paper, we adopt the Dowker complex\[[19](https://arxiv.org/html/2609.25722#bib.bib13)\], which constructs simplicial structures based on a bipartite relation between a subset of representative nodes \(landmarks\) and the remaining nodes \(witnesses\)\. That is, given a graph𝒢\\mathcal\{G\}, a landmark setL⊆𝒱L\\subseteq\\mathcal\{V\}and a witness setW=𝒱∖LW=\\mathcal\{V\}\\setminus Lare defined, and simplices are formed based on proximity relations between landmarks and witnesses\. This construction preserves essential topological features while significantly reducing computational complexity\.

### 3\.2Overall framework of TopoSIGN

TopoSIGN consists of three modules: a structural signed GNN encoder \(SGE, we apply MSGNN\[[4](https://arxiv.org/html/2609.25722#bib.bib24)\]and SSSNET\[[2](https://arxiv.org/html/2609.25722#bib.bib22)\]here\), a signed topological encoder \(with our novel design adapted from\[[18](https://arxiv.org/html/2609.25722#bib.bib9)\]\), and a prompt module \(we apply similar architectures as in\[[9](https://arxiv.org/html/2609.25722#bib.bib36)\]\)\. The structural encoder maps the signed graph to node embeddings𝐙𝒢∈ℝn×dG\\mathbf\{Z\}\_\{\\mathcal\{G\}\}\\in\\mathbb\{R\}^\{n\\times d\_\{G\}\}\. The topological encoder computes persistence\-image features from a Dowker filtration and maps them to𝐙𝒯∈ℝn×dT\\mathbf\{Z\}\_\{\\mathcal\{T\}\}\\in\\mathbb\{R\}^\{n\\times d\_\{T\}\}\. The fused node representation is𝐙=\[𝐙𝒢∥𝐙𝒯\]∈ℝn×\(dG\+dT\),\\mathbf\{Z\}=\\big\[\\mathbf\{Z\}\_\{\\mathcal\{G\}\}\\,\\mathbin\{\\\|\}\\,\\mathbf\{Z\}\_\{\\mathcal\{T\}\}\\big\]\\in\\mathbb\{R\}^\{n\\times\(d\_\{G\}\+d\_\{T\}\)\},where\[⋅∥⋅\]\[\\cdot\\mathbin\{\\\|\}\\cdot\]denotes the concatenation function\. The same fused representation is used for \(link sign\) pre\-training and \(cluster\) prompt adaptation\. A framework overview is provided in Fig\.[1](https://arxiv.org/html/2609.25722#S3.F1)\.

### 3\.3Signed graph encoder \(SGE\)

The SGE branch is responsible for modeling graph structural information in terms of sign, direction, and spectral smoothness over the full signed graph, and may contain one or more SGE layers using different SGE backbones from signed GNNs\.

One instantiation of the structural branch of TopoSIGN uses the magnetic signed Laplacian introduced by\[[4](https://arxiv.org/html/2609.25722#bib.bib24)\]to encode signed local and global structure\. First, define the symmetrized signed adjacency and degree matrices by

𝐀~u​v=12​\(Au​v\+Av​u\),𝐃~u​u=12​∑v=1n\(\|Au​v\|\+\|Av​u\|\)\.\\widetilde\{\\mathbf\{A\}\}\_\{uv\}=\\frac\{1\}\{2\}\(A\_\{uv\}\+A\_\{vu\}\),\\qquad\\widetilde\{\\mathbf\{D\}\}\_\{uu\}=\\frac\{1\}\{2\}\\sum\_\{v=1\}^\{n\}\\big\(\\left\\lvert A\_\{uv\}\\right\\rvert\+\\left\\lvert A\_\{vu\}\\right\\rvert\\big\)\.\(1\)The directional asymmetry is encoded through the phase matrix𝚯u​v\(q\)=2​π​q​\(Au​v−Av​u\),\\mathbf\{\\Theta\}^\{\(q\)\}\_\{uv\}=2\\pi q\\,\(A\_\{uv\}\-A\_\{vu\}\),whereq∈ℝq\\in\\mathbb\{R\}is the “charge parameter”\. The corresponding Hermitian adjacency matrix is𝐇\(q\)=𝐀~⊙exp⁡\(i​𝚯\(q\)\),\\mathbf\{H\}^\{\(q\)\}=\\widetilde\{\\mathbf\{A\}\}\\odot\\exp\(\\mathrm\{i\}\\mathbf\{\\Theta\}^\{\(q\)\}\),where⊙\\odotdenotes the Hadamard product\. MSGNN then defines the unnormalized and normalized magnetic signed Laplacian matrices by

𝐋U\(q\)=𝐃~−𝐇\(q\),𝐋N\(q\)=𝐈−\(𝐃~−1/2𝐀~𝐃~−1/2\)⊙exp\(i𝚯\(q\)\)\.\\mathbf\{L\}\_\{U\}^\{\(q\)\}=\\widetilde\{\\mathbf\{D\}\}\-\\mathbf\{H\}^\{\(q\)\},\\qquad\\mathbf\{L\}\_\{N\}^\{\(q\)\}=\\mathbf\{I\}\-\\left\(\\widetilde\{\\mathbf\{D\}\}^\{\-1/2\}\\widetilde\{\\mathbf\{A\}\}\\widetilde\{\\mathbf\{D\}\}^\{\-1/2\}\\right\)\\odot\\exp\(\\mathrm\{i\}\\mathbf\{\\Theta\}^\{\(q\)\}\)\.\(2\)\[[4](https://arxiv.org/html/2609.25722#bib.bib24)\]defines spectral convolution by diagonalizing a Hermitian Laplacian𝐋\\mathbf\{L\}and approximating the resulting filter with Chebyshev polynomials\. In our instantiation, with𝐋=𝐋N\(q\)\\mathbf\{L\}=\\mathbf\{L\}\_\{N\}^\{\(q\)\}and choosing the second\-order polynomial approximation, the layer update becomes

𝐗\(ℓ\)=σ⁡\(𝐗\(ℓ−1\)​𝐖self\(ℓ\)\+𝐋~N\(q\)​𝐗\(ℓ−1\)​𝐖neigh\(ℓ\)\+𝐁\(ℓ\)\),\\mathbf\{X\}^\{\(\\ell\)\}=\\sigma\\\!\\left\(\\mathbf\{X\}^\{\(\\ell\-1\)\}\\mathbf\{W\}\_\{\\mathrm\{self\}\}^\{\(\\ell\)\}\+\\widetilde\{\\mathbf\{L\}\}\_\{N\}^\{\(q\)\}\\mathbf\{X\}^\{\(\\ell\-1\)\}\\mathbf\{W\}\_\{\\mathrm\{neigh\}\}^\{\(\\ell\)\}\+\\mathbf\{B\}^\{\(\\ell\)\}\\right\),\(3\)where𝐖self\(ℓ\)\\mathbf\{W\}\_\{\\text\{self\}\}^\{\(\\ell\)\}and𝐖neigh\(ℓ\)\\mathbf\{W\}\_\{\\text\{neigh\}\}^\{\(\\ell\)\}are learned weight matrices corresponding to the filter weights of different channels and𝐁\(ℓ\)\\mathbf\{B\}^\{\(\\ell\)\}is the bias vector,𝐋~N\(q\)=2λmax​𝐋N\(q\)−𝐈\\widetilde\{\\mathbf\{L\}\}\_\{N\}^\{\(q\)\}=\\frac\{2\}\{\\lambda\_\{\\max\}\}\\mathbf\{L\}\_\{N\}^\{\(q\)\}\-\\mathbf\{I\}is the rescaled Laplacian with identity matrix𝐈\\mathbf\{I\}, andσ\\sigmais a nonlinear activation function\. As in\[[64](https://arxiv.org/html/2609.25722#bib.bib25),[4](https://arxiv.org/html/2609.25722#bib.bib24)\], we use a complex version of the Rectified Linear Unit defined byσ⁡\(z\)=z\\sigma\(z\)=z, if−π/2≤arg\(z\)<π/2\-\\pi/2\\leq\\arg\(z\)<\\pi/2, andσ⁡\(z\)=0\\sigma\(z\)=0otherwise, wherearg⁡\(⋅\)\\arg\(\\cdot\)is the complex argument ofz∈ℂz\\in\\mathbb\{C\}\. After the final layer, the complex representation is unwound into a real\-valued embedding by concatenating its real and imaginary parts\. We useq=0\.25q=0\.25by default\.

Another instantiation we use is SSSNET \(SIMPA\) from\[[2](https://arxiv.org/html/2609.25722#bib.bib22)\]\. Its core component is the SIMPA aggregation mechanism, which separately propagates information over positive and negative neighborhoods to preserve the distinct semantics of friendship and antagonism relations\. Specifically, SSSNET computes decoupled embeddings from multiple signed propagation paths and combines them to capture agreement, disagreement, and neutral interactions across the graph\. Owing to its lightweight propagation structure and effectiveness on signed community detection benchmarks, SSSNET serves as a simple yet strong structural encoder in our framework\.

### 3\.4Signed topological representation learning

The topological branch complements the SGE embedding with a multiscale signed summary derived from persistent homology on Dowker complexes\. The key design choice is how to define a scalar filtration that remains meaningful for signed graphs\.

##### Positive\-subgraph baseline\.

The simplest sign\-compatible baseline removes negative edges before topology is computed\. Let𝒢\+=\(𝒱,ℰ\+,𝐀\+\)\\mathcal\{G\}^\{\+\}=\(\\mathcal\{V\},\\mathcal\{E\}^\{\+\},\\mathbf\{A\}^\{\+\}\)be the positive subgraph\. Its degree for nodeuuisd\+​\(u\)=∑v=1n\(Au​v\+\+Av​u\+\)\.d^\{\+\}\(u\)=\\sum\_\{v=1\}^\{n\}\\big\(A^\{\+\}\_\{uv\}\+A^\{\+\}\_\{vu\}\\big\)\.

Given landmark and witness setsL,W⊆𝒱L,W\\subseteq\\mathcal\{V\}, we define a scalar landmark–witness distance by

δ\+​\(ℓ,w\)=\|d\+​\(ℓ\)−d\+​\(w\)\|\.\\delta\_\{\+\}\(\\ell,w\)=\\left\\lvert d^\{\+\}\(\\ell\)\-d^\{\+\}\(w\)\\right\\rvert\.\(4\)For thresholdε≥0\\varepsilon\\geq 0, the associated Dowker complex is

Dε\+\(L,W\)=\{σ⊆L\|∃w∈Wsuch thatδ\+\(ℓ,w\)≤ε,∀ℓ∈σ\}\.D\_\{\\varepsilon\}^\{\+\}\(L,W\)=\\left\\\{\\sigma\\subseteq L\\;\\middle\|\\;\\exists w\\in W\\text\{ such that \}\\delta\_\{\+\}\(\\ell,w\)\\leq\\varepsilon,\\;\\forall\\ell\\in\\sigma\\right\\\}\.\(5\)Sweepingε\\varepsilonproduces a one\-parameter filtration\. This baseline is useful because it keeps the PH semantics clean and provides a direct comparison point for any sign\-aware topological design\.

##### Signed degree\-vector distance filtration\.

Our proposed topological variant uses the full signed graph instead of discarding negative edges\. For each nodeuu, define the positive and negative degree magnitudes

d\+​\(u\)=∑v=1n\(Au​v\+\+Av​u\+\),d−​\(u\)=∑v=1n\(Au​v−\+Av​u−\)\.d^\{\+\}\(u\)=\\sum\_\{v=1\}^\{n\}\\big\(A^\{\+\}\_\{uv\}\+A^\{\+\}\_\{vu\}\\big\),\\qquad d^\{\-\}\(u\)=\\sum\_\{v=1\}^\{n\}\\big\(A^\{\-\}\_\{uv\}\+A^\{\-\}\_\{vu\}\\big\)\.\(6\)The negative degree is nonnegative by construction because𝐀−\\mathbf\{A\}^\{\-\}stores absolute magnitudes of negative edges\. We then associate to nodeuuthe two\-dimensional signed degree vector

𝐬⁡\(u\)=\[d\+​\(u\)d−​\(u\)\]∈ℝ2\.\\mathbf\{s\}\(u\)=\\begin\{bmatrix\}d^\{\+\}\(u\)\\\\ d^\{\-\}\(u\)\\end\{bmatrix\}\\in\\mathbb\{R\}^\{2\}\.\(7\)The landmark–witness distance is defined by Euclidean distance in this degree space

δ±​\(ℓ,w\)=‖𝐬⁡\(ℓ\)−𝐬⁡\(w\)‖2\.\\delta\_\{\\pm\}\(\\ell,w\)=\\left\\lVert\\mathbf\{s\}\(\\ell\)\-\\mathbf\{s\}\(w\)\\right\\rVert\_\{2\}\.\(8\)The resulting signed Dowker filtration is

Dε±\(L,W\)=\{σ⊆L\|∃w∈Wsuch thatδ±\(ℓ,w\)≤ε,∀ℓ∈σ\}\.D\_\{\\varepsilon\}^\{\\pm\}\(L,W\)=\\left\\\{\\sigma\\subseteq L\\;\\middle\|\\;\\exists w\\in W\\text\{ such that \}\\delta\_\{\\pm\}\(\\ell,w\)\\leq\\varepsilon,\\;\\forall\\ell\\in\\sigma\\right\\\}\.\(9\)This construction keeps the filtration one\-dimensional, which allows standard PH software and persistence\-image vectorizations to be used unchanged, while preserving information about how much positive and negative connectivity each node carries\. Nodes with similar total degree but very different sign composition are therefore distinguished by the filtration\. Additionally, to further improve scalability, we adopt a landmark–witness strategy: a subset of nodes is selected as landmarks \(e\.g\., via either degree\- or centrality\-based sampling\), which serve as the backbone for the filtration, while the remaining nodes act as witnesses that attach to nearby landmarks according to their signed connectivity\. This design preserves the essential signed structural patterns while reducing computational complexity\.

##### Persistence images and topological encoder\.

From a filtration family we compute persistence diagrams in dimensions00and11and then convert them to persistence images \(PIs\)\[[62](https://arxiv.org/html/2609.25722#bib.bib31)\]\. Since here we are interested in node\-level representations, for each node, we construct topological features based on its two\-hop ego\-network \(much smaller than the whole network\)\. For each two\-hop ego\-network, we define a filtration based on node degrees\. This yields a nested sequence of subgraphs, from which we computeH0H\_\{0\}\(connectivity\) andH1H\_\{1\}\(cycles\) persistence diagrams that capture the local topology across scales\. Because these diagrams vary in size for different nodes, we transform them into Persistence Images \(PIs\)—a fixed\-dimensional vector representation\. We achieve this by mapping the diagrams to\(birth, persistence\)coordinates, convolving the points with a Gaussian kernel weighted by a persistence\-dependent function, and discretizing the resulting surface into andI×dId\_\{I\}\\times d\_\{I\}grid, wheredId\_\{I\}denotes the resolution of the image\. This ensures a consistent input size for downstream machine learning models while preserving the topological signatures of the local neighborhood\. Flattening the grid into a vector of a fixed lengthdT=dI2d\_\{T\}=d\_\{I\}^\{2\}gives the topological representations of each node\.

Let𝐙𝒯∈ℝn×dT\\mathbf\{Z\}\_\{\\mathcal\{T\}\}\\in\\mathbb\{R\}^\{n\\times d\_\{T\}\}contain all topological feature vectors in its rows, we then fuse it with the MSGC embedding:

𝐙=\[𝐙𝒢∥𝐙𝒯\]∈ℝn×\(dG\+dT\)\.\\mathbf\{Z\}=\\big\[\\mathbf\{Z\}\_\{\\mathcal\{G\}\}\\,\\mathbin\{\\\|\}\\,\\mathbf\{Z\}\_\{\\mathcal\{T\}\}\\big\]\\in\\mathbb\{R\}^\{n\\times\(d\_\{G\}\+d\_\{T\}\)\}\.\(10\)The fused representation𝐙\\mathbf\{Z\}is used by both the pre\-training loss and the downstream prompt head\.

### 3\.5Pre\-training with link sign prediction

The pre\-training task is link sign prediction\. LetΩtr⊆ℰ\\Omega\_\{\\mathrm\{tr\}\}\\subseteq\\mathcal\{E\}denote the training edge set produced by a signed edge split\. Each training edge receives a binary sign label,

yu​v=\{1,Au​v\>0,0,Au​v<0\.y\_\{uv\}=\\begin\{cases\}1,&A\_\{uv\}\>0,\\\\ 0,&A\_\{uv\}<0\.\\end\{cases\}\(11\)Given the fused node embeddings𝐳u\\mathbf\{z\}\_\{u\}and𝐳v\\mathbf\{z\}\_\{v\}from Eq\. \([10](https://arxiv.org/html/2609.25722#S3.E10)\), an edge decoderψζ​\(⋅\)\\psi\_\{\\zeta\}\(\\cdot\)predicts the edge sign,

y^u​v=sigmoid⁡\(⋅\)​\(ψζ​\(\[𝐳u∥𝐳v\]\)\)\.\\hat\{y\}\_\{uv\}=\\operatorname\{sigmoid\}\(\\cdot\)\\\!\\big\(\\psi\_\{\\zeta\}\(\[\\mathbf\{z\}\_\{u\}\\mathbin\{\\\|\}\\mathbf\{z\}\_\{v\}\]\)\\big\)\.\(12\)
The default pre\-training loss is binary cross\-entropy,

ℒSP=−∑\(u,v\)∈Ωtr\[yu​vlogy^u​v\+\(1−yu​v\)log\(1−y^u​v\)\]\.\\mathcal\{L\}\_\{\\mathrm\{SP\}\}=\-\\sum\_\{\(u,v\)\\in\\Omega\_\{\\mathrm\{tr\}\}\}\\left\[y\_\{uv\}\\log\\hat\{y\}\_\{uv\}\+\(1\-y\_\{uv\}\)\\log\(1\-\\hat\{y\}\_\{uv\}\)\\right\]\.\(13\)

### 3\.6Cluster prompts for downstream adaptation

Due to the limited node classification labels in the signed graph learning literature, we focus on the task of node clustering, where abundant synthetic datasets are available\[[3](https://arxiv.org/html/2609.25722#bib.bib26)\]\. To adapt the GPPT\[[9](https://arxiv.org/html/2609.25722#bib.bib36)\]idea to this setting, we replace class prompts with cluster prompts\. LetMMbe the number of METIS\[[65](https://arxiv.org/html/2609.25722#bib.bib41)\]clusters \(note these clusters typically differ from our downstreamKKclusters, but are constructed since varying task tokens in different densely\-connected clusters may provide enhanced task embeddings\)\. We introduce a learnable prompt bank

𝐏=\{𝐩1,…,𝐩M\},𝐩m∈ℝdP\.\\mathbf\{P\}=\\\{\\mathbf\{p\}\_\{1\},\\ldots,\\mathbf\{p\}\_\{M\}\\\},\\qquad\\mathbf\{p\}\_\{m\}\\in\\mathbb\{R\}^\{d\_\{P\}\}\.\(14\)For nodeuu\(belonging to a certain METIS clustermm\) and a downstream clusterkk, we construct a prompted token

𝝃u,k=\[𝐩km∥𝐳u\],\\boldsymbol\{\\xi\}\_\{u,k\}=\[\\mathbf\{p\}\_\{k\}^\{m\}\\mathbin\{\\\|\}\\mathbf\{z\}\_\{u\}\],\(15\)and score cluster compatibility with a small task headgϕg\_\{\\phi\},

s⁡\(u,k\)=gϕ​\(𝝃u,k\),c^u=arg⁡maxk∈\{1,…,K\}⁡s⁡\(u,k\)\.s\(u,k\)=g\_\{\\phi\}\(\\boldsymbol\{\\xi\}\_\{u,k\}\),\\qquad\\hat\{c\}\_\{u\}=\\arg\\max\_\{k\\in\\\{1,\\ldots,K\\\}\}s\(u,k\)\.\(16\)If a training set𝒮⊆𝒱\\mathcal\{S\}\\subseteq\\mathcal\{V\}of labeled nodes is available, the adaptation objective is a negative log\-likelihood \(NLL\) loss function as

ℒcluster=∑u∈𝒮NLL⁡\(LogSoftmax​\(s⁡\(u,⋅\)\),cu\),\\mathcal\{L\}\_\{\\mathrm\{cluster\}\}=\\sum\_\{u\\in\\mathcal\{S\}\}\\mathrm\{NLL\}\\big\(\\text\{LogSoftmax\}\(s\(u,\\cdot\)\),c\_\{u\}\\big\),\(17\)wherecu∈\{1,…,K\}c\_\{u\}\\in\\\{1,\\ldots,K\\\}is the seed\-node cluster label\. In practice, the pre\-trained encoder can be frozen and only the prompt bank and task head are tuned, or a lightweight adapter can be updated jointly\.

## 4Experiments

We conduct experiments on both synthetic and real\-world datasets to evaluate our proposed TopoSIGN framework against baselines and its variants\. Additional results are provided in Appendix[A](https://arxiv.org/html/2609.25722#A1), while implementation details are provided in Appendix[B](https://arxiv.org/html/2609.25722#A2)\.

### 4\.1Datasets and evaluation metrics

To evaluate the effectiveness of the proposed TopoSIGN framework, we conduct a comprehensive comparison on both synthetic benchmarks \(SDSBM from\[[4](https://arxiv.org/html/2609.25722#bib.bib24)\]\) and real\-world datasets \(Rainfall and SP1500 from\[[2](https://arxiv.org/html/2609.25722#bib.bib22)\]\)\. Rainfall and SP1500 represent the only publicly available real\-world signed graphs that provide both ground\-truth node labels and sufficient scale required for self\-supervised pre\-training and node clustering evaluation to the best of our knowledge\. Dataset statistics are provided in Appendix Table[17](https://arxiv.org/html/2609.25722#A2.T17)\. We adopt signed link prediction for self\-supervised pre\-training, as it serves as a foundational task to capture intrinsic signed topological patterns without label reliance; these learned structural representations are subsequently transferred via prompts to guide node clustering, an downstream task directly aligned with node ground\-truth annotations\. Node clustering performance is measured using the Adjusted Rand Index \(ARI\)\[[66](https://arxiv.org/html/2609.25722#bib.bib40)\]for node clustering tasks\. ARI measures the similarity between predicted node clusters and ground\-truth labels, where a score of 1 indicates a perfect match, and 0 indicates random clustering, making it a robust measure for evaluating how well a model captures structural communities\.

Specifically, the synthetic SDSBM\[[4](https://arxiv.org/html/2609.25722#bib.bib24)\]graphs are generated to simulate diverse community structures and noise levels\. We employ theF1F\_\{1\}meta\-graph configuration to define community interactions, where a size ratioρ\\rhocharacterizes the imbalance between the largest and smallest blocks, andppdetermines the overall edge density\. To account for structural uncertainty, we incorporate directional noiseγ\\gammaand sign flip probabilityη\\eta, which perturb the topology and edge signs, respectively\. In our experiments, we set the SDSBM under the following specific configuration:

- •Setting 1 \(SDSBM\-1\):F1​\(γ=0\.25\)F\_\{1\}\(\\gamma=0\.25\),n=1000n=1000,p=0\.1p=0\.1,ρ=1\.5\\rho=1\.5, andη=0\.25\\eta=0\.25\.
- •Setting 2 \(SDSBM\-2\):F2​\(γ=0\.25\)F\_\{2\}\(\\gamma=0\.25\),n=1000n=1000,p=0\.1p=0\.1,ρ=1\.5\\rho=1\.5, andη=0\.25\\eta=0\.25\.
- •Setting 3 \(SDSBM\-3\):F1​\(γ=0\.1\)F\_\{1\}\(\\gamma=0\.1\),n=1000n=1000,p=0\.1p=0\.1,ρ=1\.5\\rho=1\.5, andη=0\.25\\eta=0\.25\.
- •Setting 4 \(SDSBM\-4\):F1​\(γ=0\)F\_\{1\}\(\\gamma=0\),n=1000n=1000,p=0\.1p=0\.1,ρ=1\.5\\rho=1\.5, andη=0\\eta=0\. Note that setting 4 is a noiseless setting\.

### 4\.2Baselines and experiment setups

Our main experiments are designed to answer two research questions: \(1\) How effective is TopoSIGN in transferring link prediction knowledge to node clustering, compared with other pre\-training and fine\-tuning methods? \(2\) How effective is TopoSIGN in learning node representations compared with other signed GNNs if we directly apply a semi\-supervised node clustering task without any pre\-training?

To answer these research questions, we compare TopoSIGN against two families of representative baselines\. The first family consists of graph pre\-training, prompting, and foundation\-model methods: GPPT\[[9](https://arxiv.org/html/2609.25722#bib.bib36)\], All\-in\-one\[[10](https://arxiv.org/html/2609.25722#bib.bib34)\], GraphPrompt\[[36](https://arxiv.org/html/2609.25722#bib.bib33)\], GPF\[[37](https://arxiv.org/html/2609.25722#bib.bib35)\], SAMGPT\[[40](https://arxiv.org/html/2609.25722#bib.bib64)\], and TopoDIG\[[18](https://arxiv.org/html/2609.25722#bib.bib9)\]\. The second family consists of signed graph clustering models: SSSNET\[[2](https://arxiv.org/html/2609.25722#bib.bib22)\], SigMaNet\[[7](https://arxiv.org/html/2609.25722#bib.bib50)\], MSGNN\[[4](https://arxiv.org/html/2609.25722#bib.bib24)\], and DSGC\[[8](https://arxiv.org/html/2609.25722#bib.bib51)\]\. For a fair comparison on different architectures, we employ their original hyperparameter settings but use the same loss function for all methods during pre\-training and the same NLL loss for prompt learning or semi\-supervised node clustering\. Hyperparameter settings are provided in Appendix[B\.3](https://arxiv.org/html/2609.25722#A2.SS3)\.

### 4\.3Results

Table[1](https://arxiv.org/html/2609.25722#S4.T1)compares our proposed TopoSIGN \(TopoMSGNN with SGE backbone MSGNN\[[4](https://arxiv.org/html/2609.25722#bib.bib24)\]and TopoSSSNET with SGE backbone SSSNET\[[2](https://arxiv.org/html/2609.25722#bib.bib22)\]\) against existing graph pre\-training and prompt learning methods\. TopoSIGN achieves the strongest or near\-strongest performance on the noisy SDSBM settings\. On SDSBM\-1, SDSBM\-2, and SDSBM\-3, TopoSSSNET obtains the best ARI among all pre\-training and prompt learning methods, while TopoMSGNN is consistently competitive and improves over TopoDIG\. This comparison is particularly informative because TopoDIG also contains a topological branch, but it was designed for directed unsigned graphs\. The improvement of TopoSIGN over TopoDIG indicates that simply transferring a directed\-graph topological pre\-training framework to signed graphs is not enough; the filtration and structural encoder must be adapted to preserve sign information\. The results on SDSBM\-4 reveal a different pattern\. SDSBM\-4 is noiseless, and several unsigned prompt learning baselines perform well, especially SAMGPT, GPF, Gprompt, and All\-in\-one\. This suggests that when the clustering signal is clean and strong, generic graph pre\-training can already recover useful community structure, even without explicit signed topology\. In contrast, TopoSIGN is more advantageous in the noisy signed settings, where edge signs and higher\-order signed connectivity patterns are harder to exploit through standard message passing alone\. This supports the main motivation of TopoSIGN: the topological branch is most useful when local signed neighborhoods are perturbed and when transferable representations must capture more stable structural regularities\.

The real\-world datasets are more challenging\. This may be due to the dense and highly structured nature of these real\-world graphs, the mismatch between link\-sign pre\-training and the final clustering objective, and the fact that the current signed degree\-vector filtration captures only one type of signed topology\. Nevertheless, TopoSIGN remains competitive on Rainfall and shows that the proposed framework can be applied beyond synthetic signed block models\. The weaker SP1500 results suggest that future work should consider richer signed\-directed filtrations, edge\-feature\-aware topological summaries, and more adaptive prompt construction for dense financial networks\.

Table 1:Pre\-training and prompt learning performance comparison in terms of downstream node clustering ARI\. We report the mean ARI among five runs±\\pmstandard deviation\. The best method is marked inboldwhile the second best is marked withunderline\.Table[2](https://arxiv.org/html/2609.25722#S4.T2)evaluates the topological branch in semi\-supervised clustering\. Adding topological features consistently boosts several signed encoders\. The gain is most pronounced for SSSNET across all datasets—particularly SDSBM\-1–3, Rainfall, and SP1500—suggesting that persistence\-image features complement its signed propagation by capturing multiscale local connectivity and cycle structures\. Extensive evaluations across various backbone\-prompt combinations \(Appendix Tables[5](https://arxiv.org/html/2609.25722#A1.T5)–[7](https://arxiv.org/html/2609.25722#A1.T7)\) and low\-data regimes \(1, 3, and 5 shots; Appendix Tables[8](https://arxiv.org/html/2609.25722#A1.T8)–[16](https://arxiv.org/html/2609.25722#A1.T16)\) further confirm TopoSIGN’s efficacy, especially under extreme label scarcity and on complex real\-world graphs\. Notably, TopoSIGN slightly degrades DSGC, likely because DSGC’s topology\-optimizing pre\-processing makes additional topological features redundant or noisy\.

Table 2:Semi\-supervised node clustering performance \(ARI\) on real\-world and synthetic signed datasets\. We compare our approach against state\-of\-the\-art signed GNNs\.
### 4\.4Ablation study

To demonstrate the efficacy of each component of our framework, we perform an ablation study to isolate the contribution of each component\. From Table[3](https://arxiv.org/html/2609.25722#A1.T3)in Appendix[A](https://arxiv.org/html/2609.25722#A1), we conclude that without the topological branch or without SGE, the performance typically drops \(especially for MSGNN\)\. Using a signed filtration is better than a positive\-sign subgraph only topological baseline\. Further results and discussions on different pre\-training tasks, other prompting functions, as well as additional SGE compatibility, are provided in Appendix[A](https://arxiv.org/html/2609.25722#A1)\.

## 5Conclusion

We introduced TopoSIGN, a pioneer topology\-guided pre\-training and prompt\-learning framework for signed graphs\. TopoSIGN combines signed GNN structural embeddings with persistent\-homology features from signed Dowker filtrations, pre\-trains on link sign prediction, and adapts to node clustering with cluster prompts\. TopoSIGN is compatible with various signed GNN backbones and prompt functions\. One key methodological component is a signed degree\-vector filtration that retains positive and negative degree information while remaining compatible with standard one\-parameter persistence\. Future work includes richer signed\-directed filtrations based on separate in/out positive and negative degrees, dynamic signed graph pre\-training, edge\-feature\-aware signed topology, and scalable landmark selection for large signed networks\. We do not envision severe negative societal impacts\.

## References

- \[1\]J\. Leskovec, D\. Huttenlocher, and J\. Kleinberg\(2010\)Predicting positive and negative links in online social networks\.InProceedings of the 19th international conference on World wide web,pp\. 641–650\.Cited by:[§B\.3](https://arxiv.org/html/2609.25722#A2.SS3.SSS0.Px4.p2.1),[§1](https://arxiv.org/html/2609.25722#S1.p1.1)\.
- \[2\]Y\. He, G\. Reinert, S\. Wang, and M\. Cucuringu\(2022\)SSSNET: Semi\-Supervised Signed Network Clustering\.InProceedings of the 2022 SIAM International Conference on Data Mining \(SDM\),pp\. 244–252\.Cited by:[§1](https://arxiv.org/html/2609.25722#S1.p1.1),[§1](https://arxiv.org/html/2609.25722#S1.p2.1),[§1](https://arxiv.org/html/2609.25722#S1.p4.1),[§2\.1](https://arxiv.org/html/2609.25722#S2.SS1.p1.1),[§3\.2](https://arxiv.org/html/2609.25722#S3.SS2.p1.1),[§3\.3](https://arxiv.org/html/2609.25722#S3.SS3.p3.1),[§4\.1](https://arxiv.org/html/2609.25722#S4.SS1.p1.1),[§4\.2](https://arxiv.org/html/2609.25722#S4.SS2.p2.1),[§4\.3](https://arxiv.org/html/2609.25722#S4.SS3.p1.1)\.
- \[3\]Y\. He, X\. Zhang, J\. Huang, B\. Rozemberczki, M\. Cucuringu, and G\. Reinert\(2024\)Pytorch geometric signed directed: a software package on graph neural networks for signed and directed graphs\.InLearning on Graphs Conference,pp\. 12–1\.Cited by:[§1](https://arxiv.org/html/2609.25722#S1.p1.1),[§3\.6](https://arxiv.org/html/2609.25722#S3.SS6.p1.1)\.
- \[4\]Y\. He, M\. Perlmutter, G\. Reinert, and M\. Cucuringu\(2022\)MSGNN: A Spectral Graph Neural Network Based on a Novel Magnetic Signed Laplacian\.InLearning on Graphs Conference,pp\. 40–1\.Cited by:[§1](https://arxiv.org/html/2609.25722#S1.p1.1),[§1](https://arxiv.org/html/2609.25722#S1.p2.1),[§1](https://arxiv.org/html/2609.25722#S1.p4.1),[§2\.1](https://arxiv.org/html/2609.25722#S2.SS1.p1.1),[§3\.1](https://arxiv.org/html/2609.25722#S3.SS1.p2.1),[§3\.2](https://arxiv.org/html/2609.25722#S3.SS2.p1.1),[§3\.3](https://arxiv.org/html/2609.25722#S3.SS3.p2.1),[§3\.3](https://arxiv.org/html/2609.25722#S3.SS3.p2.3),[§3\.3](https://arxiv.org/html/2609.25722#S3.SS3.p2.4),[§4\.1](https://arxiv.org/html/2609.25722#S4.SS1.p1.1),[§4\.1](https://arxiv.org/html/2609.25722#S4.SS1.p2.1),[§4\.2](https://arxiv.org/html/2609.25722#S4.SS2.p2.1),[§4\.3](https://arxiv.org/html/2609.25722#S4.SS3.p1.1)\.
- \[5\]T\. Derr, Y\. Ma, and J\. Tang\(2018\)Signed graph convolutional networks\.In2018 IEEE international conference on data mining \(ICDM\),pp\. 929–934\.Cited by:[§1](https://arxiv.org/html/2609.25722#S1.p2.1),[§2\.1](https://arxiv.org/html/2609.25722#S2.SS1.p1.1)\.
- \[6\]J\. Huang, H\. Shen, L\. Hou, and X\. Cheng\(2021\)SDGNN: learning node representation for signed directed networks\.InProceedings of the AAAI conference on artificial intelligence,Vol\.35,pp\. 196–203\.Cited by:[§1](https://arxiv.org/html/2609.25722#S1.p2.1),[§2\.1](https://arxiv.org/html/2609.25722#S2.SS1.p1.1)\.
- \[7\]S\. Fiorini, S\. Coniglio, M\. Ciavotta, and E\. Messina\(2023\)Sigmanet: one laplacian to rule them all\.InProceedings of the AAAI Conference on Artificial Intelligence,Vol\.37,pp\. 7568–7576\.Cited by:[§1](https://arxiv.org/html/2609.25722#S1.p2.1),[§2\.1](https://arxiv.org/html/2609.25722#S2.SS1.p1.1),[§4\.2](https://arxiv.org/html/2609.25722#S4.SS2.p2.1)\.
- \[8\]P\. Zhao, X\. Li, Z\. Zhang, M\. Wang, X\. Zhu, and L\. Liao\(2025\)Robust deep signed graph clustering via weak balance theory\.InProceedings of the ACM on Web Conference 2025,pp\. 3819–3830\.Cited by:[§1](https://arxiv.org/html/2609.25722#S1.p2.1),[§2\.1](https://arxiv.org/html/2609.25722#S2.SS1.p1.1),[§4\.2](https://arxiv.org/html/2609.25722#S4.SS2.p2.1)\.
- \[9\]M\. Sun, K\. Zhou, X\. He, Y\. Wang, and X\. Wang\(2022\)GPPT: graph pre\-training and prompt tuning to generalize graph neural networks\.InACM SIGKDD,Cited by:[§1](https://arxiv.org/html/2609.25722#S1.p2.1),[§1](https://arxiv.org/html/2609.25722#S1.p4.1),[§2\.2](https://arxiv.org/html/2609.25722#S2.SS2.p1.1),[§3\.2](https://arxiv.org/html/2609.25722#S3.SS2.p1.1),[§3\.6](https://arxiv.org/html/2609.25722#S3.SS6.p1.1),[§4\.2](https://arxiv.org/html/2609.25722#S4.SS2.p2.1)\.
- \[10\]X\. Sun, H\. Cheng, J\. Li, B\. Liu, and J\. Guan\(2023\)All in One: Multi\-task prompting for graph neural networks\.InACM SIGKDD,Cited by:[§1](https://arxiv.org/html/2609.25722#S1.p2.1),[§2\.2](https://arxiv.org/html/2609.25722#S2.SS2.p1.1),[§4\.2](https://arxiv.org/html/2609.25722#S4.SS2.p2.1)\.
- \[11\]Z\. Zhai, Q\. Sima, X\. Wang, and W\. Zhang\(2025\)SGPT: few\-shot prompt tuning for signed graphs\.InProceedings of the 34th ACM International Conference on Information and Knowledge Management,pp\. 4045–4055\.Cited by:[§1](https://arxiv.org/html/2609.25722#S1.p2.1),[§2\.2](https://arxiv.org/html/2609.25722#S2.SS2.p1.1)\.
- \[12\]L\. Wasserman\(2018\)Topological data analysis\.Annual review of statistics and its application5\(2018\),pp\. 501–532\.Cited by:[§1](https://arxiv.org/html/2609.25722#S1.p3.1)\.
- \[13\]F\. Chazal and B\. Michel\(2021\)An introduction to topological data analysis: fundamental and practical aspects for data scientists\.Frontiers in artificial intelligence4,pp\. 667963\.Cited by:[§1](https://arxiv.org/html/2609.25722#S1.p3.1)\.
- \[14\]G\. Carlsson, R\. Jardine, D\. Feichtner\-Kozlov, D\. Morozov, F\. Chazal, V\. de Silva, B\. Fasy, J\. Johnson, M\. Kahle, G\. Lerman,et al\.\(2012\)Topological data analysis and machine learning theory\.InBIRS Workshop,pp\. 1–11\.Cited by:[§1](https://arxiv.org/html/2609.25722#S1.p3.1)\.
- \[15\]Y\. Chen and Y\. Gel\(2025\)Topological zigzag spaghetti for diffusion\-based generation and prediction on graphs\.InProceedings of the International Conference on Learning Representations,Cited by:[§1](https://arxiv.org/html/2609.25722#S1.p3.1)\.
- \[16\]M\. Dixon, Y\. Chen, and Y\. R\. Gel\(2025\)Topological k\-means clustering in reproducing kernel hilbert spaces\.Electronic Journal of Statistics19\(1\),pp\. 204–239\.Cited by:[§1](https://arxiv.org/html/2609.25722#S1.p3.1)\.
- \[17\]Y\. Chen, I\. Segovia, and Y\. R\. Gel\(2021\)Z\-GCNETs: Time zigzags at graph convolutional networks for time series forecasting\.InProceedings of the International conference on machine learning,pp\. 1684–1694\.Cited by:[§1](https://arxiv.org/html/2609.25722#S1.p3.1)\.
- \[18\]P\. Liang, C\. Yang, Y\. He, R\. Pan, and Y\. Chen\(2026\)Topology\-guided graph pre\-training and prompt learning on directed graphs\.Transactions on Machine Learning Research\.External Links:[Link](https://openreview.net/forum?id=kMIdkLTys8)Cited by:[§1](https://arxiv.org/html/2609.25722#S1.p3.1),[§2\.2](https://arxiv.org/html/2609.25722#S2.SS2.p1.1),[§2\.3](https://arxiv.org/html/2609.25722#S2.SS3.p1.1),[§3\.2](https://arxiv.org/html/2609.25722#S3.SS2.p1.1),[§4\.2](https://arxiv.org/html/2609.25722#S4.SS2.p2.1)\.
- \[19\]C\. H\. Dowker\(1952\)Topology of metric complexes\.American journal of mathematics74\(3\),pp\. 555–577\.Cited by:[§1](https://arxiv.org/html/2609.25722#S1.p3.1),[§3\.1](https://arxiv.org/html/2609.25722#S3.SS1.p4.1)\.
- \[20\]C\. Zi, H\. Zhao, X\. Sun, Y\. Lin, H\. Cheng, and J\. Li\(2024\)Prog: A graph prompt learning benchmark\.Advances in Neural Information Processing Systems37,pp\. 95406–95437\.Cited by:[§1](https://arxiv.org/html/2609.25722#S1.p4.1),[§2\.2](https://arxiv.org/html/2609.25722#S2.SS2.p1.1)\.
- \[21\]M\. Cucuringu, P\. Davies, A\. Glielmo, and H\. Tyagi\(2019\)SPONGE: a generalized eigenproblem for clustering signed networks\.InThe 22nd International Conference on Artificial Intelligence and Statistics,pp\. 1088–1098\.Cited by:[§2\.1](https://arxiv.org/html/2609.25722#S2.SS1.p1.1)\.
- \[22\]D\. Rafailidis\(2016\)Modeling trust and distrust information in recommender systems via joint matrix factorization with signed graphs\.InProceedings of the 31st Annual ACM Symposium on Applied Computing,pp\. 1060–1065\.Cited by:[§2\.1](https://arxiv.org/html/2609.25722#S2.SS1.p1.1)\.
- \[23\]Z\. Zhang, P\. Zhao, X\. Li, J\. Liu, X\. Zhang, J\. Huang, and X\. Zhu\(2024\)Signed graph representation learning: a survey\.arXiv preprint arXiv:2402\.15980\.Cited by:[§2\.1](https://arxiv.org/html/2609.25722#S2.SS1.p1.1)\.
- \[24\]J\. Huang, H\. Shen, L\. Hou, and X\. Cheng\(2019\)Signed graph attention networks\.InInternational conference on artificial neural networks,pp\. 566–577\.Cited by:[§2\.1](https://arxiv.org/html/2609.25722#S2.SS1.p1.1)\.
- \[25\]Y\. Li, Y\. Tian, J\. Zhang, and Y\. Chang\(2020\)Learning signed network embedding via graph attention\.InProceedings of the AAAI conference on artificial intelligence,Vol\.34,pp\. 4772–4779\.Cited by:[§2\.1](https://arxiv.org/html/2609.25722#S2.SS1.p1.1)\.
- \[26\]Y\. Li, M\. Qu, J\. Tang, and Y\. Chang\(2023\)Signed laplacian graph neural networks\.InProceedings of the AAAI conference on artificial intelligence,Vol\.37,pp\. 4444–4452\.Cited by:[§2\.1](https://arxiv.org/html/2609.25722#S2.SS1.p1.1)\.
- \[27\]Y\. Chen, M\. Wang, C\. Li, and C\. Cheng\(2024\)Graph fourier transforms on signed graphs\.InProceedings of the 2024 12th International Conference on Communications and Broadband Networking,pp\. 96–101\.Cited by:[§2\.1](https://arxiv.org/html/2609.25722#S2.SS1.p1.1)\.
- \[28\]L\. Li, J\. Liu, X\. Ji, M\. Wang, and Z\. Zhang\(2025\)Self\-explainable graph transformer for link sign prediction\.InProceedings of the AAAI Conference on Artificial Intelligence,Vol\.39,pp\. 12084–12092\.Cited by:[§2\.1](https://arxiv.org/html/2609.25722#S2.SS1.p1.1)\.
- \[29\]J\. Sung, M\. Jee, and J\. Lee\(2026\)A scalable inter\-edge correlation modeling in copulagnn for link sign prediction\.arXiv preprint arXiv:2601\.19175\.Cited by:[§2\.1](https://arxiv.org/html/2609.25722#S2.SS1.p1.1)\.
- \[30\]P\. Velickovic, W\. Fedus, W\. L\. Hamilton, P\. Liò, Y\. Bengio, and R\. D\. Hjelm\(2018\)Deep graph infomax\.stat1050,pp\. 21\.Cited by:[§2\.2](https://arxiv.org/html/2609.25722#S2.SS2.p1.1)\.
- \[31\]Y\. You, T\. Chen, Y\. Sui, T\. Chen, Z\. Wang, and Y\. Shen\(2020\)Graph contrastive learning with augmentations\.Advances in neural information processing systems33,pp\. 5812–5823\.Cited by:[§2\.2](https://arxiv.org/html/2609.25722#S2.SS2.p1.1)\.
- \[32\]Z\. Hou, X\. Liu, Y\. Cen, Y\. Dong, H\. Yang, C\. Wang, and J\. Tang\(2022\)Graphmae: self\-supervised masked graph autoencoders\.InProceedings of the 28th ACM SIGKDD conference on knowledge discovery and data mining,pp\. 594–604\.Cited by:[§2\.2](https://arxiv.org/html/2609.25722#S2.SS2.p1.1)\.
- \[33\]Z\. Hou, Y\. He, Y\. Cen, X\. Liu, Y\. Dong, E\. Kharlamov, and J\. Tang\(2023\)Graphmae2: a decoding\-enhanced masked self\-supervised graph learner\.InProceedings of the ACM web conference 2023,pp\. 737–746\.Cited by:[§2\.2](https://arxiv.org/html/2609.25722#S2.SS2.p1.1)\.
- \[34\]W\. Zhili, D\. Shimin, C\. Lei, and Z\. Xiaofang\(2024\)Search to fine\-tune pre\-trained graph neural networks for graph\-level tasks\.In2024 IEEE 40th International Conference on Data Engineering \(ICDE\),pp\. 2805–2819\.Cited by:[§2\.2](https://arxiv.org/html/2609.25722#S2.SS2.p1.1)\.
- \[35\]Y\. Lou, X\. Li, H\. Chen, and X\. Zhou\(2023\)Brep\-bert: pre\-training boundary representation bert with sub\-graph node contrastive learning\.InProceedings of the 32nd ACM International Conference on Information and Knowledge Management,pp\. 1657–1666\.Cited by:[§2\.2](https://arxiv.org/html/2609.25722#S2.SS2.p1.1)\.
- \[36\]Z\. Liu, X\. Yu, Y\. Fang, and X\. Zhang\(2023\)GraphPrompt: Unifying pre\-training and downstream tasks for graph neural networks\.InWeb Conference,pp\. 417–428\.Cited by:[§2\.2](https://arxiv.org/html/2609.25722#S2.SS2.p1.1),[§4\.2](https://arxiv.org/html/2609.25722#S4.SS2.p2.1)\.
- \[37\]T\. Fang, Y\. Zhang, Y\. Yang, C\. Wang, and L\. Chen\(2023\)Universal prompt tuning for graph neural networks\.Advances in Neural Information Processing Systems\.Cited by:[§2\.2](https://arxiv.org/html/2609.25722#S2.SS2.p1.1),[§4\.2](https://arxiv.org/html/2609.25722#S4.SS2.p2.1)\.
- \[38\]H\. Zhao, A\. Chen, X\. Sun, H\. Cheng, and J\. Li\(2024\)All in one and one for all: a simple yet effective method towards cross\-domain graph pretraining\.InProceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining,pp\. 4443–4454\.Cited by:[§2\.2](https://arxiv.org/html/2609.25722#S2.SS2.p1.1)\.
- \[39\]L\. Xia, B\. Kao, and C\. Huang\(2024\)Opengraph: towards open graph foundation models\.InFindings of the Association for Computational Linguistics: EMNLP 2024,pp\. 2365–2379\.Cited by:[§2\.2](https://arxiv.org/html/2609.25722#S2.SS2.p1.1)\.
- \[40\]X\. Yu, Z\. Gong, C\. Zhou, Y\. Fang, and H\. Zhang\(2025\)Samgpt: text\-free graph foundation model for multi\-domain pre\-training and cross\-domain adaptation\.InProceedings of the ACM on Web Conference 2025,pp\. 1142–1153\.Cited by:[§2\.2](https://arxiv.org/html/2609.25722#S2.SS2.p1.1),[§4\.2](https://arxiv.org/html/2609.25722#S4.SS2.p2.1)\.
- \[41\]Y\. He, Y\. Sui, X\. He, and B\. Hooi\(2025\)Unigraph: learning a unified cross\-domain foundation model for text\-attributed graphs\.InProceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V\. 1,pp\. 448–459\.Cited by:[§2\.2](https://arxiv.org/html/2609.25722#S2.SS2.p1.1)\.
- \[42\]X\. Fu, Z\. Lei, Z\. Chen, B\. Zhang, C\. Zhang, and J\. Li\(2025\)GraphTOP: graph topology\-oriented prompting for graph neural networks\.arXiv preprint arXiv:2510\.22451\.Cited by:[§2\.2](https://arxiv.org/html/2609.25722#S2.SS2.p1.1)\.
- \[43\]M\. Carriere, F\. Chazal, Y\. Ike, T\. Lacombe, M\. Royer, and Y\. Umeda\(2020\)PersLay: a neural network layer for persistence diagrams and new graph topological signatures\.InProceedings of the Twenty Third International Conference on Artificial Intelligence and Statistics,Proceedings of Machine Learning Research, Vol\.108,pp\. 2786–2796\.External Links:[Link](https://proceedings.mlr.press/v108/carriere20a.html)Cited by:[§2\.3](https://arxiv.org/html/2609.25722#S2.SS3.p1.1)\.
- \[44\]B\. Rieck, C\. Bock, and K\. Borgwardt\(2019\)A persistent weisfeiler\-lehman procedure for graph classification\.InProceedings of the 36th International Conference on Machine Learning,Proceedings of Machine Learning Research, Vol\.97,pp\. 5448–5458\.External Links:[Link](https://proceedings.mlr.press/v97/rieck19a.html)Cited by:[§2\.3](https://arxiv.org/html/2609.25722#S2.SS3.p1.1)\.
- \[45\]C\. Hofer, F\. Graf, B\. Rieck, M\. Niethammer, and R\. Kwitt\(2020\)Graph filtration learning\.InInternational Conference on Machine Learning,pp\. 4314–4323\.Cited by:[§2\.3](https://arxiv.org/html/2609.25722#S2.SS3.p1.1),[§3\.1](https://arxiv.org/html/2609.25722#S3.SS1.p3.1)\.
- \[46\]Y\. Chen, B\. Coskunuzer, and Y\. Gel\(2021\)Topological relational learning on graphs\.Advances in Neural Information Processing Systems34,pp\. 27029–27042\.Cited by:[§2\.3](https://arxiv.org/html/2609.25722#S2.SS3.p1.1)\.
- \[47\]M\. Horn, E\. De Brouwer, M\. Moor, Y\. Moreau, B\. Rieck, and K\. Borgwardt\(2022\)Topological graph neural networks\.InInternational Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=oxxUMeFwEHd)Cited by:[§2\.3](https://arxiv.org/html/2609.25722#S2.SS3.p1.1)\.
- \[48\]Y\. Chen and Y\. R\. Gel\(2023\)Topological pooling on graphs\.Proceedings of the AAAI Conference on Artificial Intelligence37\(6\),pp\. 7096–7103\.External Links:[Document](https://dx.doi.org/10.1609/aaai.v37i6.25866),[Link](https://ojs.aaai.org/index.php/AAAI/article/view/25866)Cited by:[§2\.3](https://arxiv.org/html/2609.25722#S2.SS3.p1.1)\.
- \[49\]T\. Wen, E\. Chen, and Y\. Chen\(2024\)Tensor\-view topological graph neural network\.InProceedings of The 27th International Conference on Artificial Intelligence and Statistics,Proceedings of Machine Learning Research, Vol\.238,pp\. 4330–4338\.External Links:[Link](https://proceedings.mlr.press/v238/wen24a.html)Cited by:[§2\.3](https://arxiv.org/html/2609.25722#S2.SS3.p1.1)\.
- \[50\]Z\. Yan, Q\. Zhao, Z\. Ye, T\. Ma, L\. Gao, Z\. Tang, Y\. Wang, and C\. Chen\(2025\)Enhancing graph representation learning with localized topological features\.Journal of Machine Learning Research26\(5\),pp\. 1–36\.External Links:[Link](https://www.jmlr.org/papers/v26/23-1424.html)Cited by:[§2\.3](https://arxiv.org/html/2609.25722#S2.SS3.p1.1)\.
- \[51\]Y\. Wu, J\. Mo, E\. Chen, and Y\. Chen\(2025\)Tensor\-fused multi\-view graph contrastive learning\.InData Science: Foundations and Applications,Lecture Notes in Computer Science, Vol\.15876,pp\. 16–28\.External Links:[Document](https://dx.doi.org/10.1007/978-981-96-8298-0%5F2),[Link](https://link.springer.com/book/10.1007/978-981-96-8298-0)Cited by:[§2\.3](https://arxiv.org/html/2609.25722#S2.SS3.p1.1)\.
- \[52\]A\. S\. Korkmaz, S\. Coskunuzer, and M\. J\. Uddin\(2025\)Cross\-view topology\-aware graph representation learning\.External Links:2512\.02130,[Link](https://arxiv.org/abs/2512.02130)Cited by:[§2\.3](https://arxiv.org/html/2609.25722#S2.SS3.p1.1)\.
- \[53\]B\. She and Z\. Kan\(2019\)Algebraic topological characterizations of structural balance in signed graphs\.Automatica107,pp\. 61–67\.External Links:[Document](https://dx.doi.org/10.1016/j.automatica.2019.05.029),[Link](https://www.sciencedirect.com/science/article/pii/S0005109819302456)Cited by:[§2\.3](https://arxiv.org/html/2609.25722#S2.SS3.p1.1)\.
- \[54\]H\. Edelsbrunner J\. Hareret al\.\(2008\)Persistent homology\-a survey\.Contemporary mathematics453\(26\),pp\. 257–282\.Cited by:[§3\.1](https://arxiv.org/html/2609.25722#S3.SS1.p3.1)\.
- \[55\]A\. Zomorodian and G\. Carlsson\(2004\)Computing persistent homology\.InProceedings of the twentieth annual symposium on Computational geometry,pp\. 347–356\.Cited by:[§3\.1](https://arxiv.org/html/2609.25722#S3.SS1.p3.1)\.
- \[56\]N\. Otter, M\. A\. Porter, U\. Tillmann, P\. Grindrod, and H\. A\. Harrington\(2017\)A roadmap for the computation of persistent homology\.EPJ data science6\(1\),pp\. 17\.Cited by:[§3\.1](https://arxiv.org/html/2609.25722#S3.SS1.p3.1)\.
- \[57\]T\. de Surrel, F\. Hensel, M\. Carrière, T\. Lacombe, Y\. Ike, H\. Kurihara, M\. Glisse, and F\. Chazal\(2022\)RipsNet: a general architecture for fast and robust estimation of the persistent homology of point clouds\.InTopological, algebraic and geometric learning workshops 2022,pp\. 96–106\.Cited by:[§3\.1](https://arxiv.org/html/2609.25722#S3.SS1.p3.1)\.
- \[58\]R\. Turkes, G\. F\. Montufar, and N\. Otter\(2022\)On the effectiveness of persistent homology\.Advances in Neural Information Processing Systems35,pp\. 35432–35448\.Cited by:[§3\.1](https://arxiv.org/html/2609.25722#S3.SS1.p3.1)\.
- \[59\]D\. R\. Sheehy\(2012\)Linear\-size approximations to the vietoris\-rips filtration\.InProceedings of the twenty\-eighth annual symposium on Computational geometry,pp\. 239–248\.Cited by:[§3\.1](https://arxiv.org/html/2609.25722#S3.SS1.p3.1)\.
- \[60\]M\. E\. Aktas, E\. Akbas, and A\. E\. Fatmaoui\(2019\)Persistence homology of networks: methods and applications\.Applied Network Science4\(1\),pp\. 1–28\.Cited by:[§3\.1](https://arxiv.org/html/2609.25722#S3.SS1.p3.1)\.
- \[61\]C\. Hofer, R\. Kwitt, M\. Niethammer, and A\. Uhl\(2017\)Deep learning with topological signatures\.Advances in neural information processing systems30\.Cited by:[§3\.1](https://arxiv.org/html/2609.25722#S3.SS1.p3.1)\.
- \[62\]H\. Adams, T\. Emerson, M\. Kirby, R\. Neville, C\. Peterson, P\. Shipman, S\. Chepushtanova, E\. Hanson, F\. Motta, and L\. Ziegelmeier\(2017\)Persistence images: A stable vector representation of persistent homology\.JMLR\.Cited by:[§3\.1](https://arxiv.org/html/2609.25722#S3.SS1.p3.1),[§3\.4](https://arxiv.org/html/2609.25722#S3.SS4.SSS0.Px3.p1.1)\.
- \[63\]P\. Bubenik\(2015\)Statistical topological data analysis using persistence landscapes\.The Journal of Machine Learning Research16\(1\),pp\. 77–102\.Cited by:[§3\.1](https://arxiv.org/html/2609.25722#S3.SS1.p3.1)\.
- \[64\]X\. Zhang, Y\. He, N\. Brugnone, M\. Perlmutter, and M\. Hirn\(2021\)MagNet: A Neural Network for Directed Graphs\.InAdvances in Neural Information Processing Systems,Cited by:[§3\.3](https://arxiv.org/html/2609.25722#S3.SS3.p2.4)\.
- \[65\]G\. Karypis and V\. Kumar\(1998\)A fast and high quality multilevel scheme for partitioning irregular graphs\.SIAM Journal on scientific Computing20\(1\),pp\. 359–392\.Cited by:[§3\.6](https://arxiv.org/html/2609.25722#S3.SS6.p1.1)\.
- \[66\]L\. Hubert and P\. Arabie\(1985\)Comparing partitions\.Journal of Classification2\(1\),pp\. 193–218\.Cited by:[§4\.1](https://arxiv.org/html/2609.25722#S4.SS1.p1.1)\.
- \[67\]W\. Hamilton, Z\. Ying, and J\. Leskovec\(2017\)Inductive representation learning on large graphs\.Advances in Neural Information Processing Systems30\.Cited by:[3rd item](https://arxiv.org/html/2609.25722#A2.I1.i3.p1.1)\.

## Appendix AAdditional results

Here we provide additional ablation study results\. Note that results on the same method may be slightly different due to different ways of setting random seeds in the scripts\.

### A\.1Analysis of Topological Components and Backbones

Table[3](https://arxiv.org/html/2609.25722#A1.T3)ablates the two\-branch TopoSIGN design under the signed link\-prediction pre\-training and prompt\-learning clustering pipeline\. The topology\-only variant yields near\-zero ARI, showing that persistent\-homology features alone cannot replace a signed graph encoder\. For the MSGNN backbone, TopoMSGNN improves over MSGNN\-only on four of the five datasets and generally outperforms the positive\-sign subgraph\-only topological baseline, indicating that the signed degree\-vector filtration provides useful complementary information and that negative edges should not be discarded before topological feature construction\. For the SSSNET backbone, the effect is more mixed: TopoSSSNET improves on SDSBM\-2 but underperforms SSSNET\-only on several other datasets, suggesting that topological augmentation is backbone\-dependent and may interact differently with signed aggregation mechanisms\. Overall, the ablation confirms that the structural encoder is essential, the topology representation learning with signed filtration is generally preferable to positive\-only topology, and the gain from topology depends on how well the topological features complement the chosen signed graph encoder\.

Table 3:Ablation study: effect of different topological filtration strategies on node clustering ARI on TopoMSGNN and TopoSSSNET\. posTopo means the positive\-subgraph only baseline filtration\. MSGNN\-, SSSNET\-, or Topo\- only means leaving out one branch in the framework\.In addition, we are interested in how different pre\-training tasks may affect the quality of TopoSIGN’s embeddings useful for node clustering\. Table[4](https://arxiv.org/html/2609.25722#A1.T4)provides a comparison of conducting one additional link prediction task\. For signed directed graphs, we additionally consider multi\-task variants in our ablation study

ℒpre=ℒSP\+∑r∈ℛαr​ℒr,\\mathcal\{L\}\_\{\\mathrm\{pre\}\}=\\mathcal\{L\}\_\{\\mathrm\{SP\}\}\+\\sum\_\{r\\in\\mathcal\{R\}\}\\alpha\_\{r\}\\mathcal\{L\}\_\{r\},\(18\)whereℛ\\mathcal\{R\}may include DP, 3C, 4C, and 5C relation\-prediction objectives andαr\\alpha\_\{r\}are hyperparameters \(here we set them to be either 0 or 1\)\. These auxiliary tasks test whether directional or non\-edge discrimination improves downstream clustering transfer\. In addition to our default task SP, in our second task, direction prediction \(DP\), one aims to predict whether\(u,v\)∈ℰ\(u,v\)\\in\\mathcal\{E\}or\(v,u\)∈ℰ\(v,u\)\\in\\mathcal\{E\}under the assumption that exactly one of these two conditions holds\. We also consider three\-, four\-, and five\-class prediction problems\. In the three\-class problem \(3C\), the possibilities are\(u,v\)∈ℰ,\(u,v\)\\in\\mathcal\{E\},\(v,u\)∈ℰ,\(v,u\)\\in\\mathcal\{E\},or that neither\(u,v\)\(u,v\)nor\(v,u\)\(v,u\)are inℰ\\mathcal\{E\}\. For the four\-class problem \(4C\), the possibilities are\(u,v\)∈ℰ\+\(u,v\)\\in\\mathcal\{E\}^\{\+\},\(u,v\)∈ℰ−\(u,v\)\\in\\mathcal\{E\}^\{\-\},\(v,u\)∈ℰ\+\(v,u\)\\in\\mathcal\{E\}^\{\+\}, and\(v,u\)∈ℰ−\(v,u\)\\in\\mathcal\{E\}^\{\-\}\. For the five\-class problem \(5C\), we also add in the possibility that neither\(u,v\)\(u,v\)nor\(v,u\)\(v,u\)are inℰ\\mathcal\{E\}\. In this ablation study, we test SP only against SP plus one of the other tasks\. We can see from Table[4](https://arxiv.org/html/2609.25722#A1.T4)that adding the pre\-training task 3C is generally the most helpful for TopoMSGNN by also considering a class of non\-existing edges to further learn about the graph structure\. On the other hand, SP only seems to perform the second\-best overall\. On TopoSSSNET, however, different additions to SP may have different leading datasets, and having an extra task does boost the TopoSSSNET performance\. For simplicity and due to the unclearness of which extra task is the most helpful, we stick to SP only for our main results\.

Table 4:Pre\-training task ablation: effect of different pre\-training objectives on downstream node clustering ARI after prompt learning for TopoMSGNN\. We report the mean ARI among five runs plus/minus one standard deviation\. The best method is marked inboldwhile the second best is marked withunderline\.
### A\.2Evaluation on Graph Prompting Paradigm

To further investigate the compatibility of our signed topological features with the emerging graph prompting paradigm, we evaluate four representative downstream prompting methods: GPPT, Gprompt, GPF, and All\-in\-One\. In this experiment, the SGE\+Topo part is employed as a fixed backbone to provide structural embeddings, and we compare how different prompt designs affect the final node clustering results\. Comparing Table[5](https://arxiv.org/html/2609.25722#A1.T5)and Table[1](https://arxiv.org/html/2609.25722#S4.T1), we conclude that using our SGE\+Topo indeed boosts the prompt learning frameworks in the signed clustering task\.

### A\.3Extended Ablation Studies and Few\-Shot Experiments

To investigate whether our topological filtration strategies universally enhance baseline performance, we conduct comprehensive ablation studies across all combinations of backbones and downstream prompting frameworks, evaluating models both with and without topological information\. We first evaluate overall performance under standard settings, with results reported in Tables[5](https://arxiv.org/html/2609.25722#A1.T5)–[7](https://arxiv.org/html/2609.25722#A1.T7)\. Furthermore, to assess whether topological features remain effective under data\-scarce scenarios, we conduct few\-shot ablation experiments under 1\-, 3\-, and 5\-shot settings\. The detailed few\-shot results are summarized in Tables[8](https://arxiv.org/html/2609.25722#A1.T8)–[16](https://arxiv.org/html/2609.25722#A1.T16)\.

Table 5:Prompt method comparison: performance of TopoMSGNN, TopoSSSNET, TopoDSGC and TopoSigMaNet combined with different graph prompting strategies\. We report the mean ARI among five runs plus/minus one standard deviation\. The best method is marked inboldwhile the second best is marked withunderline\.Table 6:Prompt method comparison: performance of MSGNN, SSSNET, DSGC and SigMaNet combined with different graph prompting strategies\. We report the mean ARI among five runs plus/minus one standard deviation\. The best method is marked inboldwhile the second best is marked withunderline\.Table 7:Ablation study: performance improvement by adding topological information \(Table 6 minus Table 7\)\. Positive values indicate performance gains due to topological structures, while negative values show performance drops\.Table 8:Prompt method comparison with topological information \(1\-shot with topo\)\. We report the mean ARI among five runs plus/minus one standard deviation\. The best method is marked inboldwhile the second best is marked withunderline\.Table 9:Prompt method comparison without topological information \(1\-shot without topo\)\.Table 10:Ablation study on 1\-shot learning: performance improvement by adding topological information \(1\-shot with Topo minus 1\-shot without Topo\)\. Positive values indicate gains from topology, while negative values indicate performance drops\.Table 11:Prompt method comparison without topological information \(3\-shot with topo\)\. We report the mean ARI among five runs plus/minus one standard deviation\. The best method is marked inboldwhile the second best is marked withunderline\.Table 12:Prompt method comparison without topological information \(3\-shot without topo\)\.Table 13:Ablation study on 3\-shot learning: performance improvement by adding topological information \(3\-shot with Topo minus 3\-shot without Topo\)\. Positive values represent gains from adding topological information\.Table 14:Prompt method comparison with topological information \(5\-shot with topo\)\. We report the mean ARI among five runs plus/minus one standard deviation\. The best method is marked inboldwhile the second best is marked withunderline\.Table 15:Prompt method comparison without topological information \(5\-shot without topo\)\.Table 16:Ablation study on 5\-shot learning: performance improvement by adding topological information \(5\-shot with Topo minus 5\-shot without Topo\)\. Positive values represent gains from adding topological information\.

## Appendix BImplementation details

### B\.1Dataset details

Table[17](https://arxiv.org/html/2609.25722#A2.T17)summarizes the dataset statistics, including the number of nodes, number of ground\-truth clusters, positive and negative edge counts, and average degree for the four synthetic SDSBM settings and the two real\-world signed graph datasets, Rainfall and SP1500\.

Table 17:Dataset summary statistics, where SDSBM results are averaged over five random seeds and we also report one standard deviation\.
### B\.2Setup

Experiments were conducted on one compute node with one Nvidia H100 GPU with driver version 580\.95\.05 and CUDA version 13\.0, 20 Intel\(R\) Xeon\(R\) Platinum 8468 CPUs and234234GB RAM\. Anonymized code and data are provided in[https://anonymous\.4open\.science/r/TopoSIGN/](https://anonymous.4open.science/r/TopoSIGN/)\.

### B\.3Hyperparameters

All experiments use a unified training protocol to ensure fair comparison across methods\. Table[18](https://arxiv.org/html/2609.25722#A2.T18)details the hyperparameter settings\. In particular:

Table 18:Hyperparameter settings used across all experiments\.CategoryHyperparameterValueApplies toArchitectureGNN hidden dim \(dd\)32All GNNsTPL output dim \(dTd\_\{T\}\)32TopoSIGN, TopoDIGSigMaNet hidden \(complex channels\)1SigMaNet onlyGNN layers2All GNNsChebyshev order \(KK\)1MSGNN, TopoSIGN, TopoDIG, GFMsMagnetic charge \(qq\)0\.25MSGNN, TopoSIGN, TopoDIG, GFMsLaplacian normalizationsymmetricAll MSConv\-based modelsDropout0\.5 \(0\.0 for SAMGPT\)AllNode clustering \(baselines\)OptimizerAdamAllEpochs1,000AllLearning rate0\.010\.01AllWeight decay5×10−45\\times 10^\{\-4\}AllEarly stopping patience400 epochsAllGFM pre\-trainingOptimizerAdamAll GFMsEpochs1,000All GFMsLearning rate \(fixed\)10−210^\{\-2\}All GFMsEarly stopping patience400 epochsAll GFMsLink\-sign batch size64All GFMsGFM fine\-tuningOptimizerAdamAll GFMsEpochs100All GFMsEarly stopping patience40 epochsAll GFMsLearning rate \(searched\)\{10−2,5×10−3,10−3,5×10−4,10−4\}\\\{10^\{\-2\},\\,5\{\\times\}10^\{\-3\},\\,10^\{\-3\},\\,5\{\\times\}10^\{\-4\},\\,10^\{\-4\}\\\}selected by val ARIPI computation \(TDA\)kk\-hop neighborhood2TopoSIGN, TopoDIGFiltration max scale10\.0TopoSIGN, TopoDIGPixel size1\.0TopoSIGN, TopoDIGPI grid / feature dim10×10=10010\\times 10=100TopoSIGN, TopoDIGTop\-kklandmarks80TopoSIGN, TopoDIGData splitsNode train set10%AllNode validation set10%AllNode test set80%AllEvaluationTraining seeds5\(\{0,10,20,30,40\}\)\(\\\{0,10,20,30,40\\\}\)AllMetricARI \(mean±\\pmstd\)All

##### Optimizer and training duration\.

All models are trained with the Adam optimizer \(learning rate 0\.01 by default, weight decay5×10−45\\times 10^\{\-4\}, dropout 0\.5\) for up to 1,000 epochs with early stopping \(patience 400 epochs\)\. Pre\-training fine\-tuning stages use a shorter budget of 100 epochs and patience 40\. All metrics are reported as the mean ± standard deviation over 5 independent training seeds \(0, 10, 20, 30, 40\)\.

##### Data splits\.

The graph is split once per dataset instance using deterministic seeds\. For node clustering, each graph is partitioned into 10% train \(seed\) nodes \(labeled for NLL loss\), 10% validation nodes \(for ARI\-based early stopping\), and 80% test nodes \(on which the final ARI is reported\)\.

##### Hyperparameter selection\.

The only tuned hyperparameter is the learning rate during finetuning, searched over\{10−2,5×10−3,10−3,5×10−4,10−4\}\\\{10^\{\-2\},\\,5\{\\times\}10^\{\-3\},\\,10^\{\-3\},\\,5\{\\times\}10^\{\-4\},\\,10^\{\-4\}\\\}\. All other hyperparameters are fixed across all methods and datasets: hidden dimension 32, topological hidden dimension 32, Chebyshev order K=1, magnetic charge q=0\.25, 2 MSConv layers, normalization=’sym’, and persistence\-image pixel size 1\.0\. The best learning rate is selected per method and dataset per seed by validation ARI\. Multiclass node objectives use finite NLL loss on log\-softmax outputs\.

##### Balanced pre\-training mini\-batches\.

During pre\-training, the GFM encoder is trained on the observed signed directed graph𝒢=\(𝒱,ℰ\+,ℰ−\)\\mathcal\{G\}=\(\\mathcal\{V\},\\mathcal\{E\}^\{\+\},\\mathcal\{E\}^\{\-\}\), whereℰ\+\\mathcal\{E\}^\{\+\}andℰ−\\mathcal\{E\}^\{\-\}denote the positive and negative edge sets\. We use all observed edges as the pre\-training pool; no separate link split is held out, because pre\-training is unsupervised and is fully decoupled from the node\-clustering evaluation splits\.

At each pre\-training epoch we construct a mini\-batch of sizeB=64B=64by*stratified sign sampling*: we drawB/2B/2edges uniformly at random fromℰ\+\\mathcal\{E\}^\{\+\}andB/2B/2fromℰ−\\mathcal\{E\}^\{\-\}, yielding a balanced batchℬ=ℬ\+∪ℬ−\\mathcal\{B\}=\\mathcal\{B\}^\{\+\}\\cup\\mathcal\{B\}^\{\-\}with\|ℬ\+\|=\|ℬ−\|=B/2\|\\mathcal\{B\}^\{\+\}\|=\|\\mathcal\{B\}^\{\-\}\|=B/2\. If one sign class is absent \(e\.g\. for unsigned graphs\), we revert to uniform random sampling over all edges\. This balancing is important because real\-world signed networks are often heavily skewed toward positive edges\[[1](https://arxiv.org/html/2609.25722#bib.bib67)\], and an unbalanced batch would bias the binary cross\-entropy loss of the sign\-prediction \(SP\) objective\. Given node embeddings𝐙\\mathbf\{Z\}produced by the frozen backbone, an MLP decoder scores each edge\(u,v\)∈ℬ\(u,v\)\\in\\mathcal\{B\}as positive or negative viay^u​v=σ\(MLP\(\[𝐳u∥𝐳v\]\)\)\\hat\{y\}\_\{uv\}=\\sigma\\\!\\left\(\\text\{MLP\}\(\[\\mathbf\{z\}\_\{u\}\\\|\\mathbf\{z\}\_\{v\}\]\)\\right\), optimized with binary cross\-entropy\. The balanced batch ensures equal gradient contributions from both sign classes\.

The structured auxiliary objectives used in Table[4](https://arxiv.org/html/2609.25722#A1.T4)are derived from the same balanced batchℬ\\mathcal\{B\}, so their class distributions are naturally balanced as well:

- •SP\(sign prediction\)\. Given node embeddings𝐙\\mathbf\{Z\}produced by the frozen backbone, an MLP decoder scores each edge\(u,v\)∈ℬ\(u,v\)\\in\\mathcal\{B\}as positive or negative viay^u​v=σ\(MLP\(\[𝐳u∥𝐳v\]\)\)\\hat\{y\}\_\{uv\}=\\sigma\\\!\\left\(\\text\{MLP\}\(\[\\mathbf\{z\}\_\{u\}\\\|\\mathbf\{z\}\_\{v\}\]\)\\right\), optimized with binary cross\-entropy\. The balanced batch ensures equal gradient contributions from both sign classes\.
- •DP\(direction prediction\)\. The reversed batchℬrev=\{\(v,u\)∣\(u,v\)∈ℬ\}\\mathcal\{B\}\_\{\\text\{rev\}\}=\\\{\(v,u\)\\mid\(u,v\)\\in\\mathcal\{B\}\\\}is constructed by flipping the source and destination indices\. The combined poolℬ∪ℬrev\\mathcal\{B\}\\cup\\mathcal\{B\}\_\{\\text\{rev\}\}\(size2​B2B\) is labeled11for forward and00for reversed edges; the 1:1 ratio is preserved exactly\.
- •3C\(three\-class sign and existence prediction\)\. Non\-edges𝒩\\mathcal\{N\}of size\|ℬ\|\|\\mathcal\{B\}\|are sampled via sparse negative sampling\[[67](https://arxiv.org/html/2609.25722#bib.bib30)\]from node pairs absent inℰ\+∪ℰ−\\mathcal\{E\}^\{\+\}\\cup\\mathcal\{E\}^\{\-\}\. Labels are00\(positive forward\),11\(negative forward\), and22\(non\-edge\), withB/2B/2edges per observed class andBBnon\-edges, giving a14:14:12\\tfrac\{1\}\{4\}\{:\}\\tfrac\{1\}\{4\}\{:\}\\tfrac\{1\}\{2\}class ratio\.
- •4C\(four\-class directed sign prediction\)\. The reversed batch is concatenated to formℬ∪ℬrev\\mathcal\{B\}\\cup\\mathcal\{B\}\_\{\\text\{rev\}\}\(size2​B2B\)\. Labels encode all four sign×\\timesdirection combinations \(positive forward, negative forward, positive reversed, negative reversed\), each of sizeB/2B/2, yielding a perfectly balanced four\-class distribution\.
- •5C\(five\-class directed sign and existence prediction\)\. Non\-edges𝒩\\mathcal\{N\}\(sizeBB\) are added to the 4C pool, giving five classes of sizesB/2B/2,B/2B/2,B/2B/2,B/2B/2,BB; the four observed classes remain balanced\.

The model is pre\-trained for up to1,0001\{,\}000epochs with Adam \(learning rate10−210^\{\-2\}, weight decay5×10−45\\times 10^\{\-4\}\) and early stopping with patience400400on the training loss\. Fine\-tuning uses a separate learning rate selected from\{10−2,5×10−3,10−3,5×10−4,10−4\}\\\{10^\{\-2\},5\\times 10^\{\-3\},10^\{\-3\},5\\times 10^\{\-4\},10^\{\-4\}\\\}via validation ARI, with the pre\-trained weights fixed as the starting point\.

##### Evaluation metric\.

We report Adjusted Rand Index \(ARI\) on the test split \( 80% of nodes\)\. ARI equals 1 for perfect agreement with ground\-truth clusters and 0 for random clustering\.

### B\.4Runtime and Computational Cost

To provide a transparent breakdown of the computational cost, we explicitly report the runtime for preprocessing, model training, and the whole running time:

- •Training and Evaluation Runtime \(After Preprocessing\):Table[19](https://arxiv.org/html/2609.25722#A2.T19)reports the runtime \(pre\-training, prompt\-tuning, and evaluation per run/seed\) for graph prompt learning methods\. Table[20](https://arxiv.org/html/2609.25722#A2.T20)reports the training and evaluation runtime for standard signed GNNs and signed GNNs plus the topological branch in semi\-supervised clustering\.
- •Preprocessing Time:Persistent Image \(PI\) extraction is computed only once as a preprocessing step prior to model training\. The exact preprocessing time per dataset is detailed in Table[21](https://arxiv.org/html/2609.25722#A2.T21)\. Because persistence diagrams are extracted independently for each node’s local ego\-network, this step is easily parallelizable across CPU cores\.
- •Whole Running Time:The total running time for our methods consists of the one\-time preprocessing time in Table[21](https://arxiv.org/html/2609.25722#A2.T21)plus the training and evaluation time in Table[19](https://arxiv.org/html/2609.25722#A2.T19)\(or Table[20](https://arxiv.org/html/2609.25722#A2.T20)\)\. Once topological features are computed and stored, they do not add any computational cost during repeated training, tuning, or evaluation\.

The empirical results reveal a clear and practical trade\-off\. As detailed in Table[21](https://arxiv.org/html/2609.25722#A2.T21), the initial feature extraction takes roughly 2 to 32 minutes for sparse and moderately dense graphs \(e\.g\., Rainfall, SDSBMs\), though it scales up significantly on dense, complete graphs like SP1500\. However, because each node’s ego\-network is processed independently, this upfront whole\-time bottleneck is highly parallelizable across standard CPU cores\.

More importantly, this decoupled design successfully shifts the computational burden away from the iterative model training and evaluation loops\. As shown in Tables[19](https://arxiv.org/html/2609.25722#A2.T19)and[20](https://arxiv.org/html/2609.25722#A2.T20), once the topological summaries are precomputed, ingesting them introduces only a moderate overhead during training\. For instance, incorporating the topological branch typically extends the training time by less than a factor of two compared to the bare signed GNN backbones, keeping the training\-only cost firmly on the order of a few minutes per run\. Consequently, while the whole running time on a newly seen dataset must account for the initial preprocessing phase, any subsequent operations only incur the highly competitive training\-only runtime\. We believe this demonstrates that TopoSIGN achieves performance gains while remaining computationally practical\.

Table 19:Average runtime \(seconds\) per run across different seeds for graph prompt learning methods \(corresponding to Table[1](https://arxiv.org/html/2609.25722#S4.T1)\), covering pre\-training, prompt\-tuning, and evaluationafterpreprocessing\. The shortest time is marked inboldwhile the second shortest time isunderlined\.Table 20:Average training and evaluation runtime \(seconds\) per run across different seeds for signed GNNs and signed GNNs plus the topological branch \(corresponding to Table[2](https://arxiv.org/html/2609.25722#S4.T2)\), excluding one\-time preprocessing\. The shortest time is marked inboldwhile the second shortest time isunderlined\.Table 21:One\-time Persistent Image \(PI\) preprocessing time \(in seconds\) across datasets\. This step is executed once prior to training and can be parallelized across CPU cores\.
### B\.5Parameter Sensitivity Analysis

#### B\.5\.1Sensitivity Analysis on Ego\-Network Radius \(kk\-hop\)

In our main experiments \(Table[1](https://arxiv.org/html/2609.25722#S4.T1)and Table[2](https://arxiv.org/html/2609.25722#S4.T2)\), the topological features are extracted from 2\-hop ego\-networks \(k=2k=2\) with a pixel size of1\.01\.0\. To investigate the sensitivity and robustness of TopoSIGN with respect to the ego\-network neighborhood radius, we evaluate our framework under an expanded 3\-hop context \(k=3k=3,pixel\_size=1\.0\\text\{pixel\\\_size\}=1\.0\)\. Table[22](https://arxiv.org/html/2609.25722#A2.T22)and Table[23](https://arxiv.org/html/2609.25722#A2.T23)present the downstream node clustering ARI for graph prompt learning and semi\-supervised signed GNNs, respectively\. This comparison isolates the impact of higher\-order multi\-hop connectivity patterns against localized neighborhood topology\.

The empirical results reveal a nuanced but consistent trend\. In the prompt learning setting \(Table[22](https://arxiv.org/html/2609.25722#A2.T22)\), increasing the radius tok=3k=3yields highly stable performance with only marginal fluctuations compared tok=2k=2\. In the semi\-supervised setting \(Table[23](https://arxiv.org/html/2609.25722#A2.T23)\), expanding the receptive field tok=3k=3actually brings noticeable ARI improvements on several synthetic datasets \(e\.g\., DSGC\+Topo and SigMaNet\+Topo on SDSBM\-1 to 3\), while maintaining comparable results on real\-world networks like Rainfall and SP1500\.

Despite the performance gains ofk=3k=3on certain baselines, we setk=2k=2as the default in our main experiments to strike an optimal balance between topological discriminability and computational efficiency\. Because a 2\-hop ego\-network is mathematically sufficient to capture the fundamental building blocks of structural balance \(i\.e\., signed triangles and local cycles\), it provides strong structural regularization without incurring the larger offline preprocessing cost required to extract persistence diagrams from 3\-hop dense subgraphs\.

Table 22:Pre\-training and prompt learning performance comparison in terms of downstream node clustering ARI across different ego\-network radii \(kk\-hop\)\. We report the mean ARI among five runs plus/minus one standard deviation\.Table 23:Semi\-supervised node clustering performance \(ARI\) on real\-world and synthetic signed datasets across different ego\-network radii \(kk\-hop\)\. We report the mean ARI among five runs plus/minus one standard deviation\.\(a\)Graph Prompt Learning\(b\)Semi\-Supervised Signed GNNs
Figure 2:Downstream node clustering ARI sensitivity comparison across ego\-network extraction radii \(k=2k=2vs\.k=3k=3\) over diverse datasets\. Solid lines representk=2k=2and dashed lines representk=3k=3\.
#### B\.5\.2Sensitivity Analysis on Persistence Image Resolution \(Pixel Size\)

The discretization resolution of persistence images directly determines the granularity of the vectorized topological representations\. To evaluate model sensitivity to this hyperparameter, we conduct experiments across varying grid resolutions withpixel\_size∈\{0\.1,1\.0,5\.0\}\\text\{pixel\\\_size\}\\in\\\{0\.1,1\.0,5\.0\\\}while keeping the default 2\-hop neighborhood \(k=2k=2\)\. Table[24](https://arxiv.org/html/2609.25722#A2.T24)and Table[25](https://arxiv.org/html/2609.25722#A2.T25)summarize the node clustering performance across pre\-training and semi\-supervised settings\. These results demonstrate the stability of TopoSIGN across a reasonable range of topological feature discretizations and confirm that our framework does not require meticulous resolution tuning to achieve competitive performance\.

The empirical results reveal that while the framework functions across different resolutions, grid granularity does meaningfully impact downstream accuracy\. In the prompt learning setting \(Table[24](https://arxiv.org/html/2609.25722#A2.T24)\), performance remains relatively stable across resolutions with minor fluctuations\. However, in the semi\-supervised setting \(Table[25](https://arxiv.org/html/2609.25722#A2.T25)\), deviating from the default resolution \(pixel\_size=1\.0\\text\{pixel\\\_size\}=1\.0\) noticeably degrades performance on several datasets \(e\.g\., MSGNN\+Topo and SSSNET\+Topo on SDSBM\-3, or MSGNN\+Topo on SDSBM\-4 undersize=5\.0\\text\{size\}=5\.0\)\.

This performance behavior aligns with the inherent mechanics of persistence images and reflects a trade\-off in resolution granularity\. A balanced grid \(pixel\_size=1\.0\\text\{pixel\\\_size\}=1\.0\) acts as an effective topological filter, aggregating nearby persistence points to produce dense, robust structural representations\. Conversely, an overly fine grid \(pixel\_size=0\.1\\text\{pixel\\\_size\}=0\.1\) produces highly sparse feature matrices susceptible to localized topological noise, while an overly coarse grid \(pixel\_size=5\.0\\text\{pixel\\\_size\}=5\.0\) over\-smoothes the topological landscape, sacrificing discriminative fine\-grained structural features\.

\(a\)Graph Prompt Learning\(b\)Semi\-Supervised Signed GNNs
Figure 3:Downstream node clustering ARI sensitivity comparison across persistence image discretization resolutions \(pixel\_size∈\{0\.1,1\.0,5\.0\}\\text\{pixel\\\_size\}\\in\\\{0\.1,1\.0,5\.0\\\}\) over diverse datasets\. Bars from lighter to darker shades denotepixel\_size=0\.1\\text\{pixel\\\_size\}=0\.1,1\.01\.0\(default\), and5\.05\.0, respectively\.Table 24:Pre\-training and prompt learning performance comparison in terms of downstream node clustering ARI across different persistence image pixel sizes\. We report the mean ARI among five runs plus/minus one standard deviation\.Table 25:Semi\-supervised node clustering performance \(ARI\) on real\-world and synthetic signed datasets across different persistence image pixel sizes\. We report the mean ARI among five runs plus/minus one standard deviation\.

### B\.6Ablation Study: Persistent Homology vs\. Explicit Signed Degree Features

To isolate the performance gain specifically contributed by persistent homology compared to non\-topological degree signals, we construct an explicit signed\-degree baseline\. Specifically, for each node, we extract a 2\-dimensional signed net degree descriptor consisting of the net in\-degree and net out\-degree, defined asNet In=di​n\+−di​n−\\text\{Net In\}=d\_\{in\}^\{\+\}\-d\_\{in\}^\{\-\}andNet Out=do​u​t\+−do​u​t−\\text\{Net Out\}=d\_\{out\}^\{\+\}\-d\_\{out\}^\{\-\}\. To stabilize the degree distribution while preserving the directional sign of the net balance, we apply a signed logarithmic compression:sign​\(x\)⋅log⁡\(1\+\|x\|\)\\text\{sign\}\(x\)\\cdot\\log\(1\+\|x\|\)for each dimensionx∈\{Net In,Net Out\}x\\in\\\{\\text\{Net In\},\\text\{Net Out\}\\\}\. We then evaluate the model performance when using this explicit degree representation in place of the persistent homology features\. Tables[26](https://arxiv.org/html/2609.25722#A2.T26)and[27](https://arxiv.org/html/2609.25722#A2.T27)present the downstream node clustering ARI across datasets under the prompt\-based learning and semi\-supervised signed GNN settings, respectively\. This comparison verifies whether multi\-scale homological summaries \(H0H\_\{0\}connectivity andH1H\_\{1\}cycles\) provide structural benefits beyond directional signed net degree statistics\.

Table 26:Pre\-training and prompt learning performance comparison in terms of downstream node clustering ARI\. We report the mean ARI among five runs plus/minus one standard deviation\. Negative difference values inΔ\\Deltaare marked inbold\.Table 27:Semi\-supervised node clustering performance \(ARI\) on real\-world and synthetic signed datasets\. We compare our approach against state\-of\-the\-art signed GNNs\. We report the mean ARI among five runs plus/minus one standard deviation\. The best method is marked inboldwhile the second best is marked withunderline\.

Similar Articles

Dynamic Link Prediction with Temporally Enhanced Signed Graph Neural Networks

arXiv cs.LG

This paper proposes a modular temporal enhancement framework for signed graph neural networks that integrates historical context via a Historical Context Integration Module (HCIM) with LSTM and multi-head temporal attention, achieving consistent improvements on real-world temporal signed networks for dynamic link prediction.

Target-Oriented Pretraining Data Selection via Neuron-Activated Graph

arXiv cs.CL

This paper introduces Neuron-Activated Graph (NAG) Ranking, a training-free framework for selecting pretraining data aligned with target tasks by identifying and ranking candidate data based on similarity in neuron activation patterns. The approach achieves 4.9% average improvement over random sampling and demonstrates that sparse neuron patterns capture functional capabilities for target learning.