Manuscript Offprint
arXiv:2611.07336Energy-Time Optimal Decoding Using Expander-Graph LDPC Codes and Mesh Network Architecture
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Within the Thompson VLSI model, the first energy optimal decoding schemes (up to polylogarithmic factors) that also reach clock cycle lower bounds are constructed. Let be block length. Then, there is an exponential error scaling function and a binary symmetric channel, such that for all that scales to zero more slowly than this, there is a decoding scheme for this channel with error probability that scales as that has number of clock cycles and energy . This matches fundamental lower bounds up to polylogarithmic factors. The technique uses expander-graph based LDPC codes, a mesh network architecture, and a parallelization technique. The key technical result needed for this is a lemma in graph theory. This lemma is used to show that communication graphs of bounded node degree can be routed through two- and three-dimensional mesh networks without overflowing the memory of any mesh node. Upper bounds are also extended to three dimensions.
I. INTRODUCTION
ANY computational algorithms, including those for error control coding, belief propagation, and machine learning, can be characterized as parallel computations on graphs. Error control coding is implemented on cellphones and distributed devices, and thus requires fast and efficient computation that consumes very low energy. On the other hand, modern artificial intelligence and machine learning algorithms require extraordinary amounts of energy [1]. These requirements – for both hyper-energy-efficient error control coding for small, battery-powered devices and for optimal energy use in massive data center architectures – motivate this paper. Our main focus is on scaling rules, and in particular scaling rule upper bounds, for a large number of computational problems defined on graphs. We apply this to the problem of error control coding, where we construct the first energy-time optimal error control decoding schemes.
In particular we consider the mesh network, a natural design architecture first theoretically analyzed by Thompson [2], [3]. Since three-dimensional circuit layout techniques exist [4], we also generalize the approach to three dimensions. A mesh network is a two- or three-dimensional grid of Turing-complete processors, or nodes, in which each node can communicate information to its adjacent nodes.
This work is a generalization of Chapter 6 in the thesis of Blake [5], which has not yet been published in a peer-reviewed journal. The main result of this work involves Lemma 13. In this Lemma, we consider a sequence of graphs with vertices and constant maximum node degree. We consider permuting the vertices of this graph onto a set of slots, where two disjoint subsets of these slots are considered distinguished. Subject to some conditions on the sizes of those slots, we show that this random permutation results in at most edges connecting the two distinguished subsets, with high probability.
The idea is that the edges of the graph can correspond to messages to be sent between computational nodes in the parallel message-passing step of distributed algorithms. The lemma then implies that there exists a way to lay out a graph on a mesh network that allows for a message-passing procedure without exceeding the computational or memory requirements of each mesh node.
We apply this result directly to energy consumption of any algorithm defined on a graph. This includes matrix-vector multiplication, LDPC decoding on a Tanner graph, graph-based neural networks with constant node degree, and any other parallel-computation algorithm that can be defined on a graph. The key component is that the graph associated with each of these computations has bounded maximum node-degree. We show that for each of these types of computations, the communication step can be accomplished in parallel with a straightforward parallel message-passing protocol. For the two-dimensional case, the natural message passing protocol that we propose is called the up-down left-right protocol, and for three dimensions, we call it the up-down left-right back-forth protocol.
This result is a key ingredient in the first construction of energy-time optimal decoding schemes. These are schemes that reach energy consumption lower bounds, and also simultaneously reach the time lower bounds for such energy optimal schemes, up to polylogarithmic factors. The approach uses the expander-graph based LDPC codes of Burshtein and Miller [6]. Notably, the connection to the Expander Graph paper was suggested by ChatGPT Pro when proofreading an earlier version of this paper. We show how a decoding scheme with an exponentially vanishing probability of error that is also energy and time optimal (up to polylogarithmic factors) can be used to construct any energy-time optimal coding scheme with error scaling using a straightforward parallelization argument, for any that is slower than this exponential scaling.
Note: In this paper we use big-oh and big-theta notation introduced by Bachmann and Landau [7], [8]. When we say , we mean that there are two positive constants b and c such that, for sufficiently large x, . The notation is for upper bounds, and means there is a positive constant c such that, for sufficiently large x, . Finally, is for lower bounds, which means there is a positive constant c such that, for sufficiently large x, . The notation is used to denote strictly loose upper bounds. It means that .
III. PRIOR WORK
This work stems from results in the thesis of Blake [5]. In this thesis, the author considers the two-dimensional mesh network case. The results in this paper generalize this result to three dimensions. Because the two-dimensional result has not yet been published in a peer reviewed paper, we also present those results. The key idea of this paper is a generalization of Lemma 25 of the thesis, which we call the Graph Placement Lemma. We also correct the thesis in a minor way: specifically, we argue that the routing costs incur an extra factor when there is only one processor in each mesh node.
The graph theoretic result is then applied to computation on a mesh network, a computational architecture introduced by Thompson [2], [3]. The key results of this approach were energy consumption scaling rule lower bounds for the sorting and discrete Fourier transform problems; Thompson then showed that these lower bounds could be reached up to polylogarithmic factors. The lower bound technique has also been extended to integer multiplication [9].
On the error control coding question, [10] provided some lower bounds on energy consumption of decoders for the Thompson model. However, the authors did not provide any upper bounds. Grover, in [11], introduced the information friction model, in which energy consumption is proportional to the number of bits communicated in a circuit multiplied by the distance. This approach was extended to three dimensions in [12]. Recently, [13] introduced a similar parallel model of computation, in which, like the Grover information friction model, energy is proportional to the total distance travelled by the bits.
Recently, authors have introduced a model similar to the Thompson model [14]. In this approach, instead of considering energy consumption, the authors consider the time delay of passing messages along wires. In the model we consider here, however, the time delay to propagate along a wire is considered negligible, and the time delay of passing through a logic gate dominates. As the authors point out, however, as we push to the physical extremes of computation, this assumption may no longer hold; nevertheless we do not consider these wire delays in this paper. Moreover, these authors consider mildly three-dimensional circuits, with up to a constant number of layers stretching to the third dimension. However, since we are concerned with fundamental physical limits of computation here, and since multiple different circuits themselves can be placed physically on racks, we place no limitation on the number of vertical layers in our system.
The key ingredient to finally achieve energy-time optimal coding schemes comes from [6], which showed that LDPC coding schemes exist with bounded maximum node degree and a logarithmic number of iterations that can correct some constant fraction of errors.
IV. THREE-DIMENSIONAL THOMPSON MODEL
A. The Three-Dimensional Thompson Model Description
Please refer to [2] or [5] for a description of the Two-Dimensional Thompson model. We generalize this model to three dimensions here, and call this the Three-Dimensional Thompson Model. Note that this is a description of a three-dimensional circuit in general. To avoid confusion, we emphasize that only in the next Section will we describe a specific instance of a three-dimensional circuit called the mesh network, which is the main focus of this paper. Even though they are both cubes, do not confuse a grid cube described in this section with a mesh-node, which we will introduce in the next section. A mesh node will be much bigger and include memory and processing elements.
-
A computation is done on a grid of cubes, with sides of unit length. They are also referred to as nodes, which should not be confused with the mesh nodes in the mesh network, or the computational node of a graph. Which type of "node" is referred to shall be clear from context.
-
The computation is divided into distinct clock cycles.
-
Each cube can be a computational grid cube (computational node) or a wire grid cube (wire node).
-
Wire grid cubes can transport binary information (either a 0 or 1). Generally, a wire grid cube has one face acting as the in-face, which can take in input from the adjacent grid cubes. Any subset of the remaining faces of the grid cube can be designated as out-faces, which route the bit injected into the in-face to the adjacent grid cubes, which can be either a computational grid cube or a wire grid cube.
-
Adjacent and connected wire grid cubes form a directed graph form of a rooted tree, which in graph theory is also called an arborescence [14]. The root of the tree must be connected to the output of a computational node, and the leaves of this tree must be connected to an input of a computational node. In a single clock cycle, the message injected into the root of this tree at the beginning of the clock cycle is propagated across the entire wire to the leaves. In other words, this tree behaves just like a normal node in a digital circuit, with a message propagated throughout the entire interconnected wire in a single clock cycle, until it reaches all the computational elements to which it is connected.
-
Computational grid cubes can take in input from any of their six faces, which may be wires or other computational nodes. They can output computations out of any of their six output faces. A face of the computational grid cube may also remain unused, and have no inputs or outputs. In a single clock cycle, the computational nodes take in the input messages from their input faces, compute a fixed boolean function of these inputs, and then output to all the output faces.
-
All input bits are injected into input nodes at the beginning of the computation. That is, we do not consider serialization of the inputs in this paper.
-
Computational nodes can compute any boolean function mapping their inputs to their outputs.
-
A computational node takes exactly one clock cycle to compute its output, at which point its output wires are potentially switched from a 0 to a 1 or vice versa. The total number of clock cycles required to do the computation is time .
-
Key Idea: The energy of a computation in each clock cycle is proportional to the number of grid cubes that are active in that clock cycle. A wire grid cube is considered active if it switches from a 0 or 1 during the course of the computation; a computational grid cube is considered active if it processes any input that changed from the previous clock cycle. We call the switching activity factor, which is the average fraction of grid cubes that are active per clock cycle. We let be the total number of grid cubes occupied in the circuit either by a wire or a computational node (a quantity we call the volume). Thus energy consumption is equal to .
Just as in the two-dimensional model, the model flows from the idea that a circuit acts as a capacitor, and the energy to charge and discharge the circuit is equal to , where is the voltage used to run the circuit, and is the capacitance. The capacitance of a wire is roughly proportional to its length, and the total length of the wires is roughly proportional to the number of occupied grid cubes. Hence, capacitance, and thus energy, is roughly proportional to the volume of the circuit.
Note that we allow for the input nodes of the computation to be anywhere within the circuit, including its interior. This may conflict with physical circuit designs in which inputs are injected into the perimeter of the circuit. However, we use this model because it is physically general, and it allows us to model computations where the inputs of the computation are generated within the circuit itself, and thus may be in the interior of the circuit at the beginning of the computation.
Obviously, since the distance any bit follows in such a circuit must at least equal the Euclidean distance between source and destination, lower bounds derived within the three-dimensional information-friction model [12] would seem to apply as lower bounds within this more physical Thompson model. The only caveat is that for some instances of the computation, the same bit value may be communicated multiple times within the Thompson model and not "switch" any circuit elements. These bit communications would cost something in the information friction model, but might not cost anything within the Thompson model.
B. Logic gate fan-in and fan-out
In our model, we limit the fan-in of the logic gates due to geometric considerations: each node is a square or a cube, with a limited number of edges and faces. This assumption is not important for lower bounds, which have been the focus of prior
| Mesh Network type | Side Length of computational node | Maximum number of bits communicated in one clock cycle to adjacent node | Area or volume of each mesh node |
|---|---|---|---|
| 2D | Area= | ||
| 3D | Volume= |
TABLE I
TABLE REPRESENTING THE SIDE LENGTH, NUMBER OF BITS THAT CAN BE COMMUNICATED IN ONE CLOCK CYCLE TO AN ADJACENT NODE, AND THE AREA OR VOLUME OF EACH NODE. NOTE THAT SIDE LENGTH IS CHOSEN SO THAT THE AREA/VOLUME OF EACH NODE IS . THIS ALLOWS FOR UP TO MESSAGE-ADDRESS PAIRS TO BE ROUTED THROUGH A NODE AT A SPECIFIC ONE-HOP COMMUNICATION STEP, WHERE EACH ADDRESS HAS SIZE .
work. However, in considering upper bounds, it becomes more important to consider fan-in and fan-out. In the model, time is dominated by the number of logic gates through which the execution must flow. This is meant to capture the idea that in many real circuits, the depth of logical operations dominates computational time. However, some simple logic gates may be implementable with larger fan-in, while still allowing for (roughly) constant-time execution. Computation that allows for unbounded fan-in AND and OR gates is captured in the computational complexity class (See [15] for a discussion of small depth circuits and a classic lower bound result for the computation of parity). Our model only allows for bounded fan-in logic gates. Also, our routing computations will be on addresses of size . Rudimentary arguments requiring outputs to “see” all the inputs mean that many computations, including arithmetic computations needed in our routing algorithms, require depths logarithmic in input size. This adds a factor to our complexity upper bounds. This factor was neglected in the thesis upon which this work was based [5], which we correct in this paper. Unlimited fan-in logic gates could potentially remedy this issue, which we do not consider herein.
V. THE MESH NETWORK
A. Description of Mesh Network in Two and Three Dimensions
In this paper, we consider two types of mesh networks, the two-dimensional mesh network and the three-dimensional mesh network.
In the two-dimensional mesh network, the circuit is a grid of square computational nodes, each with side length , and area . In two dimensions, each node is connected to up to 4 other computational nodes.
In the three-dimensional mesh network, the circuit is a grid of cubic computational nodes, each with side length , and each with volume . In the three-dimensional mesh network, each node is connected to the (up to 6) adjacent nodes.
See Table I for a summary of the properties of the two- and three-dimensional mesh networks. Note that the dimensions of the two- and three-dimensional mesh networks are chosen so that the area/volume of each computational node is , which allows each node to hold up to addresses, each of size .
Each mesh node is instantiated with a single Turing-complete processor. Hence, we call the mesh architecture with one processor per mesh-node the Single-Processor Node Mesh Network.
The purpose of a mesh network is to enable message passing between adjacent nodes, and also computation upon those messages that were received. We will consider using this architecture to implement message-passing algorithms that have a message-passing component and a computational component.
B. Implementation Detail and Assumptions
The circuit that decides in which direction a message should be routed must be able to handle messages of size . Moreover, it must be able to compare the and coordinates of the node's own address with the destination address. This can be accomplished with a subtraction circuit. This is achievable with a classic construction of a carry-lookahead adder or other possible implementation, which takes depth that is logarithmic in the input length [16]. Note that since our input length is , within our model this will take depth . Such circuits would have width and depth , and thus area , and thus would fit into the node size of .
We make an assumption about three-dimensional mesh networks, which we call the 3D-Circuit Folding Assumption. We assume that processors, memory, and routing wires can be squeezed into the three dimensional grid cube without any overhead that changes asymptotic scaling. That is, we assume the processor can take volume , the memory takes volume , and the total volume of all of these components, including connecting wires, and input and output routing wires, can be squeezed into the grid cube of side length . The specific implementation details of such a construction are beyond the scope of this paper; our focus is on understanding whether a communication graph can be routed through the mesh network without overflowing memory due to routing conflicts. Technically, however, the existence of such a grid cube with such scaling properties is an unproven assumption, which we leave as an area of future work.
VI. COMMUNICATION GRAPHS OF AN ALGORITHM
A. Communication graph definition
We consider parallelized algorithms in general. Such computations have computational nodes, each of which is capable of performing part of the computation. At certain intervals as defined by the algorithm, the computational nodes pass messages to other computational nodes in a message-passing step.
Definition 1. The communication graph of an algorithm is the directed graph of vertices. It represents the messages to be sent between computational nodes during the computation.
Example 2. In LDPC decoding, the communication graph is the Tanner graph of the LDPC code.
Example 3. Consider computing the output of matrix-vector multiplication, where , in which is a fixed and sparse matrix, and the output and input are vectors. A message passing step for this computation involves the communication of input bits to each of the nodes responsible for computing the output. Each of those nodes computes a linear combination of its inputs. Thus, the communication graph is that graph induced by the non-zero entries of the matrix. See Figure 7 for an illustrative example.
In general, a parallel computation can have multiple communication steps, each corresponding to a different communication graph. For our scaling laws, we consider a sequence of communication graphs in which approaches infinity and where the maximum node degree is bounded by a constant .
B. Communicating on a mesh network
For each vertex of a communication graph, we assign it to a computational node of the mesh network.
Definition 4. The orientation of a graph with vertices on a mesh network of nodes is an assignment of the graph nodes to the nodes of the mesh network.
Remark 5. Technically speaking, as described, a mesh network must have a number of computational nodes proportional to an integer squared or cubed, but a graph does not necessarily have this many vertices. For our discussion, we can just assume that the graph has additional isolated vertices added to it so that the number of vertices is the appropriate number. This is not a significant part of our derivation.
Note that there are possible orientations for a given graph.
In this setup, computation on a mesh network consists of communication steps and computation steps.
Definition 6. A communication step is part of the computation process in which the processor nodes send messages to other processor nodes in parallel according to the communication graph. Since a processor node can only send messages to adjacent nodes, to fully send all the messages associated with the computation graph, the communication steps must be divided into multiple one-hop communication steps, or more compactly, one-hop steps. Before every such step, we assume that each processor node contains message-address pairs in its memory that are to be sent to another node in the circuit. In each such one-hop step, each node must send all messages collected during the last one-hop step to appropriate adjacent nodes, in a direction defined by the selected protocol.
The protocols we will consider are the up-down left-right protocol for two dimensions, and the up-down left-right back-forth protocol for three dimensions, which we describe in subsections that follow.
Definition 7. The computation step consists of processing the messages received after the communication step.
Definition 8. A source node is the source of a message. It corresponds to a vertex of the communication graph with an outgoing edge.
Definition 9. A destination node is a node to which a source node is sending one of its messages. It corresponds to a vertex in the communication graph with an incoming edge.
Definition 10. A routing node is a node under consideration that must route messages from source nodes to destination nodes.
Note that routing nodes can be (and usually are) also source nodes and destination nodes. However, if we fix a particular communication graph and message-passing protocol, for any specific routing node and any specific one-hop step, there is only a limited set of possible source nodes and destination nodes for messages that could be routed through this routing node. This is particularly true for the two message passing protocols we analyze in this paper. The analysis of the size of these sets is the main goal of Sections X and XI.
Definition 11. A routing conflict, or more briefly a conflict, occurs when, during a communication step, multiple messages are routed through a single mesh node at the same time. When messages are received by a single processor node after a

