acceptodds
Published as a conference paper at NeurIPS 2026

Fast Algorithms for the Label Propagation Operator on Signed Graphs

Yubo Sun, Zhongzhi Zhang

Abstract

Diverse applications on signed networks, ranging from leader-follower opinion dynamics to graph semi-supervised learning, fundamentally reduce to solving the discrete Dirichlet boundary value problem. The computational bottleneck of this problem lies in evaluating the entries of the label propagation operator . While existing approximation methods based on absorbing random walks attempt to address this complexity, they often suffer from high variance and limited precision. To overcome these limitations, we propose MultiTreeQ, a novel and efficient framework designed to approximate the operator's entries with high accuracy. Specifically, MultiTreeQ is constructed based on the Signed Multi-Rooted Spanning Tree and leverages Rao-Blackwellized variance reduction to significantly improve estimation precision. Extensive experiments on real-world networks confirm that MultiTreeQ substantially outperforms existing baselines, scaling to massive graphs with up to 10 million nodes while delivering remarkable improvements in computational efficiency and precision. Our code is available at https://anonymous.4open.science/r/label-propagation-operator-2059/.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Top 24%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.67 over 3 reviews, above 76% of the others.
Reviewer_4mUyOpenReview ↗
Rating
5
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper studies efficient estimation of the label propagation operator on signed graphs, which arises in semi-supervised learning and opinion dynamics. It proposes MultiTreeQ, a sampling-based method using signed multi-rooted spanning trees and variance reduction, and evaluates it against random-walk-based baselines in terms of accuracy, runtime, and scalability.

Strengths and weaknesses

The paper studies an important computational problem in signed graph learning. The proposed method is technically interesting and the paper provides both theoretical analysis and empirical evaluation. The experimental results show that the proposed method can achieve better approximation accuracy than random-walk-based baselines while scaling to large graphs.

However, I think the motivation of the paper could be clearer. The introduction explains that the label propagation operator is related to graph semi-supervised learning and opinion dynamics, but the discussion is still quite abstract. Since the proposed method is technically complex, it would help readers if the authors added a concrete application example in the introduction. For example, the paper could explain how estimating this operator is useful in trust/distrust networks, signed social networks, opinion prediction, or repeated label-propagation queries. This would make the practical significance of the problem easier to understand.

Questions

Please check the Strengths And Weaknesses section.

Limitations

Yes.

Paper formatting concerns

No major issues noticed.

1 comment

Response to Reviewer 4mUy

Thank you for your time and help. Below is our response to your comments.

[Q1] Concrete motivation and downstream application.

We will clarify the interpretation of QQ through the leader-follower DeGroot model on signed networks. In this setting, nodes represent users, signed edges represent trust or distrust, and a small set of stubborn leaders hold fixed opinions yLy_L. The followers' equilibrium opinions are xU=QyLx_U=Qy_L, where QijQ_{ij} quantifies the signed influence of leader jj on follower ii. Estimating QQ therefore supports opinion prediction, leader-specific influence analysis, and repeated evaluations under different leader opinions. We further provide the following concrete downstream application.

On TwitterSG, we randomly select 1% of the nodes as fixed leaders and divide them equally into positive (+1+1) and negative (−1-1) opinion groups. Given K=50K=50, we select KK negative leaders and switch their opinions from −1-1 to +1+1 by solving max⁡S⊆L−,∣S∣=KF(S)\max_{S\subseteq L_-,|S|=K}F(S), where F(S)=∑i∈VUI[(QyL(S))i>0]F(S)=\sum_{i\in V_U}\mathbb{I}[(Qy_L(S))_i>0] is the number of followers with positive equilibrium opinions. Exact enumeration requires evaluating (377050)\binom{3770}{50} subsets and is computationally infeasible. Following the greedy strategy for NP-hard leader-selection problems [49], we initialize S=∅S=\varnothing and repeatedly select the remaining negative leader with the largest marginal gain F(S∪{j})−F(S)F(S\cup\{j\})-F(S) until KK leaders have been selected. Both methods use the same greedy procedure. Since signed influences make FF potentially non-monotone, greedy is used as a scalable heuristic without claiming global optimality.

