[Paper Review] Efficient, Out-of-Memory Sparse MTTKRP on Massively Parallel Architectures
This paper proposes BLCO, a novel mode-agnostic sparse tensor format that enables efficient out-of-memory MTTKRP on GPUs by using adaptive blocking and linearization to reduce memory access irregularities and synchronization overhead. It achieves up to 33.35× speedup over state-of-the-art MM-CSF on modern GPUs by enabling unified, high-performance execution across all tensor modes without mode-specific copies or complex scheduling.
Tensor decomposition (TD) is an important method for extracting latent information from high-dimensional (multi-modal) sparse data. This study presents a novel framework for accelerating fundamental TD operations on massively parallel GPU architectures. In contrast to prior work, the proposed Blocked Linearized Coordinate (BLCO) format enables efficient out-of-memory computation of tensor algorithms using a unified implementation that works on a single tensor copy. Our adaptive blocking and linearization strategies not only meet the resource constraints of GPU devices, but also accelerate data indexing, eliminate control-flow and memory-access irregularities, and reduce kernel launching overhead. To address the substantial synchronization cost on GPUs, we introduce an opportunistic conflict resolution algorithm, in which threads collaborate instead of contending on memory access to discover and resolve their conflicting updates on-the-fly, without keeping any auxiliary information or storing non-zero elements in specific mode orientations. As a result, our framework delivers superior in-memory performance compared to prior state-of-the-art, and is the only framework capable of processing out-of-memory tensors. On the latest Intel and NVIDIA GPUs, BLCO achieves 2.12-2.6X geometric-mean speedup (with up to 33.35X speedup) over the state-of-the-art mixed-mode compressed sparse fiber (MM-CSF) on a range of real-world sparse tensors.
Motivation & Objective
- Address the performance variability and memory overhead of mode-specific sparse tensor formats on GPUs.
- Enable efficient out-of-memory MTTKRP computation on memory-constrained GPU architectures.
- Eliminate the need for multiple tensor copies or mode-specific scheduling data in sparse tensor formats.
- Reduce synchronization and control-flow irregularities in massively parallel MTTKRP kernels.
- Develop a unified, scalable framework for sparse tensor decomposition that supports both in-memory and out-of-memory workloads.
Proposed method
- Propose Blocked Linearized CoOrdinate (BLCO), a mode-agnostic sparse tensor format that combines adaptive blocking with linearized indexing to fit within GPU memory.
- Use coarse-grained blocking based on device memory constraints to expose fine-grained parallelism within each block.
- Apply linearization of non-zero elements within blocks using a re-encoding scheme optimized for fast GPU decoding and caching.
- Introduce an opportunistic conflict resolution algorithm that detects and resolves thread conflicts on-the-fly without requiring sorted data or auxiliary scheduling structures.
- Leverage segmented scan and reduction primitives to minimize synchronization cost during MTTKRP computation.
- Design a unified kernel implementation that works across all tensor modes without mode-specific code paths or data reorganization.
Experimental results
Research questions
- RQ1Can a mode-agnostic sparse tensor format achieve high performance across all tensor modes without sacrificing memory efficiency?
- RQ2How can out-of-memory sparse tensor decomposition be efficiently supported on GPU architectures with limited memory capacity?
- RQ3What is the impact of adaptive blocking and linearization on reducing memory access irregularities and synchronization overhead in MTTKRP?
- RQ4Can an opportunistic conflict resolution strategy eliminate the need for sorted data or auxiliary scheduling information in GPU-based MTTKRP?
- RQ5To what extent can a unified format and kernel implementation reduce code complexity and improve portability compared to mode-specific approaches?
Key findings
- BLCO achieves a geometric mean speedup of 2.12–2.6× over the state-of-the-art MM-CSF format on modern NVIDIA and Intel GPUs.
- The framework delivers up to 33.35× speedup on certain tensor modes and data sets, demonstrating significant performance gains in extreme cases.
- BLCO is the only framework capable of efficiently processing out-of-memory sparse tensors on GPUs, enabling large-scale tensor decomposition beyond device memory limits.
- The format construction cost is amortized in approximately 12 full MTTKRP iterations on average, significantly lower than prior formats requiring up to ten times more iterations.
- BLCO reduces memory footprint and eliminates the need for multiple tensor copies or mode-specific scheduling data, unlike MM-CSF and other mode-specific formats.
- The opportunistic conflict resolution algorithm reduces synchronization overhead and eliminates control-flow and memory-access irregularities, enabling efficient execution on highly parallel GPU architectures.
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.