All models

TranAD benchmark TranAD

A two-decoder transformer that reconstructs time-series windows and flags what it cannot rebuild.

Time series · 225 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 (30 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
5.7K
Operations
225
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
m3155
Graph hash
41a97c28ebd5ae31e411f55fe8ddf5490a415403204e3bfb7bc5b0d3ed80e7f9
Skeleton hash
9a35fed8453953754447b493d5434d403ea68f704c2f93765b2476a19ff74742
Architecture hash
a2e7611cdb75d635d1522ebe724a694477f917dc23deb2d6494f43570a685075
Diagram SHA-256
92811c4c6daa2508efbca2e60da1041bb748dccc984062e155da32da7b437aa6
TorchLens version
2.36.0
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: build({})

What it is

TranAD is a transformer for spotting anomalies in multivariate time series, built for settings the paper describes as lacking anomaly labels, with high data volatility and demands for ultra-low inference times. The model predicts a reconstruction of each input time-series window. Using a transformer lets it read the complete input series in one shot rather than step by step as a recurrent model would.

The model consists of two transformer encoders and two decoders. The window encoder produces an encoded representation of the input window, which then goes to the two decoders for reconstruction. Inference runs in two phases: in the second phase, the first decoder's reconstruction loss becomes a focus score that conditions the attention of a second pass. The paper calls this self-conditioning. The two decoders are also trained adversarially, GAN style, which the authors show amplifies reconstruction errors so that small deviations from normal data are not missed. Model-agnostic meta learning lets it train with limited data.

The captured member returns two tensors, one reconstruction from each decoder. Across six public datasets the paper reports F1 gains of up to 17% and training times cut by up to 99% against the baselines.

Key idea. A transformer anomaly detector that feeds its own first-pass reconstruction error back as a focus score for a second pass, with two decoders trained adversarially.

  • tranad
  • anomaly detection
  • multivariate time series
  • transformer
  • focus score
  • self-conditioning
  • maml
  • unsupervised anomaly detection

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}, 
}