MethodGainRuntime
CG468801183 s
MTQ46502463 s

With a 1% leader ratio, TwitterSG contains approximately 7,539 leaders and 3,770 negative-leader candidates. CG must solve thousands of right-hand sides to obtain their candidate-specific influence columns. In contrast, MTQ constructs a reusable approximation Q^\hat Q through shared forest samples, after which all marginal-gain evaluations reuse the same operator. We will expand the introduction accordingly to provide a clearer and more concrete motivation for estimating QQ.

Thank you again for your helpful suggestions and valuable insights.

Reviewer_buZMOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper studies fast algorithms for computing entries of the label propagation operator on signed graphs. The operator is Q = -L^{-1}{U,U} L{U,L}, which appears in graph semi-supervised learning and leader-follower opinion dynamics. Direct computation requires matrix inversion and is expensive for large graphs. The paper proposes MultiTreeQ, based on signed multi-rooted spanning trees and Rao-Blackwellized variance reduction, to estimate entries of Q more accurately than signed random walk baselines.

Signed graphs are relevant for social networks, trust/distrust networks, and opinion dynamics. Computing label propagation on signed graphs is also a meaningful algorithmic problem. I think this paper has a real technical contribution: the signed multi-rooted spanning tree interpretation and the variance-reduced estimator are not just a random mixture of methods.

The experiments are also stronger than some of the other papers. The authors evaluate on several real signed graphs and modified signed graphs, including BitcoinAlpha, BitcoinOTC, WikiRfa, Slashdot, Epinions, TwitterSG, Youtube, USPatents, Dblp, and Livejournal. The larger datasets go up to millions of nodes and more than 100M edges. This is a strength of the paper.

However, I have some concerns. First, several of the large datasets are originally unsigned and are converted into signed graphs by randomly assigning negative signs with probability 0.15. This is useful for scalability testing, but it is not the same as real signed-network structure. The paper should separate claims about scalability from claims about signed-graph modeling quality.

Second, the main evaluation is mean absolute error or runtime for approximating Q. This is fine for an algorithmic paper, but the paper motivates the method using opinion dynamics and graph semi-supervised learning. It would be helpful to show at least one downstream task: label prediction accuracy, opinion estimation, leader influence estimation, or robustness under different labeled-node choices. Otherwise it is hard to know how much the improvement in operator estimation matters in actual applications.

Third, the paper compares mainly to signed random walk baselines and their variants. That is likely the most direct baseline, but the paper should better explain why other numerical methods or Laplacian/linear-system solvers are unsuitable in this signed setting, and whether approximate iterative solvers, preconditioners, or sketching methods could be competitive for the final task even if they do not explicitly output all entries of Q.

The method also depends on the labeled set and boundary aggregation. The paper mentions that the Rao-Blackwellized aggregation can become expensive when the labeled set is large. This limitation deserves more analysis because in semi-supervised learning the number of classes/labeled nodes can vary a lot.

The related work is mostly present, but the positioning is still incomplete. The paper already cites GRF/SSL, signed GCNs, signed opinion dynamics, and spanning-forest/PPR sampling. The missing discussion is more about numerical alternatives: when should one approximate explicit entries of Q using MultiTreeQ rather than solve the corresponding signed Laplacian linear systems with iterative solvers, preconditioners, or selected-inverse methods? This distinction is important because the paper’s main claim is algorithmic efficiency, not just signed-graph modeling.

Additional references:

  • Semi-Supervised Learning Using Gaussian Fields and Harmonic Functions. 2003
  • Loss Aversion in Recommender Systems. 2018
  • SelInv: An Algorithm for Selected Inversion of a Sparse Symmetric Matrix. 2011
  • On Computing Certain Elements of the Inverse of a Sparse Matrix. 1975
Strengths and weaknesses

See above

Questions

See above

Limitations

See above

Paper formatting concerns

None

1 comment

Response to Reviewer buZM

Thank you for your time and help. Below is our response to your comments.

