arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.18015cs.LGcs.DBcs.SE
收藏

LogRouter: 一种自适应的两级LLM路由用于大数据系统中的日志问题解答

LogRouter: Adaptive Two-Level LLM Routing for Log Question Answering in Big Data Systems

TUBITAK BILGEM(土耳其国家研究 institute)

Mert Coskuner, Merve Zeybel, Melik Mert Dolan

AI总结:

本文提出LogRouter,一种自适应两级LLM路由系统,用于在大数据系统中实现日志问题解答,通过结合PySpark-based Drain3数据摄入管道、GPU加速的嵌入和Apache Druid和PostgreSQL with pgvector的双索引存储,实现高效的日志查询处理。

摘要:

在自托管、资源受限的环境中,生产日志分析需要自然语言访问大规模日志流,而无需将每个查询路由通过大型语言模型的费用。我们提出了LogRouter,一个部署在TUBITAK BILGEM国家大数据平台上的端到端日志问题解答系统,结合了基于PySpark的Drain3数据摄入管道、GPU加速的嵌入以及Apache Druid和PostgreSQL with pgvector的双索引存储。一个两级成本感知路由器将每个查询沿着四个执行路径之一进行路由:直接响应、Druid关键词搜索、使用SQL生成的模板查找和pgvector语义检索,同时二级路由器选择14B或32B类生成器用于语义路径。一个专用的编码器LLM处理文本到SQL生成。我们在四个LogHub数据集(Linux、Apache、Windows和Mac;共70个问题)上评估了该系统,分别在在线完整管道配置和隔离生成器的离线配置下进行测试。路由器在各数据集上的平均准确率为88.4%,在Linux上为94.7%。完整管道的平均ROUGE-1为0.373,BERTScore为0.879,RAGAS Faithfulness为0.779,端到端延迟为18.6秒。在公平的离线比较中,路由系统将平均延迟减少了55%(与Fixed-32B基线46.3秒 vs. 102.1秒相比),同时保持答案正确性在5.8分以内,并在所有数据集上超过Fixed-14B基线的RAGAS Faithfulness。因此,成本感知的路由是生产日志QA的实用机制:路由恢复了始终使用32B配置的大部分质量,延迟不到一半,且L1关键词词汇表使路由决策具有高精度,而无需使用学习分类器。

英文摘要:

Production log analytics in self-hosted, resource-constrained environments requires natural-language access to massive log streams without the cost of routing every query through a large language model. We present LogRouter, an end-to-end log question-answering system deployed on TUBITAK BILGEM's national big data platform that combines a PySpark-based Drain3 ingestion pipeline, GPU-accelerated embeddings, and dual-index storage in Apache Druid and PostgreSQL with pgvector. A two-level cost-aware router dispatches each query along one of four execution paths: direct response, Druid keyword search, template lookup with SQL generation, and pgvector semantic retrieval, while a Level-2 router selects either a 14B-class or 32B-class generator for the semantic path. A dedicated coder LLM handles text-to-SQL generation. We evaluate the system on four LogHub datasets (Linux, Apache, Windows, and Mac; 70 questions in total) under both an online full-pipeline configuration and an offline configuration that isolates the generator. The router reaches 88.4% mean accuracy across datasets and 94.7% on Linux, while the full pipeline attains a mean ROUGE-1 of 0.373, BERTScore of 0.879, RAGAS Faithfulness of 0.779, and an end-to-end latency of 18.6 s. In an apples-to-apples offline comparison, the routed system reduces mean latency by 55% versus a Fixed-32B baseline (46.3 s vs. 102.1 s) while preserving Answer Correctness within 5.8 points and exceeding a Fixed-14B baseline on RAGAS Faithfulness across every dataset. Cost-aware dispatching is therefore a practical mechanism for production log QA: routing recovers most of the quality of an always-32B configuration at less than half the latency, and the L1 keyword vocabulary makes that routing decision with high precision without a learned classifier.

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

↑