← Lab /AI/ML

Structured prompts boost LLM DDoS detection accuracy up to 40% in smaller models

The proposed structured prompt framework improves chain-of-thought reasoning integrity and security threat detection reliability in LLMs

AI/ML arXiv 6 Apr 2026 Method Prototype evidence

Published as “Strengthening Human-Centric Chain-of-Thought Reasoning Integrity in LLMs via a Structured Prompt Framework”

Why it matters

Structured prompting can make small, locally deployed LLMs viable for auditable security analysis without large accuracy trade-offs.

Summary

Structured prompt engineering improves detection accuracy by about 1-5% across all tested local LLMs and boosts human-evaluated reasoning quality up to 40% for smaller models (still 8-12% for larger ones). The paper reports consistent gains on a public DDoS SDN dataset using 400 samples and multiple model families, with strong inter-rater reliability (Cohen’s κ > 0.80). Evidence is solid but the accuracy improvements are modest, and the biggest reasoning gains are limited to smaller models.

What they found 3

  1. Detection accuracy improves by roughly 1-5% when using the structured prompt framework.

    “Detection accuracy improved consistently across all models (approximately 1-5%)”

  2. Reasoning quality gains reach up to 40% for smaller local models and remain 8-12% for larger models.

    “reasoning quality showed substantially larger gains, reaching up to 40% improvement in smaller local models and remaining above 8-12% even for larger models”

  3. ChatGPT-generated prompts outperform manually crafted prompts across all models and all reasoning dimensions.

    “ChatGPT Prompt performed superiorly to Manual Prompt across all LLMs and all dimensions”

Caveats 1

  • The reported detection accuracy gains are modest (only 1-5%), indicating limited impact on core classification performance.

What’s new here 4

  • Introduces a 16-factor structured prompt framework that separates system-level and user-level controls.
  • Applies the framework to local LLMs of various sizes for DDoS detection, not just cloud models.
  • Provides a human-evaluated reasoning quality metric with high inter-rater reliability.
  • Shows that structured prompting can compensate for limited model scale in security tasks.