[Q1] Dataset clarification.

Since TwitterSG is the largest signed graph available to us, we use the larger modified datasets only for efficiency and scalability evaluation. The datasets marked with * retain the scale, sparsity, and degree distributions of real graphs, while their edge signs are generated with a negative probability of 0.15. This setting follows the negative-edge ratio observed in the benchmark dataset Epinions. We will clarify this distinction in the dataset description.

[Q2] Downstream task.

Computing the propagation operator QQ enables opinion-related optimization tasks, such as leader selection for opinion maximization [49]. We therefore add a downstream experiment on TwitterSG. We randomly select 1% of the nodes as fixed leaders and divide them equally into positive (+1+1) and negative (−1-1) opinion groups. Given K=50K=50, we select KK negative leaders and switch their opinions from −1-1 to +1+1 by solving max⁡S⊆L−,∣S∣=KF(S)\max_{S\subseteq L_-,|S|=K}F(S), where F(S)=∑i∈VUI[(QyL(S))i>0]F(S)=\sum_{i\in V_U}\mathbb{I}\left[(Qy_L(S))_i>0\right] is the number of followers with positive equilibrium opinions.

Exact enumeration requires evaluating (377050)\binom{3770}{50} subsets and is computationally infeasible. Following the greedy strategy for NP-hard leader-selection problems [49], we initialize S=∅S=\varnothing and repeatedly select the remaining negative leader with the largest marginal gain F(S∪{j})−F(S)F(S\cup\{j\})-F(S) until KK leaders are selected. Both methods use exactly the same greedy procedure. Since signed influence makes FF potentially non-monotone, greedy is used as a scalable heuristic without claiming global optimality.

MethodGainRuntime
CG468801183 s
MTQ46502463 s

With a 1% leader ratio, TwitterSG contains approximately 7,539 leaders and 3,770 negative-leader candidates. CG must solve thousands of right-hand sides to obtain their candidate-specific influence columns. In contrast, MTQ constructs a reusable approximation Q^\hat Q through shared forest samples, after which all marginal-gain evaluations reuse the same operator.

[Q3] Applicability of MTQ.

CG/PCG can solve LUUfU=−LULyLL_{UU}f_U=-L_{UL}y_L when the grounded signed Laplacian is positive definite and the Dirichlet problem is well posed. These methods are generally more suitable when only one or a few right-hand sides yLy_L are required. In contrast, MTQ targets a reusable approximation of explicit operator entries: once Q^\hat{Q} is constructed, it can support many QijQ_{ij} queries, comparisons of multiple leaders' influence, and repeated evaluations with different yLy_L on a fixed graph and leader set.

[Q4] More detailed theoretical analysis of Rao--Blackwellized (RB) aggregation.

We provide a more detailed complexity analysis of the RB procedure. The computational cost of MTQ consists of two parts: structural sampling and RB aggregation. The expected structural sampling cost is characterized in Theorem 4.7 by Tr⁡((I−PUU)−1)\operatorname{Tr}((I-P_{UU})^{-1}), which depends on both the proportion and the distribution of labeled nodes. The aggregation cost is governed by the same factors through the structure of the sampled components and their boundaries.

For a sampled SMRST ϕ\phi, removing all edges incident to labeled nodes decomposes the unlabeled nodes into a collection of internal components C(ϕ)\mathcal{C}(\phi). For each component C∈C(ϕ)C\in\mathcal{C}(\phi), let JCJ_C be the set of distinct labeled nodes adjacent, in the original graph, to at least one node in CC, and define a(C)=∣JC∣a(C)=|J_C|. The RB procedure marginalizes over the sampled terminal edge. Consequently, for every node i∈Ci\in C, it updates all output columns corresponding to labels j∈JCj\in J_C. Therefore, component CC induces exactly ∣C∣a(C)|C|a(C) candidate update-loop iterations. Components containing negative cycles contribute no update, for which we set a(C)=0a(C)=0. We define κ(ϕ)=1∣VU∣∑C∈C(ϕ)∣C∣a(C)\kappa(\phi)=\frac{1}{|V_U|}\sum_{C\in\mathcal{C}(\phi)}|C|a(C). Thus, ∣VU∣κ(ϕ)|V_U|\kappa(\phi) is exactly the total number of candidate RB update-loop iterations in sample ϕ\phi, while κˉ=Eϕ[κ(ϕ)]\bar{\kappa}=\mathbb{E}_{\phi}[\kappa(\phi)] measures the expected number of label-output columns updated per unlabeled node.

