Dynamic Tensor Decomposition via Neural Diffusion-Reaction Processes

Zheng Wang, Shikai Fang, Shibo Li, Shandian Zhe

TL;DR

DEMOTE (Dynamic EMbedIngs fOr dynamic Tensor dEcomposition) is a novel framework that models how the underlying properties of entities in a tensor evolve over continuous time. By combining graph-based diffusion to capture shared trends with neural reaction processes to capture individual behaviors, DEMOTE significantly outperforms existing methods in predicting future values in sparse, time-stamped multiway data.

The Challenge of Dynamic Multiway Data

Multiway data—such as "User × Product × Merchant" interactions—is naturally represented as a tensor. In real-world applications, these interactions are both dynamic (e.g., user interests change over time) and sparse (most users only interact with a small fraction of products).

Current tensor decomposition methods face three major hurdles:

  1. Static Assumptions: Most models treat entity embeddings as fixed, completely missing the temporal evolution of the data.
  2. Time Discretization: Existing dynamic models often "bin" time into crude, discrete steps (like weeks or months). This loses the nuance of continuous change and struggles with irregularly sampled data.
  3. Ignoring Structure: They often fail to leverage the structural knowledge hidden in the data—specifically, the fact that if a user interacts with a product, their latent "trajectories" are likely correlated.

Proposed Method: DEMOTE

To overcome these limitations, the authors propose DEMOTE, which treats the evolution of entity embeddings as a physical process modeled by an Ordinary Differential Equation (ODE). The core of the model is a Neural Diffusion-Reaction process.

Illustration of the DEMOTE framework showing the multi-partite graph, diffusion, and reaction processes.
  • The Multi-partite Graph: The framework builds a graph where every entity (e.g., a specific user or product) is a node. An edge is drawn between entities if they appear together in an observed tensor entry.
  • Diffusion (Commonalities): This component allows embeddings to "flow" across the graph. If two entities interact, their embedding trajectories co-evolve. This leverages the structural knowledge of the network to overcome data sparsity, acting as a powerful regularizer.
  • Reaction (Personalities): A neural network models a "reaction" for each individual entity, allowing it to evolve independently of its neighbors. This ensures the model captures unique, localized behaviors rather than just smoothing everything out.
  • Continuous-Time Prediction: A separate neural network takes these evolved embeddings at any continuous time $t$ and predicts the resulting tensor value. Because it models the derivative of the embedding via ODEs, DEMOTE handles irregularly sampled data much better than traditional RNNs.
  • Stratified Sampling: Solving ODEs is computationally expensive. To accelerate training, the authors developed a stratified sampling strategy that balances the number of unique timestamps per mini-batch, resulting in a 4x to 22x speedup over naive methods.

Key Results and Insights

The model was evaluated on a synthetic dataset and three real-world datasets (California Weather, California Traffic, and a Server Room temperature record).

Comparison of ground-truth trajectories against NONFAT and DEMOTE predictions.
  • Trajectory Recovery: In simulation studies, DEMOTE successfully recovered the ground-truth mathematical trajectories (exponential and linear) of hidden clusters, whereas baseline methods like NONFAT struggled to capture the true underlying dynamics.
  • Superior Accuracy: Across all real-world datasets, DEMOTE consistently achieved the lowest normalized root-mean-square error (nRMSE). In the Server Room dataset, it outperformed the next best method by nearly 50% in certain configurations.
  • Long-term Forecasting: Qualitative results demonstrated that DEMOTE effectively captures periodic patterns (such as daily temperature cycles) that Gaussian Process-based methods often mistake for noise.
  • Latent Clustering: The model uncovers how entities group together over time. In the Server Room data, locations with similar workloads naturally clustered in the embedding space, and these clusters dynamically shifted as the system state changed.

Limitations and Future Work

The primary limitation of DEMOTE is its scalability regarding the number of entities. Because the model integrates the entire multi-partite graph to calculate the diffusion process, it becomes computationally heavy as the number of nodes grows.

For future work, the authors suggest employing graph partitioning algorithms to break the large multi-partite graph into smaller sub-graphs. This would enable parallelized diffusion processes, potentially scaling the model to massive tensors with millions of entities.

Summary updated

BibTeX
@inproceedings{wang2023dynamic,
  author = {Zheng Wang and Shikai Fang and Shibo Li and Shandian Zhe},
  title = {{Dynamic Tensor Decomposition via Neural Diffusion-Reaction Processes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=LGqIAn2OaZ},
}
Figure