← Lab /AI/ML

TA-RS achieves up to 100% certified accuracy for LLM-based IDS by adding noise only

Traffic-Aware Randomized Smoothing can certify 55-100% accuracy on IDS datasets while aligning noise with attacker-controllable subspace

AI/ML arXiv 15 Jul 2026 Defense Prototype evidence

Published as “Traffic-Aware Randomized Smoothing for LLM-Based Network Intrusion Detection”

Why it matters

The method enables provable robustness of LLM-based IDS against realistic traffic manipulations, but requires per-dataset fine-tuning before deployment.

Summary

TA-RS attains 55-100% certified accuracy on CIC-IDS-2018 and HIKARI-2021 at the L∞-equivalent threat threshold, showing that aligning randomized smoothing to attacker-controllable features yields strong guarantees. The method requires noise-augmented fine-tuning, which lifts certified accuracy from weak 14-57% on clean-trained LLM-IDS to 68-100% on the same datasets. However, on the harder RT-IoT2022 dataset the default recipe fails (≤24% certified accuracy) and only recovers when the number of noisy training copies is increased. Evidence comes from three public network-traffic benchmarks and compares against several isotropic and random-subspace baselines. The paper’s claims are well supported by the reported numbers, though the approach depends on dataset-specific fine-tuning.

What they found 2

  1. TA-RS achieves 55-100% certified accuracy on CIC-IDS-2018 and HIKARI-2021 at the L∞-equivalent threat threshold.

    “At the L∞-equivalent threshold R∞=ε p |FDC| (ε=0.05), TA-RS achieves 55-100% certified accuracy on CIC-IDS-2018 and HIKARI-2021”

  2. Noise-augmented fine-tuning raises certified accuracy from weak baselines to 68-100% on two benchmark datasets.

    “noise-augmented fine-tuning recovers to 68-100% on two of three benchmark datasets (at σ=0.25)”

Caveats 3

  • 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.
  • dataset-specific fine-tuning is non-negotiable, and pretraining knowledge does not transfer without traffic-aware tuning.
  • We do not evaluate on NSL-KDD or UNSW-NB15 in this work.

What’s new here 4

  • Applies randomized smoothing only to the directly controllable (DC) feature subspace of network traffic, matching the attacker’s feasible perturbation set.
  • Demonstrates that noise-augmented fine-tuning is a prerequisite for any certified accuracy with LLM-based IDS.
  • Provides a certified L2 guarantee that maps to an L∞ traffic budget, with median radii up to 5× the threat threshold.
  • Shows that the advantage of DC-aligned smoothing persists beyond simple dimensionality reduction, via random-subspace and anisotropic baselines.