arXiv:2610.05369cs.CROct 2026

Manuscript Offprint

arXiv:2610.05369

AutoDP-LLM: Automating Data Pre-processing for Intrusion Detection Systems using Large Language Models

Bao-Phong Nguyen, Gia-Khanh Pham, Thai-Duong Do, Mai Xuan Trang, Minh-Tuan Le, Xuan-Nam Tran, Huan Vu, Tien-Cuong Nguyen, Vu-Duc Ngo, Thien Van Luong

Bao-Phong Nguyen, Gia-Khanh Pham, Thai-Duong Do, Mai Xuan Trang, Minh-Tuan Le, Xuan-Nam Tran, Huan Vu, Tien-Cuong Nguyen, Vu-Duc Ngo, and Thien Van Luong

Abstract—The increasing complexity and scale of modern cyber-attacks demand intelligent and computationally efficient Intrusion Detection Systems (IDS). However, designing effective data pre-processing pipelines traditionally involves substantial trial-and-error effort and repeated evaluation of alternative configurations. For large, high-dimensional network traffic data, this process can create a significant computational burden. In this work, we propose AutoDP-LLM, an automated pre-processing framework designed to reduce manual pipeline development and computational overhead. Specifically, AutoDP-LLM leverages Large Language Models (LLMs) to autonomously generate and validate executable data pre-processing pipelines. The framework combines deterministic host-side planning with LLM-based specialist agents to formulate data-processing strategies, synthesize executable code, and adaptively determine retained feature sets using semantic reasoning and training-derived statistical evidence, without requiring a predefined feature budget. Focusing on multiclass intrusion detection, we evaluate AutoDP-LLM on the UNSW-NB15 and NSL-KDD benchmark datasets using multiple downstream classifiers. Comparative experiments against conventional feature-selection methods show that AutoDP-LLM achieves competitive detection performance while automating the generation of compact and executable pre-processing pipelines. Component-level ablation experiments further demonstrate the complementary contributions of the semantic and statistical feature-reduction components. The repeated generation, validation, execution, and assessment of candidate pipelines are amenable to parallel execution, highlighting the potential of scalable computing environments, including high-performance computing (HPC) systems, to support automated IDS pipeline development.

Index Terms—Intrusion detection, LLM, data pre-processing, UNSW-NB15, AutoDP-LLM, feature selection, machine learning, Internet of Things, automation.

I. INTRODUCTION

In the contemporary digital landscape, the increasing complexity and scale of modern cyber-attacks have made cybersecurity an increasingly critical concern, requiring intelligent and computationally efficient Intrusion Detection Systems (IDS). IDS serve as an important defense mechanism by monitoring network traffic and system activities to identify anomalous behavior and potential security threats [1]. However, as cyber threats become increasingly sophisticated, particularly with the emergence of zero-day exploits and previously unseen attack patterns, traditional signature-based IDS may be insufficient to provide effective detection. Consequently, research has increasingly shifted toward machine learning (ML)-based IDS approaches, which have shown promising capabilities for detecting novel and complex attack patterns [2].

Despite their potential, the effectiveness of ML-based IDS models depends strongly on the quality of input data. Benchmark intrusion detection datasets, such as UNSW-NB15 and NSL-KDD, are often high-dimensional and heterogeneous, containing both numerical and categorical features [3] [4]. Data pre-processing, including cleaning, normalization, encoding, feature engineering, and feature selection, therefore plays an important role in improving the quality and usability of the data for downstream learning models. However, designing effective data pre-processing pipelines for IDS remains a labor-intensive and expertise-driven task [5]. In practice, identifying suitable data transformations, feature subsets, and parameter configurations often involves repeated trial-and-error exploration. For large-scale and high-dimensional network traffic datasets, the repeated generation, execution, and evaluation of multiple candidate pipelines may introduce considerable computational overhead and scalability challenges, particularly when numerous alternative configurations must be assessed. Additionally, pre-processing pipelines are often dataset-dependent, and a pipeline developed for one dataset may not generalize well to another dataset with different traffic characteristics, feature distributions, or attack compositions. As a result, applying existing pipelines to new datasets often requires additional manual redesign and tuning effort. Furthermore, suboptimal pre-processing decisions may negatively affect IDS performance, potentially increasing false alarms or reducing attack detection capability. Recent advances in Large Language Models (LLMs) have demonstrated promising capabilities in contextual reasoning, task adaptation, and automated code generation [6], [7], creating new opportunities for intelligent automation in data engineering tasks.

