Size Generalisation of Neural Bellman-Ford: Aggregation and Step Supervision in a Small CPU Study Rowan-67G Stemma seed corpus https://github.com/mihir-chauhan/research-harness-papers/tree/main/papers/neural-algorithmic-size-generalisation Abstract—We study how small networks trained to execute and up to non-finite values for the step-supervised systems but by single-source Bellman-Ford shortest paths on random graphs little for most seeds of the final-only systems, and running half as with 4–8 nodes behave on graphs with 16, 32 and 64 nodes. We many steps never raised it. The study is small (one algorithm, one reimplement an MLP on the zero-padded flattened adjacency architecture family, five seeds, a single longer budget) and the matrix and message-passing networks (MPNNs) with sum or results should be read as a cautionary baseline, not a ranking. max aggregation, each trained with or without supervision of Index Terms—neural algorithmic reasoning, size generalisa- the intermediate distance after every relaxation round, and test tion, message passing, Bellman-Ford, aggregation, intermediate on two graph families: constant expected degree (sparse) and supervision growing degree (dense). With five seeds and 1000 Adam steps per run, the expected pattern is only partly reproduced. On I. INTRODUCTION the registered primary metric, the mean error on sparse 64- node graphs, the sum-aggregation MPNN trained on the final Neural algorithmic reasoning asks whether networks can distance alone is lowest and has no failing sparse seed. The learn to execute classical algorithms and keep working on max-aggregation MPNN trained on the final distance alone has inputs larger than those seen in training [1]. Graph algorithms the lowest error in distribution and the lowest median error at are the standard testbed: the CLRS benchmark trains on small 64 nodes (medians were chosen post hoc), but two of its five seeds fail there, a failure being a relative error above 1 (worse instances and tests on larger ones [2], and SALSA-CLRS than predicting zero) or a non-finite one. The MLP is poor even pushes this to large sparse graphs [3]. Two design choices in distribution; its median relative error at 64 nodes (0.943 on are repeatedly credited for the success of message-passing sparse graphs) is close to that of predicting zero and far above networks on such tasks. The first is algorithmic alignment: the that of a hop-count reference predictor (0.230). None of the architecture should mirror the structure of the algorithm, which registered comparisons at 64 nodes is significant (all p > 0.1). With the original step loss and 1000 steps, step-wise supervision lowers sample complexity [4] and, for shortest paths, makes did not help: median error at 8 and 16 nodes was higher with max (or min) aggregation a natural match for the relaxation it for both aggregators, and the sum-aggregation MPNN with step [5], [6]. The second is step-wise supervision: training the it produced a non-finite error on dense 64-node graphs in four network to reproduce the algorithm’s intermediate states, as of five seeds and an error of 1.0 × 1017 in the fifth. Controls in neural execution of graph algorithms [7] and the hints of added in this revision show that this is not a finding about step supervision as such: with the final-distance coefficient held CLRS. fixed, intermediate-distance supervision alone lowered the max These two claims are usually evaluated inside larger systems MPNN’s S64 median at 1000 steps (0.008 against 0.073), and at that change several things at once. Here we isolate them for 5000 steps the differences between these variants and final-only one algorithm, Bellman-Ford, in a 2 × 2 design (sum vs. max training are small and not significant, while the original step loss aggregation, with vs. without step supervision) plus an MLP remains the worst max variant in distribution. The dense-family overflow of the sum MPNN also occurs without step supervision that sees the flattened adjacency matrix. Networks are trained at 5000 steps. Most of the 64-node failures of the max MPNNs on graphs of at most 8 nodes and tested on 8, 16, 32 and are failures to extrapolate the number of rounds, not the graph 64 nodes, on two graph families that differ in whether node size: exact Bellman-Ford needs at most 8 rounds on the sparse degree stays constant or grows with n; degree shift is a known 64-node test graphs, and evaluating with the training maximum cause of size-generalisation failure in GNNs [8]. We state four of 7 rounds instead of n − 1 removes all failing seeds of both max MPNNs; the dense-family overflow of the step-supervised falsifiable hypotheses (Section IV) before running and report sum MPNN remains. Running more message-passing steps at all seeds. test time than n − 1 raised the error at 16 and 64 nodes in all Contributions. (i) A controlled, fully reproducible CPU- 20 seed-models (four systems, five seeds), by orders of magnitude scale factorial study of aggregation and step supervision for size extrapolation of Bellman-Ford; (ii) a result on step super- Rowan-67G is the codename of an autonomous study, not a person. vision that is limited in scope: with the original combined Produced by the Stemma autonomous AI research pipeline; the topic was step loss and a 1000-step budget, step supervision did not chosen to cover the field. Every reported number comes from logged runs in the linked repository and every reference was checked against arXiv, Crossref, help and sum aggregation with steps produced non-finite or DataCite or OpenAlex. astronomically large errors on growing-degree graphs at 64 nodes, but controls that separate the loss terms, hold the final- non-representative data generation, uninformative validation distance coefficient fixed and train for 5000 steps show that this metrics) and propose fixes to the benchmark and a stronger is a property of that loss and budget and not of step supervision processor; they motivate our caution about a protocol that as such (Section VI); (iii) a seed-level analysis showing that validates only on the training distribution. Tang et al. [17] ob- mean errors at 64 nodes are dominated by a minority of serve that the number of iterations of graph algorithms depends failing seeds, a separation of iteration-count from graph-size on graph size, learn to terminate message passing adaptively, extrapolation (exact Bellman-Ford convergence rounds and and add homogeneous layers for scale invariance, evaluated evaluation with a fixed number of rounds), and a test-time on basic graph problems; Georgiev et al. [18] replace the step sweep of all four MPNN systems on five seeds in which fixed unrolled recurrence by an equilibrium solve that needs extra message-passing steps raise the error instead of leaving it no ground-truth number of steps. The dependence of recurrent unchanged. Each of these effects has precedent in the literature processors on the number of test-time iterations is thus known, (Section II); the paper is a small controlled measurement, and we do not test learned termination or equilibrium models. not a new method. We claim nothing beyond this scale: one What this paper adds is only a measurement, for one algorithm algorithm, small networks (the MPNN has 12,770 parameters in one small setting with every seed reported: how much of the and the MLP 557,376), five seeds, and no hyperparameter 64-node failure of sum and max MPNNs trained on 4–8 nodes search other than a comparison of two training budgets. is attributable to the number of rounds (all failing seeds of the max MPNNs disappear at T = 7; the dense-family overflow of II. RELATED WORK the step-supervised sum MPNN does not), how the sensitivity Neural execution and benchmarks. Veličković et al. to extra test-time rounds compares between step-supervised [7] trained message-passing networks to imitate breadth-first and final-only systems, and which components of a step loss search, Bellman-Ford and Prim step by step and argued for matter at two training budgets. None of these is a new method max aggregation; our max-aggregation, step-supervised system or a new kind of effect. is a reimplementation of that recipe in spirit (our architecture III. METHOD and losses are our own simplified version, not their code). The CLRS benchmark [2] standardises 30 algorithms with hints Task. A graph has symmetric weighted adjacency W ∈ and a 16-to-64 node size split, the triplet-GMPNN processor Rn×n (Wij = 0 if no edge, edge weights in [0.2, 1]), edge set (0) (0) [9] and pointer graph networks [10] are other processors that E, and a source s. Bellman-Ford maintains ds = 0, di = ∞ we do not reimplement, and SALSA-CLRS [3] supplies sparse otherwise, and for t = 1, . . . , n − 1 ( ( (t−1) )) large-graph versions. We use a smaller 8-to-64 split on one (t) (t−1) di = min di , min dj + Wij . (1) algorithm. j:(i,j)∈E Why aggregation should matter. Xu et al. [4] show that All graphs are connected, so d(n−1) is finite. The network networks whose computation graph is close to the algorithm’s (n−1) must output di for all i. dynamic program need fewer samples, and Xu et al. [5] show MPNN (sum, mean or max). Node inputs are the source that ReLU MLPs extrapolate linearly outside the training range indicator xi = 1[i = s] (1 if i is the source, else 0); the weight and that GNNs with min/max aggregation can extrapolate on (0) enters only through edges. With hi = enc(xi ) and T = n−1 shortest-path-like tasks when the architecture matches. Dudzik steps, and Veličković [6] relate GNNs to dynamic programming and ( (t−1) (t−1) ) (t) discuss why max aggregation fits it. The message-passing mij = ϕ [hi , hj , Wij ] , (2) framework itself is from Gilmer et al. [11], in the broader (t) ⊕ (t) ⊕ ∑ ai = mij , ∈ { , mean, max}, (3) graph-network view of Battaglia et al. [12]. j:(i,j)∈E Size generalisation. Yehudai et al. [8] show that GNNs can ( (t−1) (t) ) (t) (t) (t) (t) fail to generalise to larger graphs because local neighbourhood hi = ψ [hi , ai ] , (dˆi , ℓi ) = dec(hi ), (4) structures (such as degree) differ between small and large where ϕ, ψ, enc, dec are two-hidden-layer ReLU MLPs of graphs, which motivates our two graph families. Bevilacqua width 32 (hidden state 32), weights shared across steps. The et al. [13] study size-invariant representations for graph clas- max aggregator can implement Eq. (1) by letting ϕ output sification, and Bevilacqua et al. later propose a causal self- −(dj + Wij ) coordinates, whereas sum aggregation must supervised regulariser that improves out-of-distribution size (t) compute the minimum from a degree-dependent total. ℓi is generalisation on CLRS tasks [14]. We evaluate none of these a logit for “reached at round t”. ∑ (T ) remedies. (T ) Supervision. Final-only: L = n1 i (dˆi − di )2 . Step- Closest prior work, and what is new here. Rodionov (t) (t) and Prokhorenkova [15] train CLRS reasoners from input– wise: with ri = 1[di < ∞], ∑ (t) (t) output pairs only, with architectural changes and a self- 1 ∑ [ i ri (dˆi − di )2 T (t) ( )] supervised regulariser, and report results competitive with the L= ∑ (t) + BCE ℓ(t) , r(t) , (5) T t=1 hint-supervised counterpart; that hints do not reliably help i ri is therefore not new. Mahdavi et al. [16] analyse out-of- so distances are supervised only where finite, and unreached distribution generalisation on CLRS (input distribution shift, nodes only through the reached flag. Because of the factor 1/T , the final distance receives a share 1/T of this loss. reference predictors are evaluated on the same test graphs with For the control of Section VI three separated variants keep the same metrics: zero, a constant (the mean final distance of ∑ (T ) the final-distance term at coefficient 1: L = n1 i (dˆi − 1600 graphs from the training generator, drawn from a stream (T ) 1 ∑ T −1 separate from the test and training streams), and the hop count di )2 + T −1 t=1 [λ distt + µ BCEt ] with distt the masked distance term of the equation above, (λ, µ) = (1, 0) (+dist), from the source times the mean edge weight of that graph. (0, 1) (+bce) or (1, 1) (+dist+bce). At test time the number of Protocol. Five seeds (0–4) for all five main systems and, rounds is T = round(m (n − 1)) for a multiplier m, or a fixed in this revision, for every ablation, sweep and control (the T for every n. first version used three seeds for the ablations and the step MLP baseline. The weighted adjacency is zero-padded to sweep). Adam, learning rate 3 × 10−3 with cosine decay, 64 × 64, flattened and concatenated with the padded one-hot 1000 steps, batch 32 graphs, gradient-norm clip 1, identical for source (4160 inputs), passed through two hidden layers of every system. We did no hyperparameter tuning (the defaults width 128 and a 64-way linear output (557,376 parameters, were fixed before any run) and no test-size data was used for against 12,770 for each MPNN); the first n outputs are the any choice; a validation MAE on the training distribution is predicted distances, trained with final-only MSE. Its input size logged and, in the revision only, used to compare the 1000- forces the 64-node padding, so graphs with n > 8 put weight step and the 5000-step budget. All systems use the same data on inputs never active in training; this is the intended failure generators, metric code and number of message-passing steps mode of a fixed-size model. In addition, training graphs have (T = n − 1 at train and test, except in the step sweep and the at most 8 nodes, so output coordinates 8–63 never receive a fixed-round control of Section VI). Hardware: shared laptop target. We did not repair this: the MLP is a deliberately limited CPU, 2 threads; the slowest run of the first version took about control, not a competitive or tuned baseline. The MLP has no two minutes. The code, run log and per-seed metrics are in recurrent steps and therefore no step-supervised variant. All the repository. baselines are reimplemented here; none uses code from the Hypotheses and registered tests (proposal.md, written cited papers. before the runs). H1 max+steps has lower S64 MAE than sum+steps; H2 step supervision lowers the max-MPNN’s S64 IV. EXPERIMENTAL SETUP MAE; H3 the MLP is worse than every MPNN for n ≥ 16 Data. Each graph is a random spanning tree (each node (tested at S16 and S64); H4 under growing degree the per- attached to a uniformly random earlier node in a ran- seed ratio D64/D8 of sum+steps exceeds that of max+steps. dom order) plus independent Erdős–Rényi edges, undirected, H1–H3 are decided by the Welch and paired tests of rh weights U (0.2, 1), uniformly random source. Training: n ∼ compare on seed-level MAE against the reference system U {4, . . . , 8} per batch, ER probability p = 0.4, fresh graphs max+steps, and count as not supported if the sign is wrong or every step (no fixed training set). Test: 200 graphs per cell, the difference is not significant at 0.05. No test was registered n ∈ {8, 16, 32, 64} and two families: sparse (p = 3/(n − 1), for H4. Everything else we report is post hoc and marked constant expected extra degree) and dense (p = 0.4, degree as such: the S16 tests for H1 and H2, the final-only pair for grows with n). Cells are written Sn and Dn. The test graphs of H4, and the ×4 column of the step sweep (the registered seed k are drawn from a random stream seeded with 10000+k, sweep was {0.5, 1, 2}). All additions of the revision after the which is separate from the training stream (seed k) and does first round of reviews are post hoc as well: the sweep of not depend on the system. Each seed therefore has its own test the final-only systems and the extra seeds, the convergence- set, and at a given seed every system, including the ablation round measurement, the fixed-round evaluation (T = 7), the and sweep runs, is evaluated on the same 200 graphs per cell; separated step losses, the 5000-step budget and its tests, the the paired tests pair on this seed. reference predictors and the relative failure threshold. Metrics. Primary: mean absolute error (MAE) of the pre- dicted final distance over ∑ all nodes, cell V. RESULTS ∑ S64, averaged over seeds. Also relative error |dˆ − d|/ d (rS64, rD64; pre- Table I gives seed means ± standard deviations for the dicting zero everywhere gives exactly 1), and the fraction of sparse family, Table II gives medians, relative errors, failure nodes within 0.05. Because the distance scale differs between counts and the trivial reference predictors, Table III lists families (dense graphs have short paths), absolute errors are every seed at 64 nodes, with the dense error at 8 nodes not comparable across families; the relative error is. A seed for the degree-shift comparison, and Table IV lists the per- is counted as a failure in a family if its relative error at 64 seed relative errors on which the failure counts rest. Figure 1 nodes exceeds 1.0, i.e. if it is worse than predicting zero shows all seeds at all sizes. On the registered primary metric, everywhere, or is non-finite (“div.” in the tables means a non- mean S64 MAE (Table I), the sum MPNN trained on the final finite value, i.e. the network output overflowed). This relative distance is lowest (0.23 ± 0.19), followed by the max MPNN threshold means the same in both families; the first version of trained on the final distance (0.91±1.22), the MLP, max+steps this paper used MAE > 1, which is looser on dense graphs, and sum+steps. These means are dominated by a minority of where distances are short. The threshold, the medians and the seeds (sum+steps seed 4 has S64 MAE of 2.7×105 , Table III), failure counts were introduced after seeing the first results; so we also report medians and per-seed failure counts; that they are descriptive and not part of the registered tests. Three choice was made after seeing the data. A seed counts as a constant degree growing degree 0.671 vs. 0.078 for max+steps; Welch p = 7.5 × 10−7 , paired 105 MLP (flat adjacency) p = 4.2 × 10−6 ); the other MPNNs were not tested against the MPNN-sum MLP, but their S16 means lie between 0.03 and 0.12 (Table I). MAE (median, dots = seeds) MPNN-sum + steps 104 MPNN-max 103 MPNN-max + steps The MLP’s median relative error at 64 nodes (rS64 0.943, 102 rD64 0.926) is close to that of predicting zero, which is 1 by definition, and clearly above that of the constant predictor 101 (0.562 and 0.231) and of the hop-count predictor (0.230 and 100 0.594). At S64 its median 1.328 is below that of max+steps 10−1 (1.765), and the test does not separate them (p = 0.535). The 10−2 MLP also fits poorly in distribution (S8 median 0.239), and 8 16 32 64 8 16 32 64 test nodes n test nodes n its output coordinates 8–63 never receive a training target, so it is a deliberately limited control and gives no evidence about extrapolation per se. We did not repair this. At 5000 steps it Fig. 1. MAE versus test size (log axes), median line and one dot per seed; left: sparse family, right: dense family. The axis is clipped: non-finite values is still far from the MPNNs (S8 median 0.198, Table XI). and finite values of 105 or more (up to order 1017 , Table III) are all drawn H4 (sum degrades more than max under growing at 105 (dotted line). degree): direction as hypothesised, untested. Table III lists the two errors that form the per-seed ratio D64/D8; we do not print the quotient. For the registered pair, the step-supervised failure in a family if its relative error at 64 nodes exceeds 1, systems, the D8 errors are of similar size (medians 0.037 for i.e. it is worse than the zero predictor, or is non-finite; this sum+steps and 0.021 for max+steps), whereas the D64 error replaces the absolute threshold MAE > 1 of the first version of sum+steps is non-finite in four seeds and of 1.0 × 1017 in of this paper and is likewise post hoc. On the five systems of the fifth and that of max+steps stays finite (at most 35.55); Table II the new rule flags exactly the same seeds as the old the degradation from 8 to 64 nodes is therefore larger for sum one. in each of the five seeds. No test was registered and none is H1 (max+steps beats sum+steps at S64): not supported. meaningful on non-finite values, so we report the direction and The group means (Table V) favour max+steps only because do not call H4 confirmed. For the final-only pair (post hoc) the of sum+steps seed 4; the Welch and paired tests do not reject per-seed values in Table III do not separate the two systems equality (p = 0.374), and the medians point the other way (their D64 errors overlap, with one non-finite seed for sum and (Table II: S64 0.460 for sum+steps, 1.765 for max+steps, with two seeds above the threshold for max), and the failure counts 1/5 and 3/5 failing seeds). The post hoc S16 comparison is at D64 point the other way (1/5 for sum, 2/5 for max). For not significant either. On the growing-degree family the two that pair H4 is inconclusive. systems fail differently (Table III): sum+steps gave a non-finite Reference predictors. Table II lists three predictors eval- D64 error in 4/5 seeds and an error of 1.0 × 1017 in the fifth, uated on the same graphs. On sparse graphs, the median whereas max+steps exceeded the threshold in 3/5 seeds with relative error at 64 nodes of sum (0.097) and of max (0.051) is errors that stayed finite (at most 35.55). No test on D64 is below that of the hop-count predictor (0.230), whereas that of possible with non-finite values. sum+steps (0.324), max+steps (1.223) and the MLP is above H2 (step supervision helps max): not supported. In the it; the constant predictor has 0.562. On dense graphs at 64 registered S64 test the means are 0.909 without and 1.955 nodes only max is below the constant predictor (0.127 against with steps (p = 0.363): the sign is opposite to H2 and 0.231): sum has 0.763, above both the constant and the hop- the difference is within seed noise. The exploratory evidence count predictor (0.594), and max+steps has 6.055, worse than points against H2: without steps the max MPNN has the predicting zero. In distribution (S8) every MPNN is below the lowest in-distribution error (S8 median 0.006 against 0.021 hop-count predictor (0.185) and the MLP (0.239) is above it. with steps) and a lower S16 error (paired p = 0.041 in a post So several MPNN configurations that look acceptable in the hoc, uncorrected test on five seeds, Table V). The medians at MAE tables are not better than a trivial predictor at 64 nodes, S8 and S16 are also lower without steps for sum (S8 0.018 vs. in particular on dense graphs. 0.036, S16 0.028 vs. 0.108). This registered comparison used Where it fails. Table III shows that every MPNN configura- the original step loss, which averages T distance terms plus a tion has at least one failing seed in at least one family. The max classification term and so gives the final distance only a 1/T MPNN without steps is accurate on three seeds (S64 MAE at share of the loss. The controls of Section VI (separated loss most 0.073) but seeds 0 and 1 fail at both S64 and D64. The terms with the final-distance coefficient held fixed, and 5000 sum MPNN without steps has no failing sparse seed, but seed steps) change the picture: the verdict on H2 above stands as 4 gave a non-finite error at D64. Max+steps fails on seeds 1–3 registered, but the statement that step supervision does not in both families. Sum+steps fails on one sparse seed and on help does not hold in general (Section VI). every dense seed. The non-finite errors come from non-finite H3 (MLP worse than every MPNN for n ≥ 16): network outputs; in the main group they occur only for sum supported at S16 against max+steps, not supported at aggregation and only on the dense family at 64 nodes, where S64. At S16 the MLP is far worse than the reference (MAE a node sums over the most neighbours for the most steps. This TABLE I SPARSE FAMILY, MAE (MEAN ± STD OVER SEEDS; LAST COLUMN = NUMBER OF SEEDS); BOLD BEST, UNDERLINE SECOND. Method mae_sparse_n8 ↓ mae_sparse_n16 ↓ mae_sparse_n32 ↓ mae_sparse_n64 ↓ n MPNN-sum + steps 0.04 ± 0.01 0.12 ± 0.04 0.43 ± 0.24 54707.72 ± 122329.15 5 MPNN-max 0.01 ± 0.00 0.03 ± 0.01 0.25 ± 0.46 0.91 ± 1.22 5 MPNN-sum 0.02 ± 0.00 0.03 ± 0.01 0.08 ± 0.06 0.23 ± 0.19 5 MLP (flat adjacency) 0.24 ± 0.00 0.67 ± 0.01 1.02 ± 0.02 1.33 ± 0.02 5 MPNN-max + steps 0.03 ± 0.01 0.08 ± 0.04 0.24 ± 0.18 1.96 ± 2.05 5 TABLE II MEDIANS OVER 5 SEEDS. S/D: SPARSE/DENSE FAMILY, NUMBER = TEST NODES; MAE EXCEPT RS64/RD64 (RELATIVE ERROR). “FAIL” = SEEDS WITH RELATIVE ERROR (RS64 RESP. RD64) > 1 OR NON-FINITE, “–” NOT APPLICABLE; DIV. = NON-FINITE. THE LAST THREE ROWS ARE REFERENCE PREDICTORS COMPUTED ON THE SAME TEST GRAPHS (ZERO; CONSTANT = MEAN TRAINING DISTANCE; HOP COUNT TIMES THE MEAN EDGE WEIGHT OF THE GRAPH). System S8 S16 S32 S64 D8 D64 rS64 rD64 fail S64 fail D64 MLP (flat adjacency) 0.239 0.667 1.020 1.328 0.244 0.562 0.943 0.926 0/5 0/5 MPNN-sum 0.018 0.028 0.063 0.140 0.017 0.464 0.097 0.763 0/5 1/5 MPNN-sum + steps 0.036 0.108 0.400 0.460 0.037 div. 0.324 div. 1/5 5/5 MPNN-max 0.006 0.026 0.053 0.073 0.006 0.076 0.051 0.127 2/5 2/5 MPNN-max + steps 0.021 0.057 0.143 1.765 0.021 3.611 1.223 6.055 3/5 3/5 Zero predictor 0.678 0.930 1.168 1.410 0.701 0.606 1.000 1.000 – – Constant predictor 0.328 0.436 0.597 0.796 0.344 0.139 0.562 0.231 – – Hop count x mean weight 0.185 0.241 0.284 0.322 0.189 0.361 0.230 0.594 – – TABLE III PER-SEED VALUES (SEEDS 0–4): SPARSE MAE AT 64 NODES, DENSE MAE AT 64 NODES, AND DENSE MAE AT 8 NODES (H4 COMPARES THE LAST TWO). DIV. = NON-FINITE; VALUES OF 100 OR MORE ARE GIVEN TO ONE SIGNIFICANT FIGURE (3e5 = 3 × 105 ). S64 MAE, seed D64 MAE, seed D8 MAE, seed System 0 1 2 3 4 0 1 2 3 4 0 1 2 3 4 MLP (flat adjacency) 1.32 1.33 1.32 1.36 1.33 0.57 0.55 0.59 0.54 0.56 0.25 0.25 0.24 0.24 0.24 MPNN-sum 0.42 0.45 0.063 0.14 0.054 0.46 0.19 0.58 0.22 div. 0.019 0.017 0.014 0.026 0.016 MPNN-sum + steps 0.33 0.46 0.39 0.67 3e5 div. div. div. 1e17 div. 0.050 0.037 0.023 0.032 0.059 MPNN-max 2.63 1.79 0.011 0.073 0.042 3.71 2.45 0.008 0.076 0.046 0.009 0.008 0.004 0.006 0.006 MPNN-max + steps 0.21 5.15 2.50 1.76 0.15 0.16 35.55 4.71 3.61 0.13 0.027 0.046 0.019 0.021 0.018 may reflect activations growing with degree, but we logged no Test-time steps. Table VII, Table VIII and Fig. 2 rerun the activations and no run isolates the cause. With five seeds we two step-supervised systems and the two final-only systems cannot rank the four MPNN configurations by reliability. (seeds 0–4) with the number of message-passing steps at test time scaled to 0.5, 1, 2 and 4 times n − 1 (training always VI. ABLATIONS AND ANALYSIS used n − 1; the ×1 column is the main-group result for the Aggregation type. Table VI adds mean aggregation (five same seeds; ×4 was added after the registered sweep). The first seeds, medians; the sum and max rows are the main group, version of this paper swept only the step-supervised systems so all six rows use the same seeds). Without steps, max has on seeds 0–2; seeds 3 and 4 for them and all final-only runs the lowest S64 median (0.073) but two failing seeds, sum were added in this revision. In all 20 seed-models and in both has 0.140 and mean 0.221, both with no failing sparse seed. cells the error at ×2 and at ×4 is above the error at ×1, and With steps, sum has the lowest S64 median (0.460), then mean at ×0.5 it is not above it (Table VII, columns ↑). The size (0.728) and max (1.765, three failing seeds). Mean with steps of the increase differs strongly between regimes. For the step- has the highest S8 and S16 medians of all six rows, but it is the supervised systems the S64 median rises from 1.76 (×1) to only step-supervised system whose D64 median is finite and 5.43 (×2) and 4.1×104 (×4) for max+steps, and from 0.46 to below 1 (0.216, one failing seed). Without steps, mean also 0.82 for sum+steps (the ×4 median is in Table VII); per seed has one failing seed at D64. This ablation therefore shows that (Table VIII) individual errors reach 1020 or are non-finite. For failures at 64 nodes are not confined to sum and max; it does the final-only systems the S64 median moves from 0.073 to not show that mean is better, and with five seeds we do not 0.083 and 0.084 (max) and from 0.14 to 0.14 and 0.14 (sum), claim a ranking. (The first version of this ablation used three and most seeds change by less than 0.02, but not all (max seed seeds and found mean to have the lowest S64 median without 0 goes from 2.63 at ×1 to 4.04 at ×2, sum seed 1 from 0.45 steps; with seeds 3 and 4 added that no longer holds.) TABLE IV RELATIVE ERROR AT 64 NODES PER SEED (SEEDS 0–4) IN THE SPARSE (RS64) AND DENSE (RD64) FAMILY; DIV. = NON-FINITE, VALUES OF 100 OR MORE TO ONE SIGNIFICANT FIGURE. A RELATIVE ERROR ABOVE 1 IS WORSE THAN PREDICTING ZERO. rS64, seed rD64, seed System 0 1 2 3 4 0 1 2 3 4 MLP (flat adjacency) 0.95 0.94 0.96 0.94 0.94 0.94 0.91 0.97 0.90 0.93 MPNN-sum 0.30 0.32 0.046 0.097 0.038 0.76 0.32 0.95 0.36 div. MPNN-sum + steps 0.24 0.32 0.28 0.47 2e5 div. div. div. 2e17 div. MPNN-max 1.89 1.26 0.008 0.051 0.029 6.11 4.06 0.014 0.13 0.076 MPNN-max + steps 0.15 3.63 1.82 1.22 0.11 0.26 58.88 7.78 6.06 0.21 TABLE V TABLE VII TESTS AGAINST MPNN-MAX + STEPS (5 SEEDS, SEED-LEVEL MAE; “REF.” AND TEST-TIME STEP MULTIPLIER, ALL FOUR MPNN SYSTEMS: MEDIAN MAE OVER “OTHER” ARE THE GROUP MEANS OF MAX+STEPS AND OF THE COMPARED SEEDS 0–4 (VALUES OF 100 OR MORE TO ONE SIGNIFICANT FIGURE) AND, IN THE SYSTEM). ROWS MARKED ∗ WERE NOT REGISTERED AND ARE POST HOC, LAST THREE COLUMNS, THE NUMBER OF SEEDS WHOSE ERROR AT THAT UNCORRECTED. MULTIPLIER IS ABOVE THE ERROR AT ×1. †: NOT IN THE REGISTERED SWEEP (POST HOC). System Cell Ref. Other Welch p paired p H1 sum+steps S64 1.955 5.5e+04 0.374 0.374 System Cell ×0.5 ×1 ×2 ×4† ↑ at ×0.5 ↑ at ×2 ↑ at ×4 H1 sum+steps S16∗ 0.078 0.119 0.160 0.231 max+steps S16 0.031 0.057 0.14 1.92 0/5 5/5 5/5 H2 max S64 1.955 0.909 0.363 0.363 max+steps S64 0.16 1.76 5.43 4e4 0/5 5/5 5/5 H2 max S16∗ 0.078 0.027 0.044 0.041 H3 MLP S16 0.078 0.671 7.5e-07 4.2e-06 sum+steps S16 0.067 0.11 0.42 0.80 0/5 5/5 5/5 H3 MLP S64 1.955 1.333 0.535 0.535 sum+steps S64 0.35 0.46 0.82 2.73 0/5 5/5 5/5 max S16 0.008 0.026 0.058 0.093 0/5 5/5 5/5 max S64 0.063 0.073 0.083 0.084 0/5 5/5 5/5 TABLE VI AGGREGATION ABLATION, MEDIAN MAE OVER SEEDS 0–4; IN PARENTHESES THE sum S16 0.027 0.028 0.052 0.17 0/5 5/5 5/5 NUMBER OF SEEDS WITH RELATIVE ERROR > 1 OR NON-FINITE (AT 64 NODES, IN sum S64 0.085 0.14 0.14 0.14 0/5 5/5 5/5 THE RESPECTIVE FAMILY). Aggregation S8 S16 S64 (fail) D64 (fail) S16 MAE S64 MAE 105 105 sum 0.018 0.028 0.140 (0/5) 0.464 (1/5) 104 104 mean 0.023 0.065 0.221 (0/5) 0.156 (1/5) 103 103 max 0.006 0.026 0.073 (2/5) 0.076 (2/5) MPNN-max + steps 102 MPNN-sum + steps 102 sum + steps 0.036 0.108 0.460 (1/5) div. (5/5) MPNN-max 101 101 mean + steps 0.073 0.203 0.728 (1/5) 0.216 (1/5) MPNN-sum 100 100 max + steps 0.021 0.057 1.765 (3/5) 3.611 (3/5) 10−1 10−1 10−2 10−2 0.5 1.0 2.0 4.0 0.5 1.0 2.0 4.0 to 0.85 at ×4); the S16 median still rises for max from 0.026 test-time steps / (n-1) test-time steps / (n-1) to 0.093 at ×4. So extra rounds are not harmless for any of the four systems, but in this setup the large instability belongs to Fig. 2. All four MPNN systems: median MAE (dots: seeds 0–4) versus test- the step-supervised ones. The converse holds as well: halving time steps divided by n − 1, sparse family, 16 and 64 nodes (different vertical ranges). Non-finite values and values of 105 or more are drawn at 105 (dotted the steps lowers or leaves unchanged the error in every model line). and both cells. Exact Bellman-Ford needs at most 8 rounds on any of the sparse 64-node test graphs (Table IX), far fewer than the 32 rounds of ×0.5, so the lower error at ×0.5 is 5.37 and 3.09, so T = 7 is enough for the algorithm on not explained by the algorithm needing fewer rounds in that all but a fraction 0.003 of the sparse 64-node graphs. We setting; the result is consistent with error accumulating over then evaluated the four MPNN systems, trained exactly as rounds beyond the convergence depth, but we logged no per- in the main group (same seeds and commands apart from round errors or activations and did not test this explanation. the evaluation flag), with T = 7 rounds at every test size Iteration count or graph size? Training unrolls at most (Table X; training with T drawn independently of n was not T = 7 rounds, whereas the main evaluation uses T = n − 1, run). With T = 7 the failures of the max systems disappear: i.e. 63 rounds at 64 nodes, so graph size and number of S64 medians fall from 0.073 to 0.012 (max) and from 1.765 rounds change together. Table IX gives the exact number of to 0.065 (max+steps), D64 medians from 0.076 to 0.007 and synchronous Bellman-Ford rounds needed on the test graphs from 3.61 to 0.036, and no seed fails in either family (2/5, (computed for the same graphs the networks are tested on): at 3/5, 2/5 and 3/5 failures before). For sum, the S64 median falls most 8 on sparse and 4 on dense 64-node graphs, on average from 0.140 to 0.108 and from 0.460 to 0.266 (no failing sparse TABLE VIII over rounds 1, . . . , T − 1: intermediate distances only (+dist), TEST-TIME STEP MULTIPLIER AT S64, PER SEED (SEEDS 0–4, FIVE ROWS PER reachability BCE only (+bce), and both (+dist+bce); the SYSTEM IN ORDER). VALUES OF 100 OR MORE TO ONE SIGNIFICANT FIGURE; DIV. = NON-FINITE. †: POST HOC. original step loss is listed as “original steps loss”. Separately, every one of the eleven configurations (the five of the main System, seed ×0.5 ×1 ×2 ×4† table and these six variants, including the MLP) was trained for 5000 instead of 1000 Adam steps, with the same cosine max+steps 0.16 0.21 0.23 0.23 0.28 5.15 7e4 8e12 schedule, learning rate and seeds. The logged validation MAE 0.47 2.50 3e2 1e7 on the training distribution (val8 in Table XI) is lower at 5000 0.14 1.76 5.43 4e4 than at 1000 steps for every configuration, so a validation- 0.095 0.15 0.19 0.21 based choice between the two budgets selects 5000 steps for sum+steps 0.23 0.33 0.42 2.73 all of them; we report both. No hyperparameter other than the 0.45 0.46 0.46 0.46 budget was varied. 0.31 0.39 5.22 5e4 At 1000 steps (Table XI, left; descriptive medians, no 0.35 0.67 0.82 0.84 0.77 3e5 8e20 div. test was run on these rows), adding intermediate-distance supervision with the final coefficient held fixed does not hurt max 0.12 2.63 4.04 4.04 but helps the max MPNN: S8 median 0.003 against 0.006 for 1.09 1.79 1.79 1.79 0.011 0.011 0.011 0.011 final-only, S64 median 0.008 against 0.073, with no failing 0.063 0.073 0.083 0.084 seed (2/5 for final-only). The BCE term alone is poor at 0.040 0.042 0.042 0.042 this budget (S8 median 0.092), and with both terms the S64 sum 0.22 0.42 0.42 0.42 median is 0.60 with one failing seed at S64 and three at D64. 0.085 0.45 0.59 0.85 Among the five max variants the original loss has the highest 0.061 0.063 0.063 0.063 S64 and D64 medians, and its S8 median is lower only than 0.11 0.14 0.14 0.14 that of +bce. For sum, +dist is also better than final-only in 0.049 0.054 0.057 0.059 distribution (S8 0.010 vs. 0.018) while the BCE term makes the dense-family error worse (D64 failing seeds 3/5 for +bce TABLE IX and 5/5 for +dist+bce, against 0/5 for +dist). At 5000 steps EXACT BELLMAN-FORD CONVERGENCE ON THE TEST GRAPHS (200 GRAPHS PER (Table XI, right) all max variants reach S64 medians of at SEED AND CELL, SEEDS 0–4): ROUNDS NEEDED UNTIL THE DISTANCES EQUAL THE FINAL DISTANCES, MEAN AND MAXIMUM OVER GRAPHS AND SEEDS, AND THE most 0.025 and the differences between the three new variants SHARE OF GRAPHS NEEDING MORE THAN 7 ROUNDS (THE TRAINING MAXIMUM). and final-only are small and not significant at S8, S16 and S64 (Table XII, post hoc, uncorrected, five seeds; all p > 0.1). The Cell n−1 mean rounds max rounds share > 7 original step loss is still the worst of the five max variants: its S8 7 2.45 4 0.000 S8 and S16 means are higher than final-only (Welch p = 0.039 S16 15 3.49 8 0.001 and 0.049, paired p = 0.112 and 0.114) and one of its seeds S32 31 4.50 8 0.001 still fails at S64 (mean 0.577 against 0.0045, p = 0.176). S64 63 5.37 8 0.003 D8 7 2.52 5 0.000 For sum, the sparse errors at 5000 steps are small for every D16 15 2.95 5 0.000 variant (S64 medians between 0.012 and 0.028), but the dense- D32 31 3.14 4 0.000 family error overflows for every sum variant including final- D64 63 3.09 4 0.000 only (D64 median 3.5 × 1021 , 4/5 failing seeds, against one failing seed at 1000 steps): the dense-family overflow of sum aggregation seen in the main table is therefore not specific to seed at T = 7), but the D64 error of sum+steps stays enormous step supervision, and training longer does not remove it. The (median 3.4 × 102 , 5/5 failing seeds, as with T = n − 1): that MLP stays far from the MPNNs at 5000 steps (S8 median overflow is not explained by the number of rounds alone. At 0.198). What these controls show is that the main-table result T = 7 the S64 error of max is still above its S8 error (0.012 that step supervision does not help is a property of the original vs. 0.006). Thus, for the max systems, the 64-node failures combined loss at 1000 steps; they do not isolate which of of the main table are attributable to extrapolating the number the BCE term and the 1/T weighting of the final distance of rounds, not to the larger graphs; for sum+steps on dense causes it, since the original loss differs from +dist+bce in the graphs they are not. weighting and we did not vary the weighting separately. Step-supervision controls. The step loss of the main com- parison changes several things at once: it adds intermediate- VII. LIMITATIONS distance targets, adds a reachability BCE term, and, because This is a small CPU study. (i) One algorithm, one graph everything is averaged over T rounds, gives the final distance generator and two test families; conclusions may not transfer only a share 1/T of the loss. We therefore trained, for both to other CLRS algorithms, to integer weights, or to directed aggregators and five seeds, three further variants in which the graphs. (ii) Five seeds for every table; the seed-to-seed spread final-distance term has coefficient 1 as in the final-only loss is as large as most between-system differences, so most and the other terms are added with coefficient 1, each averaged comparisons at 32 and 64 nodes are underpowered and only TABLE X FIXED NUMBER OF TEST-TIME ROUNDS. MEDIAN MAE OVER SEEDS 0–4 WITH T = n − 1 (MAIN GROUP) AND WITH T = 7, AND THE NUMBER OF SEEDS WITH RELATIVE ERROR > 1 OR NON-FINITE. THE NETWORKS ARE THE SAME AS IN THE MAIN GROUP (SAME SEED AND TRAINING); ONLY THE NUMBER OF TEST-TIME ROUNDS DIFFERS. S32 S64 D64 fail S64 fail D64 System n−1 7 n−1 7 n−1 7 n−1 7 n−1 7 MPNN-sum 0.063 0.052 0.140 0.108 0.464 0.447 0/5 0/5 1/5 0/5 MPNN-sum + steps 0.400 0.128 0.460 0.266 div. 3e+02 1/5 0/5 5/5 5/5 MPNN-max 0.053 0.009 0.073 0.012 0.076 0.007 2/5 0/5 2/5 0/5 MPNN-max + steps 0.143 0.044 1.765 0.065 3.611 0.036 3/5 0/5 3/5 0/5 TABLE XI SEPARATED STEP-LOSS TERMS AND TWO BUDGETS (1000 AND 5000 ADAM STEPS; EVERY CONFIGURATION TRAINED AT BOTH). MEDIANS OVER SEEDS 0–4 OF VALIDATION MAE ON THE TRAINING DISTRIBUTION (VAL8) AND MAE AT S8, S16, S64 AND D64; IN PARENTHESES THE NUMBER OF SEEDS WITH RELATIVE ERROR > 1 OR NON-FINITE AT 64 NODES. VALUES OF 100 OR MORE TO ONE SIGNIFICANT FIGURE. 1000 steps 5000 steps System val8 S8 S16 S64 (fail) D64 (fail) val8 S8 S16 S64 (fail) D64 (fail) max final only 0.006 0.006 0.026 0.073 (2/5) 0.076 (2/5) 0.002 0.002 0.003 0.004 (0/5) 0.005 (0/5) max +dist 0.003 0.003 0.006 0.008 (0/5) 0.006 (0/5) 0.001 0.001 0.002 0.002 (0/5) 0.002 (0/5) max +bce 0.10 0.092 0.26 0.93 (0/5) 0.20 (0/5) 0.002 0.002 0.002 0.005 (0/5) 0.002 (0/5) max +dist+bce 0.007 0.007 0.021 0.60 (1/5) 1.29 (3/5) 0.001 0.001 0.002 0.003 (0/5) 0.002 (0/5) max original steps loss 0.023 0.021 0.057 1.76 (3/5) 3.61 (3/5) 0.002 0.002 0.006 0.025 (1/5) 0.051 (2/5) sum final only 0.016 0.018 0.028 0.14 (0/5) 0.46 (1/5) 0.003 0.003 0.006 0.028 (0/5) 4e21 (4/5) sum +dist 0.010 0.010 0.017 0.13 (0/5) 0.22 (0/5) 0.002 0.002 0.005 0.015 (0/5) 4e16 (4/5) sum +bce 0.041 0.040 0.096 0.43 (0/5) 6.58 (3/5) 0.004 0.004 0.007 0.015 (0/5) 1e15 (5/5) sum +dist+bce 0.019 0.020 0.051 0.24 (0/5) div. (5/5) 0.003 0.003 0.005 0.012 (0/5) div. (4/5) sum original steps loss 0.037 0.036 0.11 0.46 (1/5) div. (5/5) 0.004 0.004 0.009 0.022 (0/5) 2e18 (4/5) MLP 0.24 0.24 0.67 1.33 (0/5) 0.56 (0/5) 0.21 0.20 0.65 1.32 (0/5) 0.56 (0/5) one registered test (MLP at S16) is significant. Medians, the few distinct graphs at n = 4). (vii) The fixed-round control relative failure threshold and the failure counts are descriptive changes only the number of rounds at test time; training choices made after seeing the data, and the post hoc tests are with T drawn independently of n was not run, so we cannot uncorrected. (iii) The main comparison uses a single budget of say how a network trained with more rounds would behave. 1000 steps with no hyperparameter search. The revision adds (viii) The mechanism behind the failures (accumulating error, one longer budget (5000 steps) for every configuration, chosen activation growth with degree, non-idempotent updates) is between the two budgets by the validation MAE on the training not isolated: we measured the number of rounds Bellman- distribution only; no learning rate, loss weight other than the Ford needs on the test graphs, but we logged no per-round ones named in Section VI, or still longer budget was tried, errors or activations and did not inspect the runs with non- so the 5000-step results are not tuned results, and we cannot finite outputs beyond their final metrics, and we ran no fixed- say that the ordering at 5000 steps would persist with still size degree comparison. A full study would add more seeds, longer training. The controls do not separate the reachability- tuned baselines, larger training sizes, other algorithms and the BCE term from the 1/T weighting of the final distance in published processors. the original step loss. (iv) The architectures are our simplified VIII. CONCLUSION reimplementations (width 32, no gating, no layer norm, no triplet reasoning) of the cited ideas, not the published systems; In this small study of neural Bellman-Ford with training no published processor was run, so the results say nothing on at most 8 nodes, no registered comparison at 64 nodes about the published results. The MLP’s output coordinates 8– was statistically significant. On the registered primary metric 63 never receive a training target and we did not repair this; (mean error on sparse 64-node graphs) the sum MPNN trained it is a deliberately limited control. (v) Absolute errors are not on the final distance alone was lowest and had no failing comparable across the two families because distance scales sparse seed, although one of its seeds gave a non-finite error differ; the failure threshold is therefore relative (error above on dense graphs. The aggregation-aligned max MPNN trained that of predicting zero), and the zero, constant and hop-count on the final distance alone had the lowest error in distribution reference predictors give anchors, but none of them is a tuned and, by the post hoc median, at 64 nodes, but it failed on or learned baseline. (vi) The training graphs are small enough two of five seeds there. Controls added in the revision show that the training distribution is only partly representative (very that the 64-node failures of both max MPNNs are failures to extrapolate the number of rounds: exact Bellman-Ford needs TABLE XII MAX MPNN AT 5000 STEPS: VARIANTS OF THE STEP LOSS AGAINST THE FINAL-DISTANCE LOSS ONLY, SEED-LEVEL MAE (FIVE SEEDS; POST HOC, UNCORRECTED). Max variant vs final-only Cell Final-only mean Variant mean Welch p paired p original steps loss S8 0.0013 0.0021 0.0389 0.112 original steps loss S16 0.0024 0.0052 0.0494 0.114 original steps loss S64 0.0045 0.577 0.176 0.175 +dist S8 0.0013 0.0010 0.230 0.224 +dist S16 0.0024 0.0015 0.180 0.171 +dist S64 0.0045 0.0024 0.138 0.147 +bce S8 0.0013 0.0016 0.288 0.403 +bce S16 0.0024 0.0026 0.739 0.798 +bce S64 0.0045 0.0046 0.979 0.984 +dist+bce S8 0.0013 0.0012 0.722 0.583 +dist+bce S16 0.0024 0.0017 0.330 0.234 +dist+bce S64 0.0045 0.0026 0.169 0.131 at most 8 rounds on the sparse 64-node test graphs, and with [5] K. Xu, M. Zhang, J. Li, S. S. Du, K. ichi Kawarabayashi, and the training maximum of 7 rounds at test time no seed of S. Jegelka, “How Neural Networks Extrapolate: From Feedforward to Graph Neural Networks,” arXiv preprint arXiv:2009.11848, 2020. either max MPNN fails, while the dense-family overflow of [Online]. Available: https://arxiv.org/abs/2009.11848 the step-supervised sum MPNN remains. With the original [6] A. Dudzik and P. Veličković, “Graph Neural Networks are Dynamic step loss and 1000 steps, step-wise supervision did not help; Programmers,” arXiv preprint arXiv:2203.15544, 2022. [Online]. Available: https://arxiv.org/abs/2203.15544 this is a statement about that loss and budget: with the final- [7] P. Veličković, R. Ying, M. Padovano, R. Hadsell, and C. Blundell, “Neu- distance coefficient held fixed, intermediate-distance supervi- ral Execution of Graph Algorithms,” arXiv preprint arXiv:1910.10593, sion lowered the max MPNN’s median error at 1000 steps 2019. [Online]. Available: https://arxiv.org/abs/1910.10593 [8] G. Yehudai, E. Fetaya, E. Meirom, G. Chechik, and H. Maron, (descriptively, without a test), and at 5000 steps all variants are “From Local Structures to Size Generalization in Graph Neural close, with the original step loss still the worst in distribution. Networks,” arXiv preprint arXiv:2010.08853, 2020. [Online]. Available: The sum MPNN overflows on dense 64-node graphs at 5000 https://arxiv.org/abs/2010.08853 [9] B. Ibarz, V. Kurin, G. Papamakarios, K. Nikiforou, M. Bennani, steps with or without step supervision. The flattened-adjacency R. Csordás, A. Dudzik, M. Bošnjak, A. Vitvitskyi, Y. Rubanova, MLP, a deliberately limited control, was poor at every size, A. Deac, B. Bevilacqua, Y. Ganin, C. Blundell, and including in distribution, and several MPNN configurations P. Veličković, “A Generalist Neural Algorithmic Learner,” arXiv preprint arXiv:2209.11142, 2022. [Online]. Available: were no better than a hop-count predictor at 64 nodes. Running https://arxiv.org/abs/2209.11142 more message-passing steps than n − 1 at test time raised the [10] P. Veličković, L. Buesing, M. C. Overlan, R. Pascanu, error of all four MPNN systems on every seed, by orders O. Vinyals, and C. Blundell, “Pointer Graph Networks,” arXiv preprint arXiv:2006.06380, 2020. [Online]. Available: of magnitude for the step-supervised systems and by little https://arxiv.org/abs/2006.06380 for most seeds of the final-only systems. The intuition that [11] J. Gilmer, S. S. Schoenholz, P. F. Riley, O. Vinyals, and G. E. Dahl, alignment plus hints yields size generalisation was therefore “Neural Message Passing for Quantum Chemistry,” arXiv preprint arXiv:1704.01212, 2017. [Online]. Available: https://arxiv.org/abs/1704. not confirmed here, and a large part of what looked like a 01212 size effect is an iteration-count effect already described in the [12] P. W. Battaglia, J. B. Hamrick, V. Bapst, A. Sanchez-Gonzalez, literature; a larger and tuned study is needed before drawing V. Zambaldi, M. Malinowski, A. Tacchetti, D. Raposo, A. Santoro, R. Faulkner, C. Gulcehre, F. Song, A. Ballard, J. Gilmer, G. Dahl, a conclusion either way. A. Vaswani, K. Allen, C. Nash, V. Langston, C. Dyer, N. Heess, D. Wierstra, P. Kohli, M. Botvinick, O. Vinyals, Y. Li, and R. Pascanu, “Relational inductive biases, deep learning, and graph REFERENCES networks,” arXiv preprint arXiv:1806.01261, 2018. [Online]. Available: https://arxiv.org/abs/1806.01261 [1] P. Veličković and C. Blundell, “Neural Algorithmic Reasoning,” [13] B. Bevilacqua, Y. Zhou, and B. Ribeiro, “Size-Invariant Graph arXiv preprint arXiv:2105.02761, 2021. [Online]. Available: https: Representations for Graph Classification Extrapolations,” arXiv preprint //arxiv.org/abs/2105.02761 arXiv:2103.05045, 2021. [Online]. Available: https://arxiv.org/abs/2103. [2] P. Veličković, A. P. Badia, D. Budden, R. Pascanu, A. Banino, 05045 M. Dashevskiy, R. Hadsell, and C. Blundell, “The CLRS Algorithmic [14] B. Bevilacqua, K. Nikiforou, B. Ibarz, I. Bica, M. Paganini, C. Blundell, Reasoning Benchmark,” arXiv preprint arXiv:2205.15659, 2022. J. Mitrovic, and P. Veličković, “Neural Algorithmic Reasoning [Online]. Available: https://arxiv.org/abs/2205.15659 with Causal Regularisation,” arXiv preprint arXiv:2302.10258, 2023. [3] J. Minder, F. Grötschla, J. Mathys, and R. Wattenhofer, “SALSA-CLRS: [Online]. Available: https://arxiv.org/abs/2302.10258 A Sparse and Scalable Benchmark for Algorithmic Reasoning,” [15] G. Rodionov and L. Prokhorenkova, “Neural Algorithmic Reasoning arXiv preprint arXiv:2309.12253, 2023. [Online]. Available: https: Without Intermediate Supervision,” arXiv preprint arXiv:2306.13411, //arxiv.org/abs/2309.12253 2023. [Online]. Available: https://arxiv.org/abs/2306.13411 [4] K. Xu, J. Li, M. Zhang, S. S. Du, K. ichi Kawarabayashi, [16] S. Mahdavi, K. Swersky, T. Kipf, M. Hashemi, C. Thrampoulidis, and and S. Jegelka, “What Can Neural Networks Reason About?” R. Liao, “Towards Better Out-of-Distribution Generalization of Neural arXiv preprint arXiv:1905.13211, 2019. [Online]. Available: https: Algorithmic Reasoning Tasks,” arXiv preprint arXiv:2211.00692, 2022. //arxiv.org/abs/1905.13211 [Online]. Available: https://arxiv.org/abs/2211.00692 [17] H. Tang, Z. Huang, J. Gu, B.-L. Lu, and H. Su, “Towards Scale- Invariant Graph-related Problem Solving by Iterative Homogeneous Graph Neural Networks,” arXiv preprint arXiv:2010.13547, 2020. [Online]. Available: https://arxiv.org/abs/2010.13547 [18] D. Georgiev, J. Wilson, D. Buffelli, and P. Liò, “Deep Equilibrium Algorithmic Reasoning,” arXiv preprint arXiv:2410.15059, 2024. [Online]. Available: https://arxiv.org/abs/2410.15059