Fig. 1. Example of messages being routed through a two-dimensional mesh network, using the up-down left-right protocol, resulting in a size 3 conflict at one-hop step 3 at the indicated routing node. The messages start at source nodes and each follows a path indicated by arrows of the same colour. The destination nodes of these messages are not indicated in the diagram. Nevertheless, the destination nodes must occur to the left of the indicated routing node.
single one-hop step, such an event is called a -conflict and is the size of the conflict. See Figure 1 for an example of a routing conflict of size 3 at the third one-hop step, when using the up-down left-right protocol which we will define in the next section.
We let be the maximum number of message-address pairs contained in the memory of any processor node during the execution of the algorithm. By dividing the one-hop communication step into clock cycles, all the messages stored in the memory of each processor can be communicated from one adjacent node to another during each one-hop communication step, so long as the memory in any of the computational nodes is not overflowed.
Remark 12. Recall that the address part of each message has size . Thus, so long as or fewer message-address pairs are routed through any of the computational nodes at any one time, then the maximum amount of memory needed to store messages being routed is , which grows at the same rate as the size of the memory of each mesh node. This will mean that there is no conflict that overflows the memory of any computational node.
VII. THE MESSAGE PASSING PROTOCOLS
A. Two Dimensions: Up-down left right protocol
For the two-dimensional mesh network, we consider a very straightforward protocol called the up-down left-right protocol. For this protocol, at the beginning of the communication step, each computational node has a list of message-address pairs. To determine in which direction a node should send a message (up, down, left, or right), the processor node looks at the destination address. If the destination node is not on the same y-coordinate, this node shall send the message parallel to this axis in a direction closer to the destination node. If the destination is on the same y-coordinate, then the node shall look to the x-axis, and send left-right, parallel to this axis, closer to the destination. In Figure 1 we illustrate how this protocol works for three messages being sent simultaneously.
B. Three Dimensions: Up-down Left-right Back Forth Protocol
For three dimensions, we use a natural generalization of the up-down left-right protocol called the up-down left-right back-forth protocol. For discussion, we define the up-down direction as the y-axis, left-right as the x-axis, and the back-forth as the z-axis. See Figure 2 for an example of this labelling, as well as a particular path followed by one message during the execution of a full communication step of this protocol.
This protocol is a natural and straightforward extension of the up-down left-right protocol used in two dimensions. To determine in which direction a node should send a message (up, down, left, right, backward, or forward), the processor node looks at the destination address. If the destination node is not on the same y-coordinate, up-down direction, this node shall send the message parallel to this axis in a direction closer to the destination node. If the destination is on the same y-coordinate, then the node shall look to the x-coordinate, and send left-right along this direction closer to the destination. If the message is already on the same y- and x-coordinates, then the node shall send along the z-axis, back-forth direction, in a direction closer to the destination. Finally, if the node is the intended destination for the current message, that node shall keep the message in its memory, along with all other received messages, until the next computation step.
Since each message has an address of the intended destination, the messages are of size . Note that once an orientation is chosen for the nodes with a particular communication graph, the up-down left-right back-forth protocol can be carried out, so long as there are no conflicts bigger than .

