Graph neural networks (GNNs) are models that update each node by averaging information from its neighbors. They work well when linked nodes tend to share labels, which is called the homophily assumption, and they often fail when links join dissimilar nodes. One popular fix is to rewire the graph before training: delete edges that look unhelpful, add edges between nodes that look alike, and then run an ordinary GNN. Current rewiring methods pick edges with a one-shot heuristic that scores node pairs and keeps the top few per node. The alternative is to learn the adjacency matrix by continuous optimization, which gives a principled objective but requires dense N×N iterates and an expensive projection step (a correction that pulls each iterate back into the allowed set) at every update. This proposal starts from one observation. Keeping the top-k highest-scoring partners per node is exactly the linear minimization step of the Frank-Wolfe algorithm over the set of graphs with a per-node edge budget. Heuristic rewiring is therefore one step of a projection-free optimizer, taken with a similarity score instead of a task gradient.
We propose to take the remaining steps. The learned graph is updated by Frank-Wolfe using the gradient of the downstream classification loss. Every iterate stays sparse and exactly within budget without any projection. Because the loss gradient with respect to the adjacency matrix is low-rank, the per-node top-k search reduces to an approximate nearest-neighbor query, so the N×N matrix is never formed. The target setting is the regime where rewiring matters most and has been tested least: the cleaned, leakage-free heterophily benchmarks. In that regime, homophily-seeking rewiring risks deleting heterophilous edges that are in fact predictive.
Core Claim
Rewiring should be driven by the task loss rather than by feature or label similarity, and it should be carried out by iterated conditional-gradient steps over a degree-budget polytope rather than one greedy top-k pass. Two predictions follow. First, on graphs where heterophilous edges carry label information, task-gradient rewiring will keep those edges while similarity rewiring removes them, and this will show up as higher label informativeness of the learned graph and higher accuracy. Second, the method will scale to tens of thousands of nodes at a per-step cost close to that of the heuristic. Projected gradient on a dense adjacency matrix cannot do this, because its memory grows quadratically with the number of nodes.
Where This Sits
The motivating evidence comes from two groups of papers.
The first group shows that rewiring helps and also where it might mislead. Make Heterophily Graphs Better Fit GNN: A Graph Rewiring Approach (DHGR) learns a similarity between nodes' multi-hop neighbor distributions and then prunes and adds edges greedily using Ball-Tree top-K queries. It reports vanilla GCN rising from 26% to about 67% on squirrel. However, A critical look at the evaluation of GNNs under heterophily: are we really making progress? shows that over half of squirrel and chameleon nodes are duplicates that leak across splits, and that specialized heterophily methods lose their advantage once the data is cleaned. DHGR's gains have not been checked on the cleaned suite. That same paper supplies the cleaned benchmarks and the strongest simple competitor. Characterizing Graph Datasets for Node Classification: Homophily-Heterophily Dichotomy and Beyond introduces Label Informativeness (LI), the mutual information between the labels at the two ends of an edge. It finds that LI tracks GNN accuracy on synthetic stochastic block models with Spearman 0.93, compared with 0.05 for adjusted homophily. This finding constrains our design: rewiring that maximizes homophily is the wrong target, because low-homophily edges can be highly informative. We therefore use the task gradient and do not reward similarity.
The second group supplies the method or marks its limits. Robust Graph Structure Learning under Heterophily (RGSL) learns a graph by continuous optimization with a high-pass filter and an adaptive norm. Its cost is O(N²) and it imposes no hard structural constraint, which is the scaling wall this proposal addresses. Approximate Frank-Wolfe Algorithms over Graph-structured Support Sets runs Frank-Wolfe with an inner-product maximization oracle over graph-structured supports. It reports faster and better convergence than projected greedy pursuit (Graph-IHT), but only for sparse recovery on images with a fixed graph. We reuse its inner-product-oracle view on a learned adjacency. Projection-free Online Learning over Strongly Convex Sets and Faster Projection-free Online Learning show that Frank-Wolfe rates depend on the geometry of the feasible set, and are slower on flat polytopes where iterates zig-zag between vertices. Our budget polytope is flat, so we expect this slowdown and plan for it (see below) rather than claim fast rates. CAffNet: Hard Constraint-Affine Neural Networks enforces hard affine constraints in closed form inside a network. We take from it only the lesson that hard feasibility beats soft penalties. Its pseudoinverse layer does not fit a combinatorial per-node budget.
The Method
The GNN keeps the original graph as its own channel and receives the learned graph $A$ as a second channel. Ego, original-neighbor, and learned-neighbor embeddings are kept separate by concatenation, following the design principle of Beyond Homophily in Graph Neural Networks: Current Limitations and Effective Designs. The learned graph lives in the degree-budget polytope
$$\mathcal{P}_k = \{A \in \mathbb{R}^{N\times N} : 0 \le A_{ij} \le 1,\ \textstyle\sum_j A_{ij} = k \text{ for every node } i\},$$
where $N$ is the number of nodes and $k$ is the number of learned partners each node receives. The vertices of this polytope are exactly the graphs in which every node has $k$ unweighted out-edges. Minimizing a linear function over $\mathcal{P}_k$ therefore amounts to choosing, for each row, the $k$ columns with the most negative gradient entries. This is the top-k rewiring rule.
Suppose a layer aggregates $Z = A H W$, where $H$ holds the node representations and $W$ is the weight matrix. The gradient of the loss $L$ with respect to $A$ is then
$$\nabla_A L = \Big(\tfrac{\partial L}{\partial Z}\Big)(HW)^\top = U V^\top,$$
which has rank at most the hidden width $d$. For node $i$, the linear step picks the $k$ nodes $j$ that maximize $-u_i^\top v_j$. This is a maximum-inner-product search and can be answered with an approximate nearest-neighbor index built on the rows of $V$. As a result, the full gradient matrix is never formed, and each step costs roughly $N$ index queries plus rebuilding the index.
The update is $A_{t+1} = (1-\gamma_t)A_t + \gamma_t S_t$, where $S_t$ is the new top-k graph and $\gamma_t$ is the step size. The iterate is a convex combination of sparse graphs. It stays inside the budget by construction, so no projection is ever needed, and after $t$ steps its support is at most $tk$ edges per node.
Training alternates between two phases: a few Adam steps on the GNN weights with $A$ held fixed, and then one Frank-Wolfe step on $A$. We initialize at the feature-kNN vertex. The flat polytope causes zig-zagging, and repeated steps make the support grow. We address both with pairwise and away steps, which move weight away from the worst active vertex, together with a cap on the number of active vertices. The problem is nonconvex in $A$ and the weights jointly. We therefore claim only that the Frank-Wolfe gap goes to zero at a stationary point, and we will measure that gap empirically.
Research Program
The work has three parts.
The first part is building the solver: the low-rank gradient oracle, the inner-product index, and the away-step variant with an active-set cap. We will also verify empirically that the approximate top-k search degrades the Frank-Wolfe gap only slightly compared with an exact search on small graphs.
The second part is an analysis of which edges survive. For every learned graph we will compute edge homophily, adjusted homophily, and LI, and then compare these against DHGR's graph and against the original graph. We will do this both globally and within local neighborhoods, because the global scalars hide local pockets of homophily and heterophily.
The third part is a controlled study on synthetic graphs. In these graphs, heterophilous edges are made either informative (a fixed pattern of class-to-class transitions, giving high LI) or uninformative (random cross-class edges, giving low LI) at the same homophily level. This isolates whether task-gradient rewiring keeps the right edges.
Baselines
The naive reference points are a graph-agnostic ResNet-style MLP and the same ego-separated GNN run on the original graph with no learned channel. The file shows that the latter class of model is the one to beat: A critical look at the evaluation of GNNs under heterophily: are we really making progress? reports that GAT and Graph Transformers with ego-neighbor separation take 13 of the top 15 places across its cleaned benchmarks. No per-dataset accuracy is reported on Lacuna for roman-empire, amazon-ratings, minesweeper, tolokers, or questions, so we will reproduce these baselines ourselves under that paper's splits and protocol. Our backbone will be the same GAT-sep and SAGE-sep models, so any gain can be attributed to the learned channel and not to the backbone. Beating this baseline means an accuracy gain (ROC-AUC on the binary tasks) larger than the seed-to-seed standard deviation on at least three of the five datasets, with no loss on the others.
The strongest rewiring competitor is DHGR (Make Heterophily Graphs Better Fit GNN: A Graph Rewiring Approach). We will run it with its released procedure and feed its output into the same ego-separated backbone, both as a replacement graph and as a second channel with the same budget $k$. Its reported squirrel figure of about 67% for GCN comes from the leaky benchmark and is not a valid target. Its reported Actor runtime of about 36 seconds, against over 400 seconds for LDS, sets the time budget we must stay near. The dense continuous baseline is projected gradient on $A$ with an exact projection onto the budget polytope, row by row. This projection is cheap per row, but the iterates are dense. We will run it wherever it fits in memory and report where it runs out. RGSL (Robust Graph Structure Learning under Heterophily) will be run on the graphs small enough for its O(N²) cost.
Two ablations isolate the key ingredient. The first is "one step": a single Frank-Wolfe step from the kNN start using the task gradient, which amounts to DHGR-style top-k with the task score instead of a similarity score. The second is "similarity oracle": the full iterative method but with feature similarity in place of the task gradient. Every method gets the same hyperparameter search budget, the same GPU-hour cap, and ten seeds.
Why not just…?
Why not just use an ego-separated GAT on the original graph? This is the most serious threat. Attention can reweight existing edges, but it cannot add partners that the original graph lacks. The file's evidence that adding edges helps comes only from leaky benchmarks, so it is not trustworthy. If our learned channel does not beat GAT-sep on the cleaned suite, the conclusion is that rewiring does not pay off once leakage is removed, and we will report that result as the finding.
Why not just drop the graph and use an MLP? On BGP, Measuring and Improving the Use of Graph Information in Graph Neural Networks reports that neighbor-filtering CS-GNN reaches 66.39 F1-Micro, against 51.26 for GCN and 47.44 for GAT. This suggests that filtered structure beats both the raw graph and ignoring the graph altogether. The MLP stays in the comparison as the floor, and the synthetic high-LI graphs should show exactly where it loses.
Why not just run DHGR's one-shot top-k? If the "one step" ablation matches the full iterative method, then iteration is unnecessary and the contribution reduces to using the task gradient as the scoring rule. We would still report this, because it is the finding on which scoring rule matters. The synthetic informative-heterophily graphs will separate the two cases. On those graphs we expect similarity scoring to prune predictive cross-class edges, and our measurement of LI on the learned graph will show whether that happens.
Why not just learn a dense adjacency with a soft sparsity penalty? This approach gives up both memory scaling and exact control of degree. On questions, with about 50K nodes, a dense matrix has billions of entries. The file also notes that soft penalties do not guarantee constraint satisfaction (CAffNet: Hard Constraint-Affine Neural Networks). We will report its accuracy on the graphs where it fits, and the point at which its memory use becomes infeasible.
Proposed Experiments
The main benchmarks are the five cleaned datasets: roman-empire, amazon-ratings, minesweeper, tolokers, and questions. We add the filtered versions of chameleon and squirrel, and use Cora and PubMed as checks that homophilous graphs are not harmed. The synthetic study uses syn-cora and stochastic block models in which the homophily ratio is swept from 0 to 1, crossed with high-LI and low-LI heterophily. Metrics are accuracy or ROC-AUC following the cleaned-benchmark protocol, LI and adjusted homophily of the learned graph, the Frank-Wolfe gap over iterations, wall-clock time, and peak memory.
Four checks decide the outcome.
First, the learned channel must beat reproduced GAT-sep on the cleaned suite.
Second, on the high-LI synthetic graphs, the learned graph must keep higher LI than DHGR's graph, and accuracy must rise with it. If LI stays equal, the proposed mechanism is not working.
Third, the full iterative method must beat the one-step ablation. If it does not, we drop the iteration claim.
Fourth, time per epoch on questions must stay within a small constant factor of DHGR while the dense baselines exceed memory.
References
- Make Heterophily Graphs Better Fit GNN: A Graph Rewiring Approach
- A critical look at the evaluation of GNNs under heterophily: are we really making progress?
- Characterizing Graph Datasets for Node Classification: Homophily-Heterophily Dichotomy and Beyond
- Robust Graph Structure Learning under Heterophily
- Approximate Frank-Wolfe Algorithms over Graph-structured Support Sets
- Projection-free Online Learning over Strongly Convex Sets
- Faster Projection-free Online Learning
- CAffNet: Hard Constraint-Affine Neural Networks
- Beyond Homophily in Graph Neural Networks: Current Limitations and Effective Designs
- Measuring and Improving the Use of Graph Information in Graph Neural Networks