arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.07626cs.LGcs.AI
收藏

AnomalyLLM:使用大语言模型进行动态图的少样本异常边检测

AnomalyLLM: Few-shot Anomaly Edge Detection for Dynamic Graphs using Large Language Models

Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Beijing Institute of Technology(北京理工大学);Jinan University(暨南大学);Southeast University(东南大学)

Shuo Liu, Di Yao, Lanting Fang, Zhetao Li, Wenbin Li, Kaiyu Feng, XiaoWen Ji, Jingping Bi

AI总结:

针对动态图异常边检测中标注样本少且类型不断涌现的问题,提出AnomalyLLM,结合大语言模型与动态感知编码器,通过上下文学习实现少样本异常检测,并在无需更新参数的情况下有效识别新型异常。

摘要:

动态图的异常边检测旨在识别显著偏离正常模式的边,可应用于网络安全、金融交易和AIOps等多个领域。随着时间的推移,异常边的类型不断涌现,且每种类型的标注异常样本很少。现有方法要么被设计用于检测随机插入的边,要么需要足够的标注数据来训练模型,这损害了它们在实际应用中的适用性。本文通过结合大语言模型(LLMs)中蕴含的丰富知识来研究这一问题,并提出了一种名为AnomalyLLM的方法。为了将动态图与LLMs对齐,AnomalyLLM预训练了一个动态感知编码器以生成边的表示,并利用词嵌入的原型对边进行重编程。伴随该编码器,我们设计了一个上下文学习框架,该框架整合了少量标注样本的信息以实现少样本异常检测。在四个数据集上的实验表明,AnomalyLLM不仅能显著提升少样本异常检测的性能,还能在不更新任何模型参数的情况下,在新型异常上取得优异的结果。

英文摘要:

Detecting anomaly edges for dynamic graphs aims to identify edges significantly deviating from the normal pattern and can be applied in various domains, such as cybersecurity, financial transactions and AIOps. With the evolving of time, the types of anomaly edges are emerging and the labeled anomaly samples are few for each type. Current methods are either designed to detect randomly inserted edges or require sufficient labeled data for model training, which harms their applicability for real-world applications. In this paper, we study this problem by cooperating with the rich knowledge encoded in large language models(LLMs) and propose a method, namely AnomalyLLM. To align the dynamic graph with LLMs, AnomalyLLM pre-trains a dynamic-aware encoder to generate the representations of edges and reprograms the edges using the prototypes of word embeddings. Along with the encoder, we design an in-context learning framework that integrates the information of a few labeled samples to achieve few-shot anomaly detection. Experiments on four datasets reveal that AnomalyLLM can not only significantly improve the performance of few-shot anomaly detection, but also achieve superior results on new anomalies without any update of model parameters.

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

↑