arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.22223cs.LGcs.AIcs.CRcs.NI
收藏

ReGAIN:基于检索的网络流量分析人工智能框架

ReGAIN: Retrieval-Grounded AI Framework for Network Traffic Analysis

Computer Science(计算机科学);North Carolina A\&T State University(北卡罗来纳A&T州立大学);Institute for Cyber Security(网络安全研究所);University of Texas at San Antonio(德克萨斯大学圣安东尼奥分校)

Shaghayegh Shajarian, Kennedy Marsh, James Benson, Sajad Khorsandroo, Mahmoud Abdelsalam

AI总结:

ReGAIN结合流量摘要、检索增强生成和大语言模型推理,实现透明准确的网络流量分析,通过多阶段框架提升安全性和性能,验证结果显示其在不同攻击类型中准确率高达95.95%-98.82%。

摘要:

现代网络生成大量异构流量,需持续分析以确保安全和性能。传统网络流量分析系统,无论是基于规则还是机器学习驱动的,往往存在高误报率且缺乏可解释性,限制了分析师的信任。本文提出了ReGAIN,一个多阶段框架,结合流量摘要、检索增强生成(RAG)和大语言模型(LLM)推理,实现透明且准确的网络流量分析。ReGAIN从网络流量生成自然语言摘要,将其嵌入多集合向量数据库,并利用分层检索流程将证据引用嵌入LLM响应中。该流程包括基于元数据的过滤、MMR采样、两阶段交叉编码器重排序机制以及退避机制,以减少幻觉并确保基于证据的推理。在ICMP ping洪水和TCP SYN洪水轨迹上进行评估,其在不同攻击类型和评估基准中的准确率在95.95%至98.82%之间。这些结果通过两个互补来源验证:数据集真实性和人类专家评估。ReGAIN还优于基于规则、经典机器学习和深度学习的基线方法,同时通过可信、可验证的响应提供独特的可解释性。

英文摘要:

Modern networks generate vast, heterogeneous traffic that must be continuously analyzed for security and performance. Traditional network traffic analysis systems, whether rule-based or machine learning-driven, often suffer from high false positives and lack interpretability, limiting analyst trust. In this paper, we present ReGAIN, a multi-stage framework that combines traffic summarization, retrieval-augmented generation (RAG), and Large Language Model (LLM) reasoning for transparent and accurate network traffic analysis. ReGAIN creates natural-language summaries from network traffic, embeds them into a multi-collection vector database, and utilizes a hierarchical retrieval pipeline to ground LLM responses with evidence citations. The pipeline features metadata-based filtering, MMR sampling, a two-stage cross-encoder reranking mechanism, and an abstention mechanism to reduce hallucinations and ensure grounded reasoning. Evaluated on ICMP ping flood and TCP SYN flood traces from the real-world traffic dataset, it demonstrates robust performance, achieving accuracy between 95.95% and 98.82% across different attack types and evaluation benchmarks. These results are validated against two complementary sources: dataset ground truth and human expert assessments. ReGAIN also outperforms rule-based, classical ML, and deep learning baselines while providing unique explainability through trustworthy, verifiable responses.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