Approximate Gradient Coding via Sparse Random Graphs
Zachary Charles, Dimitris Papailiopoulos, Jordan Ellenberg
Introduction
Deploying algorithms on distributed systems has become the de facto choice for scaling-out machine learning on large data sets. Distributed algorithms generally achieve substantial runtime speedups compared to single node algorithms. Unfortunately, these speedup gains often fall short of the theoretically optimal speedup when scaling beyond a few tens of compute nodes . This commonly observed behavior is referred to as the speedup saturation phenomenon. One of the causes of speedup saturation is the presence of stragglers. These are compute nodes whose runtime is substantially higher than the average runtime among all nodes.
Several methods for mitigating the effect of stragglers have been recently proposed. These approaches include replicating jobs across redundant nodes and dropping stragglers in the case that the underlying computation is robust to errors . Moreover, redundant compute nodes can help improve the performance of distributed model training algorithms, as demonstrated in .
Recently, tools from coding theory have gained traction in an effort to mitigate stragglers. Lee et al. proposed the use of techniques from coding theory to compensate for stragglers and communication bottlenecks in machine learning settings, especially for the computation of linear functions. Li et al. proposed using coding theory to reduce inter-server communication in the shuffling phase of MapReduce . Then, propose another coding-theoretic algorithm for speeding up distributed matrix multiplication in heterogeneous clusters. The use of codes for distributed matrix multiplication and linear operations on functions was also studied in , which analyzes the trade-off between the flexibility and sparsity of the code.
In , the authors propose gradient coding, a technique to exactly recover the sum of gradients from a subset of compute nodes. The authors show that gradients can be recovered from any compute nodes, as long as each node computes gradients. In other words, the algorithm is robust to stragglers. Gradient coding is particularly relevant to synchronous distributed learning algorithms that involve computing sums of gradients, such as mini-batch stochastic gradient descent and full-batch gradient descent. While some of the gradient code constructions in are randomized, the authors in use deterministic codes based on expander graphs to achieve similar results.
Most of the above results focus on exact reconstruction of a sum of functions. In many practical distributed settings, we may only require approximate reconstruction of the sum. For example, parallel model training in machine learning settings has been shown to be robust to noise . In some scenarios, noisy gradients may even improve the generalization performance of the trained model . By only approximately reconstructing the desired function, we hope to increase the speed and tolerance to stragglers of our distributed algorithm. In fact, expander graphs, particularly Ramanujan graphs, can be used for such approximate reconstruction . Unfortunately, expander graphs, especially Ramanujan graphs, can be expensive to compute in practice, especially for large numbers of compute nodes. Moreover, the desired parameters of the construction may be constrained according to underlying combinatorial rules.
In this work, we use sparse graphs to create gradient codes capable of efficiently and accurately computing approximate gradients in a distributed manner. More generally, these codes can be used to approximately compute any sum of functions in a distributed manner. We formally introduce the approximate recovery problem using a coding–theoretic interpretation, and present and analyze two decoding techniques for approximate reconstruction: an optimal decoding algorithm that has polynomial-time complexity, and a fast decoding method that has linear complexity in the sparsity of the input.
We focus on two different codes that are efficiently computable and require only a logarithmic number of tasks per compute node. The first is the Fractional Repetition Code (FRC) proposed in . We show that FRCs can achieve small or zero error with high probability, even if a constant fraction of compute nodes are stragglers. However, we show that FRCs are susceptible to adversarial stragglers, where an adversary can force a subset of the nodes to become stragglers. To get around this issue, we also present the Bernoulli Gradient Code (BGC) and the regularized Bernoulli Gradient Code (rBGC), whose constructions are based on sparse random graphs. We show that adversarial straggler selection in general codes is NP-hard, suggesting that these random codes may perform better then FRCs against polynomial-time adversaries. We give explicit bounds on the error of BGCs and rBGCs that show that their potential tolerance to adversaries comes at the expense of a worse average-case error than FRCs. We provide simulations that support our theoretical results. These simulations show that there is a trade-off between the decoding complexity of a gradient code and its average- and worst-case performance.
Setup
2 Problem Statement
In this work, we consider a distributed master-worker setup of compute nodes, each of which is assigned a maximum of tasks. The compute nodes can compute locally assigned tasks and they can send messages to the master node.
The goal of the master node is to compute the sum of functions
The above setup is relevant to distributed learning algorithms, where we often wish to find some model by minimizing
Approximate Gradient Coding: There are three components of an approximate gradient coding scheme:
The function assignment per compute node.
The messages sent from a compute node to the master.
The decoding algorithm used by the master to recover an approximate sum of gradients.
After assigning tasks to each compute node, we let the compute nodes run local computations for some maximum amount of time. Afterwards, we may have compute nodes that either failed to compute some functions or are still running. These are the straggler nodes. During the approximate reconstruction of the sum, we assume that the master node only has access to the output of the non-straggler nodes out of the total compute nodes. We want to use their output to compute the best approximation possible to given in (2.1). We assume that we can only take linear combinations of the outputs of the non-straggler nodes.
More formally, the task assignments are represented by a function assignment matrix , a matrix where the support of column indexes the functions assigned to compute node . The entries of column correspond to the coefficients of the linear combination of these local functions that the compute node sends back to the master once the compute node has completed its local computations.
Let denote the submatrix of corresponding to the non-straggler compute nodes. The minimum recovery error for a given subset matrix is given by
To better analyze this error, we define the optimal decoding error of a matrix .
The optimal decoding error of a non-straggler matrix is defined as
The optimal decoding error quantifies how close is to being in the span of the columns of . Taking , we see that for any , . It is worth noting that is the absolute error incurred in our approximation. The multiplicative error is . Note that if is small, then the overall minimum recovery error is small relative to , since
For a given matrix , let denote its pseudo-inverse. Properties of the pseudo-inverse imply
In general, we are interested in constructing function assignment matrices such that submatrices have small decoding error. Note that we can either consider the worst-case among all or consider the setting where is chosen uniformly at random. We will refer to these matrices as approximate gradient codes.
Approximate gradient codes were constructed in using expander graphs. The authors show in particular that if is the adjacency matrix of a Ramanujan graph, then the worst-case decoding error is relatively small. Unfortunately, such graphs may be expensive to compute in practice. To circumvent this issue, we use simplified random constructions.
Our main theorem shows that there is an efficiently computable code that has small or zero decoding error with high probability, even with a constant fraction of stragglers. We state an informal version of this theorem below. Theorem 8 below will provide a more general and formal statement, along with the proof.
We can assign tasks to each compute node in such a way that with probability at least , we can tolerate randomly chosen stragglers within a multiplicative error of where
In other words, for any and a constant fraction of stragglers , there is a code with sparsity that can exactly reconstruct the gradient with high probability. While this code achieves smaller error for most than previously designed gradient codes, we show that this comes at the expense of the worst-case error, which can be . Here, the worst-case is taken over all possible sets of nodes that become stragglers. Moreover, this worst-case be computed efficiently by an adversary. On the other hand, we show that in general, adversarial straggler selection is NP-hard. In order to counter polynomial-time adversaries, we give another approximate gradient code that utilizes randomness. We also bound the decoding error of this code. We show the following informal theorem.
We can randomly assign tasks to each compute node in such a way that with probability at least , we can tolerate randomly chosen stragglers within a multiplicative error of where
Theorem 24 below gives a more general and formal statement, along with the proof. In comparison, work in derives worst-case bounds on when is the adjacency matrix of an -regular expander graph. Given such a , denotes its eigenvalues as . We will let . Then the aforementioned work proves the following theorem.
Suppose is a -regular expander. Then we can tolerate any stragglers within a multiplicative error of where
In particular, if is a Ramanujan graph, then this becomes . This comes at the expense of having a more computationally difficult construction, as expander graphs, especially Ramanujan graphs, can be difficult to compute.
Decoding: We would like to note that the performance of a gradient code depends in part on the decoding algorithm, i.e., how we use the output from the non-stragglers to approximate the desired output. In our setting, we want to use the received non-straggler matrix to approximate . We give two possible methods below. We will refer to these as decoding methods because of the parallels to coding theory.
For the one-step decoding error, we will generally consider . If has entries in each column and row, then we would expect to have roughly entries in each row. If this holds exactly, then setting will allow us to exactly reconstruct the gradient.
A decoding method analogous to the one-step decoding method was previously used in . Note that the one-step decoding method is more efficient to compute than the optimal decoding, especially when is ill-conditioned or is large. Moreover, we can apply the one-step decoding method even if we do not have direct access to but can compute matrix-vector product . The one-step decoding method allows us to avoid putting the entire matrix in to memory of the master compute node in settings where this is not possible.
It is straightforward to see that if is the optimal decoding vector of , then . On the other hand, if is the one-step decoding vector of then . We define the one-step decoding error of as follows.
For a given , the one-step error of is defined by
Fractional Repetition Codes
We would like to devise a code that achieves small error with high probability in the setting that our stragglers are chosen randomly. In fact, this can be achieved by the fractional repetition code (FRC) used in . Note that only considers this code for exact reconstruction of the gradient over all subsets of stragglers. This code can still be used when we only want approximately reconstruct the sum of gradients with high probability.
This scheme works by replicating certain tasks between compute nodes. Suppose that we have tasks and compute nodes and we want each compute node to compute tasks. Without loss of generality, we suppose that divides . The assignment matrix for this scheme is then defined by
We assume that the matrix of non-stragglers has columns that are sampled uniformly without replacement from the columns of . We first compute the expected one-step decoding error. Let denote column of .
Fix . Since has non-zero entries that are all , . Next, suppose . By the construction of , there are only columns of that are not orthogonal to . Note that is a duplicate of with probability . If this holds, then , and it is 0 if this does not hold. Therefore, for ,
Setting in the one-step decoding method, we have
Between step 1 and step 2 we used the fact that the columns of all have non-zero entries so . Applying Lemma 4,
Next, we consider the optimal decoding error of . Note that each column of must be equal to one of the following distinct vectors,
There are copies of each in and has a set of columns given by sampling of these without replacement. It is straightforward to see that , where is the number of such that is not a column of .
Let denote the random variables where indicates whether is not a column of . Note that we then have
Each is 1 iff none of the columns in the th block of are sampled as part of the non-stragglers. Therefore,
Combining (3.1) and (3.2), we get the following theorem.
We would now like high-probability bounds on . By (3.1), this reduces to bounding how many of the are non-zero. This can be done via standard techniques concerning with-replacement sampling.
Fix such that . Then
Note that the probability that we have no more than of the missing from the columns of is the probability that . Therefore,
While this exact expression is complicated, this result easily shows that if , then with probability at least , is relatively small. Recall that the number of non-stragglers for .
We wish to show that for , the right-hand side of this equation is at most . Manipulating, this is equivalent to satisfying
Since , we have
Letting , (3.4) implies that (3.3) holds if
Since this occurs for all , the desired result is shown.∎
Theorem 8 implies that with probability at least , an FRC will have multiplicative error where
Therefore, this implies Theorem 1. While FRCs have demonstrably small optimal decoding error when the stragglers are selected randomly, we will later show that it does not perform well when the stragglers are selected adversarially. In order to improve our tolerance to adversarial stragglers, we will develop a coding scheme based on random graphs.
Adversarial Stragglers
While FRCs have small average-case error, their worst-case error is large. Even worse, it is computationally efficient to find these worst-case straggler sets. In fact, they can be found in linear time in the number of compute nodes. Recall that the assignment matrix for FRC is defined by
As previously noted, each column of has distinct possibilities,
Furthermore, the optimal decoding error increases by if and only if all of the columns in one of the blocks of are all stragglers. Therefore, if one were to select stragglers adversarially, they would pick all of the columns from one block, then all of the columns from another block, and continue until they had selected stragglers. This corresponds to picking non-stragglers corresponding to every column of of the blocks in . Here, we assume that divides for simplicity.
If is given as in (4.1), then we can simply select the first columns of to be non-stragglers. If is permuted, then we can simply select all columns corresponding to blocks. There are therefore blocks missing from . Each contributes to the optimal decoding error. This implies that we have an overall error of . The argument above shows that this is the worst-case error possible.
Note that the adversary can find this set in operations if they have full-knowledge that an FRC scheme is being used with presentation as in (4.1). Even if they do not have this knowledge, an adversary can check for this coding scheme and find the worst-case straggler set in operations if they only have access to the matrix . This implies the following theorem.
Suppose that we assign tasks using a Fractional Repetition Code. In the worst-case, the non-straggler matrix will satisfy
Moreover, worst-case straggler sets can be found in quadratic time.
Suppose that for some constant . Then, the adversarial optimal decoding error is . This is in stark contrast to Theorem 8, which shows that if the stragglers are selected randomly and , then with high probability . Also note that since , the adversarial one-step decoding error is .
2 Adversarial Straggler Selection is NP-hard
In this section, we show that in general, adversarial straggler selection is NP-hard. This demonstrates that adversaries with polynomial-time computations may not be able to find a set of stragglers that maximizes the decoding error. In such cases, the average-case error may be a more useful indicator of how well a gradient code performs.
To show that general adversarial selection is NP-hard, we first define two problems.
The -densest subgraph problem (DS) asks, given a graph , what -vertex subgraph contains the most edges.
As shown in , this problem is NP-hard, even if we restrict to regular graphs. We now formally define the adversarial straggler problem.
Fix a constant . The -adversarial straggler problem (-ASP) asks, given a square matrix , which column-submatrix maximizes
Note that this is the form that one-step decoding takes. We will show that for any , this problem is NP-hard, even when we restrict to with at most non-zero entries in each column.
For any , the adversarial straggler problem is NP-hard. This holds even if we restrict to matrices with entries in and at most non-zero entries per column.
In fact, the proof of our theorem also shows that if we instead consider all matrices where , then -ASP is NP-hard for any .
We will give a reduction from DS on -regular graphs to -ASP where is boolean with at most non-zero entries per column.
Let be a -regular graph on vertices. Note that . We want to solve DS for . Let denote the adjacency matrix of . Note that DS is equivalent to
Let denote the unsigned incidence matrix of . That is, is a boolean matrix where the row corresponding to edge has a in column iff is incident to . We will let denote the matrix given by adding zero columns to . Note that is a square boolean matrix with at most non-zero entries in each column since is -regular.
Let . Consider -ASP on . This is equivalent to finding a vector with that maximizes
Let where . Note that corresponds to which of the columns of we select, while corresponds to columns of we select. Recall that .
Note that . This implies
Therefore, -ASP in this setting is equivalent to maximizing, over such that , the quantity
Note that if we fix a binary such that , then
Therefore, maximizing this quantity corresponds to finding the -densest subgraph of . We now must show that when we maximize this over and , then the solution will always have . Since , it suffices to show that is as sparse as possible.
To show that this is the case, we will show that for , increasing the sparsity of by 1 will only decrease the objective function. Suppose that and it has support . Say that satisfies and it has support where . Let denote the vertex subgraphs of corresponding to , and let denote the number of edges in these subgraphs. Note that . We then have
Note that since is -regular, . Therefore,
For , this quantity is negative. Therefore, increasing the sparsity of will decrease the objective function . Therefore, the maximum of the -ASP problem applied to will have as sparse as possible. Since and , this implies that the maximum occurs at . Let denote the support of . The objective function in (4.2) is then equal to
This is clearly maximized when is the set of vertices forming the densest -subgraph.∎
Bernoulli Gradient Codes
In this section we will consider the case that has entries that are Bernoulli random variables. For a given , we will refer to the Bernoulli coding scheme as setting, for , . Intuitively, by injecting randomness in to the construction of , we improve our tolerance to adversarial stragglers. This comes as the cost of worse average-case error. While shows that if is a Ramanujan graph then we have strong bounds on its adversarial decoding error, such graphs are notoriously tricky to compute. By using Bernoulli coding, we sacrifice a small amount of error in order to achieve a much simpler, efficiently computable coding scheme.
Suppose that the stragglers are selected uniformly at random. Then, the non-straggler submatrix also has Bernoulli random entries. Note that the expected number of tasks assigned to each compute node is . This construction will allow us to derive high-probability bounds on the decoding error for . We will later show that we can enforce the desired sparsity of each column and maintain the same error. Moreover, enforcing this desired sparsity will let us extend these error bounds to the setting where . In order to get a handle on the decoding error, we first develop a method to bound the optimal and one-step decoding errors.
Suppose we have a function assignment matrix such that the sparsity of each column is exactly or approximately bounded by . After performing the local computations on each compute node, we have access to a submatrix of the non-stragglers. We assume that for some .
We would like to derive high probability bounds on in order to bound the optimal decoding error of , as in (2.3). Unfortunately, it is not straightforward to directly bound this error for a random matrix since it involves the pseudo-inverse of . Instead, we will use an algorithmic approach to bound the optimal decoding error with high probability. The following lemma is adapted from .
Let , and define
Moreover, for all , .
We refer to the as the algorithmic decoding error of . To prove Lemma 12, we will use the following lemma, adapted from .
If is in the column span of and then
Fix some . We can decompose as where is the orthogonal projection of on to the column span of and is in the nullspace of . Note that this implies that . Therefore,
Since is in the span of , is also in the span of and orthogonal to . By Lemma 13,
By construction, , completing the proof.∎
Note that the are defined as the iterates of projected gradient descent. Consider the setting where . The matrix is a projection operator (ie. ), and it projects a vector on to the column-span of . By letting , Lemma 12 one can show that this eventually converges to . In other words, we eventually converge to the component of that is orthogonal to the range of . Taking , this eventually converges to .
We can better understand by taking a combinatorial view. Note that encodes a bipartite graph with left vertices and right vertices, where is 1 iff there is an edge between vertex on the left and vertex on the right. Column of corresponds to the incidence of the th right vertex. In particular, the degree of vertex on the right equal the number of tasks computed by compute node . We can compute in terms of walks on this bipartite graph.
equals the number of paths of length from a left vertex to a right vertex.
Note that is the number of paths of length 2 from the vertex to vertex , where are both left vertices. More generally, counts the weighted number of paths of length from vertex to vertex . Therefore, is the weighted number of paths of length from a left vertex to a left vertex.∎
Let denote the weighted number of walks in the associated bipartite graph of of length starting and ending at a left vertex. Then
While may be difficult to bound for sufficiently large , we can handle more directly. Moreover, as theory and simulations will show, even will give us good bounds on .
2 One-step Error of Bernoulli Gradient Codes
This approach is analogous to bounding , as the following lemma shows.
Recall that for a given , is given by
Suppose we have a random Erdős-Rényi graph with adjacency matrix where . For any there exists a universal constant such that with probability at least ,
More generally, assume that is a adjacency matrix where is Bernoulli with probability . This is sometimes referred to as the inhomogeneous Erdős-Rényi model . Let . As discussed in , Lemma 18 extends to this setting using this definition of (see section 1.1). While this result applies directly to adjacency matrices, we can easily extend this to . This will first require a basic lemma about the spectral norm of a structured block matrix.
Let be a matrix. Suppose that is a block matrix of the form
Standard properties of singular values imply that . Moreover,
Since the eigenvalues of a block diagonal matrix are given by the eigenvalues of all the blocks,
Let be a matrix where and is Bernoulli with probability . Then for all , there exists a universal constant such that with probability at least ,
encodes the structure of a bipartite graph with vertices. After relabeling, we can denote these vertices as where the bipartite blocks are given by . The adjacency matrix is therefore of the form
Note that comes from an inhomogeneous Erdős-Rényi graph where is zero if and are both in or , and otherwise. Therefore, . By Lemma 18 (and the discussion following it), for all there exists some universal constant such that with probability at least ,
This last equality holds by Lemma 19. Taking we conclude the proof.∎
Combining this with Lemma 16, we get the following theorem.
Suppose that . Then for any , there is a universal constant such that for , with probability at least ,
Empirically, the same bound holds for other methods of generating . If we choose the non-zero support of each column by selecting indices with or without replacement from , then we conjecture that the same theorem holds. Unfortunately, standard concentration inequalities are not enough to prove this result in such settings.
3 Regularized Bernoulli Gradient Codes
Both of these issues have the same cause: vertices whose degree is too large. Fortunately, this issue of enforcing concentration of sparse graphs has been studied and partially resolved in . They show that by appropriate regularization of graphs, we can improve their concentration in the sparse setting.
Let be a random graph from the inhomogeneous Erdős-Rényi model and let . For any , the following holds with probability at least . Take all vertices of with degree larger than and reduce the weights of the edges incident to those vertices in any way such that they have degree at most . Let denote the resulting graph. Then
Here is a universal constant. Note that this regularization can be performed analogously on . To form , we simply look at all columns with degree more than and change entries in those columns from to until these columns have degree . This satisfies the criterion in the above theorem. We can then use an almost identical version of the proof of Theorem 20 to prove the following theorem.
There is a universal constant such that for any , , with probability at least ,
We can combine this with Lemma 16 to derive the following theorem concerning . As before, this bound applies for both the one-step decoding and the optimal decoding.
For any , and letting , with probability at least ,
By regularizing in the above manner, we ensure that each compute node computes at most tasks and that our error bound works for all . Note that in practice, we cannot form from as we don’t know a priori. Therefore we cannot tell the compute nodes to compute the functions corresponding to . Instead, we can regularize in the same manner to obtain in the following way such that we can apply Theorem 24 above. We refer to this code as the regularized Bernoulli Gradient Code, (rBGC).
The construction is simple. We initialize with each entry Bernoulli. For each column with more than non-zero entries, we randomly set entries to 0 until it has non-zero entries. A detailed algorithm is provided below.
Note that the error incurred by an rBGC corresopnds to a multiplicative error where
Simulations
In this section we compare the empirical decoding error of Fractional Repetition Codes (FRCs) and Bernoulli Gradient Codes (BGC). Recall that we gave two decoding methods, one that corresponding to the optimal decoding error
and one corresponding to the one-step decoding error
We compare FRCs and BGCs to a coding scheme proposed in . There, Raviv et al. consider the scheme where is the adjacency matrix of an -regular expander graph with vertices. They show that for all submatrices ,
Here, , where the eigenvalues of are given by
We would like to construct to have as small as possible. This is achieved by Ramanujan graphs. In practice, constructing expander graphs with small values of is difficult. By taking a random -regular graph, however, we can obtain can expander graph with high probability . As , tends to the optimal value. In order to generate empirical data, we consider the setting where is the adjacency matrix of a random -regular graph.
Below, we plot the one-step and optimal decoding error and for these three schemes when and the fraction of stragglers varies. In order to normalize the error, we plot and . We take in the one-step decoding.
We see that under one-step decoding, FRCs and -regular expanders perform extremely comparably. In this setting, BGCs seem to sacrifice some accuracy for simplicity. However, FRCs are also computationally simple and perform as well as taking -regular expanders in the average case under one-step decoding. For optimal decoding, FRCs perform significantly better than -regular expanders or BGCs, as the following plots show.
These plots show that if we instead consider optimal decoding, then FRCs greatly outperform the other two methods. In particular, FRCs can achieve zero optimal decoding error even with a non-trivial fraction of stragglers. If , then we can achieve close to zero error even with half of the compute nodes being stragglers.
Finally, we compare the one-step and optimal decoding error for the BGCs, FRCs, and -regular graphs. The results are plotted below.
2 Algorithmic Decoding Error of Bernoulli Gradient Codes
In this section we give empirical one-step error rates of BGCs for varying sizes of and sparsity of the matrix . Recall that we defined the algorithmic decoding error of by a sequence of vectors . Here, corresponds to the one-step decoding error, while converges to the optimal decoding error.
Let be constructed via a BGC. We fix and take varying values of and , letting . We then calculate the average value of based on a Monte Carlo simulation for increasing values of . We set . The results are below.
Conclusion and Open Problems
In this work, we formally described the approximate gradient coding problem and gave two different decoding methods for such codes. We analyzed two efficiently computable gradient codes, FRCs and BGCs, and gave explicit bounds for their decoding error. While FRCs exhibit extremely low average-case error, they are susceptible to adversaries, even polynomial-time adversaries. This is in contrast to our result that adversarial straggler selection is NP-hard. BGCs are constructed via sparse random graphs and are potentially less susceptible to polynomial-time adversaries.
While the problem of approximate gradient coding can be stated in relatively simple terms, our work shows that the problem is not simple. Bounding the error of gradient codes, even relatively straightforward codes such as BGCs, can be an arduous task. This is especially true in the context of optimal decoding error. Still, approximate gradient codes have exciting connections to coding theory, concentration of random graphs, expander graphs, and many other interesting combinatorial and algebraic objects. This work is intended to be a starting point towards understanding the approximate gradient coding problem. There are many remaining open problems, some directly continuing this work, others more tangentially related.
Tighter bounds on the optimal decoding error: For both BGCs and -regular expander graphs, our empirical results show that there is a significant gap between the one-step and the optimal decoding error. So far, the only known results on the error of these codes concern their one-step decoding error. Better bounds on their optimal decoding error and, more generally, better methods for bounding the optimal decoding error would have great implications for the analysis and design of gradient codes. Unfortunately, such bounds are not straightforward. They require greater care and may require analysis of second- and higher-order moments or a better understanding of the pseudo-inverse of random matrices.
Algorithmic error and weighted walk counting: One potential method towards better bounds on the optimal decoding error comes from Lemma 12 above. As we show, one can bound the optimal decoding error by a weighted alternating sum involving the number of walks on a bipartite graph. Tight bounds on the number of walks in a random bipartite graph or deterministic constructions for bipartite graphs with more explicit fomrulas for the number of walks could lead to much better bounds on the error.
Approximate gradient coding capacity: Our work gives deterministic and randomized codes that achieve varying worst-case and average-case errors. In general, we know very little about how these error rates behave. One can ask: what is the information theoretic limit of an approximate gradient code, e.g., what is the optimal tradeoff between the recovery error, the probability of recovery, and the sparsity of the code?
Acknowledgements
The first author was supported in part by the National Science Foundation grant DMS-1502553.