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

HYVE:用于机器数据上的LLM上下文工程的混合视图

HYVE: Hybrid Views for LLM Context Engineering over Machine Data

Jian Tan, Fan Bu, Yuqing Gao, Dev Khanolkar, Jason Mackay, Boris Sobolev, Lei Jin, Li Zhang

AI总结:

HYVE通过预处理和后处理框架优化LLM处理大规模机器数据的能力,减少token使用并提升输出质量,尤其在图表生成和异常检测任务中表现突出。

摘要:

机器数据是现代计算系统可观测性和诊断的核心,出现在日志、指标、遥测跟踪和配置快照中。当提供给大型语言模型(LLMs)时,这种数据通常以自然语言和结构化负载(如JSON或Python/AST字面量)混合形式出现。然而,LLMs在处理此类输入时仍然脆弱,特别是当输入长、嵌套深且结构重复时。我们提出了HYVE(混合视图),一种受数据库管理原则启发的LLM上下文工程框架,用于包含大型机器数据负载的输入。HYVE围绕一个请求作用域的数据存储,附加了模式信息,进行协调的预处理和后处理。在预处理阶段,HYVE检测原始输入中的重复结构,在数据存储中材料化它,将其转换为混合列式和行式视图,并选择性地仅向LLM暴露最相关的表示。在后处理阶段,HYVE要么直接返回模型输出,查询数据存储以恢复被省略的信息,或执行受SQL增强的语义合成的有界额外LLM调用。我们评估了HYVE在多样化的现实世界工作负载上,涵盖知识问答、图表生成、异常检测和多步网络故障排除。在这些基准测试中,HYVE将token使用量减少50-90%,同时保持或提高输出质量。在结构化生成任务中,它将图表生成的准确性提高高达132%,并将延迟降低高达83%。总体而言,HYVE为由大规模机器数据负载主导的提示提供了一个实用的近似方法,以实现有效无界的上下文窗口。

英文摘要:

Machine data is central to observability and diagnosis in modern computing systems, appearing in logs, metrics, telemetry traces, and configuration snapshots. When provided to large language models (LLMs), this data typically arrives as a mixture of natural language and structured payloads such as JSON or Python/AST literals. Yet LLMs remain brittle on such inputs, particularly when they are long, deeply nested, and dominated by repetitive structure. We present HYVE (HYbrid ViEw), a framework for LLM context engineering for inputs containing large machine-data payloads, inspired by database management principles. HYVE surrounds model invocation with coordinated preprocessing and postprocessing, centered on a request-scoped datastore augmented with schema information. During preprocessing, HYVE detects repetitive structure in raw inputs, materializes it in the datastore, transforms it into hybrid columnar and row-oriented views, and selectively exposes only the most relevant representation to the LLM. During postprocessing, HYVE either returns the model output directly, queries the datastore to recover omitted information, or performs a bounded additional LLM call for SQL-augmented semantic synthesis. We evaluate HYVE on diverse real-world workloads spanning knowledge QA, chart generation, anomaly detection, and multi-step network troubleshooting. Across these benchmarks, HYVE reduces token usage by 50-90% while maintaining or improving output quality. On structured generation tasks, it improves chart-generation accuracy by up to 132% and reduces latency by up to 83%. Overall, HYVE offers a practical approximation to an effectively unbounded context window for prompts dominated by large machine-data payloads.

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

↑