[Paper Review] SPARTan: Scalable PARAFAC2 for Large & Sparse Data
SPARTan is a scalable, memory-efficient algorithm for PARAFAC2 decomposition of large-scale, sparse tensors, leveraging structural optimization in intermediate computations to achieve up to 22× speedup over prior methods. It enables practical analysis of irregular, time-mismatched data—such as longitudinal electronic health records—yielding clinically interpretable phenotypes and temporal evolution patterns.
In exploratory tensor mining, a common problem is how to analyze a set of variables across a set of subjects whose observations do not align naturally. For example, when modeling medical features across a set of patients, the number and duration of treatments may vary widely in time, meaning there is no meaningful way to align their clinical records across time points for analysis purposes. To handle such data, the state-of-the-art tensor model is the so-called PARAFAC2, which yields interpretable and robust output and can naturally handle sparse data. However, its main limitation up to now has been the lack of efficient algorithms that can handle large-scale datasets. In this work, we fill this gap by developing a scalable method to compute the PARAFAC2 decomposition of large and sparse datasets, called SPARTan. Our method exploits special structure within PARAFAC2, leading to a novel algorithmic reformulation that is both fast (in absolute time) and more memory-efficient than prior work. We evaluate SPARTan on both synthetic and real datasets, showing 22X performance gains over the best previous implementation and also handling larger problem instances for which the baseline fails. Furthermore, we are able to apply SPARTan to the mining of temporally-evolving phenotypes on data taken from real and medically complex pediatric patients. The clinical meaningfulness of the phenotypes identified in this process, as well as their temporal evolution over time for several patients, have been endorsed by clinical experts.
Motivation & Objective
- Address the lack of efficient algorithms for large-scale, sparse PARAFAC2 decomposition.
- Enable scalable analysis of irregular, time-mismatched tensor data common in electronic health records (EHR).
- Overcome the performance and memory limitations of prior PARAFAC2 implementations that hindered adoption.
- Develop a method that preserves the uniqueness and interpretability of PARAFAC2 while scaling to real-world data sizes.
- Demonstrate clinical utility through phenotyping of medically complex pediatric patients using real EHR data.
Proposed method
- Reformulates the core computational kernel of PARAFAC2 by exploiting latent structure in intermediate tensor operations.
- Introduces a novel algorithmic formulation that avoids treating intermediate computations as black boxes.
- Optimizes memory usage and computation time by leveraging sparsity and matrix structure in the factorization process.
- Uses iterative optimization with efficient updates for factor matrices Uk, Sk, and V, tailored for sparse, irregularly aligned data.
- Employs a block-iterative scheme that respects the mode-1 variability in PARAFAC2 while maintaining computational efficiency.
- Implements a memory-aware data layout and computation pipeline to reduce overhead and improve cache efficiency.
Experimental results
Research questions
- RQ1Can PARAFAC2 be efficiently scaled to large, sparse, and irregularly aligned tensor datasets?
- RQ2What algorithmic reforms enable significant speedup and memory reduction in PARAFAC2 without sacrificing accuracy?
- RQ3Can SPARTan handle real-world EHR data with millions of non-zero entries and thousands of patients?
- RQ4Do the phenotypes discovered by SPARTan on EHR data reflect clinically meaningful and temporally evolving patterns?
- RQ5Is the interpretability and uniqueness of PARAFAC2 preserved under large-scale, sparse computation?
Key findings
- SPARTan achieves up to 22× speedup over the best prior implementation on synthetic and real datasets.
- SPARTan successfully processes datasets that cause the baseline implementation to fail due to out-of-memory errors.
- On a 1TB RAM server, SPARTan completed 500M non-zero entry datasets in under 2 hours, while the baseline ran out of memory.
- The method identified clinically meaningful phenotypes in a cohort of 8,044 medically complex pediatric patients, with expert-verified temporal trends.
- Temporal signatures derived from SPARTan revealed complex, patient-specific phenotypic evolution patterns confirmed by clinical experts.
- SPARTan enables scalable, interpretable, and robust phenotyping of longitudinal EHR data, demonstrating practical utility in healthcare analytics.
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.