Source-linked AI summary

Bayesian Tensor Autoencoder with Physics-informed Predictive Prior for Multi-dimensional Time Series Anomaly Detection

Jianan Liu, Chunguang Li

arXiv:2609.31157v1cs.LG

TL;DR

Existing anomaly detectors often reshape multidimensional time series, breaking correlations that can help detect anomalies and model normal data. PPPTAE combines a tensor autoencoder with a Bayesian-fused predictive prior and low-rank constraints; experiments report improved performance and effectiveness on real-world datasets.

  • Problem

    Most existing time-series anomaly detection methods target univariate or multivariate series, while reshaping multidimensional data breaks intrinsic correlations and can degrade performance.

    Source: §1 · p. 2
  • Method

    PPPTAE incorporates a Bayesian-fused predictive prior into a reconstruction-based tensor AE and uses low-rank decomposition rules in the prior's neural networks.

    Source: §1 · p. 3
  • Results

    PPPTAE directly handles multidimensional time series and achieves better performance than methods that require reshaping; experiments demonstrate its effectiveness.

    Source: §4.3.3 · p. 20, §5 · p. 21
  • Takeaways & Limitations

    Preserving intrinsic correlations matters because they can aid anomaly detection and normal-data modeling.

    Source: §1 · p. 2

    For analytical tractability, both feature distributions are modeled as Gaussian, and the normal-feature derivation neglects sparse components.

    Source: §2.2 · p. 5, §2.3.3 · p. 12

Abstract

from arXiv · show

Multi-dimensional time series, inherently tensorial, are common in practice. Despite great progress in time series anomaly detection, most existing methods are confined to uni-/multi-variate time series. When handling multi-dimensional time series using these methods, reshaping operations are required, which inevitably break the intrinsic correlations and thus lead to performance degradation. In uni-/multi-variate time series anomaly detection, AutoEncoders (AEs) are widely adopted and generally categorized into reconstruction-based and prediction-based AEs. The reconstruction-based AE utilizes the current observation for reconstruction, while the prediction-based AE utilizes the historical information to predict the current observation. Thus, the two AEs utilize different information. To bridge the gap between reconstruction-based and prediction-based AEs, so as to fully leverage the available information and thus further enhance performance, we propose a predictive prior and incorporate it into the reconstruction-based AE. It may not be very difficult to conceive this idea, but designing the predictive prior so that it can work for tensor anomaly detection is non-trivial. Specifically, to avoid breaking the intrinsic correlations within the multi-dimensional time series, we use the tensor AE as the backbone. To incorporate the predictive prior into the reconstruction-based AE, we propose a Bayesian fusion approach and our analysis reveals that this approach can enhance the modeling capability of the model for normal data. To mitigate the over-generalization problem of AE, we incorporate physical laws, i.e. tensor low-rank decomposition rules, into the neural networks in the predictive prior, leading to the Physics-informed Predictive Prior Tensor AE (PPPTAE) framework. Experimental results on real-world datasets demonstrate the effectiveness of the proposed method.

1 Introduction

The introduction frames multidimensional time series as tensorial data whose intrinsic correlations can be lost when existing anomaly detectors reshape them. It proposes a tensor autoencoder with a Bayesian-fused predictive prior and low-rank physical constraints to combine historical and current information while addressing AE over-generalization.

1 Introduction

  • Reshaping multidimensional series for existing detectors breaks intrinsic correlations and can degrade performance, although those correlations aid anomaly detection and normal-data modeling.Source: §1 · p. 2
  • A predictive prior built from history is incorporated into a reconstruction-based AE, integrating prediction and reconstruction; simple concatenation does not explicitly model their interaction.Source: §1 · pp. 2–3
  • Unlike meta-analytic predictive priors, which use external-study parameters and omit temporal dependencies, this prior uses historical information.Source: §1 · p. 3
  • The tensor AE backbone preserves intrinsic correlations, including location-related structure that vectorizing latitude and longitude would destroy.Source: §1 · pp. 2–3
  • To address AE over-generalization, tensor low-rank decomposition rules are embedded in predictive-prior neural networks, defining PPPTAE.Source: §1 · p. 3
  • Bayesian fusion incorporates the predictive prior into reconstruction-based TAE, and the authors' analysis says it can enhance normal-data modeling.Source: §1 · p. 3

2 Physics-informed Predictive Prior Tensor AutoEncoder

This section presents PPPTAE, which combines current-observation reconstruction with a history-based predictive prior through Bayesian fusion while retaining tensor features. It constrains learned features to a low-rank space by predicting tensor-decomposition factors from history, addressing autoencoder over-generalization.

2 Physics-informed Predictive Prior Tensor AutoEncoder

  • The framework uses tensor autoencoders to preserve multidimensional structure: reconstruction uses the current observation, while prediction uses observations from prior timestamps.At test time, both approaches distinguish samples using the deviation between the observation and its reconstruction or prediction; training uses normal samples.Source: §2 · p. 4

