Skip to main content
QUICK REVIEW

[論文レビュー] MapReduce Meets Fine-Grained Complexity: MapReduce Algorithms for APSP, Matrix Multiplication, 3-SUM, and Beyond

MohammadTaghi Hajiaghayi, Silvio Lattanzi|arXiv (Cornell University)|May 5, 2019
Stochastic Gradient Optimization TechniquesComputer Science参考文献 43被引用数 3
ひとこと要約

本稿では、すべてのペアの最短経路(APSP)、行列積、3-SUMといった基本的問題に対する、メモリ量とマシン数の細かいトレードオフを活用して定数ラウンドで実行可能な、新しいMapReduceアルゴリズムを提示する。また、標準的な行列積アルゴリズムを$(\min,+)$-行列積に適応するブラックボックス変換を導入し、APSPや関連問題に対して、部分線形メモリとほぼ最適なマシン数で$O(\log n)$ラウンドで効率的な解法を可能にする。

ABSTRACT

Distributed processing frameworks, such as MapReduce, Hadoop, and Spark are popular systems for processing large amounts of data. The design of efficient algorithms in these frameworks is a challenging problem, as the systems both require parallelism---since datasets are so large that multiple machines are necessary---and limit the degree of parallelism---since the number of machines grows sublinearly in the size of the data. Although MapReduce is over a dozen years old~\cite{dean2008mapreduce}, many fundamental problems, such as Matrix Multiplication, 3-SUM, and All Pairs Shortest Paths, lack efficient MapReduce algorithms. We study these problems in the MapReduce setting. Our main contribution is to exhibit smooth trade-offs between the memory available on each machine, and the total number of machines necessary for each problem. Overall, we take the memory available to each machine as a parameter, and aim to minimize the number of rounds and number of machines. In this paper, we build on the well-known MapReduce theoretical framework initiated by Karloff, Suri, and Vassilvitskii ~\cite{karloff2010model} and give algorithms for many of these problems. The key to efficient algorithms in this setting lies in defining a sublinear number of large (polynomially sized) subproblems, that can then be solved in parallel. We give strategies for MapReduce-friendly partitioning, that result in new algorithms for all of the above problems. Specifically, we give constant round algorithms for the Orthogonal Vector (OV) and 3-SUM problems, and $O(\log n)$-round algorithms for Matrix Multiplication, All Pairs Shortest Paths (APSP), and Fast Fourier Transform (FFT), among others. In all of these we exhibit trade-offs between the number of machines and memory per machine.

研究の動機と目的

  • APSP、行列積、3-SUMといったコアな問題に対する効率的なMapReduceアルゴリズムのギャップを埋めること。これらの問題は重要であるが、スケーラブルな解決策が不足している。
  • ラウンド数と総マシン数を最小化するように、マシンあたりのメモリ量とマシン数の滑らかなトレードオフを確立すること。
  • 特に行列積を対象として、既知の逐次アルゴリズムをブラックボックス変換により$(\min,+)$-半群設定に拡張し、APSPや関連問題への応用を可能にすること。
  • 総メモリ使用量と計算オーバーヘッドのバランスを取ることで、MapReduceモデルにおける作業効率性を達成すること。

提案手法

  • Karloffらの理論的MapReduceモデルを活用し、部分線形メモリおよびマシン数の制約のもとでスケーラブルなアルゴリズムを設計する。
  • 標準的な環上での行列積を$(\min,+)$-行列積に写像する、新しい変換を導入。この変換では、要素の$(n+1)$進数表現を用いる。
  • メモリ制約を満たしながら並列計算を可能にするために、多項式サイズの部分問題をマシン間で分割する。
  • ブラックボックスアプローチを採用:標準的な行列積の効率的MapReduceアルゴリズムは、メモリに$\widetilde{O}(R)$のオーバーヘッドと2ラウンドの追加で、$(\min,+)$-バージョンに変換可能である。
  • この変換を応用して、$(\min,+)$-行列積およびAPSPに対して$O(\log n)$ラウンドのアルゴリズムを導出。マシン数は$O(n^{\omega^*(2-\epsilon)/2})$、マシンあたりのメモリは$O(Rn^\epsilon)$である。
  • 作業効率性の原則を採用し、メモリと並列性のバランスを取ることで、マシン全体の総処理時間を最小化する。

実験結果

リサーチクエスチョン

  • RQ1部分線形メモリおよびマシン数の制約のもとで、3-SUMおよび直交ベクトル問題に対して定数ラウンドのMapReduceアルゴリズムを設計できるか?
  • RQ2標準的な行列積アルゴリズムを、APSPや関連問題に応用可能な$(\min,+)$-半群設定にどのように適応できるか?
  • RQ3MapReduceにおいて、効率的かつ低ラウンドで実行するための、マシンあたりのメモリ量と必要なマシン数のトレードオフは何か?
  • RQ4有界な整数範囲を持つ$(\min,+)$-行列積に拡張する際、作業効率性を維持できるか?

主な発見

  • 3-SUMおよび直交ベクトル問題に対して、$O(n^{\omega^*(2-\epsilon)/2})$台のマシンと$O(n^\epsilon)$のマシンあたりメモリで、定数ラウンドのMapReduceアルゴリズムを達成した。
  • $(\min,+)$-行列積に対して、$O(n^{\omega^*(2-\epsilon)/2})$台のマシンと$O(Rn^\epsilon)$のマシンあたりメモリで、$O\left(\log n\right)$ラウンドのアルゴリズムを開発した。ここで$R$は入力値の範囲を表す。
  • 標準行列積から$(\min,+)$-積へのブラックボックス変換により、メモリが$\widetilde{O}(R)$倍に増加し、ラウンド数が2ラウンドのみ増加する。これにより、APSPの効率的計算が可能になった。
  • 重みなしAPSPの場合、$O(n^{\omega^*(2-\epsilon)/2})$台のマシンと$O(n^\epsilon)$のマシンあたりメモリで、$O(\log n)$ラウンドの実行が達成された。
  • 入力値が$[-R,R] \cup \{\infty\}$の範囲にある場合、$\infty$を$2R+1$として扱うことで、同じ漸近的境界を維持できる。
  • メモリ制約およびラウンド制約を満たしながら、マシン全体の総処理時間を最小化することで、作業効率性の実現が可能になった。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。