WorksComputer Science
Neural Algorithmic Reasoning for Graph Saddle Point Problems
Abstract
Neural algorithmic reasoning, or aligning a neural network with an algorithmic paradigm, has emerged as an approach to solving polynomial-time-solvable and computationally harder combinatorial optimization problems. We propose a new message-passing framework based on the Chambolle-Pock Primal–Dual Hybrid Gradient (PDHG) method called GraphPDHG for solving general graph saddle-point problems. Theoretically, we show that GraphPDHG can efficiently solve a family of graph saddle-point problems by simulating PDHG. We also show that our network can learn an accelerated PDHG algorithm. Experimentally, we support our results on accelerated PDHG by evaluating the performance of our model as a learned warm start for second-order optimization techniques (SSNAL). We also show that alignment with PDHG leads to stronger size generalization than non-aligned graph neural network (GNN) baselines. Overall, we propose a novel architecture for solving a general family of optimization problems on graphs.
Introduction
Data-dependent methods to learn better and faster approximations to difficult combinatorial optimization problems have become increasingly popular and important for downstream applications like chip design, scheduling, matching, and related applications [3]. Neural algorithmic reasoning (NAR), where neural networks are designed to imitate algorithmic control flows [59, 57, 56], has emerged as a promising technique for improving the accuracy of such models. In the context of graph-structured problems, neural algorithmic reasoning has also been shown to improve out-of-distribution generalization, or the ability of a network to adapt to test instances that are sampled from a different distribution than the training instances [5, 65, 66, 42]. Neural algorithmic reasoning has been shown to be especially effective with respect to size generalization, when the size of the test input graph is larger than the size of the training graphs. By biasing the model toward an algorithm, one hopes that the algorithm will learn a generalizable procedure that will deliver robust results across different problem instances and additionally, avoid expensive handcrafted feature engineering.
In this paper, we leverage neural algorithmic reasoning to design efficient neural models for solving graph-structured (non)convex-(non)concave saddle-point problems, which appear across statistics, signal processing and machine learning [6, 55, 7, 24]. These problems include many standard graph-structured problems, including graph partitioning, convex clustering, and -Wasserstein distance between graphs [24, 67, 27, 7, 11, 45, 49], and are most commonly adopted in problems where one must trade off between a reconstruction error and a regularity penalty under constraints. We are particularly motivated by the Primal–Dual Hybrid Gradient (PDHG) method [6, 47]. Classical PDHG is an iterative general-purpose solver, but its practical performance depends strongly on certain instance-dependent choices (e.g., step sizes, diagonal preconditioning, extrapolation/momentum, stopping criteria) [1, 41, 67]. In the context of graph saddle point problems, when the reconstruction error and regularity penalty admit certain separable structure and are “simple” in the sense of computing their associated proximal operators, PDHG is particularly efficient and amenable to message passing. In contrast to other first-order or second-order methods, such as ADMM [11] or semismooth Newton methods [54], which require solving expensive global subproblems, PDHG can take advantage of the graph structure and only requires simple local message passing updates.
In this paper, we leverage this message passing structure to design a PDHG-inspired message passing neural network (MPNN). Importantly, our neural-PDHG architecture allows us to learn algorithmic parameters to the typical spectra/conditioning and feature statistics of the instances at hand. This is especially valuable when one must solve many related graph problems under tight compute budgets, when good preconditioners are expensive to design, or when one has additional supervision.
To design an efficient neural model to solve these graph saddle-point problems, we are motivated by the Primal–Dual Hybrid Gradient (PDHG) method [6, 47]. Classical PDHG is an iterative general-purpose solver, but its practical performance depends strongly on certain instance-dependent choices (e.g., step sizes, diagonal preconditioning, extrapolation/momentum, stopping criteria) [1, 41, 67]. In the context of graph saddle point problems, when the reconstruction error and regularity penalty admit certain separable structure and are “simple” in the sense of computing their associated proximal operators, PDHG is particularly efficient and amenable to message passing. In contrast to other first-order or second-order methods, such as ADMM [11] or semismooth Newton methods [54], which require solving expensive global subproblems, PDHG can take advantage of the graph structure and only requires simple local message passing updates.
In this paper, we leverage this message passing structure to design a PDHG-inspired message passing neural network (MPNN). Importantly, our neural-PDHG architecture allows us to learn algorithmic parameters to the typical spectra/conditioning and feature statistics of the instances at hand. This is especially valuable when one must solve many related graph problems under tight compute budgets, when good preconditioners are expensive to design, or when one has additional supervision.
Contributions. We introduce GraphPDHG, a message passing GNN scheme inspired by PDHG which can be used to solve general graph saddle-point problems. In contrast to earlier work [43, 23, 35] which targets algorithmic execution for discrete primal–dual schemes in neural algorithmic reasoning, we focus on continuous primal–dual optimization for graph-structured composite objectives defined on point clouds and graphs. Our contributions include:
A message passing PDHG network. We introduce PDHG-inspired graph neural network for graph-based saddle-point problems with convex and nonconvex penalties, which we call GraphPDHG. GraphPDHG is designed to carefully exploit primal–dual saddle structure, while avoiding costly inner solves, and yielding simple, scalable iterations based on sparse graph operators and proximal updates. In Section 3, we introduce a node-edge message-passing layer that operates locally on a graph and is tailored to graph-regularized objectives . We show in Section B.1 that a single layer of GraphPDHG can implement a single step of preconditioned PDHG. We apply our architecture to solving convex clustering.
GraphPDHG and learned acceleration. In § 3.1, we analyze the linearized primal–dual error dynamics induced by the layer and show that in a memoryless regime the update reduces to a preconditioned graph-Laplacian dynamics (Proposition 3.4). Alternatively, with edge memory, the recurrence recovers heavy-ball acceleration [48] (Proposition 3.5).
Empirical performance. We evaluate our model performance with respect to the convex clustering problem. We show that our PDHG-based model produces high-quality warm starts for both PDHG and second-order optimization methods. We further demonstrate that GraphPDHG generalizes better than GNN baselines to test graphs that are larger than those seen during training.
Related work. We give more exposition on the existing literature in the appendix and restrict our attention here to the most relevant prior work. There is a large body of prior work in understanding how neural networks solve a variety of optimization problems from both supervised [15] and unsupervised approaches [30] to mixed neural-algorithmic pipelines [29, 40]. The problems considered range from classical combinatorial optimization problems such as max-independent set and minimum dominating set [39, 52] to semidefinite programs [66]. One of the earliest works to connect neural algorithmic reasoning with duality is [43], where they develop dual algorithmic reasoning frameworks for solving min-cut/max-flow and shortest-path problems. More recently, PDNAR [23] and PDHG-net [35] develop neural frameworks aligned with primal–dual algorithms, focusing on minimum hitting set and linear programming problems, respectively. In contrast to previous work, our model is explicitly designed to handle graph-based optimization problems. We consider a broader class of problems which includes linear, nonlinear, and nonsmooth graph-structured saddle-point problems. Finally, we differ from existing algorithmic reasoning works as GraphPDHG is trained end-to-end to minimize the primal–dual gap in an unsupervised manner, without the need for intermediate supervision or step-by-step algorithmic guidance.
Preliminaries
Graph neural networks. Graph neural networks (GNNs) are neural architectures for graph-structured data [53]. Let be a weighted graph with node features and, optionally, edge features . Intuitively, a message-passing GNN computes new node features at each layer by aggregating information from its neighbors [16, 26]. To be exact, in a generic layer, the feature for a node computed at each layer is
where denotes the neighbors of and is the learned node feature. Since the aggregation and update maps are shared across vertices, a GNN layer can be applied to graphs with different sizes and topologies.
Graph saddle-point problems. We consider problems of the form
where the model is formulated on an undirected graph with positive weights . is commonly a function on vertices and is a function on edges. In the canonical graph-structured setting, is a weighted incidence operator. Fix an arbitrary orientation of each edge and define . Writing for the (signed) incidence matrix of , one can compactly express , so that collects weighted differences across edges.
An equivalent way to express (2) is via its saddle-point (primal–dual) formulation. The Fenchel duality framework gives the equivalent saddle problem
where denotes the convex conjugate of , and . Under standard qualification conditions, (3) has the same optimal value as (2), and saddle points satisfy the KKT system associated with the original problem.
Remark 2.1 (Primal–dual gap). Given the objective , the dual objective is , where and are convex conjugates. The primal–dual gap is
Under the strong duality condition, iff and are the optimal primal and dual variables respectively. Otherwise, the gap is strictly positive and weak duality holds.
Convex clustering. Classical convex clustering (and similarly Network Lasso) of points can be written as a special case of (2). We illustrate this in the Appendix in Table 2. Let the graph have vertices , edge weights for . Define
| Object | Graph interpretation | Convex clustering interpretation |
| node variable | centroid for point | |
| weighted edge difference | discrepancy between neighboring centroids | |
| edge dual variable | fusion forcing term | |
| aggregate incident edge feedback | net force on centroid from incident edges | |
| graph regularizer | penalty encouraging fused centroids | |
| dual constraint/penalty | feasible range of edge tensions | |
| node objective | fidelity / data reconstruction term |
Table 2. Notation: convex clustering as an instance of (2).
where . Then (2) becomes
See the Appendix for more details.
Primal–Dual Hybrid Gradient (PDHG). The preconditioned Primal–Dual Hybrid Gradient (PDHG) method is a popular framework for solving the problem in (3). Generic PDHG iterations alternate between these two local operations. First, the current node variables are compared across each edge, and the corresponding edge dual variable is updated by a proximal or projection step. Second, each node aggregates the updated dual variables on its incident edges and uses this aggregate to update its own primal variable. Thus, PDHG has the same computational pattern as node–edge message passing: node states send differences to edges, and edge states send corrective messages back to nodes. More concretely, a general formulation of the PDHG iterations is given as follows:
Here, and are symmetric positive definite matrices, and the norm for some matrix of a vector is defined by the quadratic . For a given and , the convergence of PDHG is guaranteed if the (inverse) step sizes and satisfy . One key feature of PDHG is that the updates described in (6) and (7) become fully local under certain separability assumptions on and and their associated proximal maps. As we will demonstrate, this observation is the main algorithmic reason for using PDHG as the template for GraphPDHG. While classical PDHG fixes the proximal maps, step sizes, preconditioners, and extrapolation rule, in GraphPDHG, we allow certain parts of the update to be learned, so that the network can adapt its effective preconditioning and acceleration to a family of graph topologies and feature statistics of a problem distribution.
Theorem 2.2 ([47]). Assume and are proper, lower semicontinuous, convex, and that (3) admits a saddle point . Let be generated by (6) and (7) such that
Let and . Then for all ,
where , i.e., the primal–dual gap converges as .
The above theorem also motivates our unsupervised training objective. In particular, in Corollary B.1 in the Appendix, we show that when is strongly convex, the primal–dual gap bounds the distance from the primal iterate to the unique primal optimizer. Thus, even without access to ground-truth solutions or intermediate PDHG iterates, minimizing the gap controls the iterate error. This is one important advantage of GraphPDHG over recent work in NAR, which generally require intermediate layer hints or algorithmic supervision.
Message passing PDHG
The PDHG formulation ((3)) accommodates a broad range of edge penalties. In the separable setting, where , the choice of specifies the coupling prior across edges. In the Appendix, we list a few examples of separable convex and nonconvex edge penalties with simple proximal operators.
We now present our framework using a GNN to simulate the general primal–dual approximation algorithm, representing the primal–dual as node and edge features, respectively.
We adopt the encoder-processor-decoder architecture from [20] implemented in the neural algorithmic reasoning pipeline [57]. In this framework, the processor is taken to be GraphPDHG, operating on the latent space learned by an encoder. The decoder reconstructs the final representation of the solution from the latent space. The framework is trained end-to-end to minimize the primal–dual gap. In this framework, the processor network is meant to execute a general numerical algorithm while the encoder and decoder are simple layers used to transform the data to and from the latent representations required by the processor module to natural outputs. Note that although only the processor part of the pipeline uses our GraphPDHG architecture, we still refer to the entire encoder-processor-decoder with a GraphPDHG processor as GraphPDHG.
Encoder. The encoder architecture of GraphPDHG consists of two MLP encoders, and , which encode the node and edge inputs. These encoders transform the feature inputs into a high-dimensional latent space for the processor:
Processor. A single layer of the processor is defined by
We define a message passing layer for PDHG as follows.
Let be a collection of learnable linear maps and a differentiable nonlinearity. Define
One step of PDHG message passing is defined as
The -layer processor is the composition of PDHG message passing layers. . The layers of the processor can be interpreted as a learnable version of one PDHG step. The matrix controls how much edge-dual information is retained from the previous layer. The matrix controls how node differences are transformed before updating the edge state. The matrices , , and combine the previous node state, the original input features, and the aggregated edge feedback. In classical PDHG, these transformations are fixed scalars (e.g., step sizes) or simple preconditioners; in GraphPDHG, they are learned from a distribution of training graph instances.
Decoder. As with the encoder, the architecture implements two decoders for edges and nodes: , which map from the latent space to the data space. We show in the following theorem that this architecture is universal. If decomposes over nodes, decomposes over edges, and the associated proximal maps are separable, then for any desired accuracy, there exists a choice of parameters with depth bounded by a quantity depending on the spectral norm of the graph Laplacian such that the network achieves an arbitrarily small primal–dual gap. The proof is deferred to the appendix.
Theorem 3.1 (Universality). Let be a target primal–dual gap. There exists a parameter configuration and a depth satisfying
such that the network achieves an ergodic primal–dual gap of at most . Here, is the spectral norm of the weighted incidence matrix.
Feedforward dynamics of GraphPDHG
We have shown that GraphPDHG is expressive enough to implement PDHG. In this section, we will show that our proposed architecture is also capable of learning an accelerated optimization algorithm as compared to vanilla PDHG. Our results here imply that for graphs that exhibit rapid eigenvalue decay, GraphPDHG can learn an accelerated algorithm. We consider the linearized feedforward dynamics of PDHG-inspired message passing. Specifically, we characterize these dynamics under the following set of assumptions:
Assumption 3.2. The layer is operating in the Linear Regime if the following two conditions hold:
The activation function is the identity.
For the projection onto the -ball constraints, there exists a partition of edges . In the linear regime, the projection acts as the identity on .
In the classical analysis of nonlinear proximal methods, the iterates converge in two stages. In the first stage, the set of “active” constraints that lie on the boundary of the feasible set stabilizes [36]. Once this active set is identified, the projection operator simplifies locally to an affine operator [22]. Namely, it acts as the identity for inactive variables and a projection onto the tangent space for active variables. Within this linear regime, the linearization of our framework is characterized by the following updates:
Remark 3.3. Let . In the linear regime, the message passing updates are:
where and are the network parameters, and is some constant. Substituting the edge update into the node update recovers the following recursion:
where is the graph Laplacian.
Analyzing the recursion yields a pair of results. The first result demonstrates that a certain parameterization implies fast convergence on expander-type graphs that exhibit rapid eigenvalue decay. In particular, the result below says that each layer can eliminate a source of error associated with one eigen-direction of the graph Laplacian.
Proposition 3.4 (Memoryless dynamics). Let be the graph Laplacian restricted to the inactive edge set defined in the Linear Regime. Let be the orthonormal eigenpairs of . Define the error matrix .
For any target eigenvalue , there exists a parameterization of the GNN layer such that the error at the next layer, , satisfies . That is, the projection of the error onto the -th eigenspace is eliminated for all feature dimensions.
While this result implies the algorithm learned by GraphPDHG can rapidly converge on graphs with fast eigenvalue decay, the implied theoretical convergence rate is still . Below, we demonstrate that the network has the capacity to learn faster, accelerated algorithms that converge in . In particular, retaining edge memory yields a second-order recurrence which bears a similarity to classical accelerated first-order methods.
Proposition 3.5 (Dynamics with memory). Let the GNN operate in the linear regime with edge memory for some . The primal error dynamics satisfy the second-order recurrence of the Polyak Heavy Ball method [48]:
where is a learnable effective step size matrix.
Corollary 3.6. Consider the simplification for . Then, the worst-case error decays at the accelerated rate for some constant .
The results above imply convergence that is independent of the size of the graph for families of graphs with bounded condition number . This is a unique property of GraphPDHG and is a notable shortcoming of prior NAR works [39]. We improve the rate in Corollary B.3.
Corollary 3.7. Let the GNN operate in the linear regime and let the primal error dynamics satisfy the second-order recurrence of the Polyak Heavy Ball method as in Proposition 3.5. Assume that at the first layer, the solution found by the neural network incurs some error for each vertex. For graphs with bounded condition number , there is a parameter configuration for a depth GNN such that .
PDHG for convex clustering
Here, we use convex clustering ((5)) as a case study for how our GraphPDHG framework can be directly applied. As previously noted, convex clustering is an important continuous relaxation of the clustering objective where one must balance between a reconstruction objective and a fusion penalty. This makes it a natural choice for PDHG to solve. We derive the explicit message passing form of PDHG for convex clustering. This message passing form can then be directly used in our GraphPDHG framework to derive a neural version of PDHG for convex clustering.
For the choice of implied by the convex clustering objective in (5), the convex conjugate is
For the quadratic term, , the convex conjugate, used in (4), is
We now specialize the preconditioned PDHG iterations to this problem. Let and be symmetric positive definite, and let be the (inverse) step sizes. Recall the generic PDHG updates (6) and (7). To obtain local message passing updates, we choose node- and edge-wise preconditioners and , with , symmetric positive definite blocks. Then the proximal operator ((7)) decouples over edges and simplifies, for each :
where denotes the extrapolated primal variable (e.g., ), and for .
Similarly, (6) decouples over vertices. The first-order optimality condition for each yields
where . Thus each primal update is a local linear transform of the previous iterate, the data , and the aggregated dual variables on incident edges.
Remark 3.8. A particularly simple choice is , , , , for step sizes satisfying . In this case, (8) and (9) simplify to the explicit message passing
Experimental Results
In our experiments, we focus on two main questions: Can a PDHG-aligned model provide effective learned preconditioners or warm starts for generic optimization algorithms? Does alignment with Primal–Dual Hybrid Gradient (PDHG) promote size generalization? Warm-starting is especially important for graph-structured optimization problems, as classical solvers such as PDHG and semismooth Newton methods exhibit runtime that depends nontrivially on the quality of the initial primal and dual variables. We use GraphPDHG to amortize high-quality initializations over a distribution of related graphs by producing primal–dual variables that are already near the relevant saddle point or have approximately identified the correct fused-edge structure. In our experiments, we demonstrate GraphPDHG’s utility for convex clustering (see § 3.2). See our appendix for all experimental details including experiments on other saddle-point problems.
To evaluate GraphPDHG on multi-scale geometric graphs, we use a synthetic hierarchical Gaussian cluster dataset, and three image datasets. The hierarchical Gaussian cluster dataset consists of graphs whose node features are sampled from a recursive Gaussian hierarchy. For the image datasets, we consider -nearest neighbor graphs generated using features from MNIST [13], Fashion-MNIST [61], and CIFAR-10 [34].
We train GraphPDHG using the primal–dual gap ((4)). By Corollary B.1, the primal–dual gap is an upper bound on the distance to the optimal solution, so a small gap implies that the predicted primal variables are close to optimal. Minimizing the primal–dual gap allows us to train the model in an unsupervised manner without requiring exact solutions or step-by-step algorithmic supervision. We observe that this theoretical relationship is reflected empirically. See Figure 1. We also note that our theoretical results assume ergodic iterates. In our experiments we use the last layer readouts.
Figure 1. Tracking the primal–dual gap and the distance between the predicted and optimal primal variables throughout training. The iterate error shrinks as the gap shrinks.
We compare against several standard message-passing GNN baselines: GCN [33], GAT [58], GIN [63], GraphSAGE [19], and EdgeConv [60]. For each baseline, we keep the same encoder–processor–decoder template and replace only the GraphPDHG processor with the corresponding GNN processor. All models were trained using the same primal–dual gap objective and experimental protocol.
Initializing a High-Accuracy Solver with GraphPDHG. We evaluate GraphPDHG as a learned warm start for the semismooth Newton augmented Lagrangian method (SSNAL), a state-of-the-art second-order solver for convex clustering [54]. Rather than replacing SSNAL, GraphPDHG provides initial primal–dual variables that are passed to the classical solver. We measure whether this initialization reduces the iterations required to reach a target primal–dual gap, indicating that the network has learned useful problem structure such as the approximate fused or active dual-edge variables. We note that although GraphPDHG is aligned with PDHG, SSNAL is a robust high-accuracy solver whose performance benefits from an initialization that is close to the optimal primal–dual solution. Thus, we focus our experiments on SSNAL.
The results are summarized for the hierarchical Gaussian dataset in Figure 2. GraphPDHG provides a better warm-start than both simply initializing from the data or initializing from the baseline GNN outputs. The performance converges at higher as all methods snap to the trivial solution (i.e., the grand mean in the center). The results for the image datasets are shown in

