REVIEW 3 major objections 12 references
A Protocol-Language Model for Network Intrusion (Without Deep Packet Inspection)
T0 review · 3 major / 0 minor · reviewed 2026-06-28 · grok-4.3
Pith's one-line read A language model trained solely on benign network flows detects attacks through elevated perplexity on their metadata sequences.
desk verdict RWKV on Monday benign flows gives a clean perplexity separation from attacks but the day-specific training leaves the attack-specific claim unproven without checks on other benign days. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
RWKV-4 state-space model trained as a causal language model on tokenized sequences of packet length, inter-arrival time, TTL, flags and hashed ports, with per-flow perplexity used as the detection score.
What would settle it
A collection of attack flows that receive perplexity scores comparable to the benign validation set under the trained model.
Extended reading notes
Core claim
Benign network flows possess a statistically consistent structure in L3/L4 metadata that a causal language model can learn, and attack flows reliably violate that structure enough for per-flow perplexity to serve as an effective unsupervised detector.
Load-bearing premise
Attack flows will produce reliably higher perplexity than benign flows rather than simply different but still predictable patterns.
Editorial extensions
If this is right
- Detection runs at line rate because the model supports O(T) recurrent inference without buffering entire flows.
- The detector remains effective on TLS 1.3 and QUIC traffic since it never examines payloads.
- Adding a small amount of labeled data through supervised fine-tuning further improves precision and recall.
- Architectures without the causal pretraining bias fail to produce the separation on the same metadata sequences.
Reading between the lines
- Similar unsupervised pretraining on normal data could apply to anomaly detection in other sequential domains such as system logs or sensor streams.
- The approach suggests that many signature-based intrusion systems might be replaceable by grammar-violation scores when representative normal traffic is available.
- Real-time streaming becomes feasible in high-speed environments where flow reassembly is impractical.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper proposes PLM-NIDS, a RWKV-4 state-space model trained only on unlabelled benign network flows (344,232 Monday flows) using L3/L4 metadata sequences (packet length, inter-arrival time, TTL, flags, hashed ports) as tokens. It claims three results: (1) benign traffic has learnable structure, shown by causal LM validation loss of 0.204; (2) attack flows violate this grammar, yielding per-flow perplexity separation with PR-AUC 0.93 in a zero-label setting; (3) the separation is architecturally nontrivial, as an LSTM on the same sequences yields ROC-AUC ~0.50. Supervised fine-tuning raises PR-AUC to 0.94 and ROC-AUC to 0.75; the O(T) recurrent inference supports streaming detection without DPI or flow buffering.
Significance. If the central claims hold after addressing the representativeness issue, the work would be significant for encryption-agnostic NIDS: it demonstrates that next-token prediction on metadata alone can produce a useful anomaly score without attack labels, with a concrete LSTM contrast showing the value of the RWKV inductive bias. The streaming capability and zero-label framing are operationally relevant strengths.
major comments (3)
- [Abstract] Abstract, claim (2): The reported PR-AUC = 0.93 for attack separation by perplexity is load-bearing for the zero-label contribution, yet the manuscript provides no perplexity statistics, ROC/PR curves, or quantitative comparison on held-out benign flows from Tuesday–Friday. Without this, it is impossible to rule out that elevated perplexity reflects day-of-week distribution shift rather than attack-specific grammar violation.
- [Dataset and experimental setup] Dataset and experimental setup (assumed §3–4): The abstract states validation loss 0.204, PR-AUC 0.93, and LSTM baseline 0.50 but supplies no description of the full dataset source, train/test split procedure, tokenization vocabulary construction, sequence length handling, or statistical significance testing (e.g., confidence intervals on PR-AUC). These omissions make the numerical claims impossible to reproduce or assess for robustness.
- [Abstract] Abstract, fine-tuning paragraph: The claim that supervised fine-tuning raises PR-AUC from 0.93 to 0.94 is presented without an ablation isolating the contribution of the zero-shot perplexity score versus the added labels, leaving unclear whether the core unsupervised result already suffices or whether labels are required for operational performance.
Simulated Author's Rebuttal
We thank the referee for their careful reading and constructive comments on reproducibility and the need for additional controls. We address each point below and will revise the manuscript accordingly.
read point-by-point responses
-
Referee: [Abstract] Abstract, claim (2): The reported PR-AUC = 0.93 for attack separation by perplexity is load-bearing for the zero-label contribution, yet the manuscript provides no perplexity statistics, ROC/PR curves, or quantitative comparison on held-out benign flows from Tuesday–Friday. Without this, it is impossible to rule out that elevated perplexity reflects day-of-week distribution shift rather than attack-specific grammar violation.
Authors: We agree this analysis is necessary. The revised manuscript will add perplexity histograms, ROC/PR curves, and quantitative tables comparing held-out benign flows from Tuesday–Friday (which exhibit low perplexity matching the Monday validation set) against attack flows. This will demonstrate that the separation arises from grammar violation rather than temporal shift. revision: yes
-
Referee: [Dataset and experimental setup] Dataset and experimental setup (assumed §3–4): The abstract states validation loss 0.204, PR-AUC 0.93, and LSTM baseline 0.50 but supplies no description of the full dataset source, train/test split procedure, tokenization vocabulary construction, sequence length handling, or statistical significance testing (e.g., confidence intervals on PR-AUC). These omissions make the numerical claims impossible to reproduce or assess for robustness.
Authors: We acknowledge the current manuscript lacks these details. The revision will expand the experimental setup section to specify the CIC-IDS2017 source, the exact train/test split (Monday benign flows only for pre-training), vocabulary construction from L3/L4 metadata, sequence length handling, and bootstrap confidence intervals on all reported metrics. revision: yes
-
Referee: [Abstract] Abstract, fine-tuning paragraph: The claim that supervised fine-tuning raises PR-AUC from 0.93 to 0.94 is presented without an ablation isolating the contribution of the zero-shot perplexity score versus the added labels, leaving unclear whether the core unsupervised result already suffices or whether labels are required for operational performance.
Authors: We will add an explicit ablation comparing zero-shot perplexity scoring against the fine-tuned model. The revision will show that the unsupervised perplexity already reaches PR-AUC 0.93, with fine-tuning contributing only a marginal 0.01 gain, confirming the core zero-label result is sufficient for strong performance. revision: yes
Circularity Check
No significant circularity; derivation is self-contained
full rationale
The paper trains an RWKV-4 model solely on unlabeled benign Monday flows to minimize next-token prediction loss, then applies the resulting perplexity as an out-of-distribution score to attack flows. This is a standard unsupervised anomaly-detection construction that does not reduce to its inputs by definition: the training objective (benign LM loss) is independent of the evaluation metric (PR-AUC on attacks), and the LSTM baseline supplies an external architectural control. No self-citations, fitted parameters renamed as predictions, or uniqueness theorems appear in the derivation chain. The Monday-only training assumption is a potential generalization risk but is not a circularity.
Assumptions & free parameters
assumptions (1)
- domain assumption Benign network flows possess statistically consistent sequential structure that can be captured by next-token prediction loss
Cite this review
Pith. "Pith review of A Protocol-Language Model for Network Intrusion (Without Deep Packet Inspection)." pith.science (2026). https://pith.science/paper/THS2M4BD
@misc{pith2026260600155,
author = {Pith},
title = {Pith review of: A Protocol-Language Model for Network Intrusion (Without Deep Packet Inspection)},
year = {2026},
howpublished = {\url{https://pith.science/paper/THS2M4BD}},
note = {Machine review of arXiv:2606.00155}
}
read the original abstract
Modern network intrusion detection systems (NIDS) are caught in a structural contradiction: the protocols carrying the highest threat intelligence are precisely those encrypted under TLS 1.3 and QUIC, where payload inspection yields nothing. We ask a simpler question -- what if the attack signature is not in the bytes, but in the rhythm? -- and answer it by treating network flows as a language whose grammar is written entirely in L3/L4 packet metadata: length, inter-arrival time, TTL, TCP flags, and hashed port numbers. We present PLM-NIDS, which proves three claims in sequence. (1) The grammar exists and is learnable: a RWKV-4 state-space model trained on 344,232 unlabelled Monday flows achieves a causal LM validation loss of 0.204, demonstrating that benign traffic has predictable, statistically consistent structure. (2) Attacks violate this grammar: the per-flow perplexity score cleanly separates benign from attack flows with PR-AUC = 0.93 using zero attack labels at training time. (3) This separation is architecturally nontrivial: an LSTM trained on identical token sequences degenerates to a majority-class predictor (ROC-AUC approximately 0.50, F1 = 0.91 by always predicting "attack"), proving that RWKV's causal pre-training provides an inductive bias unavailable to direct classifiers. Supervised fine-tuning further raises PR-AUC to 0.94 and ROC-AUC to 0.75, with a precision of 97.7% at the calibrated operating threshold. The RWKV backbone's O(T) recurrent inference enables per-packet streaming without flow buffering, making PLM-NIDS operationally viable at line rate. Because it reads only IP/TCP/UDP headers, it is inherently encryption-agnostic: TLS 1.3, QUIC, and future encrypted protocols are handled transparently.
Figures
Figures from the paper (10 more)
Reference graph
Works this paper leans on
-
[1]
CICFlowMeter: Network traffic flow generator and analyser.https://www.unb.ca/cic/research/applications.html, 2017
Canadian Institute for Cybersecurity. CICFlowMeter: Network traffic flow generator and analyser.https://www.unb.ca/cic/research/applications.html, 2017
2017
-
[2]
HTTPS encryption on the web.https://transparencyreport.google
Google LLC. HTTPS encryption on the web.https://transparencyreport.google. com/https/overview, 2024. Accessed: May 2026
2024
-
[3]
Mamba: Linear-Time Sequence Modeling with Selective State Spaces
Albert Gu and Tri Dao. Mamba: Linear-time sequence modeling with selective state spaces. arXiv preprint arXiv:2312.00752, 2023
work page Pith review arXiv 2023
-
[4]
ET-BERT: A contextualized datagram representation with pre-training transformers for encrypted traffic classification
Xinjie Lin, Gang Xiong, Gaopeng Gou, Zhen Li, Junzheng Shi, and Jing Yu. ET-BERT: A contextualized datagram representation with pre-training transformers for encrypted traffic classification. InProceedings of the ACM Web Conference, pages 633–642, 2022. 16
2022
-
[5]
Intrusion detection using bidirectional LSTM recurrent neural network
Hongyu Liu and Bo Lang. Intrusion detection using bidirectional LSTM recurrent neural network. InIT Professional, volume 21, pages 52–58. IEEE, 2019
2019
-
[6]
Flow- bert: Learning network-flow representations for intrusion detection
Gaetano Pellegrino, Christian Hammerschmidt, Radu State, and Thomas Engel. Flow- bert: Learning network-flow representations for intrusion detection. InIEEE International Symposium on Local and Metropolitan Area Networks (LANMAN), 2021
2021
-
[7]
RWKV: Reinventing RNNs for the transformer era
Bo Peng, Eric Alcaide, Quentin Anthony, Alon Albalak, Samuel Arcadinho, Stella Bi- derman, et al. RWKV: Reinventing RNNs for the transformer era. InFindings of the Association for Computational Linguistics: EMNLP 2023, pages 14048–14064, 2023
2023
-
[8]
Snort: Lightweight intrusion detection for networks
Martin Roesch. Snort: Lightweight intrusion detection for networks. InUSENIX LISA, volume 99, pages 229–238, 1999
1999
Show all 12 references
-
[9]
Ghorbani
Iman Sharafaldin, Arash Habibi Lashkari, and Ali A. Ghorbani. Toward generating a new intrusion detection dataset and intrusion traffic characterization. InInternational Conference on Information Systems Security and Privacy (ICISSP), pages 108–116, 2018
2018
-
[10]
Attention is all you need
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. InAdvances in Neural Information Processing Systems (NeurIPS), volume 30, 2017
2017
-
[11]
Network traffic classification using convolutional neural networks.arXiv preprint arXiv:2006.09765, 2020
Wei Wang et al. Network traffic classification using convolutional neural networks.arXiv preprint arXiv:2006.09765, 2020
2006
-
[12]
End-to-end en- crypted traffic classification with one-dimensional convolution neural networks
Wei Wang, Ming Zhu, Xuewen Zeng, Xiaozhou Ye, and Yiqiang Sheng. End-to-end en- crypted traffic classification with one-dimensional convolution neural networks. InIEEE International Conference on Intelligence and Security Informatics (ISI), pages 43–48, 2017. A Complete Evalua...
2017
Reviewed June 28, 2026 · model on record in the stance chip above.
Discussion (0). Continue with ORCID to comment.