2.1 Predictive Prior

  • The predictive prior models temporal dependencies by using historical feature tensors to predict a Gaussian distribution’s mean and variance for the current feature.Its purpose is to bridge reconstruction- and prediction-based tensor autoencoders by incorporating historical information into reconstruction.Source: §2.1 · p. 4

2.2 Bayesian Fusion Approach

  • Bayesian fusion combines the encoder’s current-observation feature distribution with the history-based predictive prior; its denominator reweights features to improve modeling of normal data.The denominator encourages a more uniform feature distribution, giving feature-space regions sufficient training samples and supporting consistent reconstruction of normal samples.Source: §2.2 · p. 6

2.3 Physics-informed Predictive Prior

  • Rather than relying only on neural networks to predict prior parameters, PPPTAE adds Bayesian tensor decomposition to impose a low-rank constraint on normal features and address AE over-generalization.The paper notes that reconstruction-based autoencoders can sometimes reconstruct abnormal samples well [6] [28].Source: §2.3 · p. 6

2.3.1 Bayesian Tensor Decomposition Module.

  • The decomposition models low-rank, sparse, and noise components, uses the Tensor Wheel to capture tensor mode interactions [37], and replaces costly variational-inference iterations with neural networks estimating posterior parameters.The low-rank component represents normal features; the neural networks are trained using a variational Bayes loss.Source: §2.3.1 · pp. 7, 8, 10, 11
  • The Bayesian tensor decomposition module derives the low-rank component through tensor-ring operations and trains its predictive networks with a variational loss jointly with the reconstruction-based autoencoder.The module samples from variational distributions for decomposition factors; its training uses the VB loss.Source: §2.3.1 · p. 11

2.3.2 The Mechanism for Mitigating the Over-generalization Problem.

  • Because training uses normal samples and encourages sparse components, features for normal data approximate the low-rank component, constraining the autoencoder’s reconstruction capacity.The low-rank constraint compresses normal features into a smaller space, while typically non-low-rank or sparse anomalies deviate from that subspace; rank also acts like a limit on feature coding length.Source: §2.3.2 · pp. 11–12, Figure 4 · p. 12

2.3.3 Overall Design of the Physics-informed Predictive Prior.

  • The predictive prior predicts feature-distribution parameters from historical decomposition factors, then Bayesian-fuses its distribution with the encoder’s observation-based distribution before tensor-ring reconstruction.It predicts the means and variances of decomposition factors and noise using convolutional networks; tensor-ring outputs are low-TW-rank by construction, unlike direct neural prediction of feature mean and variance, which does not ensure low rank.Source: §2.3.3 · pp. 13–14, Figure 5 · p. 13

3 Training and Testing Strategies

Training combines a current observation with a history-conditioned predictive prior through Bayesian fusion. At test time, the prior is used after a cold-start cache fills, and reconstruction error provides the anomaly score.

3.1 Training Strategy

  • Random windows of M+1 tensors train the model, avoiding sequential-only training that may cause catastrophic forgetting or overfitting.The first M tensors supply historical features; the final tensor supplies the current observation for Bayesian fusion.Source: §3.1 · p. 14
  • The fused feature distribution is sampled, decomposed into a low-rank component, and decoded to reconstruct the current observation.The training objective incorporates the Bayesian tensor decomposition loss alongside reconstruction loss.Source: §3.1 · pp. 14, 16
  • Samples in sparse regions receive greater weight in the loss, supporting better reconstruction of normal samples in those regions.Source: §3.1 · p. 16
  • Because estimating p(F_t) by integrating over all inputs is intractable, the method approximates it with KDE using prior-timestamp features in a training mini-batch.Source: §3.1 · p. 16

3.2 Testing Strategy

  • During testing, the predictive prior starts after M earlier results are cached; squared Frobenius reconstruction deviation supplies the anomaly score.Before the cache reaches M, reconstruction uses the encoder directly; afterward, the prior and encoder outputs are fused.Source: §3.2 · p. 16

4 Experiments

The experiments evaluate PPPTAE on traffic, weather, and telecommunications tensors. Implementation uses a structure-preserving convolutional backbone and specifies network and training configurations.

4.2.1 Network Architecture.

4.1 Datasets

  • Evaluation covers lane-level freeway traffic, U.S. weather maps, and Milan telecommunications activity as multidimensional time series.Their tensor sizes are 49 × 4 × 3 × T, 320 × 320 × 69 × T, and 100 × 100 × 5 × T, respectively.Source: §4.1 · p. 17

4.2 Implementation Details

  • A 2D convolutional backbone preserves the tensor structure at each timestamp, with adaptive downsampling used to handle arbitrary input sizes.Source: §4.2.1 · p. 17

