SchemaCoder:基于残差Q树提升的自动日志模式提取编码器
SchemaCoder: Automatic Log Schema Extraction Coder with Residual Q-Tree Boosting
AI总结:
SchemaCoder提出首个无需人工定制、适用于多种日志格式的自动模式提取框架,采用残差Q树提升机制迭代优化,在LogHub-2.0基准上平均提升21.3%。
摘要:
日志模式提取是从海量日志数据中推导出人类可读模板的过程,这一过程至关重要,但众所周知地耗费人力。近期研究尝试利用大型语言模型(LLMs)自动化模式提取来简化此任务。然而,现有方法总是依赖预定义的正则表达式,需要人类领域专业知识,严重限制了生产力提升。为从根本上解决此局限,我们引入SchemaCoder,这是首个完全自动化的模式提取框架,适用于各种日志文件格式,流程中无需人工定制。其核心在于,SchemaCoder采用新颖的残差问题树(Q-Tree)提升机制,通过LLM驱动的针对性自适应查询迭代优化模式提取。特别地,我们的方法通过上下文有界分割将日志划分为语义块,利用基于嵌入的采样选择代表性模式,并通过层次化Q-Tree驱动的LLM查询生成模式代码,由我们的文本残差进化优化器和残差提升迭代优化。实验验证表明,SchemaCoder在广泛使用的LogHub-2.0基准上具有优越性,相比最先进方法平均提升21.3%。
英文摘要:
Log schema extraction is the process of deriving human-readable templates from massive volumes of log data, which is essential yet notoriously labor-intensive. Recent studies have attempted to streamline this task by leveraging Large Language Models (LLMs) for automated schema extraction. However, existing methods invariably rely on predefined regular expressions, necessitating human domain expertise and severely limiting productivity gains. To fundamentally address this limitation, we introduce SchemaCoder, the first fully automated schema extraction framework applicable to a wide range of log file formats without requiring human customization within the flow. At its core, SchemaCoder features a novel Residual Question-Tree (Q-Tree) Boosting mechanism that iteratively refines schema extraction through targeted, adaptive queries driven by LLMs. Particularly, our method partitions logs into semantic chunks via context-bounded segmentation, selects representative patterns using embedding-based sampling, and generates schema code through hierarchical Q-Tree-driven LLM queries, iteratively refined by our textual-residual evolutionary optimizer and residual boosting. Experimental validation demonstrates SchemaCoder's superiority on the widely-used LogHub-2.0 benchmark, achieving an average improvement of 21.3% over state-of-the-arts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。