[Paper Review] Intermediate Value Linearizability: A Quantitative Correctness Criterion
This paper introduces Intermediate Value Linearizability (IVL), a relaxed correctness criterion for concurrent quantitative objects that permits return values between linearizable bounds, enabling more efficient implementations. IVL preserves (ϵ, δ)-bounded error guarantees in concurrent sketches like CountMin, and enables O(1) step-complexity for batched counters—proving a lower bound of Ω(n) for linearizable implementations.
Big data processing systems often employ batched updates and data sketches to estimate certain properties of large data. For example, a CountMin sketch approximates the frequencies at which elements occur in a data stream, and a batched counter counts events in batches. This paper focuses on correctness criteria for concurrent implementations of such objects. Specifically, we consider quantitative objects, whose return values are from a totally ordered domain, with a particular emphasis on (ε,δ)-bounded objects that estimate a numerical quantity with an error of at most ε with probability at least 1 - δ. The de facto correctness criterion for concurrent objects is linearizability. Intuitively, under linearizability, when a read overlaps an update, it must return the object’s value either before the update or after it. Consider, for example, a single batched increment operation that counts three new events, bumping a batched counter’s value from 7 to 10. In a linearizable implementation of the counter, a read overlapping this update must return either 7 or 10. We observe, however, that in typical use cases, any intermediate value between 7 and 10 would also be acceptable. To capture this additional degree of freedom, we propose Intermediate Value Linearizability (IVL), a new correctness criterion that relaxes linearizability to allow returning intermediate values, for instance 8 in the example above. Roughly speaking, IVL allows reads to return any value that is bounded between two return values that are legal under linearizability. A key feature of IVL is that we can prove that concurrent IVL implementations of (ε,δ)-bounded objects are themselves (ε,δ)-bounded. To illustrate the power of this result, we give a straightforward and efficient concurrent implementation of an (ε, δ)-bounded CountMin sketch, which is IVL (albeit not linearizable). Finally, we show that IVL allows for inherently cheaper implementations than linearizable ones. In particular, we show a lower bound of Ω(n) on the step complexity of the update operation of any wait-free linearizable batched counter from single-writer objects, and propose a wait-free IVL implementation of the same object with an O(1) step complexity for update.
Motivation & Objective
- To address the high cost of linearizability in concurrent data sketches used in high-speed stream processing.
- To propose a correctness criterion that allows intermediate values during overlapping operations, reflecting practical tolerance in real-world systems.
- To enable reuse of sequential error analyses for concurrent implementations without re-proving bounds.
- To demonstrate that IVL enables significantly cheaper implementations than linearizability, especially for batched counters.
- To formally define and prove the correctness and error preservation of IVL for (ϵ, δ)-bounded objects.
Proposed method
- Proposes Intermediate Value Linearizability (IVL) as a relaxation of linearizability, allowing read operations to return values between two linearizable return values.
- Defines IVL formally for sequential and randomized (ϵ, δ)-bounded objects, ensuring local composability.
- Proves that any IVL implementation of a sequential (ϵ, δ)-bounded object remains (ϵ, δ)-bounded, enabling reuse of existing error analyses.
- Presents a concurrent, IVL-compliant implementation of the CountMin sketch that inherits the original’s error guarantees.
- Designs a wait-free IVL batched counter using SWMR registers with O(1) update step complexity.
- Establishes a lower bound of Ω(n) on step complexity for any wait-free linearizable batched counter, proving IVL’s efficiency advantage.
Experimental results
Research questions
- RQ1Can a correctness criterion be defined that allows intermediate return values during concurrent operations while preserving error bounds?
- RQ2Can IVL be used to implement concurrent sketches like CountMin while maintaining their (ϵ, δ)-bounded error guarantees?
- RQ3Is IVL inherently more efficient than linearizability for certain concurrent objects, such as batched counters?
- RQ4Can IVL be applied generically to all quantitative objects without object-specific definitions?
- RQ5What is the theoretical performance gap between IVL and linearizable implementations for batched counters?
Key findings
- IVL preserves (ϵ, δ)-bounded error guarantees: any IVL implementation of a sequential (ϵ, δ)-bounded object remains (ϵ, δ)-bounded.
- A concurrent, IVL-compliant CountMin sketch implementation inherits the original sketch’s error bounds without re-analysis.
- The proposed IVL batched counter achieves O(1) step complexity for update operations in a wait-free setting.
- Any wait-free linearizable implementation of a batched counter from SWMR registers requires Ω(n) step complexity for updates.
- IVL enables a provably cheaper implementation than linearizability for batched counters, demonstrating a fundamental efficiency advantage.
- The IVL criterion is local and composable, allowing modular reasoning about concurrent systems without global analysis.
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.