Fig. 2. Example of one path of the up-down left-right back-forth protocol. The path is represented by a sequence of red arrows. The path starts at the source, first moves down along the y-axis in the direction towards the destination node, then moves left along the x-axis, and then moves forward towards the final destination. This figure will act as a running example. Since it is difficult to visualize all the nodes in three dimensions simultaneously, we only represent some of the nodes here. The illustrated nodes will be relevant as we continue the running example in Figure 5.
C. Mead architecture
In [17], the Mead memory architecture is introduced, and it is shown that a memory access takes a number of clock cycles that is logarithmic in the size of the memory. Since we will be storing addresses of size in our memory, for convenience we can also assume that each word size is . Since we assume the memory of each node is of size , each memory access takes a number of clock cycles .
D. Detailed Passing Rules
We must give a few extra details of our message-passing protocols to ensure that the architecture can manage all these steps. For now, we assume that there is one memory in each processor node, connected to a single processor. This means a memory read or a memory write can only happen once per processor instruction. This results in a slight problem: if all messages are to be passed in parallel in the up-down left-right protocol, how do we ensure that a processor is not simultaneously required to both read and write to multiple memory locations simultaneously? Since we are only concerned with asymptotic scaling rules, we propose one particular way to deal with this. In practice, there should be many methods to deal with this that can save many constant factors. Our goal is only to show that scaling rules hold. We describe our rules in two dimensions first. The three-dimensional generalization is straightforward and we do not include the details here.
We shall assume that there are nine memory stacks that are implemented by the processor, the outgoing up, down, left, and right memory stacks, the incoming up, down, left, and right stacks, and the final-destination stack. We assume each of these stack locations has memory locations (each of size ), enough to hold an address and a message). Since there are nine of these, they can all fit in an sized memory.
When a message is communicated from an adjacent node, the processor computes the next direction in which the message should be sent, and then the message is inserted into the incoming memory stack for that direction. In the next one-hop step, the incoming memory stack is treated as the outgoing memory stack, and the previous outgoing memory stack pointer is re-initialized.
We now need to ensure that at each passing step, a processor must only deal with one memory access at a time. There are two methods we propose to deal with this. The first rule is the up-down-left-right order rule. Every one-hop step should be divided into these four substeps. We assume that each of these steps has at most substeps, one for each possible message that needs to be sent. The rule is that nodes should send first all of their up-going messages, then their down-going messages, then their left-going and right-going messages, respectively. This way, the receiving block knows which of its four registers to check depending on which step it is currently in. Also, it ensures that there is only one message to be processed by every node during each sub-step.
The second rule is the alternating checkerboard rule. Consider the nodes of the mesh network as coloured black and white like a checkerboard. We divide passing steps into black passing steps and white passing steps. The nodes are to alternate between white-passing steps and black passing steps. During a black-passing step, each black node should send at most one message (either an up, down, left, or right message, depending on which up-down-left-right substep we are in). Note that sometimes some nodes will send no messages because they may have already sent all of them. During a white passing step, all the white nodes do the same thing. This ensures that at each sub-step of the one-hop step, a node must either process an outgoing message or process an incoming message. Hence, memory does not need to be accessed multiple times per step. This will multiply the number of clock cycles in the one-hop step by a factor of two, and so our scaling rule analyses apply.

