NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TUCKET: A Tensor Time Series Data Structure for Efficient and Accurate Factor Analysis over Time Ranges

Ruizhong Qiu, Jun-Gi Jang, Xiao Lin, Lihui Liu, Hanghang Tong · DOI

Abstract

Analyzing multidimensional time series data, or tensor time series, is critical for discovering latent patterns in domains ranging from environmental monitoring to financial markets. However, performing Tucker decomposition—a standard tool for such analysis—over arbitrary time ranges in a streaming context presents a significant computational challenge. Existing methods either suffer from high latency due to re-computation or low accuracy due to rigid block-based approximations. This paper introduces TUCKET, a novel data structure based on a generalized segment tree that enables efficient and accurate Tucker decomposition over any time range. TUCKET achieves a 3x speedup and significantly lower reconstruction error compared to state-of-the-art methods, facilitating real-time analysis of evolving multidimensional data.

Introduction

In modern data science, information is frequently represented as tensors—multidimensional arrays that capture complex interactions between different modes, such as time, location, and variable type. Tucker decomposition is a powerful technique for factorizing these tensors into interpretable factor matrices and a core tensor, revealing the underlying structure of the data.

Overview of TUCKET's approach to range query answering on tensor time series.

A common requirement in time series analysis is the ability to query specific temporal windows (e.g., comparing seasonal pollution patterns across different years). Traditional "brute-force" approaches that re-compute decompositions for every query are computationally prohibitive for real-time applications. Conversely, block-based methods like Zoom-Tucker pre-compute fixed intervals, leading to substantial accuracy loss when queries do not align with pre-defined boundaries. TUCKET addresses this "Goldilocks" problem by providing a framework that is simultaneously fast, accurate, and capable of handling streaming updates.

Methodology: The Stream Segment Tree

The fundamental innovation of TUCKET is the Stream Segment Tree, a hierarchical data structure inspired by computational geometry.

Hierarchical Organization

TUCKET organizes time into a binary tree where leaf nodes represent individual time slices and internal nodes represent aggregated ranges. This structure allows for logarithmic query times ($O(\log T)$), ensuring stability even as the dataset grows. To support streaming data, the authors implement "placeholder nodes" for future time steps and a dynamic root-extension strategy.

The Stream Segment Tree structure, illustrating node types and the hit set pruning mechanism.

Hit Set Pruning and Partial Hits

When a range query is issued, TUCKET identifies a "hit set" of nodes that cover the requested interval. A key optimization is the introduction of "partial hits." If a query covers a significant portion of a large node (e.g., 70%), TUCKET utilizes an approximation derived from that node's pre-computed factors rather than descending into numerous smaller child nodes. This strategy leverages the low-rank nature of real-world tensors to trade a negligible amount of accuracy for a massive gain in processing speed.

Parallelized Stitching

Once the relevant nodes are identified, their factors are combined using a novel "stitching" algorithm. This algorithm is designed to be numerically stable and highly parallelizable, making it ideal for execution on modern GPUs. By avoiding the creation of large intermediate tensors, TUCKET maintains a small memory footprint during the query answering process.

Experimental Evaluation

The researchers evaluated TUCKET against several massive real-world datasets, including Air Quality (47 million entries), Traffic (212 million entries), and Stock Market data (over 700 million entries each for US and KR markets).

Performance Results

TUCKET demonstrated superior performance across all metrics:

  • Latency: TUCKET achieved at least a 3x reduction in latency compared to Zoom-Tucker. For instance, on the Air Quality dataset, average query response time was reduced to 0.011 seconds.
  • Accuracy: The method produced 1.4x smaller reconstruction errors than previous state-of-the-art techniques, often matching the accuracy of brute-force computation.
  • Streaming Scalability: The cost of updating the structure with new data is amortized $O(1)$ per time slice, ensuring the system remains performant as data accumulates.

Discussion and Future Work

TUCKET effectively breaks the trade-off between speed and accuracy in temporal tensor analysis. By employing a hierarchical tree and intelligent pruning, it provides fine-grained detail for short-range queries and efficient summaries for long-range ones.

Future research directions include adapting the structure for sparse tensors, which are common in recommendation systems, and developing "nested segment trees" to support multi-mode range queries (e.g., specific locations and time ranges simultaneously). Additionally, extending this hierarchical logic to other decomposition types, such as CP or PARAFAC2, remains a promising area for exploration.

Summary updated

BibTeX
@article{qiu2024tucket,
  author = {Ruizhong Qiu and Jun-Gi Jang and Xiao Lin and Lihui Liu and Hanghang Tong},
  title = {{TUCKET: A Tensor Time Series Data Structure for Efficient and Accurate Factor Analysis over Time Ranges}},
  journal = {Proc. VLDB Endow.},
  year = {2024},
  doi = {10.14778/3704965.3704980},
}
Figure