[Paper Review] Efficient Algorithms with Asymmetric Read and Write Costs
This paper introduces the $(M,\omega)$-ARAM model to study algorithm design under asymmetric memory costs, where reads are cheap ($1$) and writes are expensive ($\omega \gg 1$). It establishes fundamental lower bounds and develops efficient algorithms that exploit redundant computation to minimize expensive writes, showing that problems like FFT and sorting networks cannot achieve asymptotic improvements under polynomial $\omega$ relative to $M$, while edit distance and MST algorithms achieve significant cost reductions via novel techniques like path sketches and component shortcutting.
In several emerging technologies for computer memory (main memory), the cost of reading is significantly cheaper than the cost of writing. Such asymmetry in memory costs poses a fundamentally different model from the RAM for algorithm design. In this paper we study lower and upper bounds for various problems under such asymmetric read and write costs. We consider both the case in which all but $O(1)$ memory has asymmetric cost, and the case of a small cache of symmetric memory. We model both cases using the $(M,ω)$-ARAM, in which there is a small (symmetric) memory of size $M$ and a large unbounded (asymmetric) memory, both random access, and where reading from the large memory has unit cost, but writing has cost $ω\gg 1$. For FFT and sorting networks we show a lower bound cost of $Ω(ωn\log_{ωM} n)$, which indicates that it is not possible to achieve asymptotic improvements with cheaper reads when $ω$ is bounded by a polynomial in $M$. Also, there is an asymptotic gap (of $\min(ω,\log n)/\log(ωM)$) between the cost of sorting networks and comparison sorting in the model. This contrasts with the RAM, and most other models. We also show a lower bound for computations on an $n imes n$ diamond DAG of $Ω(ωn^2/M)$ cost, which indicates no asymptotic improvement is achievable with fast reads. However, we show that for the edit distance problem (and related problems), which would seem to be a diamond DAG, there exists an algorithm with only $O(ωn^2/(M\min(ω^{1/3},M^{1/2})))$ cost. To achieve this we make use of a "path sketch" technique that is forbidden in a strict DAG computation. Finally, we show several interesting upper bounds for shortest path problems, minimum spanning trees, and other problems. A common theme in many of the upper bounds is to have redundant computation to tradeoff between reads and writes.
Motivation & Objective
- To model and analyze algorithmic performance under asymmetric read and write memory costs, where writes are significantly more expensive than reads.
- To identify fundamental limits on performance improvements through redundant computation in such asymmetric memory models.
- To develop efficient algorithms that minimize expensive write operations while leveraging abundant cheap reads.
- To understand which classical algorithmic problems can achieve asymptotic cost improvements in the asymmetric model compared to traditional RAM models.
- To explore the breakdown of standard algorithmic equivalences (e.g., comparison sorting vs. sorting networks) under asymmetric costs.
Proposed method
- Introduces the $(M,\omega)$-ARAM model: a small symmetric memory of size $M$ and a large unbounded asymmetric memory with write cost $\omega \gg 1$.
- Uses an accounting argument to assign fractional weights to nodes in computation graphs to derive lower bounds on ARAM cost.
- Develops a 'path sketch' technique to compress and reuse computation paths, enabling reduced write costs in edit distance and related problems.
- Applies component shortcutting and multi-phase processing in Borůvka’s algorithm to reduce the number of expensive writes per round.
- Designs algorithms that trade off redundant reads for fewer writes, particularly in shortest path, MST, and graph traversal problems.
- Combines techniques from external memory and parallel algorithms to optimize for write-heavy operations in asymmetric settings.
Experimental results
Research questions
- RQ1Can asymptotic improvements in algorithmic cost be achieved for fundamental problems like FFT and sorting when writes are expensive and reads are cheap?
- RQ2What are the fundamental lower bounds on ARAM cost for problems such as sorting networks and diamond DAGs under asymmetric memory costs?
- RQ3To what extent do classical equivalences (e.g., comparison sorting vs. sorting networks) break down in the asymmetric memory model?
- RQ4Can problems like edit distance, which resemble diamond DAGs, be solved more cheaply than the general lower bound for DAGs?
- RQ5What algorithmic techniques enable efficient trade-offs between reads and writes in the $(M,\omega)$-ARAM model?
Key findings
- For FFT and sorting networks, the ARAM cost is $\Omega(\omega n \log_{\omega M} n)$, showing no asymptotic improvement is possible when $\omega$ is polynomial in $M$.
- The cost gap between comparison sorting ($O(n(\log n + \omega))$) and sorting networks ($\Omega(\omega n \log n / \log(\omega M))$) is $\min(\omega, \log n)/\log(\omega M)$, indicating a fundamental asymmetry in the model.
- For the $n \times n$ diamond DAG, the lower bound is $\Omega(\omega n^2 / M)$, and no asymptotic improvement is possible via fast reads alone.
- The edit distance and LCS problems achieve $O(\omega n^2 / (M \min(\omega^{1/3}, M^{1/2})))$ ARAM cost, beating the general DAG lower bound via path sketching.
- A variant of Borůvka’s algorithm for MST achieves $O(m \min(n/M, \log n) + \omega n)$ ARAM cost, with $O(Q(n,m) + n \log n)$ time, improving over standard write-heavy approaches.
- For single-source shortest paths, the ARAM cost is $O(\min(n(\omega + m/M), (m+n\log n)\omega, m(\omega + \log n)))$, showing trade-offs between work and write reduction.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.