Fig. 3. Diagram of slots (the shaded squares) with a particular orientation of a graph. The special slots and are noted with their sizes labelled and shaded in blue and red respectively. The remaining slots are labelled with their size and shaded green. In this case, there are edges connecting the slots and , and thus we call it a 5-connected configuration. For easy visibility, the 5 edges connecting nodes in the slots and are coloured red.
VIII. MAIN THEOREM OUTLINE
The two main theorems of this paper, corresponding to two- and three-dimensional mesh networks, involve sequences of communication graphs with bounded maximum node degree. We let be the number of nodes of each graph, where approaches infinity. We give an outline of the theorem statements below, along with a proof outline. These will be proven later in the paper.
Our two dimensional Theorem 19 states that, for sufficiently large , there exists an orientation of the graph with bounded node degree on the two-dimensional mesh network such that the up-down left-right protocol has no conflicts bigger than size . The three-dimensional theorem, Theorem 22, states that for sufficiently large , there exists an orientation of the bounded node degree graph on the three-dimensional mesh network such that the up-down left-right back-forth protocol has no conflicts bigger than size .
Proof outline: The proofs of these theorems first use Lemma 13 which we prove below. This is a combinatorial graph theory lemma. The lemma can be summarized as follows: For a graph of size , consider placing this graph into a set of slots. Consider two subsets of those slots, and . We suppose that the sizes of and are bounded by some weak conditions. The lemma proves that if the graph is randomly placed into all the slots, the probability that the number of edges connecting the nodes in slots and exceeds is small, and scales superpolynomially to zero.
The second part of the proof considers a particular possible node where there could be a large routing conflict. We divide the types of routing conflicts into different cases. For each such case, we show that for any one-hop step, the number of possible source nodes and destination nodes that could result in a conflict at this routing node is bounded. In fact, they satisfy the conditions of Lemma 13 mentioned in the paragraph above. Hence, the probability of a size greater than conflict of each type scales superpolynomially to zero.
A union bound argument then shows that the probability of any large conflict at any mesh node at any one hop step approaches 0. This means there must exist an orientation of the graph in which no such large conflicts arise.
The rest of the paper fills in the details of this proof.
IX. THE MAIN TECHNICAL RESULT: THE RANDOM GRAPH PLACEMENT LEMMA
In this section we will prove a foundational Lemma for our result. For the lemma, we consider a sequence of graphs of increasing numbers of vertices and constant maximum node degree. If we randomly place the graphs on a set of slots, the probability that two subsets of the slots are connected by a large number of edges can be bounded.
A. Lemma Statement
We consider two sets of slots and , as well as remaining slots. Consider as well a graph with vertices in which the maximum degree of any vertex is . Note there are ways to permute the vertices of this graph onto these (in total) slots. We call any such permutation a configuration. We show a diagram of a particular configuration of a graph on slots in Figure 3.
Lemma 13. Let and , where , and, as well, , , and . Let be the event that a uniformly random configuration of the graph results in edges connecting sets and when these conditions are satisfied. When is sufficiently large, the probability of this event is bounded by:
The above Lemma we call the Graph Placement Lemma.
Proof: (Of Lemma 13) Let A and B be disjoint slot sets. We let Z be the number of edges connecting the vertices placed in A and vertices placed in B.
Note that there are at most outgoing edges from the slots in A, hence there are at most this many nodes that can be selected for B. Let's fix a particular selection of nodes of the graph and place them in the slots of A. Let U be the set of remaining vertices connected to the vertices selected for A.
Note that if there are edges connecting the nodes in A and B, then there are at least nodes of U placed into B.
This implies that the event that there are or more edges connecting A and B is a subset of the event that there are r vertices of U chosen for B. Consider a particular subset of U of size r.
The probability that this particular subset of (of size ) is placed in the slots, conditioned on the slots having already been filled, is given by:
where in this case we define .
To see this, consider the probability that the first such vertex is selected. There are possible slots into which it can be placed, out of remaining slots available. Conditioned on this being selected, there are correct slots remaining, and remaining slots possible. This pattern continues until the last such vertex is selected to be placed in the possible slots.
Thus, the probability that any subset of of size is chosen can be upper-bounded by summing over all subsets of of size .
Hence, conditioned on a particular choice for the vertices in A:
Now, for any choice of vertices to be placed in the slots of , the maximum size of the connected set is at most , because the maximum node degree is and any connected vertex must use up one of these edges. Hence:
Now we use that
to simplify the first term in the bound:
Since we assumed and , we have that for sufficiently large , . Also, by our assumption, . Thus, we conclude:
where , a constant greater than 0.
So now we let . Moreover, implies , where . This implies:
and then exponentiating the logarithm of this expression and simplifying gives us:

Fig. 4. Figure of the source nodes (highlighted by blue circles), routing node (labelled ), and locations of possible destination nodes for messages resulting in right-originating conflicts after the third one-hop step. The key idea of our proof is that the size of the set of possible right-originating source nodes is at most , and the number of possible destination nodes is also at most . This is true at any one-hop step. We also label the location of source nodes for possible up-down conflicts at the third one-hop step.
X. TWO-DIMENSIONAL MESSAGE-PASSING
A. Two-Dimensional Conflicts
For this section, we consider two-dimensional mesh networks, and implement the up-down left-right protocol as defined in Subsection (VII-A). For discussion, we define the up-down axis as the -axis, and the left-right axis as the -axis. In Section XI, we generalize this approach to three dimensions. Thus, this section can be viewed as a warm-up.
We now consider a particular mesh node, called the routing node, and a particular one-hop communication step . We are concerned with the number of messages being routed through this node at this one-hop step. As we have discussed, the number of such messages being passed is the size of the conflict at this node and one-hop step.
Remark 14. At first we consider only messages that are being routed through this particular routing node; we do not concern ourselves with messages that reach a final destination at this node. We consider that later when we put our analyses together.
To simplify our analysis, we first consider right-originating conflicts. These are messages that originate from the right side of the routing node.
Each message routed through node at one-hop step must have originated at a possible source node at Manhattan distance from the routing node. Moreover, they can only lead to a specific subset of mesh nodes, which we call the destination nodes. Consult Figure 4 for a labelling of possible source and destination nodes that could result in a possible conflict at routing node .
The rest of this section is devoted to bounding the size of the set of possible source and destination nodes. Then, we will apply Lemma 13 (The Graph Placement Lemma) to show that the probability that a random orientation of the graph onto the mesh network results in a large conflict at routing node is small. Finally, by using a union bound argument, we show that there exists an orientation of the graph in which there are no large conflicts.
B. Bounding the size of up-down conflicts
Observe Figure 4. This shows the location of the source nodes for potential up-down conflicts at the third one-hop step. Note that there are only two such nodes (the one above, and the one below). Hence, the size of an up-down conflict is at most .
C. Size of Possible Source and Destination Node Sets for Right-Originating Conflicts
Again, we are considering the number of messages that could be routed through the th mesh node during the th one-hop step.
Let us now consider those messages that are right-originating. Observe from Figure 4 that the shape of this set of possible source nodes is the half-diamond shape, and such a set has size at most .
Since we are using the up-down left-right protocol, once a message has arrived at the routing node from a right-originating source node, it can now only move in the left direction. Hence, the destination node must be on the -axis. The number of nodes on this axis is at most .
D. Bounding the probability of a size conflict or greater
The two observations above lead us to our next lemma.
Lemma 15. The probability that a random orientation of the graph on a mesh network (of sufficient size to hold the graph) results in a right-originating conflict of size greater than at a node i at a particular one hop step scales as
Proof: Consider a particular node and one hop step . By the arguments in the preceding subsections, possible source nodes and destination nodes have size bounded by . For any particular conflict size greater than to occur at this one-hop step, there must be at least edges connecting and . By applying the Graph Placement Lemma 13, we see that this occurs with probability bounded as . The result follows by the union bound over all conflict sizes from to .
Using a symmetrical argument we also derive this lemma:
Lemma 16. With the same setup as Lemma 15, the probability that a left originating conflict of size greater than occurs at routing node i at the th one-hop step is upper bounded by .
E. Putting it together: There exists an orientation with no large conflicts
Lemma 17. The probability that a random orientation results in a conflict of size greater than at a particular routing node i, at a one-hop step (an event we call ), is bounded by .
Proof: For this to occur, observe that at least one of the following must occur:
-
A size or greater right-originating conflict called event .
-
A size or greater left-originating conflict called event .
-
A size greater than up-down conflict, called event .
-
Greater than final messages have been received at node i.
To prove this, suppose not. Suppose that none of these possibilities is satisfied. Then, the total conflict size is at most . The probability of any one of the events occurring is bounded by union bound:
For this inequality, we apply the bounds of Lemma 15 and Lemma 16 to bound events 1 and 2. As well, the probability of event is 0 because of the argument in subsection X-B, and is 0 because there are at most edges leading into any one vertex.
Lemma 18. The probability that a random configuration results in any conflict of size greater than at any one-hop communication step, at any node, is bounded by .
Proof: This flows from simply using union bound over the probability of this event over all nodes of the mesh network (for which there are ), and all possible one-hop step sizes , each of which is at most . This is a sum over a polynomial number of cases, and our bound on the probability for each of these cases scales at least as fast as , which scales superpolynomially to 0.
F. The Main Theorem for Two Dimensions: There exists an orientation with no conflict bigger than
We now state our first main Theorem:
Theorem 19. There exists an orientation of the nodes on the two-dimensional mesh network in which the up-down left-right protocol has at most a conflict of size .
Proof: From the prior subsection, the probability of a large conflict existing approaches 0. Hence there must be at least one orientation with no large conflicts. In fact, the probability that a randomly generated orientation results in no large conflicts at any time is close to 1.
XI. THREE-DIMENSIONAL MESSAGE-PASSING
In three dimensions, we consider the up-down left-right back-forth protocol defined in Subsection VII-B. We consider the probability that, using this protocol, a large conflict occurs at a particular node at a particular one-hop step. We call this node under consideration the routing node. Without loss of generality, let this node be located at .
There are two main types of conflicts that may occur. The first type we call a through-conflict, in which multiple messages are passing through a routing node but have not yet reached their destination. The second type we call a final-destination conflict, in which the message has reached its final destination at the routing node.
For each communication step of the computation, we consider the th one-hop communication step. Observe that if a message passes through the routing node at one-hop step , then at the step before it, it was passed along one of the axes. Alternatively, the message has found its final destination at this particular node. Hence, we divide the conflicts into the following types:
-
Right-originating left-right conflicts.
-
Left-originating left-right conflicts.
-
Back-originating back-forth conflicts.
-
Front originating back-forth conflicts.
-
Up-down conflicts.
-
Final destination conflicts.
A conflict of size of a particular type occurs at our routing node if at this one-hop communication step there are messages that are to be held in its memory. For a message to arrive at our routing node at exactly one-hop step , it must have been sent a Manhattan-distance starting from a possible source node. Moreover, there is a limited set of possible destination nodes for such messages. For there to be a conflict of size at one-hop step , there must be edges connecting the vertices in the possible source nodes to the possible destination nodes.
It remains to simply bound the sizes of the possible source and destination node sets and use Lemma 13 to show that large conflicts have low probability. That is the motivation of this section. Then, using a straightforward union bound argument, we show that the probability of a large conflict occurring anywhere at any one-hop step must be small.
In the end, this argument shows that there must be an orientation of the graph on the mesh network that has only small conflicts across all nodes and all one-hop steps.
A. Up-down conflicts
For an up-down conflict to occur at the routing node at a particular one-hop communication step, these messages must not have been sent left-right or back-forth. Hence, they must originate on the same y-axis. But for any one-hop communication step , there are at most only two source nodes that are this distance away (the one above and the one below). Note that there may only be one or zero if exceeds the distance to the top or the bottom.
The maximum node degree is , and hence the maximum size of this type of conflict is .
B. Left-right conflicts
Left-right conflicts at a routing node occur because, at a particular one-hop communication step, multiple messages are being sent to the routing node along the -axis. Each of these messages must have originated at a source node at Manhattan-distance away from the routing node. However, the set of possible destination nodes of these messages need not be a fixed distance from the routing node.
We separately consider conflicts originating from the left and from the right. Without loss of generality we consider the right-originating conflicts. Let the set of possible destination nodes be and the set of possible source nodes be . We shall now bound the size of each of these sets.
- Question 1: How big is the possible source-node set?: Recall we are labelling the routing node as the origin. We want to bound the size of the set of the originating nodes.
Since messages pass through before going back-forth, the originating nodes must be on the plane. See Figure 5, where we continue analyzing our running example for an illustration of this case.
The source nodes must also be a distance away from this routing node. There are at most possible such nodes originating from the right. To see this, consider any height . There is at most 1 node that is Manhattan distance away from the routing node. Since there are at most possible heights for a message to originate, there are at most possible nodes distance from the routing node, for any .
-
Question 2: How big is the possible destination-node set?: The destination nodes must be in the plane, because the message has already done the up-down step. This plane has at most nodes in it.
-
Probability of large conflict: We can now bound the probability that a random orientation results in a conflict of size at our routing node. For such a conflict to occur, there must be at least edges connecting the source-node set , which has size less than , and the destination set , which has size less than . The exponents here add to 1, and thus Lemma 13 applies. The probability of this is thus bounded by .

