YaTC
A transformer, pre-trained as a masked autoencoder, that classifies network traffic from a matrix of raw bytes.
772 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
- Parameters
- 1.9M
- Operations
- 772
- Framework
- PyTorch
- Recurrent
- No
- Published
- AAAI 2023
- Cited by
- 189 (as of 28 October 2026)
- Authors
- Ruijie Zhao, Mingwei Zhan, Xianwen Deng and others
- Source
- GitHub: NSSL-SJTU/YaTC
- 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
- m21561
- Graph hash
- 517033181c8da15ced7f8da7568c5ea913d9a8450b0f6574451862435a44a8cf
- Skeleton hash
- 3e80d29c374c4662cfd70945d123a431b23be50d5b799af58cce4d726c94331a
- Architecture hash
- 27e234cd80ea6b641ed91d99c8f99dc39b312e4d6f5e219dad64f3dbc840303d
- Diagram SHA-256
- c6b4e6025928a42820ff2e0bfd8d5cf8d5e09bb506d5f95ceba61fa891a3aea2
- 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
What it is
YaTC, short for Yet Another Traffic Classifier, sorts network traffic flows into classes and learns its representations from large amounts of unlabeled traffic by self-supervised learning. Its input is a multi-level flow representation (MFR) matrix of raw traffic bytes, in which each row holds only header bytes or only payload bytes. The matrix has 40 rows in total and is made up of 5 smaller matrices. This layout addresses a problem the paper describes, where in some flows the first long transmission occupies the entire matrix and leaves no room for the rest of the flow.
The classifier, which the paper calls the Traffic Transformer, applies attention in two stages after an embedding module. In the first stage, self-attention runs only among patches that belong to the same one of those smaller matrices, not among all patches of the MFR matrix. Row pooling then condenses each row of patches, and a second round of attention across the row patches picks up flow-level information.
Training follows the masked autoencoder (MAE) approach: in pre-training an asymmetric encoder-decoder reconstructs the raw bytes of a masked matrix, and the encoder is then fine-tuned on labeled traffic. This model is the classifier with 7 output classes, the class count the repository uses when fine-tuning on ISCXVPN2016. On the Cross-Platform dataset, the paper reports that pre-training raises the F1 score from 69.93% to 82.35%.
Key idea. YaTC classifies network traffic with a masked autoencoder based Traffic Transformer that reads a multi-level flow representation matrix of raw traffic bytes.
- YaTC
- Yet Another Traffic Classifier
- traffic classification
- encrypted traffic
- Traffic Transformer
- multi-level flow representation
- MFR matrix
- masked autoencoder traffic
- network traffic classifier
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{Zhao_2023, title={Yet Another Traffic Classifier: A Masked Autoencoder Based Traffic Transformer with Multi-Level Flow Representation}, volume={37}, ISSN={2159-5399}, url={http://dx.doi.org/10.1609/aaai.v37i4.25674}, DOI={10.1609/aaai.v37i4.25674}, number={4}, journal={Proceedings of the AAAI Conference on Artificial Intelligence}, publisher={Association for the Advancement of Artificial Intelligence (AAAI)}, author={Zhao, Ruijie and Zhan, Mingwei and Deng, Xianwen and Wang, Yanhao and Wang, Yijun and Gui, Guan and Xue, Zhi}, year={2023}, month=June, pages={5420–5427} }