Bao-Phong Nguyen, Gia-Khanh Pham, Thai-Duong Do, Huan Vu, and Thien Van Luong are with Business AI Lab, College of Technology, National Economics University, Hanoi, Vietnam (e-mail: {phongnb.bai, khanhpg.bai, duongdt.bai}@st.neu.edu.vn, {huanv, thienlv}@neu.edu.vn).

Mai Xuan Trang is with A2I Lab, School of Computing, Phenikaa University, Hanoi, Vietnam (e-mail: trang.maixuan@phenikaa-uni.edu.vn).

Minh-Tuan Le is with the Faculty of Electrical and Electronic 1, Posts and Telecommunications Institute of Technology, Hanoi, Vietnam (e-mail: tuanlm@ptit.edu.vn).

Motivated by these challenges, we propose AutoDP-LLM, an LLM-driven automated pre-processing framework for intrusion detection. The proposed framework analyzes dataset metadata and task descriptions to automatically synthesize executable data transformation and feature-reduction pipelines, thereby reducing manual engineering effort and reliance on repeated trial-and-error design. Furthermore, the repeated generation,

Xuan-Nam Tran is with Advanced Wireless Communications Group, Le Quy Don Technical University, Hanoi, Vietnam (e-mail: namtx@lqdtu.edu.vn).

Tien-Cuong Nguyen is with VNPT AI, VNPT Group, Hanoi, Vietnam (e-mail: nguyentiencuong@vnpt.vn).

Vu-Duc Ngo is with MobiFone HighTech Center, MobiFone Corp., Hanoi, Vietnam (e-mail: duc.ngo@mobifone.vn).

Corresponding author: Thien Van Luong (e-mail: thienlv@neu.edu.vn) validation, execution, and evaluation of candidate pipelines can benefit from scalable computing environments, including parallel, distributed, and HPC-enabled infrastructures, particularly for large-scale IDS datasets or multiple candidate pipelines. The main contributions of this work are summarized as follows:

  • We propose AutoDP-LLM, an automated pre-processing framework that combines deterministic host-side planning with LLM-based specialist agents to generate and validate executable data transformation, resampling, and feature-reduction pipelines for intrusion detection datasets.

  • We develop a three-stage architecture integrating analysis and host planning, transformation and resampling, and feature reduction, together with structured contract validation and repair to ensure that the generated functions satisfy predefined structural and runtime requirements before pipeline execution.

  • We develop an adaptive feature-reduction strategy that integrates semantic feature lineage and pruning with training-derived Random Forest and mutual-information evidence to construct compact feature sets without requiring a predefined feature budget. Component-level ablation experiments further evaluate the contributions of the semantic and statistical components.

  • We conduct a comprehensive evaluation on the UNSW-NB15 and NSL-KDD benchmark datasets under multiclass intrusion detection settings. The evaluation covers multiple downstream classifiers, comparative feature-selection baselines, repeated pipeline-generation runs, and different LLM backbones, considering predictive performance, execution time, performance variability, API latency, and computational overhead. Experimental results show that, under the selected representative classifier for each dataset, AutoDP-LLM achieves higher weighted F1F_{1}-scores than all reimplemented comparative baselines while maintaining competitive execution time.

The rest of this paper is organized as follows. Section II reviews related work on manual data pre-processing and LLM-based approaches in cybersecurity, outlining the motivation for this work. Section III presents the proposed AutoDP-LLM framework, including its architecture, automated data pre-processing workflow, feature-reduction method, and downstream evaluation procedure. Section IV presents the experimental results and discussion, evaluating the proposed framework on the UNSW-NB15 and NSL-KDD datasets. Finally, Section V concludes the paper and outlines future work.

References (24)