Fig. 5. Continuing with our running example, this figure shows the possible right-originating source nodes (labelled and represented as squares) whose messages would reach the routing node (located at the origin for our example) after 7 one-hop communication steps, and also the possible destination nodes of these messages (labelled ), and illustrated as dots). We also illustrate one possible path of a message with the sequence of red arrows.

Fig. 6. Diagram of the possible source nodes for back-originating back-forth conflicts at the one-hop step. Each diagram represents the possible source nodes that are on the and planes. On each diagram we label the number of steps it takes to reach the -axis for one representative node. So, for example, in the first diagram (for ), the nodes illustrated take 4 one-hop steps to reach the -axis. From this point, each then has one more step to reach the origin (which is the location of our routing node). Hence, each of these nodes is 5 one-hop steps away from the origin. For the diagram, each is 3 one-hop steps from the -axis, and thus also 5 one-hop steps from the origin. From this diagram we can infer the very crude upper bound for the number of nodes at a fixed distance from the origin at any particular plane where is fixed. It can be at most , twice the side length of our three-dimensional grid. Since can reach at most to , we derive our bound on the size of the possible source node set of the inequality in equation 1.
C. Back-Forth conflicts
We now consider back-forth conflicts. In a back-forth conflict at one-hop communication step , the messages have already potentially moved in the up-down direction, and the left-right direction. Once they reach the routing node, they only have movement along the -axis remaining. We divide such conflicts into two cases, the backward originating and the forward originating back-forth conflicts.
- Question 1: Backward originating back-forth conflicts: how big is the originating set?: We shall now derive a crude upper bound on the size of the set of possible source nodes for the backward-originating conflicts. First, let us consider possible source nodes that occur starting from the plane. For messages to be in conflict at our routing node, they must be equidistant from the -axis, because once they reach the -axis they have only one more hop to reach the routing node in question. From inspection of the diagram in Figure 6, we can see that the number of such source nodes can be at most , because that is twice the side length of the mesh network. In fact, normally it would be much less than this, but for our crude upper bound this is sufficient.
Similarly, for the plane, there are also at most such nodes. The reader should see that this crude upper bound should hold for all possible coordinates.
The path that each message must follow must have length . The maximum length can be is because this is the maximum Manhattan distance between any two nodes in the mesh network. Hence, we can bound the size of the source-node set as follows:
-
Question 2: How big is the destination set?: The destination set must occur only on the z-axis. Hence it is of size at most , because the number of nodes on the z-axis is at most .
-
Probability of back-forth conflict of size or greater: Applying the Graph Placement Lemma 13, we see that and , and hence our exponents sum to 1. Thus, we can apply our lemma and conclude that the probability that a random permutation results in a back-originating back-forth conflict of size at any particular one-hop step scales as .
A symmetrical argument applies to front-originating conflicts.
D. Summary
From the arguments above, the probability of size conflicts in each case is bounded by .
Theorem 20. The probability that a random orientation results in a conflict of size greater than at a particular routing node i, at a one-hop step (an event we call ), scales as .
Proof: For this to occur, observe that at least one of the following must occur:
-
A size or greater right-originating left-right conflict, called event .
-
A size or greater left-originating left-right conflict called event .
-
A size or greater back-forth conflict that is back originating, called event .
-
A size or greater back-forth conflict that is forward originating, called event .
-
A size greater than up-down conflict, called event .
-
More than final messages have been received at node i.
To prove this, suppose not. Suppose that none of these possibilities is satisfied. Then, the total conflict size is at most . The probability of this event is bounded by union bound.
We apply the bounds of Subsection XI-B to bound events and , and we apply the bounds of Subsection XI-C to bound events and . As well, the probability of event is 0 because of the argument in Subsection XI-A and is 0 because there are at most edges leading into one vertex. Hence, by union bound:
Theorem 21. The probability that a random configuration results in any conflict of size greater than at any one-hop communication step, at any node, scales as .
Proof: This flows from simply using union bound over the probability of this event over all nodes of the mesh network (for which there are ), all possible one-hop step indices , each of which is at most , and all potential conflict sizes, which range from to no more than (the maximum number of messages that can be sent simultaneously). This is a sum over a polynomial number of cases, and our bound on the probability for each of these cases scales as , which scales superpolynomially to 0.
Theorem 22. There exists an orientation of the nodes on the three-dimensional mesh network in which the up-down left-right back-forth protocol has at most a conflict of size .
Proof: The probability of a large conflict existing approaches 0. Hence there must be at least one orientation with no large conflicts. In fact, the probability that a randomly generated orientation results in no large conflicts at any time is close to 1.
XII. LDPC SCALING RULE
We consider a sequence of LDPC codes implemented with Tanner graphs in which the maximum node degree is bounded by a constant . Message-passing algorithms for LDPC codes work by passing messages sequentially between nodes of the Tanner graph. This algorithm can be implemented in a natural way using the mesh network.
Remark 23. We need to make one assumption about these upper bounds. We assume that the messages passed in the LDPC decoding algorithm are represented in at most bits.
For our message passing procedures, we require an address of size to be paired with each message. Thus, for our asymptotic rules, allowing messages of size up to does not change our scaling results.
Corollary 24. Each message-passing step of the LDPC message-passing algorithm can be executed with area , time that scales as , and thus energy that scales as in the two-dimensional mesh network. In the three-dimensional network, if we accept the 3D Circuit Folding Assumption, one message passing step can be executed in time , and volume , and thus with energy that scales as .
Proof: For two dimensions, let there be computational nodes, one for each node of the Tanner graph. Place the vertices of the Tanner graph on the mesh network in a way that has at most conflicts for the up-down left-right protocol, which exists according to Theorem 19. Implement the up-down left-right protocol to execute the message passing steps of the decoding algorithm. Since the maximum conflict size is at most , and since each message has size at most , this will not overflow the memory of any of the computational nodes (which have memory). The communication step can be done in at most one-hop steps, because the maximum number of hops between two nodes in the two-dimensional mesh is .
We can divide the one-hop steps into the direction computation step, where the direction to send each message is calculated, and the transmission-step, where the messages are then sent consecutively to the appropriate adjacent nodes. We introduce the variables:
-
: the number of one-hop steps.
-
: the total number of clock cycles to compute the direction to send all of the messages.
-
: the number of clock cycles to transmit all the messages to adjacent nodes.
-
, the number of clock cycles to perform the one hop step, which is equal to the time to compute the direction to send the messages, plus the time to transmit the messages once the direction is computed.
Thus, the total number of clock cycles to do the communication step is , the number of one-hop steps, times the time per one-hop step.
For two dimensions, the direction-computation step takes clock cycles for each message (each address must be passed through the depth arithmetic logic unit). There are such messages. Hence, direction-computation takes time . The transmission step takes time (one clock cycle to pass each message to adjacent nodes for each size message). Hence, each one-hop step can be performed in time . Since there are at most one-hop steps, the total time of the communication step is at most .
Since the switching activity factor is at most 1 (all wires active in each clock cycle), and the area of the mesh network is , the energy of this computation is at most .
For three dimensions, we apply our three-dimensional theorem (Theorem 22). We place the computational nodes onto the mesh network that results in at most conflicts with the up-down left-right back-forth protocol. Since the volume of each node is , this will mean that applying this protocol for message passing will not overflow the memory of any node. The number of one-hop steps is at most .
The direction-computation step must take time (depth for each message, for messages). Also, since the size of each face is , for the (at most) messages (of size at most ), if one message is sent per clock cycle, the transmission step can be done in clock cycles. And so each one-hop step can be performed in time .
Hence, the number of clock cycles is at most . Since the volume of the mesh network is , and the switching activity factor is at most 1, the energy consumed during the message passing step is at most .
Note that it may be possible to perform the transmission of messages in less time than this, because we are not using the full face area for transmission. As well, if the direction computation was parallelized, this might result in an asymptotic saving for . However, this would require some parallelization circuitry within each mesh node, which we do not consider in this paper.

