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

Merlin:用于无损上下文优化的大语言模型推理中的确定性字节精确去重

Merlin: Deterministic Byte-Exact Deduplication for Lossless Context Optimization in Large Language Model Inference

Corbenic AI, Inc.(Corbenic AI公司)

Sietse Schelpe

AI总结:

Merlin通过高效去重和上下文优化提升大语言模型推理效率,减少冗余文本处理瓶颈,实验显示在高冗余数据中减少71%输入,保持数据完整性。

摘要:

数据密集型应用,从大规模检索系统到高级数据管道,日益受到高度冗余文本语料处理的限制。我们提出了Merlin,一种本地优先、通用、高吞吐量的去重和上下文优化引擎,旨在缓解这些低效问题。利用高度优化的SIMD友好的开放地址扁平哈希集结合xxHash3-64,Merlin能够快速、精确地去重文本段落和数据块。尽管广泛适用于任何文本处理流程,其影响在大语言模型(LLM)生态系统中尤为显著,如检索增强生成(RAG)。我们的实证评估显示,输入减少范围从低冗余数据集的13.9%到高冗余管道的71%以上,保持绝对数据保真度。此外,我们通过模型上下文协议(MCP)详细说明了系统的集成架构,使该系统能够在主要IDE和自主代理中实现安全、无网络拦截部署。本文概述了核心算法设计、性能基准以及处理数据的架构原则,以实现持续高达8.7 GB/s的速度。

英文摘要:

Data-intensive applications, ranging from large-scale retrieval systems to advanced data pipelines, are increasingly bottlenecked by the processing of highly redundant text corpora. We present Merlin, a local-first, agnostic, high-throughput deduplication and context optimization engine designed to mitigate these inefficiencies. Utilizing a highly optimized, SIMD-friendly open-addressing flat hash set combined with xxHash3-64, Merlin performs rapid, byte-exact deduplication of text passages and data chunks. While broadly applicable to any text-processing workflow, its impact is particularly pronounced in Large Language Model (LLM) ecosystems, such as Retrieval-Augmented Generation (RAG). Our empirical evaluations demonstrate an input reduction ranging from 13.9% in low-redundancy datasets to over 71% in high-redundancy pipelines, maintaining absolute data fidelity. Furthermore, we detail the system's integration architecture via the Model Context Protocol (MCP), enabling secure, zero-network-interception deployment across major IDEs and autonomous agents. This paper outlines the core algorithmic design, performance benchmarks, and the architectural principles required to process data at sustained speeds of up to 8.7 GB/s.

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

↑