PHYSICAL PDF PAGE 1 / 17

                 What Makes a Good Feedforward Computational Graph?





                      Alex Vitvitskyi 1 João G.M. Araújo 1 Marc Lackenby 2 Petar Veličković 1





                         Abstract                                                                          What makes a good feedforward computational graph?

     As implied by the plethora of literature on graph

                                                                                                       4









                                                                         Normalised minimax fidelity

     rewiring, the choice of computational graph em-

     ployed by a neural network can make a significant

                                                                                                       3

     impact on its downstream performance. Certain

     effects related to the computational graph, such

                                                                                                       2                                      Erd s-Rényi

     as under-reaching and over-squashing, may even                                                                                           Fully connected

     render the model incapable of learning certain                                                                                           Poisson

                                                                                                       1                                      FS

     functions. Most of these effects have only been                                                                                          Line

     thoroughly studied in the domain of undirected                                                                                           Expander

                                                                                                       0

     graphs; however, recent years have seen a signifi-                                                        10        20        30        40        50

     cant rise in interest in feedforward computational                                                                       Mixing time

     graphs: directed graphs without any back edges.

     In this paper, we study the desirable properties of              Figure 1. In this paper, we propose two measures which can be

     a feedforward computational graph, discovering                   used to assess suitability of feedforward computational graphs

     two important complementary measures: fidelity                   for neural networks – mixing time (lower is better; Sec. 4) and

     and mixing time, and evaluating a few popular                    (normalised) minimax fidelity (higher is better; Sec. 5). Here we

                                                                      plot these metrics as attained by various graph generators—at each

     choices of graphs through the lens of these mea-

                                                                      point in a sequence, the number of nodes doubles, starting from

     sures. Our study is backed by both theoretical                   16. Using FunSearch (Romera-Paredes et al., 2023), we discover

     analyses of the metrics’ asymptotic behaviour for                the FS graphs, which have favourable O(polylog n) mixing time,

     various graphs, as well as correlating these met-                while retaining higher fidelity compared to a fully connected graph

     rics to the performance of trained neural network                (Sec. 6). Several of these graphs may be viewed in Appendix D.

     models using the corresponding graphs.



                                                                      models scalably and without leaking ground-truth data about

1. Introduction                                                       the future input parts that need to be predicted. As such,

                                                                      many modern architectures resort to feedforward computa-

Modern deep learning workloads frequently necessitate pro-            tional graphs, wherein information may only flow from older

cessing of sequential inputs, such as words in a sentence             samples towards newer ones—never in reverse! Applying

(Sutskever et al., 2014), samples of an audio recording               such a graph – also known as a “causal mask” (Srambical,

(Van Den Oord et al., 2016), partially ordered nodes in               2024) – allows for scalable training over entire chunks of

a graph (Thost & Chen, 2021), execution steps of an algo-             the input at the same time.

rithm (Veličković et al., 2022), or snapshots of edits made

to temporal graphs (Rossi et al., 2020). In addition, many            This naturally invites the question: what makes a good

important self-supervised learning tasks require efficiently          feedforward computational graph? Alternately worded,

predicting future evolution of such inputs, with examples             which considerations need to be taken into account when

ranging from temporal link prediction (Huang et al., 2024)            deciding which feedforward graph to use (see Figure 1)?

to next token prediction (Radford et al., 2018).                      Here we propose two suitable and complementary ways to

In regimes like this, it is important to be able to train such        measure suitability of feedforward graphs: mixing time—

                                                                      the speed at which input data converges towards a stationary

   1

     Google DeepMind 2 University of Oxford. Correspondence to:       distribution—and minimax fidelity—the sharpness of the

Alex Vitvitskyi <avlife@google.com>.                                  data is as it propagates through the graph. We supplement

Proceedings of the 42 nd International Conference on Machine          our measures with thorough theoretical derivations across

Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025           several graph generators, and correlate them to empirical

by the author(s).                                                     performance, paving the way to future studies in the area.



                                                                  1

