All models

TranAD benchmark TranAD_Basic

TranAD_Basic: a single encoder-decoder transformer variant of the TranAD time-series anomaly detector.

Time series · 108 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (27 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
1.2K
Operations
108
Framework
PyTorch
Recurrent
No
Published
Proceedings of the VLDB Endowment (arXiv 2022)
Cited by
1,499 (as of 15 November 2026)
Authors
Shreshth Tuli, Giuliano Casale, Nicholas R. Jennings
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m3157
Graph hash
f164191924666b7e0b57a3d2c16ffca77c910cea5e1dbc5880922a7a1e464aa9
Skeleton hash
17b5b138b32cf4f5476f2de0329ab8614fce75d90925387d511dc3e4940c2cda
Architecture hash
da85b30489f18a2585ac18d2a162e0877d37caccea6a2a9eee131ba5f67ec11d
Diagram SHA-256
84fac472eb5f06f1c6a8474b466ef7ecc4e877092bc0c2945881e4cb9618221a
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

menagerie.classics.ri_tranad:build_tranad_basic: build({})

What it is

TranAD is a transformer network for detecting and diagnosing anomalies in multivariate time series. The paper names three difficulties it is built for: a lack of anomaly labels, high data volatility and the demand for very low inference times.

The full model in the paper consists of two transformer encoders and two decoders, and it reconstructs each input window in two phases. In the first phase the model generates an approximate reconstruction of the input window. In the second phase the reconstruction loss of the first decoder is fed back as a focus score, so that the attention concentrates on the sub-sequences where the deviations are high. The paper calls this self-conditioning. The two decoders are trained against each other: the first aims to minimize the reconstruction error of the self-conditioned output and the second to maximize it.

The paper's ablation analysis removes each major component in turn and observes the effect on F1 scores. One reduced version fixes the focus score to zero in the second phase, and another drops the adversarial loss, leaving single-phase inference trained with only the reconstruction loss. In the ablation, removing the two-phase adversarial training lowers the F1 score by 5% on average. The paper reports that TranAD increases F1 scores by up to 17% and reduces training times by up to 99% compared to the baselines.

Key idea. TranAD reconstructs time-series windows with a transformer in two phases, feeding the first reconstruction error back as a focus score, and trains two decoders adversarially.

  • TranAD
  • TranAD_Basic
  • TranAD basic
  • time series anomaly detection
  • multivariate time series
  • anomaly diagnosis
  • transformer anomaly detector
  • window reconstruction

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{tuli2022tranaddeeptransformernetworks,
      title={TranAD: Deep Transformer Networks for Anomaly Detection in Multivariate Time Series Data}, 
      author={Shreshth Tuli and Giuliano Casale and Nicholas R. Jennings},
      year={2022},
      eprint={2201.07284},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2201.07284}, 
}