fast general parallel computation for
play

Fast, General Parallel Computation for Norm Matloff University of - PowerPoint PPT Presentation

Fast, General Parallel Computation for Machine Learning Robin Elizabeth Yancey and Fast, General Parallel Computation for Norm Matloff University of California at Machine Learning Davis Robin Elizabeth Yancey and Norm Matloff


  1. Fast, General Parallel Computation for Machine Learning Robin Elizabeth Yancey and Fast, General Parallel Computation for Norm Matloff University of California at Machine Learning Davis Robin Elizabeth Yancey and Norm Matloff University of California at Davis P2PS Workshop, ICPP 2018

  2. Fast, General Parallel Outline Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of California at Davis

  3. Fast, General Parallel Outline Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of California at Davis • Motivation. • Software Alchemy. • Theoretical foundations. • Empirical investigation.

  4. Fast, General Parallel Motivation Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of California at Davis

  5. Fast, General Parallel Motivation Computation for Machine Learning Robin Elizabeth Yancey and Characteristics of machine learning (ML) algorithms: Norm Matloff University of California at Davis

  6. Fast, General Parallel Motivation Computation for Machine Learning Robin Elizabeth Yancey and Characteristics of machine learning (ML) algorithms: Norm Matloff University of California at • Big Data: in n × p ( cases × features ) dataset, both n Davis AND p large.

  7. Fast, General Parallel Motivation Computation for Machine Learning Robin Elizabeth Yancey and Characteristics of machine learning (ML) algorithms: Norm Matloff University of California at • Big Data: in n × p ( cases × features ) dataset, both n Davis AND p large. • Compute-intensive algorithms: sorting, k-NN, matrix inversion, iteration.

  8. Fast, General Parallel Motivation Computation for Machine Learning Robin Elizabeth Yancey and Characteristics of machine learning (ML) algorithms: Norm Matloff University of California at • Big Data: in n × p ( cases × features ) dataset, both n Davis AND p large. • Compute-intensive algorithms: sorting, k-NN, matrix inversion, iteration. • Not generally embarrassingly parallel (EP).

  9. Fast, General Parallel Motivation Computation for Machine Learning Robin Elizabeth Yancey and Characteristics of machine learning (ML) algorithms: Norm Matloff University of California at • Big Data: in n × p ( cases × features ) dataset, both n Davis AND p large. • Compute-intensive algorithms: sorting, k-NN, matrix inversion, iteration. • Not generally embarrassingly parallel (EP). (An exception: Random Forests – grow different trees within different processes.)

  10. Fast, General Parallel Motivation Computation for Machine Learning Robin Elizabeth Yancey and Characteristics of machine learning (ML) algorithms: Norm Matloff University of California at • Big Data: in n × p ( cases × features ) dataset, both n Davis AND p large. • Compute-intensive algorithms: sorting, k-NN, matrix inversion, iteration. • Not generally embarrassingly parallel (EP). (An exception: Random Forests – grow different trees within different processes.) • Memory problems: The computation may not fit on a single machine (esp. in R or GPUs).

  11. Fast, General Parallel Parallel ML: Desired Properties Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of California at Davis

  12. Fast, General Parallel Parallel ML: Desired Properties Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of California at Davis • Simple, easily implementable.

  13. Fast, General Parallel Parallel ML: Desired Properties Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of California at Davis • Simple, easily implementable. (And easily understood by non-techies.)

  14. Fast, General Parallel Parallel ML: Desired Properties Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of California at Davis • Simple, easily implementable. (And easily understood by non-techies.) • As general in applicability as possible.

  15. Fast, General Parallel Software Alchemy Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of California at Davis

  16. Fast, General Parallel Software Alchemy Computation for Machine Learning alchemy: Robin The medieval forerunner of chemistry...concerned Elizabeth Yancey and particularly with attempts to convert base metals into Norm Matloff University of gold... a seemingly magical process of California at Davis transformation...

  17. Fast, General Parallel Software Alchemy (cont’d.) Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of California at Davis

  18. Fast, General Parallel Software Alchemy (cont’d.) Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of California at Davis • “Alchemical”: Converts non-EP problems to statistically equivalent EP problems.

  19. Fast, General Parallel Software Alchemy (cont’d.) Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of California at Davis • “Alchemical”: Converts non-EP problems to statistically equivalent EP problems. • Developed independently by (Matloff, JSS, 2013) and several others.

  20. Fast, General Parallel Software Alchemy (cont’d.) Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of California at Davis • “Alchemical”: Converts non-EP problems to statistically equivalent EP problems. • Developed independently by (Matloff, JSS, 2013) and several others. EP: No programming challenge. :-)

  21. Fast, General Parallel Software Alchemy (cont’d.) Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of California at Davis • “Alchemical”: Converts non-EP problems to statistically equivalent EP problems. • Developed independently by (Matloff, JSS, 2013) and several others. EP: No programming challenge. :-) • Not just Embarrassingly Parallel but also Embarrassingly Simple. :-)

  22. Fast, General Parallel Software Alchemy (cont’d) Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of California at Davis

  23. Fast, General Parallel Software Alchemy (cont’d) Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of • Break the data into chunks, one chunk per process. California at Davis

  24. Fast, General Parallel Software Alchemy (cont’d) Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of • Break the data into chunks, one chunk per process. California at Davis • Apply the procedure, e.g. neural networks (NNs), to each chunk,

  25. Fast, General Parallel Software Alchemy (cont’d) Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of • Break the data into chunks, one chunk per process. California at Davis • Apply the procedure, e.g. neural networks (NNs), to each chunk, using off-the-shelf SERIAL algorithms.

  26. Fast, General Parallel Software Alchemy (cont’d) Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of • Break the data into chunks, one chunk per process. California at Davis • Apply the procedure, e.g. neural networks (NNs), to each chunk, using off-the-shelf SERIAL algorithms. • In regression case (continuous response variable) take final estimate as average of the chunked estimates.

  27. Fast, General Parallel Software Alchemy (cont’d) Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of • Break the data into chunks, one chunk per process. California at Davis • Apply the procedure, e.g. neural networks (NNs), to each chunk, using off-the-shelf SERIAL algorithms. • In regression case (continuous response variable) take final estimate as average of the chunked estimates. • In classification case (categorical response variable), do “voting.”

  28. Fast, General Parallel Software Alchemy (cont’d) Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of • Break the data into chunks, one chunk per process. California at Davis • Apply the procedure, e.g. neural networks (NNs), to each chunk, using off-the-shelf SERIAL algorithms. • In regression case (continuous response variable) take final estimate as average of the chunked estimates. • In classification case (categorical response variable), do “voting.” • If have some kind of parametric model (incl. NNs), can average the parameter values across chunks.

  29. Fast, General Parallel Theory Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of California at Davis

  30. Fast, General Parallel Theory Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of California at • Theorem: Davis

  31. Fast, General Parallel Theory Computation for Machine Learning Robin Elizabeth Yancey and Norm Matloff University of California at • Theorem: Davis Say rows of data matrix are i.i.d., output of procedure asymptotically normal. Then the Software Alchemy estimator is fully statistically efficient, i.e. has the same asymptotic variance.

Recommend


More recommend