Skip to main content
QUICK REVIEW

[Paper Review] SliceNStitch: Continuous CP Decomposition of Sparse Tensor Streams

Taehyung Kwon, Inkyu Park|arXiv (Cornell University)|Feb 23, 2021
Tensor decomposition and applicationsMathematics43 references4 citations
TL;DR

SliceNStitch introduces a continuous CP decomposition framework for sparse tensor streams that enables instant updates to factor matrices as new data arrives, overcoming the discrete-time limitation of traditional tensor models. It achieves up to 464× faster updates than online competitors while maintaining fitness comparable to offline methods, making it suitable for real-time applications like anomaly detection and recommendation systems.

ABSTRACT

Consider traffic data (i.e., triplets in the form of source-destination-timestamp) that grow over time. Tensors (i.e., multi-dimensional arrays) with a time mode are widely used for modeling and analyzing such multi-aspect data streams. In such tensors, however, new entries are added only once per period, which is often an hour, a day, or even a year. This discreteness of tensors has limited their usage for real-time applications, where new data should be analyzed instantly as it arrives. How can we analyze time-evolving multi-aspect sparse data 'continuously' using tensors where time is'discrete'? We propose SLICENSTITCH for continuous CANDECOMP/PARAFAC (CP) decomposition, which has numerous time-critical applications, including anomaly detection, recommender systems, and stock market prediction. SLICENSTITCH changes the starting point of each period adaptively, based on the current time, and updates factor matrices (i.e., outputs of CP decomposition) instantly as new data arrives. We show, theoretically and experimentally, that SLICENSTITCH is (1) 'Any time': updating factor matrices immediately without having to wait until the current time period ends, (2) Fast: with constant-time updates up to 464x faster than online methods, and (3) Accurate: with fitness comparable (specifically, 72 ~ 100%) to offline methods.

Motivation & Objective

  • To address the limitation of traditional tensor models that update only once per time period, which hinders real-time analysis of streaming data.
  • To enable continuous, low-latency CP decomposition for time-evolving sparse tensors without increasing model parameters.
  • To develop online algorithms that update factor matrices instantly upon each new data entry, rather than waiting for period boundaries.
  • To maintain high approximation fitness comparable to offline CPD while drastically reducing update latency.
  • To provide a scalable, efficient solution for time-critical applications such as anomaly detection and stock prediction.

Proposed method

  • Proposes a continuous tensor model where the start of each time period adapts dynamically to the current time, enabling immediate incorporation of new data.
  • Introduces event-driven online CPD algorithms that update factor matrices in response to each individual entry change, not per period.
  • Employs a sliding window mechanism with adaptive alignment to current time, avoiding the need to wait for fixed-period boundaries.
  • Uses sparse tensor representation and efficient update rules to maintain constant-time complexity per update, even for large-scale data.
  • Applies a novel parameterization strategy that keeps the number of parameters low despite fine-grained time resolution.
  • Implements a dynamic windowing scheme that ensures high fitness and low computational overhead in streaming settings.

Experimental results

Research questions

  • RQ1Can CP decomposition be performed continuously on sparse tensor streams without waiting for fixed time periods?
  • RQ2Can online CPD algorithms achieve near-instant updates while maintaining approximation quality comparable to offline methods?
  • RQ3Does the proposed continuous tensor model mitigate the fitness degradation and parameter explosion seen in ultra-fine-grained discrete models?
  • RQ4What is the trade-off between update speed and approximation fitness in continuous CPD?
  • RQ5Can the proposed method scale efficiently across diverse real-world sparse tensor streams?

Key findings

  • SliceNStitch achieves up to 464× faster update times compared to existing online CPD methods, with constant-time complexity per update.
  • The method maintains high fitness, achieving 72–100% of the fitness of offline CPD on real-world datasets, despite real-time updates.
  • By adapting the time window start dynamically, SliceNStitch avoids the fitness degradation and parameter explosion seen in ultra-fine-grained discrete models.
  • The framework enables true real-time analysis, detecting anomalies in the New York Taxi dataset within 0.0015 seconds of occurrence—over 1,000× faster than baselines.
  • Experiments show a clear trade-off between speed and fitness, allowing practitioners to tune hyperparameters based on application-specific needs.
  • The proposed continuous tensor model and online algorithms are the first to support instant factor matrix updates in response to individual data entries in sparse tensor streams.

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.