On Optimal Batch Size in Coded Computing
Swapnil Saha, Emina Soljanin, Philip Whiting
TL;DR
This work analyzes how batching interacts with erasure coding in coded computing to minimize expected job completion time under parallel workers. By modeling the service time with shifted exponential distributions and deriving large-$n$ asymptotics, it shows that the optimal batch size $b^*$ tends to extreme values (either $1$ or $s$) for a fixed code rate $R$, with a critical threshold $R' \approx 0.72$ separating regimes where replication or full-batch coding is preferable. It further develops a joint optimization framework over $(b,R)$, revealing that the best strategy depends on the straggling characteristics and job scale, and provides both analytical results and simulations to guide practical system design. Collectively, the results offer actionable guidance for selecting batch size and redundancy in distributed coded computing to reduce expected completion times under varying service-time distributions and system parameters.
Abstract
We consider computing systems that partition jobs into tasks, add redundancy through coding, and assign the encoded tasks to different computing nodes for parallel execution. The expected execution time depends on the level of redundancy. The computing nodes execute large jobs in batches of tasks. We show that the expected execution time depends on the batch size as well. The optimal batch size that minimizes the execution time depends on the level of redundancy under a fixed number of parallel servers and other system parameters. Furthermore, we show how to (jointly) optimize the redundancy level and batch size to reduce the expected job completion time for two service-time distributions. The simulation presented helps us appreciate the claims.
