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

HLogformer:一种用于表示日志数据的分层Transformer

Efficient Hierarchical Transformers for Representing Log Data

North Carolina State University(北卡罗来纳州立大学);Amazon Web Services(亚马逊云科技)

Zhichao Hou, Mina Ghashami, Mikhail Kuznetsov, Zifan Zhang, Ali Torkamani

AI总结:

HLogformer提出一种针对字典式分层日志数据的动态分层Transformer框架,通过利用日志条目的嵌套结构降低内存成本并增强分层上下文表示,在异常检测和产品推荐等下游任务中表现出色。

摘要:

Transformer因其在处理多种数据结构方面的通用性而广受赞誉,但它们在日志数据上的应用仍未得到充分探索。日志数据以其分层的、类似字典的结构为特征,在使用传统Transformer模型处理时带来了独特的挑战。传统方法通常依赖人工设计的模板来解析日志,这一过程劳动密集且缺乏泛化能力。此外,标准Transformer对日志序列的线性处理忽视了日志条目内部丰富的嵌套关系,导致表示效果不佳并造成过高的内存消耗。为了解决这些问题,我们提出了HLogformer,这是一种专为日志数据设计的新型分层Transformer框架。HLogformer利用日志条目的分层结构显著降低内存成本并增强表示学习。与将日志数据视为扁平序列的传统模型不同,我们的框架以尊重日志条目固有分层组织的方式对其进行处理。该方法确保了对细粒度细节和更广泛的上下文关系进行全面编码。我们的贡献有三个方面:第一,HLogformer是首个为类似字典的日志数据设计动态分层Transformer的框架。第二,它大幅降低了处理长日志序列所带来的内存成本。第三,全面的实验表明,HLogformer能够更有效地编码分层上下文信息,证明其在合成异常检测和产品推荐等下游任务中具有很高的有效性。

英文摘要:

Transformers have gained widespread acclaim for their versatility in handling diverse data structures, yet their application to log data remains underexplored. Log data, characterized by its hierarchical, dictionary-like structure, poses unique challenges when processed using conventional transformer models. Traditional methods often rely on manually crafted templates for parsing logs, a process that is labor-intensive and lacks generalizability. Additionally, the linear treatment of log sequences by standard transformers neglects the rich, nested relationships within log entries, leading to suboptimal representations and excessive memory usage. To address these issues, we introduce HLogformer, a novel hierarchical transformer framework specifically designed for log data. HLogformer leverages the hierarchical structure of log entries to significantly reduce memory costs and enhance representation learning. Unlike traditional models that treat log data as flat sequences, our framework processes log entries in a manner that respects their inherent hierarchical organization. This approach ensures comprehensive encoding of both fine-grained details and broader contextual relationships. Our contributions are threefold: First, HLogformer is the first framework to design a dynamic hierarchical transformer tailored for dictionary-like log data. Second, it dramatically reduces memory costs associated with processing extensive log sequences. Third, comprehensive experiments demonstrate that HLogformer more effectively encodes hierarchical contextual information, proving to be highly effective for downstream tasks such as synthetic anomaly detection and product recommendation.

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

↑