Skip to main content
QUICK REVIEW

[Paper Review] Dot-Product Join: An Array-Relation Join Operator for Big Model Analytics

Chengjie Qin, Florin Rusu|arXiv (Cornell University)|Feb 29, 2016
Graph Theory and AlgorithmsComputer Science43 references4 citations
TL;DR

This paper introduces the dot-product join operator, a novel database operator that efficiently performs sparse array–dense relation dot-product operations for training large machine learning models beyond main memory. By combining dynamic batching and array reordering heuristics (LSH, Radix, K-center), it reduces I/O overhead and achieves up to an order of magnitude faster execution than alternative in-database solutions, enabling scalable big model analytics on secondary storage.

ABSTRACT

Big Model analytics tackles the training of massive models that go beyond the available memory of a single computing device, e.g., CPU or GPU. It generalizes Big Data analytics which is targeted at how to train memory-resident models over out-of-memory training data. In this paper, we propose an in-database solution for Big Model analytics. We identify dot-product as the primary operation for training generalized linear models and introduce the first array-relation dot-product join database operator between a set of sparse arrays and a dense relation. This is a constrained formulation of the extensively studied sparse matrix vector multiplication (SpMV) kernel. The paramount challenge in designing the dot-product join operator is how to optimally schedule access to the dense relation based on the non-contiguous entries in the sparse arrays. We prove that this problem is NP-hard and propose a practical solution characterized by two technical contributions---dynamic batch processing and array reordering. We devise three heuristics -- LSH, Radix, and K-center -- for array reordering and analyze them thoroughly. We execute extensive experiments over synthetic and real data that confirm the minimal overhead the operator incurs when sufficient memory is available and the graceful degradation it suffers as memory becomes scarce. Moreover, dot-product join achieves an order of magnitude reduction in execution time over alternative in-database solutions.

Motivation & Objective

  • To address the challenge of training large machine learning models that exceed main memory capacity, particularly in in-database analytics systems.
  • To design a database operator that efficiently computes dot-products between sparse arrays and dense relations, a core operation in generalized linear models.
  • To minimize secondary storage I/O access in the presence of non-contiguous sparse array entries, which is critical for performance when memory is scarce.
  • To provide a scalable, in-database solution for big model analytics that avoids materializing intermediate results, unlike traditional array or join operators.
  • To enable efficient execution of SpMV kernels over out-of-core vectors, extending the applicability of database systems to large-scale machine learning.

Proposed method

  • Proposes the dot-product join operator as a physical database operator that computes dot-products between sparse arrays and a dense relation in a single, optimized operation.
  • Introduces dynamic batching to group multiple dot-product operations into larger I/O-efficient batches, reducing the number of secondary storage accesses.
  • Employs array reordering heuristics—LSH, Radix, and K-center—to reorder sparse array entries to improve spatial locality and reduce random I/O during vector access.
  • Reformulates the sparse matrix-vector multiplication (SpMV) kernel as a constrained join operation, pushing aggregation inside the join to avoid intermediate result materialization.
  • Proves that the optimal access scheduling for the dot-product join is NP-hard, justifying the use of heuristic-based optimization strategies.
  • Uses a hybrid storage model where the dense vector is stored on secondary storage, while the sparse arrays are processed in main memory with I/O-aware scheduling.

Experimental results

Research questions

  • RQ1Can a database operator be designed to efficiently compute dot-products between sparse arrays and dense relations for big model training when the model vector exceeds main memory?
  • RQ2What is the impact of access scheduling on I/O performance when processing non-contiguous sparse array entries against an out-of-core vector?
  • RQ3How do different array reordering heuristics (LSH, Radix, K-center) compare in terms of I/O reduction and execution time for dot-product join?
  • RQ4How does the dot-product join operator degrade in performance as memory becomes scarce, and how does it compare to alternative in-database solutions?
  • RQ5Can the dot-product join operator be generalized to other SpMV workloads beyond gradient descent in logistic regression and low-rank matrix factorization?

Key findings

  • The dot-product join operator achieves an order of magnitude reduction in execution time compared to alternative in-database solutions for big model analytics.
  • The operator exhibits graceful degradation under memory pressure, maintaining performance through effective I/O optimization even when main memory is limited.
  • Among the three reordering heuristics, Radix reordering provides the best scalability and performance, significantly outperforming basic LRU-based access strategies.
  • Dynamic batching effectively reduces the number of secondary storage accesses by combining multiple dot-product operations into larger, sequential I/O operations.
  • The dot-product join operator is the first SpMV kernel that efficiently accesses the vector from secondary storage, enabling out-of-core computation for models larger than main memory.
  • The operator eliminates the need for intermediate result materialization, making it more efficient than traditional array-join or UDF-based approaches in database systems.

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.