AttackQA:用于辅助网络安全运营的微调开源大语言模型数据集的开发与应用
AttackQA: Development and Adoption of a Dataset for Assisting Cybersecurity Operations using Fine-tuned and Open-Source LLMs
AI总结:
本研究构建了含25335个带推理依据问答对的网络安全数据集AttackQA,通过开源模型生成与质量校验,结合微调开源嵌入及大模型搭建RAG系统,性能超越GPT-4o,还实现了全开源高速RAG与评估流水线。
摘要:
当大语言模型(LLM)经过微调以生成对用户查询的回复时,基于专业领域数据集的检索增强生成(RAG)已展现出更优的性能。本研究中,我们构建了一个名为AttackQA的网络安全问答(Q&A)数据集,并利用它搭建了一套面向安全运营中心分析师的基于RAG的问答系统。该数据集包含25335个问答对,同时配有推理依据,以支持微调与评估工作。数据集中80%的内容是借助轻量级开源大模型LLama 3 8B生成的,该模型在SambaNova System的SN40L专用硬件上以全16位精度运行时,每秒可生成超过1100个token。为保障数据集质量,我们对LLama 3 70B进行微调,用于检测并剔除低质量问答对。在将该数据集用于RAG的实验中,我们证实,对开源嵌入模型和大语言模型进行微调,其准确率能够优于OpenAI的前沿专有嵌入模型与专有大模型GPT-4o。此外,我们采用Llama 3.1 405B作为裁判模型来评估答案的正确性,由此构建出一套完全开源、高速的RAG与评估流水线,并附带模型准确率基准。
英文摘要:
Retrieval-augmented generation (RAG) on specialized domain datasets has shown improved performance when large language models (LLMs) are fine-tuned for generating responses to user queries. In this study, we develop a cybersecurity question-answering (Q\&A) dataset, called AttackQA, and employ it to build a RAG-based Q\&A system designed for analysts in security operations centers. The dataset comprises 25,335 Q\&A pairs, accompanied by rationales to facilitate fine-tuning and evaluation. 80\% of the dataset was generated with help of a lightweight open-source LLM (LLama 3 8B), which produced over 1100 tokens per second with full 16-bit precision on SambaNova System's SN40L specialized hardware. To ensure dataset quality, we fine-tuned LLama 3 70B to detect and reject low-quality Q\&A pairs. In using the dataset for RAG, we demonstrate that fine-tuning open-source embeddings and LLMs can yield superior accuracy compared to OpenAI's state-of-the-art proprietary embedding and LLM (GPT-4o). Furthermore, we use Llama 3.1 405B as a judge to evaluate answer correctness, enabling the creation of a fully open-source, high-speed RAG and evaluation pipeline with a benchmark for model accuracy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。