用大模型知识增强小模型,让日志分析更准更快
LUK: Empowering Log Understanding with Expert Knowledge from Large Language Models
- 用多角色大模型自动提取专家知识
- 小模型在日志任务上达到顶尖效果
- 适合资源有限但需高精度日志分析的场景
日志在系统监控与故障排查中至关重要。尽管大语言模型(LLMs)如GPT-4在自然语言处理中表现卓越,但其高成本和低效推理限制了其在日志分析中的应用。相比之下,较小的预训练语言模型(PLMs)如BERT虽计算成本低、易微调,却因缺乏专家知识而难以全面理解日志。为此,本文提出LUK框架,通过自动从LLMs获取专家知识,并增强小型PLM的日志分析能力。LUK设计了基于多角色协作的大模型知识获取机制,并引入两项新型预训练任务以融合专家知识。在多个日志分析任务上,LUK均达到当前最优性能。实验表明,利用大模型知识可更有效地提升小模型对日志的理解能力。代码与数据详见https://github.com/LeaperOvO/LUK。
原文摘要 · Abstract (English)
Logs play a critical role in providing essential information for system monitoring and troubleshooting. Recently, with the success of pre-trained language models (PLMs) and large language models (LLMs) in natural language processing (NLP), smaller PLMs (such as BERT) and LLMs (like GPT-4) have become the current mainstream approaches for log analysis. Despite the remarkable capabilities of LLMs, their higher cost and inefficient inference present significant challenges in leveraging the full potential of LLMs to analyze logs. In contrast, smaller PLMs can be fine-tuned for specific tasks even with limited computational resources, making them more practical. However, these smaller PLMs face challenges in understanding logs comprehensively due to their limited expert knowledge. To address the lack of expert knowledge and enhance log understanding for smaller PLMs, this paper introduces a novel and practical knowledge enhancement framework, called LUK, which acquires expert knowledge from LLMs automatically and then enhances the smaller PLM for log analysis with these expert knowledge. LUK can take full advantage of both types of models. Specifically, we design a multi-expert collaboration framework based on LLMs with different roles to acquire expert knowledge. In addition, we propose two novel pre-training tasks to enhance the log pre-training with expert knowledge. LUK achieves state-of-the-art results on different log analysis tasks and extensive experiments demonstrate expert knowledge from LLMs can be utilized more effectively to understand logs. Our source code and detailed experimental data are available at https://github.com/LeaperOvO/LUK.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。