We next characterize how the boundary size depends on the labeled-node ratio. Let ρ=∣VL∣/∣V∣\rho=|V_L|/|V| denote the proportion of labeled nodes. Suppose that the labeled nodes are selected uniformly without replacement. For any edge, the probability that its two endpoints fall into different partitions is 2∣VL∣∣VU∣∣V∣(∣V∣−1)\frac{2|V_L||V_U|}{|V|(|V|-1)}. Let EL={{u,j}∈E∣u∈VU, j∈VL}E_L=\{\{u,j\}\in E\mid u\in V_U,\ j\in V_L\} denote the set of boundary edges crossing between VUV_U and VLV_L. It follows that E[∣EL∣]=2∣VL∣∣VU∣∣V∣(∣V∣−1)∣E∣=2ρ(1−ρ)∣V∣∣V∣−1∣E∣≈2ρ(1−ρ)∣E∣\mathbb{E}[|E_L|]=\frac{2|V_L||V_U|}{|V|(|V|-1)}|E|=2\rho(1-\rho)\frac{|V|}{|V|-1}|E|\approx 2\rho(1-\rho)|E|. Furthermore, we can derive a deterministic upper bound for κ(ϕ)\kappa(\phi). Let qCq_C be the number of boundary edges incident to component CC, and let smax⁡=max⁡C∈C(ϕ)∣C∣s_{\max}=\max_{C\in\mathcal{C}(\phi)}|C|. Since each distinct adjacent label must be connected to CC through at least one boundary edge, we have a(C)≤qCa(C)\leq q_C. Therefore, κ(ϕ)=1∣VU∣∑C∈C(ϕ)∣C∣a(C)≤smax⁡∣VU∣∑C∈C(ϕ)qC=smax⁡∣EL∣∣VU∣≤∣EL∣\kappa(\phi)=\frac{1}{|V_U|}\sum_{C\in\mathcal{C}(\phi)}|C|a(C)\leq\frac{s_{\max}}{|V_U|}\sum_{C\in\mathcal{C}(\phi)}q_C=\frac{s_{\max}|E_L|}{|V_U|}\leq |E_L|. Therefore, if the component geometry were held fixed, the RB expansion cost would grow approximately linearly with ρ\rho. In the actual algorithm, however, the component geometry also changes with the labeled set. Increasing ρ\rho generally shortens absorption paths and reduces the sizes of unlabeled components. Moreover, multiple boundary edges may connect a component to the same labeled node and therefore correspond to only one output column. As a result, κˉ\bar{\kappa} need not increase linearly with ρ\rho and may instead grow sublinearly or eventually saturate.

Let HL=Tr⁡((I−PUU)−1)H_L=\operatorname{Tr}((I-P_{UU})^{-1}). The expected running time for ll MTQ samples can then be expressed as E[TMTQ]=O(∣E∣+l[HL+∣VU∣(1+κˉ)+∣EL∣])\mathbb{E}[T_{\mathrm{MTQ}}]=O\left(|E|+l\left[H_L+|V_U|(1+\bar{\kappa})+|E_L|\right]\right). Here, ∣E∣|E| accounts for preprocessing, HLH_L characterizes the expected structural sampling cost, ∣VU∣|V_U| accounts for traversing and organizing the sampled unlabeled components, ∣VU∣κˉ|V_U|\bar{\kappa} is the expected RB expansion cost, and ∣EL∣|E_L| accounts for processing the boundary information.

