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

Online Tensor Inference

Xin Wen, Will Wei Sun, Yichen ZhangarXiv 2023 · DOI

Introduction

In modern data science, information is increasingly generated in high-velocity streams that are best represented as tensors—multi-dimensional arrays. For instance, e-commerce platforms track interactions across dimensions such as Users × Products × Time. While traditional offline tensor methods are well-established, they require storing and re-processing entire datasets, which is computationally prohibitive in streaming environments.

Furthermore, existing online methods primarily focus on point estimation (e.g., predicting a specific value). However, for high-stakes decision-making in fields like digital advertising or mobile health, point estimates are insufficient. Decision-makers require statistical inference—the ability to construct confidence intervals and perform hypothesis testing—to distinguish genuine signals from random noise. This paper introduces a novel framework for real-time estimation and inference of low-rank tensors from streaming data, bridging the gap between computational efficiency and statistical rigor.

Methodology

The proposed framework addresses the challenges of non-convexity and bias inherent in low-rank tensor models through a two-part approach: factor-based Stochastic Gradient Descent (SGD) and a novel online debiasing technique.

Low-Rank Tensor SGD

To manage the high dimensionality of tensors, the authors utilize a Tucker decomposition, which represents a large tensor through a small core tensor and several factor matrices. Instead of updating the full tensor, the algorithm performs updates directly on these components. This reduces memory requirements from $O(p^3)$ to $O(p \cdot r)$, where $p$ is the dimension and $r$ is the rank, enabling high-dimensional analysis on standard hardware.

To ensure stability and convergence, the algorithm employs a two-stage step-size schedule:

  1. Constant Step Size: Used initially to move the estimate into a "benign" geometric region near the true parameter.
  2. Decaying Step Size: Implemented subsequently to ensure the estimate converges precisely to the target.

Online Debiasing and Inference

The primary contribution of this work is the development of an online debiasing procedure. Low-rank constraints typically introduce "shrinkage" bias into estimates. While offline methods often use "sample splitting" to correct this, such an approach is data-inefficient in streaming contexts.

The authors demonstrate that the gradient of the loss function, when evaluated without the low-rank constraint, contains the necessary information to correct the biased SGD estimate. By maintaining a running average of these gradients, the framework "pushes" the estimate toward the true parameter. Using a novel spectral representation tool, the authors prove that these debiased estimates follow an asymptotic normal distribution (a Bell curve), providing the theoretical foundation for constructing valid confidence intervals on the fly.

Experimental Results

The framework was validated through extensive synthetic simulations and an application to real-world e-commerce data.

Synthetic Simulations

In controlled environments, the algorithm reached the minimax optimal error rate across varying tensor dimensions and noise levels. Crucially, the constructed confidence intervals achieved approximately 95% coverage, matching the theoretical target and confirming the reliability of the inference procedure.

Real-World Application: Alibaba Taobao Dataset

The model was applied to a massive dataset from the Taobao platform, modeling user behaviors (clicks, add-to-cart, favoring) across different time windows to predict daily purchases. The framework successfully identified that "add-to-cart" actions have a statistically significant higher impact on future purchases compared to simple "page views." This provides a grounded justification for retailers to prioritize incentives that drive cart additions.

Computational Efficiency

In head-to-head performance benchmarks, the proposed SGD method was approximately 3x faster than the state-of-the-art oRGrad algorithm. Additionally, the framework maintained stable convergence as tensor dimensions increased, whereas competing methods often stagnated.

Discussion and Future Work

This research provides a rigorous foundation for online tensor inference, yet several avenues for future exploration remain. The current theory assumes a "reasonably good" initial guess, typically derived from a small initial batch of data; relaxing this requirement would enhance the system's robustness. Furthermore, while the current model assumes a fixed Tucker rank, real-world data may exhibit dynamic ranks that change over time. Finally, extending the mathematical proofs to cover the boundary case of a step-size decay rate of $\alpha=1$ remains a challenge for future study.

By enabling valid statistical inference in real-time, this framework provides a powerful tool for dynamic, data-driven decision-making in complex, high-dimensional environments.

Summary updated

BibTeX
@misc{wen2023online,
  author = {Xin Wen and Will Wei Sun and Yichen Zhang},
  title = {{Online Tensor Inference}},
  year = {2023},
  eprint = {2312.17111},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.17111},
}
Figure