Fig. 7. Figure of the graph associated with a sparse matrix-vector multiplication, along with its associated matrix. The nodes labelled with on the left represent the input vector values, and the nodes on the right represent the outputs of the matrix-vector multiplication. To illustrate what is happening here, consider the output node ; it is connected to input nodes and , since it must calculate , which corresponds to the matrix-vector multiplication on the right.
Remark 25. Note that the two-dimensional theorem reaches the almost-sure lower bound of Theorem 2 in [18] up to a polylogarithmic factor. This is a bound on almost all LDPC decoders generated according to a uniform configuration distribution. We shall see how certain LDPC codes can reach general lower bounds for any coding algorithm in the sections that follow.
Remark 26. The above upper bound per iteration directly applies to the message passing step of any other algorithm defined on a graph. Since LDPC decoding is a prototypical example of an algorithm defined on a graph, we present the theorem for this type of algorithm, but the upper bounds are exactly the same for any algorithm defined on a graph with bounded node degree. We give one other example of such an algorithm with sparse matrix-vector multiplication in the next section.
XIII. SPARSE MATRIX-VECTOR MULTIPLICATION
Consider a sequence of sparse matrix-vector multiplications. Just as in LDPC encoding, such a problem can be represented by a bipartite graph (see Figure 7). On the left side of the graph, we can represent the input nodes. On the right side, we represent the outputs of the matrix-vector multiplication. In the analysis of matrix-vector multiplication, a key distinguishing feature is whether the matrix itself is considered an input to the problem. In our case, the matrix is not an input, but rather fixed before the computation takes place.
- Problem Definition: The input to the computation is a vector of size , where each entry is chosen from a field . The size of the field is , and so the elements of the field can be represented with bits. The matrix is known and fixed, where the number of non-zero elements in each row and column is upper bounded by . Moreover, the entries of the matrix are also from the same field, and thus can be represented in bits.
Remark 27. Alternatively, we can just think of the entries of the vector as floating point or integer values represented with a fixed number of bits. The key point is that for our upper bound, the number of bits to represent the elements must be at most .
We define a sequence of matrix-vector multiplications as sparse if the maximum number of non-zero entries in each row and column is .
In Figure (7) we show a natural graph representation of an implementation of sparse matrix-vector multiplication. In such an implementation, messages are passed from input nodes to their corresponding output nodes. Since the number of non-zero entries in each row and column is bounded, the vertex degree of the graph representation is also bounded. Therefore, by using the same argument as Corollary 24, we can derive the following Corollary. Since the details are the same as for the previous corollary, we omit the details of the proof:
Corollary 28. (Two dimensions) Sparse matrix-vector multiplication can be implemented on a two-dimensional mesh network with area with a number of clock cycles and thus energy .
(Three dimensions) Assuming the 3D Circuit-Folding Assumption, sparse matrix-vector multiplication can be implemented on a three-dimensional mesh network in volume , number of clock cycles , and thus energy .
Note that this then implies that LDPC encoding complexity, which is just a matrix-vector multiplication, reaches the bounds above, if the generator matrix is sparse.
XIV. USING PARALLELIZATION TO CONSTRUCT CLOSE TO ENERGY AND TIME OPTIMAL -CODING SCHEMES
A. The Fundamental Lower Bounds
The results of [5], [12] describe fundamental scaling rules for energy consumption of error control coding circuits. Specifically, the authors define an -coding scheme as a sequence of error control codes together with encoders and decoders in which the rate stays above 0 and the probability of block error scales as . This must be associated with a particular channel, which we assume to be a binary erasure channel or a binary symmetric channel. By making hard decisions at the receiving end, other channels like the additive white Gaussian noise channel can be reduced to these channels, and thus are also subsumed in the upper bound construction.
Theorem 29. The Fundamental Two-Dimensional Lower Bounds (From Theorem 2 in [12]). All -coding schemes (for coding or decoding) have two-dimensional energy consumption that scales at least as . For schemes that reach this lower bound on energy, the number of clock cycles scales at least as .
Note that when decays exponentially, this lower bound reduces to and .
Definition 30. We call a coding scheme that reaches the energy lower bound up to a polylogarithmic factor an energy-optimal coding scheme. If that coding scheme also reaches the clock cycle lower bound up to a polylogarithmic factor, we call it an energy-time optimal coding scheme.
Note that it is possible to construct coding schemes with time complexity better than the energy-time optimal lower bound; the problem is that these come at a cost of more energy. Intuitively, what is happening here is that more circuit area can be spent on creating greater wire interconnectivity. Thus, more information can be sent per clock-cycle. But, this requires potentially much greater circuit area, and thus much greater energy. Energy-time optimal schemes are called this because it is energy that is optimized as a priority; and then for this particular energy, we seek a scheme that has optimal time. An example of a scheme that would take only a logarithmic number of iterations would be the directly-implemented LDPC decoding scheme of [18], but this would take area, and thus energy that scales as , an factor away from optimal.
We also restate the three-dimensional lower bound for circuit energy. Currently this lower bound does not have a similar bound on time that exists in the two-dimensional case:
Theorem 31. The Fundamental Three-dimensional Lower Bounds (From Theorem 5 in [12]). All -coding schemes (for coding or decoding) have three-dimensional energy consumption that scales at least as .
B. The Upper Bound Construction
Below, we define polylog(N) to be any function that scales polylogarithmically or more slowly in N. Note that it is not necessarily the same polylogarithmic function in separate lines.
First, fix a communication channel with some channel statistic. Then, suppose we have an -coding scheme for this channel for some that has energy that scales as and time that scales as . We shall use this optimal scheme to show how to construct any energy and time optimal -coding scheme for any that scales to 0 more slowly than this exponential.
The following analysis works for both encoders and decoders in parallel. Without loss of generality, we assume we are constructing decoders.
Consider placing of the optimal exponential error circuits in parallel, where each sub-circuit has block length , thus creating a circuit with total block length .
We then simply choose M to be a function of N such that
In particular, using the principal Lambert W function, this can be given by:
Note that the is defined as the function in which for positive integer , . However, we can simply use equation 2 for the rest of this derivation. We also note that both the size of and number of sub-circuits must be an integer. For ease of explanation we ignore this in our derivation, as this does not change the scaling results.
First, observe that, from our assumption, decays more slowly than , and so . If this is true, then . Hence, this is a valid choice for the size of each sub-circuit (which, of course, cannot exceed ). To see this, if then
An error occurs if and only if at least one of the decoders makes an error, and so by union bound:
Hence, this is an -coding scheme.
Since we assumed we started with an energy and time optimal scheme with error probability that decays exponentially, then the energy of each component in parallel scales as . Hence, the energy of such a parallel scheme is simply the sum over all the individual energies of each of the individual sub-circuits in parallel. Thus:
Note that if
then:
(4)
This implies:
In the second line we use , which implies is bounded above by a suitable function that is polylogarithmic in . In the third line we use the inequality .
Similarly, for bounding , the number of clock cycles of all the circuits in parallel is just the time of each circuit, which is . Using a similar argument as above, as well as our bound from equation 4, we get:
This reaches the time lower bound of Theorem 29 up to a polylogarithmic factor.
Also note that, if we want to avoid using the principal Lambert W function, we can choose for many choices of , and the reader should note that our upper bounds still apply. This is only an invalid choice when is sufficiently close to , which can make M exceed N. For this alternative choice of M, consider making a scheme with error probability that scales as . Then we can choose:
Thus, to create an energy-time optimal coding scheme, we need a primitive: an -coding scheme that has energy that scales as and time that scales as . We shall do this in Section XV.
C. Three Dimensional Parallelization Technique
Using an analogous argument as above, we can also use a parallelization technique to construct energy-optimal three-dimensional coding schemes. We can also compute their time complexity (although we cannot compare this to lower bounds since we lack three-dimensional time lower bounds for energy optimal schemes). We first suppose we have an -coding scheme with energy that scales as and clock cycles . Then, by using an analogous parallelization technique as above, for any slower than this , we can construct an -coding scheme with energy and .
XV. EXPANDER-GRAPH BASED LDPC DECODING SCHEMES ARE ENERGY-TIME OPTIMAL
We now construct this energy-time optimal primitive using LDPC codes.
The existence of such LDPC decoders was conjectured in the thesis [5]. However, the expander graph based construction of Burshtein and Miller [6] was overlooked at the time. By proofreading an earlier draft of our paper using ChatGPT Pro edition, we were pointed to this expander graph paper. After verifying the applicability of these codes, we combine them with the argument in the preceding section, to create the first known energy-time optimal coding scheme. We describe an example construction in the subsections below, which was also suggested by ChatGPT Pro.
A. The Node Degree Distribution Construction
We restate two of the main results from [6]. Since we take this directly from the paper, refer to this paper for more details of this construction. We will reproduce enough here to derive our main corollary.
First we consider a family of bipartite graphs defined by the following sequences. First, let
and
where is the fraction of left nodes with degree and is the fraction of right nodes with degree . Also, we assume and are the minimal left and right node degrees respectively. Similarly, and are the maximal left and right node degrees, respectively.
If there are left nodes and right nodes, then these sequences can be used to define the number of left and right nodes of each degree. The number of edges connected to the right nodes must equal the number of edges connected to the left nodes. Hence, our quantities in and , as well as and , must be chosen such that:
We can now consider a random permutation of edges connecting the E slots on the left with the E slots on the right.
This construction is associated with an LDPC code. The nodes on the left are associated with codeword bits (and called the variable nodes) and the nodes on the right are associated with the parity-check equations (and called the check nodes).
We also need to define an expander graph. To do so we borrow the notation from [6] in which for any set of variable nodes, is the set of neighbors of , and is the set of edges that connect with .
Definition 32. (Directly from [6]) A expander graph is a bipartite graph in which for any non-empty set of variable nodes with .
B. The Main Expander Graph Theorems
Theorem 33. (Theorem 1 from [6]) (Expander graph LDPC codes have exponential error probability with a logarithmic number of iterations)
Consider a expander. Define
and assume
Apply Gallager's hard-decision decoding algorithm with parameter .
For an integer satisfying
every pattern of errors in the received values is corrected within
decoding rounds. Here is the ceiling of .
Lemma 34. (Lemma 1 from [6]) (Expander graph codes of bounded maximum node degree exist, and occur with high probability): Consider a sequence of bipartite graphs that are chosen at random uniformly as described above in Section XV-A in which the numbers of left nodes and right nodes grow to infinity. Suppose is bounded above and independent of . Also, suppose is bounded below and independent of . Then, for any , there is a sufficiently small that is independent of , such that with probability , the randomly generated graph is a expander.
Note: We make explicit that the sufficiently small is independent of , which is not explicitly stated in the original Lemma statement. This is apparent by inspection of the proof of Lemma 1, Appendix A, page 17 of [6]. Specifically, consider the third equation after line 18 to see that does not depend on .
C. The Expander Graph Theorems Imply LDPC coding Schemes Exist with Logarithmic Iterations
We now proceed to the main derivation of this section, which is a direct implication of the Expander Graph argument from [6].
First, let
and
Then, the constraint of equation 5 implies that if there are variable nodes there are check nodes. Hence there are at most independent rows of the parity-check matrix, and the code has rate at least .
Applying Lemma 34, we can pick . Then, with probability that approaches 1 as N gets bigger, our randomly produced graph is a expander. Thus, for each N in our sequence, choose such an expander graph.
Let the decoding parameter be . Now, applying the parameters of Theorem 1 of [6] gives us
In this case, from the condition of Theorem 33, we need . We see that since ,
and so the condition is satisfied.
Plugging these parameters directly into equation 6 implies that:
Note that the value does not depend on N, and is some small constant above 0.
Hence, this particular construction can correct a constant fraction of errors in the received message. In particular, for sufficiently large , our construction can correct up to errors, where .
The number of iterations required to obtain this number of corrections is logarithmic, with the logarithm having the following base:
This base is greater than 1, and so the number of iterations scales as .
Now we simply need to show that there is a channel in which this error performance is exponential in block length N.
Let be a random variable counting the number of errors in our block length code. If we choose a channel in which , the probability of error is bounded by:
where
This follows directly from the well known Chernoff bound for the tail distribution of a binomial distribution. Hence, when , we have an coding scheme with a logarithmic number of iterations.
D. Tight Upper Bound Results
We can now implement an LDPC decoder using the mesh network architecture of Section XII. Since that section describes the complexity per iteration, and there are a logarithmic number of iterations required, this will only add a logarithmic factor to the energy and time bounds. Hence, by using an appropriate expander-graph based LDPC code and mesh network decoder, and requiring that the decoder runs for only the appropriate logarithmic number of iterations:
Theorem 35. There exists an -coding scheme with area that scales as , time that scales as , and thus energy that scales as in the two-dimensional mesh network, for some . Thus, for any that scales slower than to 0, for some binary symmetric channels, there exists an -coding scheme in which decoding time and . This reaches the fundamental lower bounds of Theorem 29 up to polylogarithmic factors.
We can also derive upper bounds for three-dimensional energy complexity, and compare them to lower bounds on three-dimensional circuits from [12].
Theorem 36. For some binary symmetric channels, there exists an -coding scheme implementable in three dimensions with time that scales as , and thus energy that scales as . Thus, for any that decays more slowly than this, there exists an -coding scheme in which, for decoding,
and
This reaches the fundamental energy lower bound on any three-dimensional -coding scheme of Theorem 31 up to polylogarithmic factors.
E. Limitations of this result
We do not show that our construction of energy- and time-optimal -coding schemes also reaches capacity. Moreover, we do not show that such schemes exist for all binary symmetric channels, but rather only for ones for which we can apply the expander-graph approach. These all remain significant open questions. Also, since generator matrices are not necessarily sparse even when parity-check matrices are sparse, we still have not shown a coding scheme which reaches the complexity lower bounds for both encoding and decoding simultaneously.
XVI. CONCLUSION
In this paper we constructed tight (up to polylogarithmic factors) upper bounds on the energy and time complexity of error control decoding circuits. To do this, we derived general upper bounds for the time and energy complexity of algorithms defined on communication graphs of bounded vertex degree. Specifically, we considered these scaling rule upper bounds for both two- and three-dimensional implementations using the mesh network architecture. We highlighted the LDPC decoding problem and the sparse matrix-vector multiplication problem as example applications of this work.
By applying the expander-graph based LDPC codes of [6], we showed that these LDPC codes can reach fundamental lower bounds on time and energy in two dimensions for decoding derived in [12], up to polylogarithmic factors. We also showed that these can reach the fundamental lower bounds on energy for three dimensions.
There are many other open questions on this topic. We list a few below.
-
The work in [18] shows that almost all Tanner graphs generated according to a uniform configuration distribution have high minimum bisection width. This implies lower bounds on the energy of implementing LDPC decoding on the two-dimensional mesh network. However, we conjecture that this also implies comparable lower bounds for three-dimensional circuits, but this has never been proven. We suspect that lower bounds that closely match the upper bounds derived herein are possible.
-
Our three-dimensional results rely on the 3D Circuit-Folding Assumption. We assume that circuits implementable in two dimensional area can be folded into a three-dimensional cube of volume that scales comparably to the original area . A proof of this claim in general, or even just for the specific circuits considered herein, is an area of future work.
-
Understanding how graphs with unbounded node degree, or node degree that scales with the number of vertices , can be routed through mesh networks is also an open question.
-
Currently, the only lower-bound techniques we have for three-dimensional circuits use the Grover information friction model. This approach does not allow for simultaneous time lower bounds. Hence, we do not know if similar energy and time tradeoffs exist in three dimensions. Nevertheless, we conjecture that the expander-graph LDPC construction presented here is energy-time optimal in three dimensions. Specifically, we suspect that any energy-optimal -decoder in
three dimensions (which according to [12] must have energy that scales as ), must also require clock cycles that scale as . We suspect similar bounds would also apply for any -coding scheme.
-
We have constructed energy-time optimal coding schemes herein. But there is a more general question that still remains. If we allow for greater energy consumption, the number of clock cycles can be reduced. Thus, characterizing this tradeoff in general is an open question. This tradeoff can be characterized in terms of lower bounds, as described in [12], but the existence of achievable upper bound constructions for any is an open question.
-
Our proposed implementation of the mesh network requires full processors in each mesh node. Simple modifications could require only the direction-computation circuitry. However, in either case, an entire address of size must be processed. This allows the mesh network to be general purpose; in principle, the same architecture can carry out any message-passing step defined by any graph with bounded vertex degree. However, this might be overkill for specific graphs. Many graphs may have a specific structure that does not require message-passing to use the full address of the destination node. Thus, for specific graphs it may be possible to save some logarithmic factors in the energy complexity by exploiting this special structure.
-
The two- and three-dimensional mesh networks described have the potential to increase their processing capacity and, in the case of three dimensions, their message-passing capacity. We presume that each mesh node has only one processor, of size , but the area/volume of these nodes is , meaning that there can be more processors per mesh node. This might allow for parallelization of some of the message passing steps. Moreover, in the case of three dimensions, each face has surface area; however, we only require that they pass bits at a time. If the direction computation steps and memory access steps could be parallelized, this could potentially save some processing capacity. However, this would require a memory management scheme so that memory accesses don't dominate the complexity per message passed. Utilizing this latent capacity remains an area of future work.
ACKNOWLEDGMENTS
We acknowledge that ChatGPT Pro Edition was used to verify mathematical correctness of this paper. In the process, we were recommended a better proof of the Graph Placement Lemma, as well as the tight upper bound technique using expander-graph based LDPC codes.
REFERENCES
[1] S. del Rey, L. Cruz, X. Franch, and S. Martínez-Fernández, "Estimating deep learning energy consumption based on model architecture and training environment," Comp. Stand. Interfaces, vol. 99, p. 104170, 2027. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0920548926000449 [2] C. D. Thompson, "A complexity theory for VLSI," Ph.D. Thesis, Carnegie-Mellon, 1980. [3] —, "Area-time complexity for VLSI," in Proc. ACM Symp. Theory of Comput., Atlanta, GA, Apr. 1979, pp. 81–88. [4] K. Dhananjay, P. Shukla, V. F. Pavlidis, A. Coskun, and E. Salman, "Monolithic 3D integrated circuits: Recent trends and future prospects," IEEE Trans. Circ. and Sys. II: Express Briefs, vol. 68, no. 3, pp. 837–843, 2021. [5] C. G. Blake, "Energy consumption of error control coding circuits," Ph.D. Thesis, University of Toronto, Toronto, Jun. 2017. [Online]. Available: https://space.library.utoronto.ca/handle/1807/78035 [6] D. Burshtein and G. Miller, "Expander graph arguments for message-passing algorithms," IEEE Trans. Inf. Theory, vol. 47, no. 2, pp. 782–790, 2001. [7] P. Bachmann, Analytische Zahlentheorie. Leipzig, Germany: Teubner, 1894, vol. 2. [8] E. Landau, Handbuch der Lehre von der Verteilung der Primzahlen. Leipzig, Germany: Teubner, 1909, vol. 2. [9] H. Abelson and P. Andreae, "Information transfer and area-time trade-offs for VLSI multiplication," Communications of the ACM, vol. 23, no. 1, pp. 20–23, 1980. [10] P. Grover, A. Goldsmith, and A. Sahai, "Fundamental limits on the power consumption of encoding and decoding," in Proc. IEEE Int. Symp. Info. Theory, Cambridge, MA, 2012, pp. 2716–2720. [11] P. Grover, "Information friction and its implications on minimum energy required for communication," IEEE Trans. Inf. Theory, vol. 61, no. 2, pp. 895–907, Feb 2015. [12] C. G. Blake and F. R. Kschischang, "Energy, latency, and reliability tradeoffs in coding circuits," IEEE Transactions on Information Theory, vol. 65, no. 2, pp. 935–946, 2019. [13] L. Gianinazzi, T. Ben-Nun, M. Besta, S. Ashkboos, Y. Baumann, P. Luczynski, and T. Hoefer, "The spatial computer: A model for energy-efficient parallel computation," 2023. [Online]. Available: https://arxiv.org/abs/2205.04934 [14] C. Jin, R. R. Williams, and N. Young, "A VLSI Circuit Model Accounting for Wire Delay," in ITCS 2024, vol. 287, 2024, pp. 66:1–66:22. [15] J. Hastad, "Computational limitations for small depth circuits," Ph.D. dissertation, MIT, 1986. [16] Y. Ofman, "On the algorithmic complexity of discrete functions," in Dokl. Akad. Nauk SSSR, vol. 145, no. 1, 1962, pp. 48–51. [Online]. Available: https://api.semanticscholar.org/CorpusID:60961713 [17] C. Mead and M. Rem, "Cost and performance of VLSI computing structures," IEEE Trans. Electron Devices, vol. 26, no. 4, pp. 533–540, April 1979. [18] C. G. Blake and F. R. Kschischang, "On the VLSI energy complexity of LDPC decoder circuits," IEEE Trans. Inf. Theory, vol. 63, no. 5, pp. 2781–2795, 2017.