Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Dynamic Adaptation of ML Algorithms for Real-time Resilience (Ensemble Learning Enhanced with LLM-Based Interpretation)
Stockholm University, Faculty of Social Sciences, Department of Computer and Systems Sciences.
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

The growing complexity and volume of cyber threats necessitate adaptive Intrusion Detection Systems (IDS) capable of real-time learning. Traditional IDS models rely on static datasets and offline training, making them ineffective against zero-day attacks and dynamic threats. To address these limitations, this study explores the integration of ensemble learning and online learning techniques augmented by a lightweight retrieval-augmented Large Language Model (LLM) to enhance IDS adaptability, detection accuracy, and interpretability.

the research problem this study aims to address is: In resource-constrained settings, online learning algorithms need to be effectively coupled with light-weight LLMs to build an interpretable online intrusion detection system that adapts in real time, improves detection and adaptation of unknown/novel threats, and provides human-understandable explanations while reducing retraining costs.

The proposed model combines multiple online classifiers, Adaptive Random Forest, Online k-Nearest Neighbors, and Online Naïve Bayes, within a stacking-based ensemble, while the LLM acts as a second-stage verifier that filters potential false positives and generates concise natural-language explanations. This architecture supports continuous model updates without full retraining, allowing the IDS to adapt dynamically to evolving attack patterns.

Evaluated on the CIC-IDS2017 dataset, the system attains 95.99% precision, 99.14% recall, and a 97.54% F1-score for known attacks when the LLM module is enabled. For previously unseen attacks, the IDS achieves 96.29% precision, 92.15% recall, and a 94.17% F1-score after online adaptation. With more features included in RAG, it achieves better performance in recall with 93.81% precision, 95.27% recall and 94.55% F1 score. These results confirm its ability to learn from new threat signals in real time.

These findings demonstrate that the proposed LLM-enhanced IDS meets key requirements for real-time learning, high detection performance, and human-readable explanations, offering a practical path toward more resilient cybersecurity defenses in dynamic network environments.

Place, publisher, year, edition, pages
2025.
Keywords [en]
IDS, LLM, ML, Ensemble Learning
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:su:diva-246360OAI: oai:DiVA.org:su-246360DiVA, id: diva2:1994032
Available from: 2025-09-02 Created: 2025-09-02

Open Access in DiVA

fulltext(861 kB)295 downloads
File information
File name FULLTEXT01.pdfFile size 861 kBChecksum SHA-512
58304894660f7c3445e41b0ed3d2173437ad50445f3e820fba49f2962308078454f4a34a815add4af0af134ed66d3e9c4072918b50f11b4d9402a31e9e39d5c8
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Ba, Yue
By organisation
Department of Computer and Systems Sciences
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 296 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 538 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf