"Short-Dot": Computing Large Linear Transforms Distributedly Using Coded Short Dot Products

Sanghamitra Dutta, Viveck R. Cadambe, Pulkit Grover

Abstract

Distributed computing systems for large-scale matrix-vector multiplications ($Ax$) are frequently bottlenecked by "straggler" nodes—slow or faulty processors that delay the entire computation. Traditional redundancy-based solutions, such as repetition or MDS codes, require each node to process full-length input vectors, imposing significant memory and communication burdens. This paper introduces Short-Dot, a coding-theory-inspired strategy that constructs a larger number of shorter dot products. By jointly encoding rows of the matrix into sparse, short vectors, Short-Dot significantly reduces per-processor workload and communication overhead while remaining resilient to stragglers. Experimental results on MNIST classification show a 32% speedup over MDS codes and 12% over uncoded strategies, with much lower latency variability.

The Straggler Problem in Distributed Computing

In modern big data applications, massive linear transformations are distributed across many processors. However, the system's overall speed is often limited by the slowest node, a phenomenon known as the "straggler effect." Because a central fusion node typically waits for every result to arrive, a single delayed processor can stall the entire pipeline.

Existing solutions like Repetition or Maximum Distance Separable (MDS) codes introduce redundancy to combat stragglers. However, these methods usually require every processor to compute a dot product of the full length ($N$) of the input vector. As data dimensions scale, this requirement strains the memory, bandwidth, and processing power of individual nodes.

The Short-Dot Method

Short-Dot addresses these limitations by breaking the "length barrier." Instead of computing the original $M$ rows of matrix $A$, the system computes $P$ rows of a new matrix $F$.

The Short-Dot strategy encodes $M$ dense vectors into $P$ short vectors, requiring only $K$ results for reconstruction.

Key components of the method include:

  1. Coded Sparsity: Matrix $F$ is designed so that each row is sparse (length $s < N$).
  2. Joint Encoding: By encoding all rows of $A$ together, Short-Dot produces dot products significantly shorter than those from standard MDS codes.
  3. Straggler Resilience: The fusion node can reconstruct the original transformation $Ax$ using results from any $K$ out of $P$ processors.
  4. Vandermonde Construction: A systematic approach using Vandermonde structures enables efficient encoding and decoding via polynomial interpolation.
System architecture for Short-Dot: Master node distributes vector segments, processors compute short dot products, and the fusion node decodes the first $K$ outputs.

Key Insights and Theoretical Bounds

The core innovation of Short-Dot is the realization that redundancy does not necessitate long dot products. By carefully designing the sparsity pattern of the encoding matrix, the system achieves both fault tolerance and reduced per-node workload.

  • Communication Efficiency: Shorter dot products mean the master node only sends a subset of the input vector $x$ to each processor, a critical advantage when network bandwidth is a bottleneck.
  • Near-Optimality: The authors established an information-theoretic lower bound on the trade-off between dot-product length and straggler resilience, proving that Short-Dot is near-optimal.
  • Dominance in the $M \ll P$ Regime: Short-Dot is particularly effective when the number of required outputs ($M$) is much smaller than the number of available processors ($P$), which is common in real-time inference tasks.

Experimental Performance

The researchers evaluated Short-Dot using the MNIST handwritten digit database and synthetic linear transforms.

  • Speedup: In a cluster of 20 processors, Short-Dot was 32% faster than MDS codes and 12% faster than the uncoded strategy in mean computation time.
  • Consistency: Short-Dot significantly reduced latency variability. While the uncoded strategy had a standard deviation of 2.84s, Short-Dot achieved a much more consistent 0.92s, making it ideal for latency-sensitive applications.
  • Theoretical Scaling: In specific regimes (e.g., $M = P / \log P$), the speedup factor of Short-Dot compared to MDS and Uncoded strategies diverges to infinity as the number of processors $P$ grows.

Limitations and Future Directions

While Short-Dot offers significant advantages, the initial encoding of matrix $F$ is a pre-processing step that is more computationally expensive than simpler codes. However, this cost is amortized over many computations. Future work may explore "partial stragglers"—nodes that are slow but eventually return results—rather than treating them as binary erasures. Additionally, implementing Short-Dot with more optimized communication protocols like MPI could further amplify its performance benefits.

Summary updated

BibTeX
@article{dutta2017short,
  author = {Sanghamitra Dutta and Viveck R. Cadambe and Pulkit Grover},
  title = {{"Short-Dot": Computing Large Linear Transforms Distributedly Using Coded Short Dot Products}},
  journal = {IEEE Trans. Information Theory},
  year = {2017},
  doi = {10.1109/tit.2019.2927558},
}
Figure