NeFut Logo NeFut
Admin Login

[CS.AI] Traffic-Aware Randomized Smoothing for LLM-Based IDS

Published at: 2026-07-17 22:00 Last updated: 2026-07-18 08:19
#algorithm #AI #Machine Learning

As large language model (LLM)-based intrusion detection systems (IDS) gain traction in security monitoring, their robustness against traffic manipulation remains largely empirical. We introduce Traffic-Aware Randomized Smoothing (TA-RS), a classifier-agnostic certified defense that injects Gaussian noise into the directly controllable (DC) subspace—features that a remote attacker can modify—during both fine-tuning and certification, aligning the smoothing distribution with the attacker-controllable subspace.

We identify a critical prerequisite: applying standard randomized smoothing to clean-trained LLM-IDS yields weak certified accuracy in three out of four (model, dataset) pairs tested (14-33%, at or below random) and only 57% in the fourth (43 pp below the noise-augmented result). Noise-augmented fine-tuning recovers to 68-100% on three benchmark datasets (at sigma=0.25). At the L_inf-equivalent threshold R_inf = epsilon\sqrt{|DC|} (epsilon=0.05), TA-RS achieves 55-100% certified accuracy on CIC-IDS-2018 and HIKARI-2021, with median certified radii (R approx 0.45-0.96) exceeding R_inf by 1.8-5x (across sigma=0.25-1.00). Against a well-trained iso-trained RS baseline, the residual advantage is dataset-dependent (4-19 pp on CIC-IDS-2018). The larger gap—up to 72 pp against an isotropic RS baseline that shares the DC-noise-augmented training recipe—primarily reflects the training-certification mismatch rather than DC alignment alone: isotropic test-time noise perturbs uncontrollable features that the attacker cannot exploit, triggering abstention rates up to 68%. RT-IoT2022 probes the limits of the method: it fails under the default fine-tuning recipe but recovers to 76%/69% certified accuracy (LLaMA3-8B/Qwen3-8B) when noise augmentation is increased.

Blogger's Review: The Traffic-Aware Randomized Smoothing method presented in this paper offers a novel defense strategy in the realm of network security. By specifically targeting attacker-controllable features, it enhances the robustness of intrusion detection systems. The practical implications of this approach during model fine-tuning and certification warrant further exploration, especially regarding its effectiveness against dynamic network attacks. This research provides valuable insights for improving the security of LLM-based IDS.

Original Source: https://arxiv.org/abs/2607.13801

[h] Back to Home