Skip to content

This repository contains a course project on comparing the entangled polynomial code with a naive repetition code for straggler mitigation in matrix multiplication.

Notifications You must be signed in to change notification settings

ankitkmisra/Straggler-Mitigation-MatMul

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Straggler-Mitigation-MatMul

This repository contains our code and presentation for comparing the effectiveness of the entangled polynomial code with that of a naive repetition code for straggler mitigation in distributed matrix multiplication, done as part of the course project for EE 605 (Error Correcting Codes), Autumn 2022, IIT Bombay.

Authors: Ankit Kumar Misra and Dhruva Dhingra

This work is based on the paper "Straggler Mitigation in Distributed Matrix Multiplication: Fundamental Limits and Optimal Coding" by Yu, Maddah-Ali, and Avestimehr. We implemented their ideas and reviewed their methods, discovering two flaws in the polynomial code design, as explained in our presentation.

Organization:

  1. src/ contains:

    1. polynomial_code.py: Function polynomial_matmul takes matrices $A$ and $B$ (along with other parameters), uses entangled polynomial coding to perform distributed matrix multiplication avg_over number of times, and returns the average error, average execution time, and average preprocessing time.

    2. redundant_code.py: Function redundant_matmul takes matrices $A$ and $B$ (along with other parameters), uses repetitive coding to perform distributed matrix multiplication avg_over number of times, and returns the average error and average execution time.

    3. plot.py:

      1. Generates a plot of error versus recovery threshold for two entangled polynomial codes, one having equally spaced nodes and the other having Chebyshev nodes.
      2. Generates a plot of execution times and preprocessing times versus matrix size, using entangled polynomial coding and repetitive coding.
  2. plots/ contains sample plots generated by our code.

  3. presentation/ contains our project presentation's LaTeX source and PDF, generated using Beamer.

About

This repository contains a course project on comparing the entangled polynomial code with a naive repetition code for straggler mitigation in matrix multiplication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published