Online Functional Tensor Decomposition via Continual Learning for Streaming Data Completion

Xi Zhang, Yanyi Li, Yisi Luo, Qi Xie, Deyu MengNeurIPS 2025

TL;DR

This paper introduces Online Functional Tensor Decomposition (OFTD), a framework that models streaming data as a continuous function rather than a discrete grid. By parameterizing tensor decomposition with Implicit Neural Representations (INRs) and using a specialized "long-tail" memory replay to prevent forgetting, the authors achieve state-of-the-art accuracy in completing missing values for real-time data streams like traffic flow and weather patterns.

The Challenge of Streaming Tensor Data

High-dimensional data—like traffic sensor networks, climate variables, or video streams—is often modeled as tensors. In the real world, this data arrives in a continuous stream, and it is frequently incomplete due to sensor failures or transmission gaps.

Traditional "online" tensor decomposition methods attempt to fill these gaps by updating factor matrices in real-time. However, these methods face three major hurdles:

  1. Discrete Limitations: They treat data as discrete points, often failing to capture the underlying spatial-temporal continuity of physical phenomena.
  2. The "Growth" Problem: As the data stream grows, the size of the factor matrices grows, leading to increasing computational costs and memory overhead.
  3. Catastrophic Forgetting: When a model is updated to fit new incoming data, it often "forgets" the patterns it learned from historical data.

Proposed Method: Online Functional Tensor Decomposition (OFTD)

The authors propose OFTD, which shifts the paradigm from discrete optimization to a continual learning framework.

Comparison of classical and proposed online functional CP decomposition
  • Functional Representation: Instead of storing massive, ever-growing factor matrices, OFTD uses Implicit Neural Representations (INRs)—specifically Multi-Layer Perceptrons (MLPs) with sine activation functions. These networks map coordinates (like time and location) directly to tensor values.
  • CP Decomposition via INRs: The factor matrices of a standard CANDECOMP/PARAFAC (CP) decomposition are generated by these INRs. This allows the model to represent a continuous spatial-temporal function. To handle new data, the system simply feeds new coordinates into the existing network.
  • Long-Tail Memory Replay: To combat forgetting, the authors introduce a memory buffer. Crucially, they prove a regret bound showing that INRs are more likely to forget data that is "distant" from the current time point. To counter this, they use a Beta distribution to sample historical data, prioritizing the "long tail" of older data to maintain the model's global knowledge.

Key Insights and Innovations

  • Constant Parameter Count: Because the "knowledge" is stored in the weights of the MLP rather than the size of the factor matrices, the number of learnable parameters remains constant even as the data stream grows to infinity.
  • The "Distance" of Forgetting: One of the most interesting theoretical contributions is the proof that forgetting in INRs is position-dependent.
Illustration of a continuous function fitting historical data over time

Because INRs rely on local continuity, the model naturally stays accurate for recent data but "drifts" on older data unless specifically corrected.

  • Beta Sampling > Uniform Sampling: While many replay methods sample history uniformly, this paper shows that a "long-tail" approach (storing more data from distant positions) is significantly more effective for functional tensor representations.

Experimental Results

The researchers evaluated OFTD on a diverse set of real-world streaming datasets, including single-aspect streams (Beijing/Madrid Air Quality, Radar Traffic) and multi-aspect streams (Video streams, YELP reviews).

  • Superior Accuracy: OFTD consistently outperformed traditional baselines (like OLSTEC, SOFIA, and GOCPT) in terms of Normalized Reconstruction Error (NRE). For example, on the Beijing Air Quality data with only 10% of entries observed, OFTD achieved an NRE of ~0.156, while most baselines were above 0.2 or even 1.0.
  • Real-Time Performance: Despite using neural networks, the model is highly efficient. Online updates typically take less than 0.2 seconds for single-aspect streams and under 1.0 second for complex multi-aspect streams.
  • Smoothness Preservation: Qualitative results show that OFTD better reconstructs the smooth temporal curves of sensor data, whereas traditional methods often produce jagged or noisy results.

Limitations and Future Directions

  • Hyperparameter Sensitivity: The performance relies on tuning the Beta distribution ($\beta$ parameter) and the INR's frequency parameter ($\omega_0$). While the authors provide guidelines, optimal settings may vary across different types of physical data.
  • Structural Generalization: While the paper focuses on CP decomposition, the authors briefly demonstrate that the framework can be extended to Tucker and Tensor Train decompositions, suggesting a rich area for future exploration.
  • LoRA Connections: The authors hint that this "low-rank functional parameterization" could provide a new paradigm for Low-Rank Adaptation (LoRA) in large-scale models, potentially allowing for more efficient fine-tuning in streaming environments.

Summary updated

BibTeX
@inproceedings{zhang2025online,
  author = {Xi Zhang and Yanyi Li and Yisi Luo and Qi Xie and Deyu Meng},
  title = {{Online Functional Tensor Decomposition via Continual Learning for Streaming Data Completion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=RPuTB28HsK},
}
Figure