Skip to main content
QUICK REVIEW

[Paper Review] Iterative MapReduce for Large Scale Machine Learning

Joshua Rosen, Neoklis Polyzotis|arXiv (Cornell University)|Mar 13, 2013
Cloud Computing and Resource ManagementComputer Science11 references26 citations
TL;DR

This paper proposes Iterative MapReduce, an extension of the MapReduce model that natively supports iteration for large-scale machine learning workloads. By introducing a first-class loop construct and a static optimizer that tunes data partitioning and aggregation tree structure, the system achieves performance competitive with specialized systems like Vowpal Wabbit, outperforming standard Hadoop while avoiding assumptions about in-memory caching or disk-only I/O.

ABSTRACT

Large datasets ("Big Data") are becoming ubiquitous because the potential value in deriving insights from data, across a wide range of business and scientific applications, is increasingly recognized. In particular, machine learning - one of the foundational disciplines for data analysis, summarization and inference - on Big Data has become routine at most organizations that operate large clouds, usually based on systems such as Hadoop that support the MapReduce programming paradigm. It is now widely recognized that while MapReduce is highly scalable, it suffers from a critical weakness for machine learning: it does not support iteration. Consequently, one has to program around this limitation, leading to fragile, inefficient code. Further, reliance on the programmer is inherently flawed in a multi-tenanted cloud environment, since the programmer does not have visibility into the state of the system when his or her program executes. Prior work has sought to address this problem by either developing specialized systems aimed at stylized applications, or by augmenting MapReduce with ad hoc support for saving state across iterations (driven by an external loop). In this paper, we advocate support for looping as a first-class construct, and propose an extension of the MapReduce programming paradigm called {\em Iterative MapReduce}. We then develop an optimizer for a class of Iterative MapReduce programs that cover most machine learning techniques, provide theoretical justifications for the key optimization steps, and empirically demonstrate that system-optimized programs for significant machine learning tasks are competitive with state-of-the-art specialized solutions.

Motivation & Objective

  • To address the fundamental limitation of MapReduce in handling iterative machine learning algorithms efficiently.
  • To enable system-driven optimization in multi-tenanted cloud environments where programmers cannot reliably tune low-level parameters.
  • To develop a principled, static optimizer that selects optimal runtime configurations for Iterative MapReduce programs.
  • To demonstrate that automated optimization can achieve performance competitive with state-of-the-art specialized ML systems like Vowpal Wabbit.

Proposed method

  • Extends the MapReduce model with a first-class looping construct to natively express iterative machine learning algorithms.
  • Designs a new runtime that supports loop-aware scheduling, data caching, and efficient aggregation across iterations.
  • Develops a static optimizer that selects optimal data partitioning and aggregation tree fan-in based on theoretical analysis of communication and computation costs.
  • Empirically validates the optimizer’s choices using real-world ML workloads on a 120-node cluster, measuring response time and cost.
  • Applies theoretical models to predict optimal fan-in and number of machines, validated through controlled experiments.
  • Uses a combination of theoretical justification and empirical evaluation to tune system parameters like data partitioning and aggregation structure.

Experimental results

Research questions

  • RQ1Can a first-class loop abstraction in MapReduce significantly improve the efficiency and maintainability of large-scale machine learning workloads compared to ad hoc iterative programming?
  • RQ2How can a static optimizer automatically select optimal data partitioning and aggregation tree configurations for Iterative MapReduce programs?
  • RQ3To what extent can system-driven optimization match or exceed the performance of specialized, hand-tuned ML systems like Vowpal Wabbit?
  • RQ4Does the theoretical prediction of a constant optimal fan-in (around e) hold under real-world system constraints and overheads?
  • RQ5Can the optimizer balance response time and cost effectively in a dynamic, multi-tenanted cloud environment?

Key findings

  • The optimal fan-in for the aggregation tree is empirically found to be constant at 4 or 5 across most configurations, deviating from the theoretical prediction of e due to unmodeled setup costs.
  • The optimizer correctly identifies N=120 CPUs as minimizing response time and N=24 as minimizing cost for a 100GB dataset, matching theoretical predictions.
  • Iterative MapReduce with system-optimized configurations outperforms standard Hadoop and achieves performance competitive with the state-of-the-art system Vowpal Wabbit.
  • The system’s performance is robust across varying data sizes and cluster configurations, with consistent alignment between theoretical predictions and empirical results.
  • The static optimizer successfully selects efficient execution plans across all tested configurations without requiring programmer tuning.
  • The results confirm that system-driven optimization is feasible and effective in cloud environments where runtime conditions are volatile and unpredictable.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.