PHYSICAL PDF PAGE 3 / 17

                                   What Makes a Good Feedforward Computational Graph?



Self-Edges. We will always assume all self-edges are                  Hence, in this case, the spectrum of the walk matrix is

present in the graph – that is, (i, i) ∈ E for all i ∈ V, un-         obtained from the spectrum of A by scalar multiplication.

less otherwise stated. This is generally an important design

decision for improving data retention.                                4.2. Stationary Distributions



Unique Sinks. As we will be tracking how easily informa-              A probability distribution π ∈ Rn on the vertices is station-

tion from each node can reach the designated sink node, τ ,           ary if Wπ = π. In other words, π is unchanged by one

it is highly desirable that our graph generator does not create       step of the random walk.

additional sink nodes of any kind (beyond the final node, of          It is a well-known result that a strongly connected graph has

course). Any additional sink nodes imply an impossibility             a unique stationary distribution. Here, a graph is strongly

to reach the final sink from such nodes, and they are hence           connected if, for any ordered pair of vertices, there is an

effectively excluded from decision making.                            oriented path joining them. However, the graphs we will

                                                                      consider will be feedforward and hence not strongly con-

Self-Similarity. While most of our theory will concern                nected. In that case, we have the following useful result.

the flow of information specifically into τ , it is important         Lemma 4.1. Let G be a feedforward graph with a unique

to note that in real workloads, any node might be used as             sink vertex τ . Then there is a unique stationary distribution

a sink node (over an appropriately sampled sub-input). As             for W, namely 1τ , the probability distribution taking the

such, we focus our attention on self-similar feedforward              value 1 at τ and 0 elsewhere.

graphs, wherein we can expect similar flow properties to all

nodes (including ones in the middle).

                                                                      Proof. Certainly 1τ is stationary. To see that it is unique,

                                                                      consider a distribution π other than 1τ . Let i < n − 1 be

4. Mixing Time: Tracking Path Complexity                              its smallest vertex with πi ̸= 0. When applying the random

                                                                      walk matrix W, we can see that the probability of being at

We are now ready to work our way towards defining the

                                                                      i after one step is πi /δi→ . Since δi→ > 1, we deduce that

first of our two measures, the averaged mixing time of the

                                                                      π is not stationary.

feedforward graph. This measure tracks how quickly infor-

mation travels towards the sink, by carefully analysing the

                                                                      4.3. Mixing Times

expected path length from each node to the sink. Clearly, the

aim is to keep this value within reasonable upper bounds.             There are several definitions of mixing time in the literature.

                                                                      Here is one. The mixing time is the smallest value of t such

4.1. Basic Notions                                                    that for any starting distribution x,

For a feedforward graph of n nodes, G = (Zn , E), let A ∈                                ∥Wt x − π∥1 < 1/4.

Rn×n be its adjacency matrix, defined in the usual way:

                       (                                              Here, the L1 norm is used on probability distributions, i.e.,

                         1 (j, i) ∈ E                                 for two probability distributions x and y,

                 aij =                                  (1)

                         0 (j, i) ∈/E

                                                                                                     X

                                                                                      ∥x − y∥1 =        |xi − yi |.

keeping in mind that A must be lower-triangular due to the                                            i



feedforward constraint.                                               There is nothing special in the use of 1/4 here. Any fixed

Its walk matrix W is given by                                         0 < ϵ < 1/2 would work. In our set-up, it is reasonable

                     (                                                not consider a minimum over starting distributions x but an

                       1/δj→       (j, i) ∈ E                         ‘averaged’ version:

               wij =

                       0                  / E.

                                   (j, i) ∈                                               1X

                                                                                               ∥Wt ei − π∥1 ,

So W is the transition matrix for the (lazy) random walk                                 n i

where there is an equal probability of leaving vertex j along         where ei is the probability distribution concentrated on ver-

any of its outgoing edges. This will be well defined as               tex i. If we let Π be the square matrix that has π in each

long as δj→ > 0 for all j ∈ Zn ; we are guaranteeing this             column, then this is

condition by requiring all self-edges within the graph.

                                                                                             1

Note that for graphs where, for all j ∈ Zn , δj→ = κ for                                       ∥Wt − Π∥1 ,

                                                                                             n

some constant, κ, the walk matrix is related to the usual

                                                                      where now we are taking the L1 norm on matrices:

adjacency matrix A. Specifically

                                                                                                  X

                                1                                                        ∥B∥1 =       |bij |.

                         W=       A.                                                                  ij

                                κ

                                                                  3