4.2.1 Network Architecture.

  • The Bayesian tensor decomposition networks use initial TW ranks R=[8,8,8,8] and L=[8,8,8,8], with fS weights initialized to zero.Source: §4.2.1 · p. 18

4.2.2 Paremeter Settings.

  • Training uses Adam with batch size 64, learning rate 1e-4, λ=0.001, M=4, N=10, KDE bandwidth 1, and 400 epochs.Source: §4.2.2 · p. 18

4.3 Comparison with State-of-the-art

Across six benchmark datasets, PPPTAE achieves the best AUC among the 15 compared state-of-the-art methods. The comparison uses AUC and evaluates normalized data, with HR-Extreme also cropped and split into seasonal subsets.

4.3.1 Evaluation Metric.

  • AUC is computed by varying anomaly-score thresholds to form an ROC curve, with higher AUC indicating better anomaly-detection performance.Source: §4.3.1 · p. 19
  • Datasets are normalized to (0, 1); HR-Extreme is additionally cropped to 64×64 and divided into three four-month subsets plus a full-year set.Source: §4.3.2 · p. 19

4.3.3 Results.

  • PPPTAE achieves the best AUC among 15 state-of-the-art methods on each of six datasets, while directly handling multidimensional series rather than flattening their dimensions.The authors report that merging N1, N2, and C for existing methods breaks intrinsic correlations and leads to performance degradation.Source: §4.3.3 · pp. 19–20

4.4 Ablation Studies

The ablations report that PPPTAE outperforms both reconstruction-based AE_r and prediction-based AE_p, while qualitative comparisons show lower reconstruction error and more even feature distribution.

4.4 Ablation Studies

  • PPPTAE outperforms both AE_r and AE_p, whose complementary strengths are detecting abrupt and temporally correlated anomalies, respectively.The Bayesian low-rank module constrains and compresses normal-sample features, while the predictive prior captures temporal dependencies; using both further enhances performance.Source: §4.4 · p. 20

4.5 Qualitative Studies

  • PPPTAE has lower reconstruction error than AE_r on the Freeway training set, where smaller reconstruction error typically indicates improved learned features.The authors attribute the feature improvement to adjustment by the predictive prior.Source: §4.5.1 · p. 20

4.5.1 MSE Loss Comparison.

  • PPPTAE achieves smaller MSE loss than AE_p because it can also leverage the observation at timestamp t.The comparison uses average mini-batch training losses on Freeway; the authors report similar results on other datasets.Source: §4.5.1 · pp. 20–21
  • AE_r features cluster, with poorly reconstructed normal samples in sparse regions; PPPTAE features tend to be more evenly distributed across the feature space.The authors state that this distribution allows each feature-space region to contain sufficient training samples, establishing reconstruction capability across regions.Source: §4.5.2 · p. 21, Figure 7 · p. 21

5 Conclusion

The conclusion presents PPPTAE as a tensor autoencoder framework combining a predictive prior and Bayesian fusion, with experiments demonstrating its effectiveness and superiority.

5 Conclusion

  • PPPTAE incorporates a predictive prior and Bayesian fusion into a reconstruction-based tensor AE to integrate prediction and reconstruction capabilities.The conclusion describes this as bridging the gap between reconstruction-based and prediction-based tensor AEs.Source: §5 · p. 21
  • A Bayesian tensor decomposition module is introduced to mitigate the autoencoder’s over-generalization problem.Source: §5 · p. 21
  • The framework also proposes training and testing strategies to introduce sufficient training randomness and bypass complex density estimation during testing.Source: §5 · p. 21
  • Experiments demonstrate the proposed method’s effectiveness and superiority.Source: §5 · p. 21

A Probabilistic Modeling

The probabilistic modeling passage specifies Gaussian models for decomposition components and Gamma distributions for precision parameters, then refers to conditional and joint distributions.

A Probabilistic Modeling

  • An element of G^(k) is modeled with a Gaussian distribution for simplicity and without loss of generality.Source: A Probabilistic Modeling · p. 24
  • The passage also specifies Gaussian modeling for elements of C and Gamma modeling for precision parameters, then states that conditional and joint distributions are derived.Source: A Probabilistic Modeling · pp. 24–25
  • The sparse component S is modeled with independent Gaussian elements because it captures sparse noise, with most elements zero and a few large in magnitude.Source: A Probabilistic Modeling · p. 25
  • The noise component E is modeled with Gaussian elements sharing one noise precision, and that precision τ is modeled with a Gamma distribution.Source: A Probabilistic Modeling · p. 25

B Optimal Variational Posterior Distributions

The passage introduces the optimal variational posterior distributions of the latent variables.

B Optimal Variational Posterior Distributions

C Close Form Expressions

This section gives elementwise notation for β and λ and records λR's appearance in the first KL divergence term of Eq. (35).

D Variational Bayes Loss Function

The section derives loss terms from the variational expressions and concludes that it has obtained all loss functions listed in Table 1.

Loading 2609.31157v1…