TranAD benchmark TranAD_Adversarial
TranAD_Adversarial: a single-decoder TranAD variant with adversarial self-conditioning for time series.
Time series · 225 operations Checked
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
- Task
- Time series
- Parameters
- 3.6K
- Operations
- 225
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- Proceedings of the VLDB Endowment (arXiv 2022)
- Cited by
- 1,498 (as of 14 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 file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m3156
- Graph hash
- cc9ae64a1de8870302b61ff63d7c0cf82ed759095ce8b903feba9500bbcd24ce
- Skeleton hash
- 3b2fcd9194efd1a339e992728a1b0d40b84664974686680ba9123a76b171e210
- Architecture hash
- 93a68493b477bb09746e061875993a1f8a33fb9479adde7ea3a878b9e4f46d2b
- Diagram SHA-256
- 611176d8d52a28fbcb4e5fa1883ca330f379b04a9675e93fcbccf17bf20fc4e8
- 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_adversarial: 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. Model-agnostic meta learning (MAML) is used to train the model with limited data.
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 self-conditioning lowers F1 scores by 6% 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_Adversarial
- TranAD adversarial
- time series anomaly detection
- multivariate time series
- anomaly diagnosis
- adversarial training
- self-conditioning
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},
}