This analysis shows that the dependence on the labeled set is governed by two competing effects. Increasing the number of labeled nodes typically decreases HLH_L by making random walks reach the boundary more quickly, but it may increase the boundary-processing and RB-expansion costs through ∣EL∣|E_L| and κˉ\bar{\kappa}. Although it is difficult to derive an exact time complexity, the effect of varying ρ\rho on the RB aggregation cost is approximately linear.

To more clearly illustrate the effect of each quantity, we additionally report an experiment on BitcoinAlpha. Specifically, we generated one uniform random node permutation and used its prefixes as nested uniform label sets, and report five representative ratios ρ∈\rho\in{1%,10%,30%,50%,70%}. For each ρ\rho, we ran 1,000 shared SMRST samples for MTQ and its no-RB ablation using one Julia thread. We also numerically estimated HLH_L. The observed ∣EL∣\lvert E_L\rvert closely matches its uniform-label expectation and peaks near ρ=50%\rho=50\%, as predicted by 2ρ(1−ρ)∣E∣2\rho(1-\rho)\lvert E\rvert. As ρ\rho increased from 1% to 70%, HLH_L decreased from 4163.93 to 1162.08 and the forest steps decreased from 4124.22 to 1162.59. Mean κ\kappa first increased to 71.65 at ρ=10%\rho=10\% and then decreased to 16.86 at ρ=70%\rho=70\%, confirming that component fragmentation eventually dominates boundary growth. Here, speedup is the ratio between the time required by MTQ w/o RB and that required by MTQ to reach the same target error. The speedup is non-monotone: it decreases to 2.31x at ρ=10%\rho=10\% and then recovers to 4.05x at ρ=70%\rho=70\% as the absorbing set grows.

ρ\rho∣EL∣\lvert E_L\rvertE[∣EL∣]\mathbb E[\lvert E_L\rvert]HLH_LForest stepsMean κ\kappaRB updatesMTQ w/o RB timeMTQ timeSpeedup
1%507481.14163.934124.2220.90178,274.00.473s0.770s24.01x
10%4,3654,351.63692.473687.3471.648243,960.30.803s5.990s2.31x
30%10,15810,161.32810.762810.9134.55791,507.50.643s3.710s2.64x
50%12,20912,096.21970.211970.3222.14341,872.90.482s2.403s3.73x
70%10,21910,161.31162.081162.5916.86019,135.70.217s1.101s4.05x

[Q5] Positioning against numerical alternatives in related work.

Iterative solvers are suitable for computing QyLQy_L with one or a few right-hand sides, whereas MultiTreeQ targets many explicit entries QijQ_{ij} or repeated queries with different yLy_L. Each QijQ_{ij} represents the signed influence of label/leader jj on node ii, supporting influence analysis and leader selection. We will add the suggested numerical-method references and clarify these complementary use cases in related work.

Thank you again for your helpful suggestions and valuable insights.

Reviewer_CQSnOpenReview ↗
Rating
5
Clarity
3
Confidence
2
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper proposes an efficient algorithm for computing the label propagation operator Q on signed graphs, motivated by applications in graph semi-supervised learning and leader-follower opinion dynamics. As direct matrix inversion is computationally infeasible at scale, and standard Laplacian solvers and implicit solving do not apply to signed graphs, the paper introduces the Signed Multi-Rooted Spanning Tree (SMRST), a spanning forest sampling framework where forests are sampled and reweighted by the number of negative cycles they contain to correct for sampling bias, and proves that entries of Q can be expressed as ratios of weighted SMRST sums. Building on this, the authors propose MultiTreeQ, which samples random spanning forests and uses importance sampling to correct for sampling bias introduced by negative cycles, combined with Rao-Blackwellized variance reduction to improve estimation accuracy per sample.

Strengths and weaknesses

Strengths

  1. The presentation is clear and the paper is well-motivated.
  2. Experimental evaluation is thorough, covering accuracy, scalability, and hyperparameter sensitivity across twelve real-world datasets.
  3. The Rao-Blackwellization ablation (MTQ vs MTQ w/o-RB) cleanly isolates and validates the variance reduction contribution.
  4. Code is provided and datasets are all publicly available.