Figure 2. Warm-starting SSNAL for the hierarchical Gaussian dataset. Left: Time (seconds) to recover a primal–dual gap . Middle: The primal–dual gap of different network initializations as increases. Right: For each initialization method, the fraction of validation graphs for which SSNAL reaches a primal–dual gap of at least as fast as the best-performing method.
Table 1 where we record the number of iterations needed to reach different target primal–dual gap values. We show GraphPDHG initialization reduces the number of iterations SSNAL needs to converge.
| Dataset | Method | , | , | , | , | , | , |
| MNIST | Data | 2.0 ± 0.0 | 11.6 ± 4.8 | 11.6 ± 4.8 | 2.0 ± 0.0 | 6.4 ± 2.6 | 6.4 ± 2.6 |
| GIN | 2.0 ± 0.0 | 12.0 ± 5.8 | 12.0 ± 5.8 | 2.2 ± 0.3 | 8.7 ± 4.8 | 8.7 ± 4.8 | |
| GCN | 2.0 ± 0.0 | 13.4 ± 6.8 | 13.4 ± 6.8 | 2.2 ± 0.2 | 8.5 ± 4.7 | 8.5 ± 4.7 | |
| GAT | 2.0 ± 0.0 | 7.0 ± 3.4 | 7.0 ± 3.4 | 2.4 ± 0.2 | 9.1 ± 5.1 | 9.1 ± 5.1 | |
| GraphSAGE | 2.0 ± 0.0 | 8.8 ± 4.5 | 8.8 ± 4.5 | 2.2 ± 0.2 | 7.4 ± 3.8 | 7.4 ± 3.8 | |
| EdgeConv | 2.0 ± 0.0 | 6.4 ± 3.0 | 6.4 ± 3.0 | 2.1 ± 0.2 | 6.4 ± 2.9 | 6.4 ± 2.9 | |
| GraphPDHG | 2.0 ± 0.0 | 4.7 ± 2.1 | 4.7 ± 2.1 | 2.0 ± 0.0 | 5.6 ± 2.3 | 5.6 ± 2.3 | |
| Fashion-MNIST | Data | 5.4 ± 0.4 | 12.3 ± 4.9 | 12.3 ± 4.9 | 5.2 ± 0.4 | 11.4 ± 4.4 | 11.4 ± 4.4 |
| GIN | 5.5 ± 0.6 | 14.5 ± 6.8 | 14.5 ± 6.8 | 5.3 ± 0.7 | 14.0 ± 6.8 | 14.0 ± 6.8 | |
| GCN | 5.4 ± 0.6 | 13.6 ± 6.5 | 13.6 ± 6.5 | 5.2 ± 0.6 | 13.1 ± 6.3 | 13.1 ± 6.3 | |
| GAT | 6.7 ± 1.2 | 17.8 ± 8.1 | 17.8 ± 8.1 | 6.4 ± 1.3 | 21.3 ± 9.9 | 21.3 ± 9.9 | |
| GraphSAGE | 5.3 ± 0.5 | 12.0 ± 5.2 | 12.0 ± 5.2 | 5.1 ± 0.5 | 11.8 ± 5.0 | 11.8 ± 5.0 | |
| EdgeConv | 5.2 ± 0.5 | 10.8 ± 4.7 | 10.8 ± 4.7 | 5.0 ± 0.5 | 10.6 ± 4.8 | 10.6 ± 4.8 | |
| GraphPDHG | 5.1 ± 0.4 | 9.9 ± 4.3 | 9.9 ± 4.3 | 4.9 ± 0.4 | 9.4 ± 4.2 | 9.4 ± 4.2 | |
| CIFAR-10 | Data | 2.3 ± 0.4 | 5.8 ± 2.4 | 5.8 ± 2.4 | 2.2 ± 0.4 | 5.4 ± 2.1 | 5.4 ± 2.1 |
| GIN | 2.5 ± 0.6 | 6.8 ± 4.0 | 6.8 ± 4.0 | 2.4 ± 0.6 | 6.5 ± 3.7 | 6.5 ± 3.7 | |
| GCN | 2.5 ± 0.6 | 6.3 ± 3.7 | 6.3 ± 3.7 | 2.4 ± 0.6 | 6.1 ± 3.4 | 6.1 ± 3.4 | |
| GAT | 2.5 ± 0.6 | 12.5 ± 6.6 | 12.5 ± 6.6 | 2.4 ± 0.6 | 15.0 ± 7.3 | 15.0 ± 7.3 | |
| GraphSAGE | 2.4 ± 0.5 | 6.0 ± 3.0 | 6.0 ± 3.0 | 2.3 ± 0.5 | 5.9 ± 2.9 | 5.9 ± 2.9 | |
| EdgeConv | 2.3 ± 0.4 | 5.5 ± 2.3 | 5.5 ± 2.3 | 2.2 ± 0.4 | 5.2 ± 2.2 | 5.2 ± 2.2 | |
| GraphPDHG | 2.3 ± 0.4 | 5.1 ± 1.9 | 5.1 ± 1.9 | 2.1 ± 0.4 | 4.8 ± 1.8 | 4.8 ± 1.8 |
Table 1. First-hit times for different initialization methods. Entries report mean ± standard deviation over runs. The best result is bold. Median hit times and ablations are reported in the Appendix.
Size generalization. We evaluate the size generalization of all neural network methods by measuring the primal objective value of the predicted initialization from each network on increasingly large graphs. The results are summarized in Figure 3 across all datasets. For all datasets, GraphPDHG achieves substantially lower primal objective values than the GAT and GCN baselines as the graph size increases. This suggests that GraphPDHG generalizes more effectively to larger problem instances. We attribute this behavior to the alignment of GraphPDHG with PDHG. By explicitly mirroring the structure of PDHG, GraphPDHG appears to learn a general rule for initialization that transfers more robustly than GAT or GCN across graph sizes.
Figure 3. Size generalization for each dataset. We track the primal objective as the size of the test graphs increases for all datasets. Note that we test at a fixed for all graphs.
Conclusion
In this paper, we introduced GraphPDHG, a primal–dual message-passing framework for graph-structured saddle-point problems. The central observation is that PDHG has the same computational structure as node-edge message passing. Theoretically, we showed that the proposed architecture can exactly represent preconditioned PDHG updates and that its linearized dynamics admit interpretations in terms of the Laplacian spectrum and acceleration. Empirically, we demonstrated the effectiveness of GraphPDHG on convex clustering problems, where the model improves size generalization and provides useful warm starts for classical solvers. These results suggest that learned primal–dual message passing can serve not only as a standalone approximation method, but also as a mechanism to accelerate classical optimization algorithms.
AI use statement
In this work, we used generative AI tools for editing and writing tasks. Additionally, while the experimental pipeline was written by the authors without the use of AI tools, we used generative AI tools running experiments and writing code to create figures. We have reviewed all AI-assisted work. All LLM-generated code was verified and tested for correctness by two authors. We take responsibility for the final content of this work, including text, claims or artifacts produced with the aid of generative AI.
Appendix
Convex clustering
Many familiar models arise as instances of (2). For example, choosing the function (or its square) for edge-wise weights yields a penalty used in semi-supervised learning, network lasso, and convex clustering. Similarly, choosing (or other norms) yields a graph total-variation penalty that appears in graph cuts [50] and graph TV denoising.
In this paper, we focus on the particular case of convex clustering. Convex clustering [12] is a continuous relaxation of clustering in which each data point is assigned a learnable representative (i.e., centroid), . The objective balances two goals: each centroid should remain close to its original data point, while centroids connected by large graph weights should be encouraged to coincide via a nonsmooth term in the objective. The regularization parameter controls this tradeoff. For small , the centroids remain close to the input points; as increases, neighboring centroids fuse into common representatives, producing a hierarchy of coarser clusterings. This solution path is illustrated in Figure 4.
Figure 4. Solutions for convex clustering ((5)) as increases on a -NN graph for hierarchical Gaussians.
More concretely, classical convex clustering (and similarly Network Lasso) of points can be written as a special case of (2). We illustrate this in Table 2. Let the graph have vertices , edge weights for . Define
where . Then (2) becomes
which is the standard convex clustering objective (with the cluster centroids). Here, can be thought of as the reconstruction error and as the regularity penalty. Generally, (5) is solved using variable substitution or splitting methods [11] or dual projected gradient methods [46]. Recently, semismooth second-order methods have also been proposed [54]. In the main text of our paper, we derive the PDHG updates for this problem and demonstrate how these updates are computationally amenable to local message passing.
Related Work
Optimization problems on graphs and primal–dual algorithms. Graph-structured optimization problems date back 20 years. The fused lasso is based on total-variation (TV) distances on a chain graph [55], while the network lasso extends TV-style coupling to general graphs for prediction and clustering [18]. Closely related are the family of convex clustering problems on point clouds [11, 7, 8]. These problems introduce continuous representatives, “centroids” for each sample and promote fusion along a similarity graph. Related applications include optimal transport on graphs, including linear, nonlinear, and constrained variants [45]—and two-player matrix games on graphs [2]. On the learning side, TV-based semi-supervised learning on graphs has been studied both statistically and algorithmically [28, 27], and TV-inspired GNN layers have been used as inductive biases for clustering and pooling [21].
A complementary body of work studies nonconvex penalties as surrogates for -type objectives, including Smoothly Clipped Absolute Deviation (SCAD) [14] and the Minimax Concave
Penalty (MCP) [68]. Algorithmically, coordinate-descent and proximal methods for these penalties have been studied in depth [4], and theoretical analyses highlight settings where nonconvex regularization can achieve stronger support recovery guarantees [37, 38]. More recently, convex–nonconvex constructions have been proposed for graph TV to encourage edge preservation while maintaining global tractability [25].
Many of these objectives can be written as composite problems of the form with a (weighted) incidence operator. As we will see, one can also consider an equivalent saddle point representation of the form . The Primal–Dual Hybrid Gradient (PDHG) method [6] is a standard first-order approach for such saddle-point formulations, and its practical efficiency often hinges on conditioning and step-size selection [1]. Notably, combinatorial preconditioning schemes exploit graph structure to accelerate proximal algorithms for graph-TV-type problems [41, 67].
Loop unrolling and neural algorithmic reasoning. A large literature on learned unrolling turns iterative optimization methods into trainable architectures by learning parameters such as step sizes, thresholds, or preconditioners [17, 69, 62, 64, 9, 51]. On graphs, GNNs have also been designed to mimic classical iterative algorithms and inherit stability/contraction properties [65], while neural algorithmic reasoning (NAR) aims to learn execution traces of algorithms and generalize to larger inputs [59, 57, 56, 42]. Beyond generic NAR, duality-based formulations have been proposed to jointly learn paired algorithms (e.g., max-flow/min-cut) [43], and a recent primal–dual NAR benchmark aligns primal/dual variables with a bipartite message-passing representation [23].
Most closely related to this work are learned primal–dual and PDHG-inspired networks. PDNAR [23] and PDHG-Net [35] both derive unrolled primal–dual iterations for GNNs and show that sufficiently expressive parameterizations can recover classical PDHG updates. More concretely, PDNAR investigates simulation of discrete primal–dual approximation algorithms using a bipartite primal/dual representation and additional supervision obtained by running classical PDHG. PDHG-Net is closer algorithmically, but it is specialized to linear programs. In particular, PDHG-Net requires constraints specific to the LP formulations considered in [35]. The problems we consider do not naturally fit within that framework, so PDHG-Net cannot be used as a processor network in our architecture. In contrast, our framework targets generic saddle-point problems and learns directly from the primal–dual gap, without additional supervision. The mechanism is a graph-local message-passing realization of preconditioned PDHG designed for generic nonlinear and nonsmooth objectives of the form . We also provide theoretical results that interpret the learned updates and size generalization through the lens of preconditioning and acceleration. In a broader optimization-on-graphs context, OptGNN demonstrates that message passing can mimic relaxation-based solvers for Max-CSPs [66], and surveys catalog many combinatorial-optimization uses of GNNs [5]. Our contribution is complementary: we target generic graph-structured composite convex objectives and give an explicit correspondence between standard message-passing layers and preconditioned PDHG as well as connect learned dynamics to classical acceleration ideas such as heavy-ball momentum [48].
Other penalties and their proximal maps (NORMALIZE)
Because the edge penalty is separable,
both and its proximal map are also separable across edges. Therefore, the normalization operator
acts edgewise, and it suffices to compute the map for a single edge.
In this section we suppress the edge index and write for a generic penalty on . See Table 3 for several examples of convex and non-convex penalties. We derive associated proximal below.
Table 3. Examples of separable convex and nonconvex penalties.
Convex penalties
For any norm with dual norm , consider
Its convex conjugate is the indicator onto the dual norm ball [44]:
Consequently,
which is simply the Euclidean projection onto the dual norm ball and is independent of .
penalty Let . Then, , and
penalty Let . Then, , and the NORMALIZE map is the coordinatewise clipping
penalty Let . Then, , and
Nonconvex penalties
The previous rules rely on convex duality. For nonconvex penalties, the standard convex-conjugate PDHG formulation no longer applies directly. Here, we define the NORMALIZE map using the direct proximal map
Below we describe two simple examples.
penalty Consider
The proximal problem is
The solution set consists of two relevant candidates: and . Their objective values are
Therefore, the proximal map is the thresholding rule:
Clipped Let
Since is separable, the proximal map acts coordinatewise. The resulting scalar prox is a soft-thresholding rule up to the clipping level, and equals the identity beyond that level:
MCP Let
where
Because is radial, is collinear with , so the problem reduces to a one-dimensional minimization in the radius. This gives the group firm-thresholding map
Additional Experiments and Experimental Details
All models were constructed using PyTorch and PyTorch-Geometric. Each model was trained for 500 epochs on a training set consisting of 1000 graphs with 100 nodes each. All models were trained on 8 NVIDIA RTX A6000 GPUs. Additionally, all models were trained using the ADAM optimizer [31] provided in PyTorch and trained using a learning rate of 0.001.
We note that since the GNN baselines output node states rather than an explicit primal–dual pair, we construct a surrogate dual variable for these baselines from the predicted primal variables by taking pairwise differences across edges in order to train against the primal–dual gap (i.e. the dual variable estimate is the projected variable where are learned node features). These baselines test whether the gains of GraphPDHG can be explained by generic message passing alone. GIN, GraphSAGE, GCN, and GAT are node-state message-passing architectures with different aggregation mechanisms, while EdgeConv uses pairwise edge messages based on local feature differences.
Detailed dataset descriptions.
Here, we give more detailed exposition on how each graph dataset was constructed.
Hierarchical Gaussian Clusters Benchmark To empirically evaluate GraphPDHG on multi-scale geometric graphs, we introduce the Hierarchical Gaussian Benchmark.
The dataset consists of graphs and node features sampled from a recursive Gaussian hierarchy. Each node in the hierarchy at level has children. Starting from a root node , children are sampled recursively according to
where indexes a node at level and is the standard deviation associated with level . At the leaves of the hierarchy, node features are sampled as
where denotes the path from the root to a leaf. Thus, each point has a hierarchical label corresponding to its full path in the latent tree, rather than a single flat cluster assignment. The total number of nodes is
where is the number of sampled points per leaf.
Given the sampled features, the graph topology is induced geometrically by constructing a -nearest neighbor graph with Gaussian edge weights.
Image datasets For MNIST and Fashion-MNIST, we used variational autoencoders with 3 fully connected layers of sizes (784,400,20) and (784,400,30), respectively, followed by a symmetrically defined decoder. The autoencoder was trained for 100 epochs on each dataset. The autoencoder architecture, loss, and training are similar to (author?) [32]. For CIFAR-10, we utilize publicly available SimCLR embeddings [10].
For each dataset, we construct subgraphs over the latent feature space. We used all available data to construct the graph, with nodes for MNIST and Fashion-MNIST, and nodes for CIFAR-10. The graph was constructed as a -nearest neighbor graph with Gaussian edge weights given by
where are the latent variables for image , and is the distance in the latent space between and its nearest neighbor. We used in all experiments and symmetrize . In order to generate graphs for training, we subsample graphs of 100 nodes from the overall -nearest neighbor graph.
Additional experiments on convex clustering
In this section we provide additional results and illustrations of results presented in the main text. We provide further results on image datasets as well as an additional ablation on the edge memory component of GraphPDHG, a comparison of the empirical convergence rate versus the theoretical convergence rate, and an accounting of the computational costs of GraphPDHG.
Further results on image datasets In Table 4, we demonstrate the effectiveness of GraphPDHG for generating solutions with low primal–dual gap for each image dataset. Since all models were trained using the primal–dual gap, this measure directly measures whether the network produces a primal–dual pair that is close to satisfying the optimality conditions of the convex clustering problem. A lower initial gap is especially important for warm-starting subsequent solvers, since it indicates that the subsequent solver begins from a more informative primal–dual state rather than from a generic initialization.
| Dataset | Method | ||
| MNIST | GAT | 1931.7 1274.4 | 2167.9 1544.4 |
| GIN | 15.0 4.5 | 98.0 30.0 | |
| GCN | 12.6 3.1 | 89.0 24.9 | |
| GraphSAGE | 11.0 2.8 | 82.0 23.0 | |
| EdgeConv | 9.0 2.0 | 74.0 18.0 | |
| Unrolled PDHG | 64.3 28.1 | 143.2 59.3 | |
| GraphPDHG (- projection) | 20.4 4.6 | 110.4 41.3 | |
| GraphPDHG | 7.3 1.3 | 69.5 14.8 | |
| Fashion-MNIST | GAT | 700.6 541.8 | 764.3 530.1 |
| GIN | 12.5 5.0 | 95.0 31.0 | |
| GCN | 10.0 3.5 | 84.6 23.5 | |
| GraphSAGE | 8.8 3.2 | 78.0 22.0 | |
| EdgeConv | 7.3 2.4 | 69.0 18.0 | |
| Unrolled PDHG | |||
| GraphPDHG (- projection) | 20.4 19.1 | 104.3 27.8 | |
| GraphPDHG | 6.1 1.7 | 64.2 14.9 | |
| CIFAR-10 | GAT | 27467.9 3160.2 | 27693.4 3256.8 |
| GIN | 3300.0 3200.0 | 3450.0 3100.0 | |
| GCN | 3098.7 3179.2 | 3244.3 3017.8 | |
| GraphSAGE | 2950.0 2600.0 | 3100.0 2550.0 | |
| EdgeConv | 2750.0 1200.0 | 2900.0 1150.0 | |
| Unrolled PDHG | |||
| GraphPDHG (- projection) | 2978.5 74.7 | 3057.3 83.1 | |
| GraphPDHG | 2622.2 74.2 | 2741.3 79.3 |
Table 4. Primal–dual gap at initialization on image-derived convex clustering instances. Entries report mean standard deviation over runs. Lower is better, and the best result for each dataset and weight is bolded.
Across all datasets and both levels, GraphPDHG achieves the lowest mean primal–dual gap. Both GAT and GCN exhibit a lack of explicit edge-state propagation. Compared with GAT, the improvement of GraphPDHG is particularly pronounced. Compared with GCN, GraphPDHG consistently improves the initialization quality, reducing the mean gap by approximately 42% and 22% on MNIST for and , respectively, and by approximately 39% and 24% on Fashion-MNIST. On CIFAR-10, all methods have larger variance, reflecting the greater difficulty and heterogeneity of the instances, but GraphPDHG still gives the best average initialization for both regularization levels. These results support our claim that the PDHG-aligned node-edge architecture learns more useful primal–dual structure than node-only GNN baselines.
The ablations in Table 4 further clarify which parts of the architecture are responsible for the improvement. The “Unrolled PDHG” baseline tests whether simply embedding a fixed number of classical PDHG iterations is sufficient to produce a useful initialization. Although this baseline is algorithmically aligned with the target solver, it performs worse than GraphPDHG in all cases and is especially unstable on Fashion-MNIST and CIFAR-10. This suggests that fixed unrolling alone does not provide enough adaptivity across graph instances; the learned message-passing parameters in GraphPDHG are important for producing low-gap primal–dual states within a small number of layers.
The “GraphPDHG (- projection)” ablation removes the explicit projection/normalization step in the edge update. This ablation isolates the role of maintaining dual feasibility through the PDHG-inspired edge map. Removing this projection substantially degrades the initialization quality. On MNIST, the full model reduces the mean gap relative to this ablation by approximately 64% for and 37% for . On Fashion-MNIST, the corresponding reductions are approximately 70% and 38%, while on CIFAR-10 they are approximately 12% and 10%. These results indicate that the projection is not merely a cosmetic architectural constraint: it helps the network produce dual variables that are better aligned with the feasible dual geometry of convex clustering.
These ablations indicate that the performance of GraphPDHG is not explained solely by using a node–edge architecture or by unrolling a known optimizer. The best results require both learned primal–dual message passing and the PDHG-inspired edge projection. This supports the central design principle of GraphPDHG: preserving the algorithmic structure of PDHG while allowing the local update maps to adapt to the graph and feature distribution.
Figure 5 compares the downstream effect of different initializations on SSNAL across MNIST, Fashion-MNIST, and CIFAR-10. The left column reports the mean first-hit iteration: the first SSNAL iteration at which the primal–dual gap falls below a prescribed threshold. Thus, lower curves indicate that the initialization allows SSNAL to reach a certified solution in fewer iterations. Across all three datasets, GraphPDHG yields the fastest or near-fastest convergence, with the largest gains appearing at stricter gap thresholds. The right column reports the primal–dual gap of the neural initialization before SSNAL refinement. GraphPDHG produces consistently lower initial gaps than the GAT and GCN benchmarks, supporting the claim that explicitly maintaining edge-dual states yields more informative primal–dual warm starts. CIFAR-10 is more variable, but the same qualitative trend remains: GraphPDHG gives a lower initial gap and reduces the number of SSNAL iterations needed for high-accuracy refinement.

