Functional Complexity-adaptive Temporal Tensor Decomposition

Panqi Chen, Lei Cheng, Jianlong Li, Weichang Li, Weiqing Liu, Jiang Bian, Shikai Fang

Abstract

Tensor decomposition is a fundamental tool for analyzing multi-dimensional data by learning low-rank factors to represent high-order interactions. While recent works on temporal tensor decomposition have made significant progress by incorporating continuous timestamps in latent factors, they still struggle with general tensor data with continuous indexes not only in the temporal mode but also in other modes, such as spatial coordinates in climate data. Moreover, the challenge of self-adapting model complexity is largely unexplored in functional temporal tensor models, with existing methods being inapplicable in this setting. To address these limitations, we propose functional Complexity-Adaptive Temporal Tensor dEcomposition (CATTE). Our approach encodes continuous spatial indexes as learnable Fourier features and employs neural ODEs in latent space to learn the temporal trajectories of factors. To enable automatic adaptation of model complexity, we introduce a sparsity-inducing prior over the factor trajectories. We develop an efficient variational inference scheme with an analytical evidence lower bound, enabling sampling-free optimization. Through extensive experiments on both synthetic and real-world datasets, we demonstrate that CATTE not only reveals the underlying ranks of functional temporal tensors but also significantly outperforms existing methods in prediction performance and robustness against noise.

Introduction

Multi-dimensional data analysis often relies on tensor decomposition to uncover latent structures. However, traditional methods like CP or Tucker decomposition assume data resides on a rigid, discrete Cartesian grid. In reality, spatiotemporal data—such as ocean temperatures or traffic patterns—is often collected at irregular intervals and arbitrary continuous coordinates. Forcing this data into discrete "buckets" leads to a significant loss of fine-grained information.

Furthermore, a persistent challenge in tensor modeling is selecting the appropriate rank (the number of latent factors). Choosing too low a rank leads to underfitting, while choosing too high a rank causes overfitting. While automatic rank determination exists for static tensors, it has been largely unexplored for functional models where factors are continuous trajectories. CATTE addresses these gaps by providing a grid-free, complexity-adaptive framework.

Methodology

CATTE (Complexity-Adaptive Temporal Tensor dEcomposition) introduces a unified functional framework that stands out through three key technical innovations:

The CATTE architecture: from continuous observations to latent factor trajectories via Neural ODEs and rank-revealing priors.
  1. Continuous Index Encoding: Instead of discretizing spatial coordinates, CATTE expands them into learnable Fourier features. This allows the model to capture high-frequency, fine-grained spatial patterns that simple linear embeddings would miss.
  2. Latent Neural ODEs: To model how factors evolve over time, CATTE utilizes Neural Ordinary Differential Equations (Neural ODEs). The encoded spatial features serve as the initial state, and the ODE solver computes the factor's trajectory at any arbitrary timestamp, making the model continuous-time by design.
  3. Functional Automatic Rank Determination (FARD): This is the complexity-adaptive core. The model places a Gaussian-Gamma sparsity-inducing prior over the factor trajectories. During training, the model "prunes" unnecessary latent components by driving their contribution toward zero, effectively revealing the true underlying rank of the data.

To ensure scalability, the authors derived an analytical Evidence Lower Bound (ELBO) for their variational inference scheme. This allows for stable, sampling-free optimization, making CATTE significantly faster than previous Bayesian temporal models.

Experimental Evaluation

The model was evaluated on a mix of synthetic and complex real-world spatiotemporal datasets, including:

  • Synthetic Data: Designed to test rank recovery accuracy.
  • CA Traffic: Lane-blocked traffic events in California, indexed by severity and continuous spatial coordinates.
  • Server Room: Temperature logs from a supercomputing center involving different AC modes.
  • Sound Speed Field (SSF): A highly continuous 4D dataset of sound speed measurements in the Pacific Ocean across latitude, longitude, depth, and time.

Key Results and Discussion

CATTE demonstrated superior accuracy across all benchmarks. On the SSF ocean dataset, CATTE achieved an RMSE of 0.373, nearly halving the error of state-of-the-art baselines like THIS-ODE.

Rank recovery demonstration: the model identifies the 3rd component as the ground truth while pruning others (1st, 2nd, 4th, and 5th) by driving their values toward a constant zero.

A critical feature of CATTE is its ability to recover the underlying rank of functional tensors. As shown in synthetic tests, when initialized with a rank of 5 for a rank-1 problem, the model successfully drives the power of the 4 unnecessary components to zero while perfectly recovering the ground truth trajectory. This FARD mechanism acts as a powerful regularizer, making the model significantly more robust to noise compared to fixed-rank models.

Additionally, as a Bayesian framework, CATTE provides uncertainty quantification. It outputs a confidence interval alongside its predictions, which is vital for scientific applications where understanding the reliability of a model is as important as the prediction itself.

Conclusion

CATTE represents a significant step toward "grid-free" machine learning for the physical sciences. By combining Neural ODEs with principled Bayesian rank determination, it offers a robust way to handle the messy, continuous nature of real-world data. Future work will explore integrating physical constraints (like fluid dynamics) to further improve performance in data-sparse regions.

Summary updated

BibTeX
@inproceedings{chen2025functional,
  author = {Panqi Chen and Lei Cheng and Jianlong Li and Weichang Li and Weiqing Liu and Jiang Bian and Shikai Fang},
  title = {{Functional Complexity-adaptive Temporal Tensor Decomposition}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=RhRLbCt7MS},
}
Figure