Weaknesses

  1. The heuristic setting of α/β=2\alpha / \beta = 2 makes sense, however it could be better if there is more theoretical or empirical grounding.
  2. The extension to signed graphs is nontrivial but incremental relative to the existing spanning forest sampling literature it builds upon.
Questions
  1. Could the the authors provide empirical estimates of the α/β\alpha / \beta across experimental datasets to validate the α/β=2\alpha / \beta = 2 setting?
  2. It could also be useful to develop an adaptive stopping criteria rather one that was predecided. For example it could be based on empirical variance.
Limitations

Yes

Paper formatting concerns

No such concerns

Final justification

Because the reviewers have addressed the core concerns including the α\alpha/β\beta heuristic and accepted the suggestion for an adaptive stopping approach, I believe that my rating should be updated from 4 to 5 and I have updated accordingly.

1 comment

Response to Reviewer CQSn

Thank you for your time and help. Below is our response to your comments.

[Q1] Empirical grounding of the practical α/β\alpha/\beta setting.
Our initial motivation for setting α/β=2\alpha/\beta=2 was that this ratio equals 1 on structurally balanced graphs, where no negative cycle exists and hence c(ϕ)=0c(\phi)=0 for every sample. Since real-world signed graphs generally contain relatively small proportions of negative edges, we heuristically used 2 to account for deviations from the balanced case.

To examine this choice empirically, we sampled 2,000 SMRSTs with 1% labeled nodes on the BitcoinAlpha and BitcoinOTC datasets. We computed α^obs=max⁡k2c(ϕk)\hat\alpha_{\mathrm{obs}}=\max_k 2^{c(\phi_k)} and β^=12000∑k2c(ϕk)\hat\beta=\frac{1}{2000}\sum_k2^{c(\phi_k)}.

DatasetNegative-edge ratioMaximum c(ϕ)c(\phi)α^obs\hat\alpha_{\mathrm{obs}}β^\hat\betaα^obs/β^\hat\alpha_{\mathrm{obs}}/\hat\beta
BitcoinAlpha6.35%6646.0310.613
BitcoinOTC10.01%951226.3419.438

We will therefore clarify that the value 2 was only a practical heuristic and not an empirical estimate of the theoretical ratio. The graph-dependent α/β\alpha/\beta remains in Theorem 4.4 to provide the formal fixed-budget guarantee. In practical experiments, where this worst-case ratio is difficult to compute and sensitive to rare samples, we will instead use an empirical Bernstein-based adaptive stopping criterion determined by the observed variance.

[Q2] Adaptive stopping criterion.

As discussed in Appendix E.1, a fixed sampling budget can be unnecessarily conservative because the sampling variance varies across graphs. We will therefore add a batchwise adaptive stopping criterion. After an initial burn-in, we estimate the empirical variances of the numerator V=wXijV=wX_{ij} and denominator W=wW=w and construct empirical Bernstein confidence intervals for their expectations. Since Qij=E[V]/E[W]Q_{ij}=\mathbb{E}[V]/\mathbb{E}[W], these intervals are propagated to a confidence interval for each requested QijQ_{ij}. Sampling stops when the maximum confidence-interval half-width over the requested entries falls below the target error ϵ\epsilon. This provides a data-dependent sampling budget based on the observed variance, while the α/β\alpha/\beta-based result in Theorem 4.4 remains the formal worst-case fixed-budget guarantee.

Thank you again for your helpful suggestions and valuable insights.

Comments on the paper

1 comment
Meta-review

This paper proposes a fast method for approximating the label propagation operator on signed graphs using signed multi-rooted spanning tree sampling and Rao-Blackwellization. Experiments on several large graphs show better accuracy and efficiency than random-walk-based methods. The problem is clear, and the SMRST representation, variance reduction, theory, ablations, and large-scale evaluation are strong. The main limitations are the lack of downstream evaluation, limited comparison with numerical linear algebra methods, and insufficient analysis for large labeled sets. These concerns could be addressed through downstream experiments, clearer positioning against iterative solvers and selected inversion, and additional cost analysis. Randomly signed datasets should also be identified clearly as scalability tests.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.