[Paper Review] Lara: A Key-Value Algebra underlying Arrays and Relations
Lara is a unifying key-value algebra that integrates arrays, relations, graphs, and key-value stores into a single formalism using associative tables, union, join, and extension operations. It enables seamless translation and optimization across heterogeneous data processing systems by providing a common algebraic foundation with proven identities and equivalences.
Data processing systems roughly group into families such as relational, array, graph, and key-value. Many data processing tasks exceed the capabilities of any one family, require data stored across families, or run faster when partitioned onto multiple families. Discovering ways to execute computation among multiple available systems, let alone discovering an optimal execution plan, is challenging given semantic differences between disparate families of systems. In this paper we introduce a new algebra, Lara, which underlies and unifies algebras representing the families above in order to facilitate translation between systems. We describe the operations and objects of Lara---union, join, and ext on associative tables---and show her properties and equivalences to other algebras. Multi-system optimization has a bright future, in which we proffer Lara for the role of universal connector.
Motivation & Objective
- Address the challenge of executing computations across disparate data processing systems (e.g., relational, array, graph, file systems) that lack semantic interoperability.
- Provide a universal algebraic foundation to translate and optimize workloads across multiple system families.
- Enable multi-system optimization by unifying the logical representations of arrays, relations, graphs, and key-value stores.
- Facilitate the construction of efficient execution plans across heterogeneous systems through formal equivalences and identities.
- Support practical adoption by offering a clean, composable language foundation for query languages and DSLs.
Proposed method
- Define associative tables as the core data structure, where keys map to values in a domain V, with support (supp) denoting non-default keys.
- Introduce three primitive operations: union (⊕) for vertical concatenation with summing, strict join (⋈⊗) for horizontal concatenation with multiplication, and extension (extf) for function application.
- Support relaxed join (⋈) with automatic promotion and multiply-by-one on missing values, enabling robust handling of sparse data.
- Formalize operations using algebraic properties: union as a sum, join as a product, and ext as a generalized map, with identities and distributive laws.
- Demonstrate equivalences between Lara operations and operations in relational algebra, array algebra (e.g., CombBLAS), and discrete convolution.
- Provide a syntax and semantics for composing operations, including renaming, projection, and recursive or iterative constructs for practical use.
Experimental results
Research questions
- RQ1Can a single, unified algebraic framework express and relate the core operations of arrays, relations, graphs, and key-value stores?
- RQ2How can algebraic identities and equivalences be established between Lara operations and those in relational, array, and graph processing systems?
- RQ3To what extent can Lara enable cross-family optimization and translation between data processing systems?
- RQ4What are the formal properties (e.g., distributivity, associativity) of Lara’s operations that support plan optimization?
- RQ5How can Lara be extended with practical language features (e.g., comprehensions, variable assignment, recursion) for real-world use?
Key findings
- Lara successfully unifies relational, array, graph, and key-value processing under a single algebraic framework using associative tables.
- The paper establishes formal equivalences between Lara operations and operations in relational algebra (e.g., generalized division, outer join), array algebra (e.g., CombBLAS), and discrete convolution.
- Relaxed join with automatic promotion and multiply-by-one on missing values enables robust handling of sparse data and supports efficient execution in multi-system environments.
- The algebra supports distributive laws, such as distributing join over union under specific conditions, enabling optimization via algebraic rewriting.
- A concrete example demonstrates 2-moving-sum convolution using Lara operations, showing correctness and composability across multiple steps.
- The framework is extensible: extensions like comprehensions, variable assignment, and recursion can be added to support practical query and algorithm authoring.
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.