Figure 5. Comparing initializations. Left Column: Mean number of iterations of SSNAL to reach a primal–dual gap . Right Column: Primal-dual gap at initialization. Top: MNIST. Middle: Fashion-MNIST. Bottom: CIFAR-10.
Ablations on edge memory of GraphPDHG We performed additional ablations on the edge memory component of GraphPDHG for several values of on the hierarchical Gaussians dataset and record the median first hit for a threshold of below. By first hit, we mean the first iteration where each method reaches below the threshold. Notice that without edge memory, GraphPDHG have a higher median first hit than with edge memory for lower . They have a comparable median hit rate as grows. However, this is because as grows, the convex clustering objective collapses into a single point (the global mean) and most baselines can find this degenerate solution. Nevertheless, this ablation points to the importance of the edge component of GraphPDHG (representing the dual variable) is essential for the performance of the method.
Empirical convergence rate versus accelerated convergence rate In Table 6, we compare the empirical primal-dual gap achieved by GraphPDHG on a dataset of expander graphs (with ), together with the accelerated and standard theoretical convergence rates for PDHG. Note that in Table 6 indicates the iteration number for PDHG and the corresponding processor layer for GraphPDHG.
| GraphPDHG empirical gap | PDHG empirical gap | Accelerated theory | PDHG theory | |
| 1 | 1.00 | |||
| 2 | ||||
| 4 | ||||
| 8 | ||||
| 12 | ||||
| 16 |
Table 6. Empirical gaps and theoretical convergence rates on expanders with .
We observe that on the expander graphs, GraphPDHG reduces the median relative primal-dual gap below using only two processor layers, while canonical PDHG first reaches this threshold at 12 iterations. GraphPDHG is the top performing method through depth 14, with the two methods becoming comparable by depth 16. For the median full-Laplacian condition number , the accelerated theoretical factor described in the main text is , illus-
trating geometric decay compared with PDHG’s normalized ergodic-rate shape. We believe that the gains begin to plateau at larger values of because increasing increases the depth of the message-passing network, making optimization more difficult. In practice, GNNs are often shallow (with relatively few message-passing layers), as deeper architectures can be susceptible to oversmoothing and oversquashing (see []). Although these effects can be partially mitigated through residual connections [] (which are also included in our architecture), training and optimizing deep GNNs remains challenging. We believe that these depth-related optimization issues limit additional gains as increases.
Computational cost of GraphPDHG Here, we provide a discussion of the computational cost of GraphPDHG. First, we note that our proposed GraphPDHG method is linear time per forward pass (as is the vanilla PDHG algorithm). All baselines are also linear time per forward pass so there is no significant difference in their theoretical complexity. Empirically, we record the following inference and training times for each method.
The training times recorded are for a training dataset of 1000 hierarchical Gaussian graphs with at most 100 nodes per graph and 15,000 training steps. The inference times recorded are for a single forward pass of each method on graphs with up to 100 nodes.
| With edge memory | 16.0 | 41.0 | 164.0 | 176.0 |
| Without edge memory | 18.0 | 53.0 | 161.0 | 182.0 |
Table 5. Ablating the edge memory component of GraphPDHG. We measure the median first hit times for a target primal-dual gap of 0.001 after initializing SSNAL with GraphPDHG with edge memory vs. GraphPDHG without edge memory. Note that initializing SSNAL with GraphPDHG without the edge component, the median first hit is higher than if we had initialized SSNAL with GraphPDHG with an edge component.
Total Variation Denoising on Graphs
We evaluate GraphPDHG on graph-signal denoising to demonstrate its applicability beyond the original clustering experiments. We consider both convex total variation (TV) and nonconvex, nonsmooth capped-fusion regularization, and compare against classical solvers and parameter-matched neural baselines.
Signal generation. We generate connected, weighted PyGSP sensor graphs with nodes on a randomly perturbed grid in , using PyGSP’s symmetrized -nearest-neighbor construction with . To construct a clean signal, we sample four Voronoi centers uniformly in the unit square. Each region receives independent coefficients and . For node coordinates , we define
Thus, each clean signal has zero mean and unit variance, and the observation noise has variance 0.16. We use 512 training, 128 validation, and 256 test graphs. The prediction task is to recover the clean scalar signal from the noisy observations and graph. Clean signals serve as supervised training targets only; neither clean values nor region assignments are inputs at inference.
Reconstruction objectives. For each undirected edge , define the weighted incidence operator . The two reconstruction objectives that we consider are
| GraphPDHG | GCN | GAT | |
| Training time | 1h 20m | 1h 26m | 1h 12m |
| Inference time (ms) | 4.367 | 2.977 | 5.602 |
Table 7. Training time and inference times for each method on hierarchical Gaussian graphs with 100 nodes.
The convex TV problem has the saddle-point formulation
Capped fusion reduces the penalty on large jumps by saturating their contribution.
Methods We evaluate GraphPDHG against the GNN methods described in § 4. Additionally, we distinguish between GraphPDHG-TV uses the TV operator throughout; GraphPDHG-MM starts with a TV-style update and then applies four iterations of the MM (majorize-minimization) algorithm recomputed from the current reconstruction. Note that GraphPDHG-MM approximately solves the capped-fusion proximal problem
At each iteration of the proximal map, we construct an upper bound by linearizing the concave function at the current edge magnitudes. Defining , the resulting subproblem is
Each iteration of MM alternatives between applying the TV-style proximal map and updating the mask . We also compare against vanilla PDHG with the TV operator as well as vanilla PDHG with MM updates.
Results We measure both the normalized mean squared error (NMSE) between the reconstructed signal output (from each method) and the clean signal and the signal-to-noise ratio gain (SNR gain) which measures the difference between the input noisy graph signal and the output signals from each method. GraphPDHG-MM achieved the lowest NMSE at 3.33e-02, a 79% reduction from the noisy observation’s 1.57e-01 and a 6.85 dB SNR improvement. GraphPDHG-TV and GAT were close at 3.37e-02 and 3.42e-02, respectively. GraphSAGE, EdgeConv, and GCN were also competitive, with NMSE values between 3.55e-02 and 3.68e-02. For CPU inference runtime, GraphSAGE was the fastest graph-based model at 2.03 ms/graph, followed by GCN at 2.89 ms/graph. GraphPDHG-TV and GraphPDHG-MM required approximately 4.12 ms/graph, while EdgeConv and GAT required 5.05 and 5.43 ms/graph, respectively. PDHG-MM was considerably slower at 10.73 ms/graph.
| Method | NMSE | SNR gain (dB) | CPU (ms) |
| Noisy | 0.000 | ||
| Heat | 0.816 | ||
| PDHG-TV | 3.184 | ||
| PDHG-MM | 11.373 | ||
| GraphPDHG-TV | 4.354 | ||
| GraphPDHG-MM | 4.367 | ||
| MLP | 0.670 | ||
| GCN | 2.977 | ||
| GAT | 5.602 |
Table 8. Graph signal denoising. Comparison of reconstruction methods. Uncertainties are computed as half the reported interval width.
Proofs and additional results
Corollary B.1. Suppose that is -strongly convex:
Then is also -strongly convex and admits a unique minimizer . Moreover, if is any saddle point of (3), then for all and ,
From Theorem 2.2, we have that the PDHG iterates satisfy
Then,
Proof of Corollary B.1. Let be any saddle point. By the saddle-point/KKT condition,
Applying strong convexity of at with subgradient gives
Therefore,
Since maximizes , we also have
so
For the upper bound, use
which implies
Finally, apply Theorem 2.2 with and .
Proof of universality for GraphPDHG
We first demonstrate that the message passing layer has the capacity to exactly recover one iteration of the PDHG algorithm, and subsequently inherits certain finite-layer convergence guarantees implied by Theorem 2.2. This notion of algorithmic alignment has been previously shown in related work [23] to be critical for generalization in NAR tasks.
Lemma B.2 (Representation). Let denote the operator defining one iteration of the pre-conditioned PDHG algorithm with fixed step sizes . Assume the preconditioners have the form and . There exists a parameter configuration and a specific activation function for the message passing layers such that, if initialized with and , the layer outputs exactly recover PDHG iterates:
Proof. We proceed by constructively matching the update equations of the PDHG algorithm with the architecture of the proposed GNN layer. In particular, we observe that the GNN equations exactly match the PDHG updates under the following configuration :
Edge Update: Set , , and .
Node Update: Set , , .
Under this configuration, , the outputs .
As a consequence of the above lemma, PDHG-derived message passing inherits the approximation and convergence guarantees of the primal–dual approximation algorithm it learns, as detailed in Theorem 3.1.
Proof of Theorem 3.1. The proof follows from the representation lemma, Lemma B.2 and standard results on the convergence rate of the PDHG algorithm.
If , the ergodic average of the iterates satisfies the following bound on the primal–dual gap:
where is a saddle point of the problem. Let . The bound becomes
To ensure the Gap is at most , we require . Choose . Then , and scales with . Thus, there exists a constant depending only on initialization such that if
the network achieves -optimality in the primal–dual gap.
Analysis of linearized GraphPDHG
Proof of Proposition 3.4. We construct a specific parameterization. Consider the memoryless regime. Let , and for simplicity let . Write down the error matrix using the terms in Remark 3.3:
Where . Choose so
Left multiplying by yields
Since and are learnable matrices, we can realize by e.g. , .
Proof of Proposition 3.5. From the linearized update equations with and , we have:
From (21), we isolate the term . Shifting the index back by one yields . Multiply (20) by on the left and on the right:
Substituting the node difference expressions derived above:
Define . We recover the Polyak Heavy Ball update:
Proof of Corollary 3.6. Consider the simplification . Then,
Let such that . Define the coefficient
Left-multiply the recursion by :
Equivalently, each coordinate of satisfies
This recurrence has characteristic polynomial:
Finally, [48] shows that choosing
yields a worst-case error which decays at the accelerated rate
for some constant .
In the following Corollary, we tighten the analysis to consider the more general case where is symmetric and positive definite.
Corollary B.3. Assume the setting of Proposition 3.5, and suppose in addition that is symmetric positive definite. Let , and , and let , and , . Expand the error in the joint eigenbasis:
Then each joint mode satisfies the scalar recurrence
Define the joint condition number . If . Then there exists a constant , such that
Proof. By Proposition 3.5,
Expand
where and . Then
and the recurrence decouples over all of the modes (see the derivation in the previous corollary):
Thus the -th mode is governed by the heavy-ball recurrence. For the scalar heavy-ball method on a quadratic, the optimal worst-case asymptotic factor is
attained by
Applying this uniformly yields .
Proof of Corollary 3.7. From Proposition 3.5, there exists a parameter configuration such that the error dynamics follow the accelerated heavy-ball method. The asymptotic linear convergence rate of this recurrence is given by:
We need to show the following bound:
Let . We want such that . From the inequality shown above, we just need the minimum such that . Since , and .
Therefore, for any iteration such that , . By Lemma B.2, there is a parameter configuration of GraphPDHG such that each layer implements one iteration of PDHG. Therefore, -layers of GraphPDHG can implement iterations of PDHG, so we get that the error at the -th layer of GNN is .
References
- [1]David Applegate, Mateo Diaz, Oliver Hinder, Haihao Lu, Miles Lubin, Brendan O' Donoghue, and Warren Schudy. Practical large-scale linear programming using primal-dual hybrid gradient. In M. Ranzato, A. Beygelzimer, Y. Dauphin, P.S. Liang, and J. Wortman Vaughan, editors, Advances in Neural Information Processing Systems, volume 34, pages 20243–20257. Curran Associates, Inc., 2021.arxiv.org/abs/2106.04756
- [2]Ravi B Bapat and Stef Tijis. Incidence matrix games. Game Theoretical Applications to Economics and Operations Research (Bangalore, 1996), Theory Decis. Lib. Ser. C, Game Theory Math. Program. Oper. Res, 18:9–16, 1996.
- [3]Yoshua Bengio, Andrea Lodi, and Antoine Prouvost. Machine learning for combinatorial optimization: A methodological tour d’horizon. European Journal of Operational Research, 290(2):405–421, 2021.arxiv.org/abs/1811.06128
- [4]Patrick Breheny and Jian Huang. Coordinate descent algorithms for nonconvex penalized regression, with applications to biological feature selection. The Annals of Applied Statistics, 2011.DOI
- [5]Quentin Cappart, Didier Chételat, Elias B Khalil, Andrea Lodi, Christopher Morris, and Petar Veličković. Combinatorial optimization and reasoning with graph neural networks. Journal of Machine Learning Research, 24(130):1–61, 2023.
- [6]Antonin Chambolle and Thomas Pock. A first-order primal-dual algorithm for convex problems with applications to imaging. Journal of Mathematical Imaging and Vision, 40(1):120–145, 2011.DOI
- [7]Gary Chen, Eric Chi, John Ranola, and Kenneth Lange. Convex clustering: An attractive alternative to hierarchical clustering. PLoS computational biology, 11, 09 2014.DOI
- [8]Gary K. Chen, Eric C. Chi, John Michael O. Ranola, and Kenneth Lange. Convex clustering: An attractive alternative to hierarchical clustering. PloS: Computational Biology, 2015.DOI
- [9]Tianlong Chen, Xiaohan Chen, Wuyang Chen, Howard Heaton, Jialin Liu, Zhangyang Wang, and Wotao Yin. Learning to optimize: A primer and a benchmark. Journal of Machine Learning Research, 23(189):1–59, 2022.arxiv.org/abs/2103.12828
- [10]Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In Hal Daumé III and Aarti Singh, editors, Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 1597–1607. PMLR, 13–18 Jul 2020.arxiv.org/abs/2002.05709
- [11]Eric C Chi and Kenneth Lange. Splitting methods for convex clustering. Journal of Computational and Graphical Statistics, 24(4):994–1013, 2015.
- [12]Eric C. Chi, Aaron J. Molstad, Zheming Gao, and Jocelyn T. Chi. The why and how of convex clustering, 2025.arxiv.org/abs/2507.09077
- [13]Li Deng. The MNIST database of handwritten digit images for machine learning research. IEEE Signal Processing Magazine, 29(6):141–142, 2012.
- [14]Jianqing Fan and Runze Li. Variable selection via nonconcave penalized likelihood and its oracle properties. Journal of the American Statistical Association, 2001.
- [15]Dobrik Georgiev Georgiev, Danilo Numeroso, Davide Bacciu, and Pietro Liò. Neural algorithmic reasoning for combinatorial optimisation. In Learning on Graphs Conference, pages 28–1. PMLR, 2024.arxiv.org/abs/2306.06064
- [16]Justin Gilmer, Samuel S. Schoenholz, Patrick F. Riley, Oriol Vinyals, and George E. Dahl. Neural message passing for quantum chemistry. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 1263–1272. PMLR, 2017.arxiv.org/abs/1704.01212
- [17]Karol Gregor and Yann LeCun. Learning fast approximations of sparse coding. In Proceedings of the 27th international conference on international conference on machine learning, pages 399–406, 2010.
- [18]David Hallac, Jure Leskovec, and Stephen Boyd. Network lasso: Clustering and optimization in large graphs. In Proceedings of the 21st ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2015.
- [19]Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. Advances in neural information processing systems, 30, 2017.arxiv.org/abs/1706.02216
- [20]Jessica B Hamrick, Kelsey R Allen, Victor Bapst, Tina Zhu, Kevin R McKee, Joshua B Tenenbaum, and Peter W Battaglia. Relational inductive bias for physical construction in humans and machines. arXiv preprint arXiv:1806.01203, 2018.arxiv.org/abs/1806.01203
- [21]Jonas Berg Hansen and Filippo Maria Bianchi. Total variation graph neural networks. In International Conference on Machine Learning, pages 12445–12468. PMLR, 2023.arxiv.org/abs/2211.06218
- [22]Warren L Hare and Adrian S Lewis. Identifying active constraints via partial smoothness and prox-regularity. Journal of Convex Analysis, 11(2):251–266, 2004.DOI
- [23]Yu He and Ellen Vitercik. Primal-dual neural algorithmic reasoning. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu, editors, Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 22743–22766. PMLR, 13–19 Jul 2025.arxiv.org/abs/2505.24067
- [24]Matthias Hein and Simon Setzer. Beyond spectral clustering - tight relaxations of balanced graph cuts. In J. Shawe-Taylor, R. Zemel, P. Bartlett, F. Pereira, and K.Q. Weinberger, editors, Advances in Neural Information Processing Systems, volume 24. Curran Associates, Inc., 2011.
- [25]Qiang Heng, Xiaoqian Liu, and Eric C. Chi. Anderson accelerated operator splitting methods for convex-nonconvex regularized problems. IEEE Open Journal of Signal Processing, 6:1094–1108, 2025.arxiv.org/abs/2502.14269
- [26]Stefanie Jegelka. Theory of graph neural networks: Representation and learning. In Proceedings of the International Congress of Mathematicians, 2022. Also available as arXiv:2204.07697.arxiv.org/abs/2204.07697
- [27]Alexander Jung, Alfred O. Hero, III, Alexandru Cristian Mara, Saeed Jahromi, Ayelet Heimowitz, and Yonina C. Eldar. Semi-supervised learning in network-structured data via total variation minimization. IEEE Transactions on Signal Processing, 67(24):6256–6269, 2019.DOI
- [28]Alexander Jung, Nguyen Tran, and Alexandru Mara. When is network lasso accurate? Frontiers in Applied Mathematics and Statistics, Volume 3 - 2017, 2018.
- [29]Andrew B Kahng, Robert R Nerem, Yusu Wang, and Chien-Yi Yang. Nn-steiner: A mixed neural-algorithmic approach for the rectilinear steiner minimum tree problem. In Proceedings of the AAAI conference on artificial intelligence, volume 38, pages 13022–13030, 2024.arxiv.org/abs/2312.10589
- [30]Nikolaos Karalias and Andreas Loukas. Erdos goes neural: an unsupervised learning framework for combinatorial optimization on graphs. Advances in Neural Information Processing Systems, 33:6659–6672, 2020.arxiv.org/abs/2006.10643
- [31]Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015.arxiv.org/abs/1412.6980
- [32]Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. CoRR, abs/1312.6114, 2013.arxiv.org/abs/1312.6114
- [33]Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In International Conference on Learning Representations, 2017.arxiv.org/abs/1609.02907
- [34]Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. (0), 2009.
- [35]Bingheng Li, Linxin Yang, Yupeng Chen, Semmiao Wang, Qian Chen, Haitao Mao, Yao Ma, Akang Wang, Tian Ding, Jiliang Tang, and Ruoyu Sun. Pdhg-unrolled learning-to-optimize method for large-scale linear programming, 2024.arxiv.org/abs/2406.01908
- [36]Jingwei Liang, Jalal Fadili, and Gabriel Peyré. Local linear convergence analysis of primal–dual splitting methods. Optimization, 67(6):821–853, 2018.arxiv.org/abs/1705.01926
- [37]Po-Ling Loh and Martin J. Wainwright. Regularized m-estimators with nonconvexity: Statistical and algorithmic theory for local optima. Journal of Machine Learning Research, 2015.
- [38]Po-Ling Loh and Martin J. Wainwright. Support recovery without incoherence: A case for nonconvex regularization. The Annals of Statistics, 2017.arxiv.org/abs/1412.5632
- [39]Andreas Loukas. What graph neural networks cannot learn: depth vs width. arXiv preprint arXiv:1907.03199, 2019.arxiv.org/abs/1907.03199
- [40]Evan McCarty, Qi Zhao, Anastasios Sidiropoulos, and Yusu Wang. Nn-baker: A neural-network infused algorithmic framework for optimization problems on geometric intersection graphs. Advances in Neural Information Processing Systems, 34:23023–23035, 2021.
- [41]Thomas Möllenhoff, Zhenzhang Ye, Tao Wu, and Daniel Cremers. Combinatorial preconditioners for proximal algorithms on graphs. In Amos Storkey and Fernando Perez-Cruz, editors, Proceedings of the Twenty-First International Conference on Artificial Intelligence and Statistics, volume 84 of Proceedings of Machine Learning Research, pages 38–47. PMLR, 09–11 Apr 2018.arxiv.org/abs/1801.05413
- [42]Robert R. Nerem, Samantha Chen, Sanjoy Dasgupta, and Yusu Wang. Graph neural networks extrapolate out-of-distribution for shortest paths, 2025.arxiv.org/abs/2503.19173
- [43]Danilo Numeroso, Davide Bacciu, and Petar Velickovic. Dual algorithmic reasoning. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net, 2023.arxiv.org/abs/2302.04496
- [44]Neal Parikh and Stephen Boyd. Proximal algorithms. 1(3):127–239, January 2014.DOI
- [45]Gabriel Peyré and Marco Cuturi. Computational optimal transport, 2020.
- [46]Jiaxing Pi, Honggang Wang, and Panos M Pardalos. A dual reformulation and solution framework for regularized convex clustering problems. European Journal of Operational Research, 290(3):844–856, 2021.DOI
- [47]Thomas Pock and Antonin Chambolle. Diagonal preconditioning for first order primal-dual algorithms in convex optimization. In 2011 International Conference on Computer Vision (ICCV), pages 1762–1769. IEEE, 2011.DOI
- [48]Boris T. Polyak. Some methods of speeding up the convergence of iteration methods. USSR Computational Mathematics and Mathematical Physics, 1964.DOI
- [49]Sawyer Robertson, Zhengchao Wan, and Alexander Cloninger. All you need is resistance: On the equivalence of effective resistance and certain optimal transport problems on graphs, 2025.
- [50]Sawyer Jack Robertson, Chester Holtz, Zhengchao Wan, Gal Mishne, and Alexander Cloninger. Robust graph-based semi-supervised learning via p-conductances, 2025.arxiv.org/abs/2502.08873
- [51]Rajiv Sambharya, Georgina Hall, Brandon Amos, and Bartolomeo Stellato. End-to-end learning to warm-start for real-time quadratic optimization. In Nikolai Matni, Manfred Morari, and George J. Pappas, editors, Proceedings of The 5th Annual Learning for Dynamics and Control Conference, volume 211 of Proceedings of Machine Learning Research, pages 220–234. PMLR, 15–16 Jun 2023.arxiv.org/abs/2212.08260
- [52]Sato, Makoto Yamada, and Hisashi Kashima. Random features strengthen graph neural networks. In Proceedings of the 2021 SIAM international conference on data mining (SDM), pages 333–341. SIAM, 2021.arxiv.org/abs/2002.03155
- [53]Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE Transactions on Neural Networks, 20(1):61–80, 2009.DOI
- [54]Defeng Sun, Kim-Chuan Toh, and Yancheng Yuan. Convex clustering: Model, theoretical guarantee and efficient algorithm. Journal of Machine Learning Research, 22(9):1–32, 2021.
- [55]Robert Tibshirani, Michael Saunders, Saharon Rosset, Ji Zhu, and Keith Knight. Sparsity and smoothness via the fused lasso. Journal of the Royal Statistical Society Series B: Statistical Methodology, 67(1):91–108, 2005.
- [56]Petar Veličković, Adrià Puigdomènech Badia, David Budden, Razvan Pascanu, Andrea Banino, Misha Dashevskiy, Raia Hadsell, and Charles Blundell. The clrs algorithmic reasoning benchmark. In International Conference on Machine Learning, pages 22084–22102. PMLR, 2022.arxiv.org/abs/2205.15659
- [57]Petar Velickovic and Charles Blundell. Neural algorithmic reasoning. CoRR, abs/2105.02761, 2021.DOI
- [58]Petar Veličković, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Liò, and Yoshua Bengio. Graph attention networks. In International Conference on Learning Representations, 2018.arxiv.org/abs/1710.10903
- [59]Petar Veličković, Rex Ying, Matilde Padovano, Raia Hadsell, and Charles Blundell. Neural execution of graph algorithms. In International Conference on Learning Representations, 2020.arxiv.org/abs/1910.10593
- [60]Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E Sarma, Michael M Bronstein, and Justin M Solomon. Dynamic graph cnn for learning on point clouds. ACM Transactions on Graphics (tog), 38(5):1–12, 2019.arxiv.org/abs/1801.07829
- [61]Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. ArXiv, abs/1708.07747, 2017.arxiv.org/abs/1708.07747
- [62]Xingyu Xie, Jianlong Wu, Guangcan Liu, Zhisheng Zhong, and Zhouchen Lin. Differentiable linearized ADMM. In Kamalika Chaudhuri and Ruslan Salakhutdinov, editors, Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 6902–6911. PMLR, 09–15 Jun 2019.arxiv.org/abs/1905.06179
- [63]Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? Proceedings of the International Conference on Learning Representations, 2019.arxiv.org/abs/1810.00826
- [64]yan yang, Jian Sun, Huibin Li, and Zongben Xu. Deep admm-net for compressive sensing mri. In D. Lee, M. Sugiyama, U. Luxburg, I. Guyon, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 29. Curran Associates, Inc., 2016.
- [65]Yongyi Yang, Tang Liu, Yangkun Wang, Jinjing Zhou, Quan Gan, Zhewei Wei, Zheng Zhang, Zengfeng Huang, and David Wipf. Graph neural networks inspired by classical iterative algorithms. In International Conference on Machine Learning, pages 11773–11783. PMLR, 2021.arxiv.org/abs/2103.06064
- [66]Morris Yau, Nikolaos Karalias, Eric Lu, Jessica Xu, and Stefanie Jegelka. Are graph neural networks optimal approximation algorithms? In A. Globerson, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. Tomczak, and C. Zhang, editors, Advances in Neural Information Processing Systems, volume 37, pages 73124–73181. Curran Associates, Inc., 2024.arxiv.org/abs/2310.00526
- [67]Zhenzhang Ye, Thomas Möllenhoff, Tao Wu, and Daniel Cremers. Optimization of graph total variation via active-set-based combinatorial reconditioning. In Silvia Chiappa and Roberto Calandra, editors, Proceedings of the Twenty Third International Conference on Artificial Intelligence and Statistics, volume 108 of Proceedings of Machine Learning Research, pages 657–668. PMLR, 26–28 Aug 2020.arxiv.org/abs/2002.12236
- [68]Cun-Hui Zhang. Nearly unbiased variable selection under minimax concave penalty. The Annals of Statistics, 2010.DOI
- [69]Jian Zhang and Bernard Ghanem. Ista-net: Interpretable optimization-inspired deep network for image compressive sensing. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1828–1837. IEEE, 2018.arxiv.org/abs/1706.07929
- [70]Tong Zhang. Analysis of multi-stage convex relaxation for sparse regularization. Journal of Machine Learning Research, 11(3), 2010.DOI


