[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-142549-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-142549-en":131,"doc-similar-142549":163},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","merlin-deterministic-byte-exact-deduplication-for-lossless-context-optimization-in-large-language-model-inference-preprint","Merlin: Deterministic Byte-Exact Deduplication for Lossless Context Optimization in Large Language Model Inference - Preprint","","Pre-prompt deduplication of retrieved or accumulated context is useful only when its per-call overhead remains below the inference proxy’s noise floor. This paper provides empirical evidence for a deterministic byte-exact deduplication primitive with 3–4 orders of magnitude latency headroom versus typical LLM budgets. Across 40 evaluation cells spanning multiple production LLM APIs and academic benchmarks, quality deltas remain effectively neutral, with no statistically significant degradations after correction, and full byte-identical output equivalence on non-code prompts. The engine is a single, statically linked binary and scales via cross-corpus validation at 22.2M passages.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/merlin-deterministic-byte-exact-deduplication-for-lossless-context-optimization-in-large-language-model-inference-preprint/142549/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/merlin-deterministic-byte-exact-deduplication-for-lossless-context-optimization-in-large-language-model-inference-preprint/142549.png","ImageObject",300,407,{"name":42,"@type":43},"Taylor Morgan","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-16","2026-08-25",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",12,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"Why is pre-prompt deduplication only beneficial under certain cost constraints?","Question",{"text":63,"@type":64},"Deduplication helps only if its per-call overhead stays below the inference proxy’s noise floor, so the paper evaluates runtime costs relative to typical preprocessing and full inference budgets.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"Does byte-exact deduplication change model quality in evaluation benchmarks?",{"text":68,"@type":64},"Across multiple APIs and established benchmarks, the quality delta attributable to byte-exact deduplication is effectively neutral, with no statistically significant degradations after Bonferroni correction.",{"name":70,"@type":61,"acceptedAnswer":71},"How is lossless behavior validated in the paper?",{"text":72,"@type":64},"Binary-output equivalence is measured between the production binary and an independent reference wrapper, yielding 100% byte-identical results on all non-code prompts and 99.2% overall.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},142549,1787683212,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,111,115,120,123,127],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":107,"doc_module":4,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},7,"Healthcare",40,"healthcare",{"id":112,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":113,"slug":114},8,30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":97,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":112,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":140,"language":141,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":12,"update_tm":80,"read_time":145,"preview_page_count":33,"preview_urls":146},1099523885336,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","arXiv :2605 .09990v1 [ cs .CL] 11 May 2026  \nMerlin Paper Portfolio 1  \nMerlin: Deterministic Byte-Exact Deduplication for Lossless Context Optimization in Large Language Model Inference  \nSietse Schelpe Corbenic AI, [Inc. sietse@corbenic.ai](Inc. sietse@corbenic.ai)[ ](Inc. sietse@corbenic.ai)[Preprint](Preprint), [9 May 2026](9 May 2026).  \nPre-registration (FreeTSA RFC 3161): Methodology decisions for both companion papers are anchored via FreeTSA RFC 3161. The protocol document is [extension_n400_protocol.md](extension_n400_protocol.md) (SHA- 256 5575836967fe1a149b63a7fa63a1b3d11d598fb71343e2e19a546e680f4a3294), stamped 2026-05- 05 at 11:28 RDT, TSA serial 0x049CB8D0 . The protocol document explicitly inherits the prior baseline pre-registration ([paper1_extension_protocol.md](paper1_extension_protocol.md), stamped 2026-05-05 08:45:46 GMT, serial 0x049C5280) . Both stamps are verifiable offline via openssl ts-verify.  \nAbstract  \nPre-prompt deduplication of retrieved or accumulated context is operationally attractive only if its per-call cost falls below the noise floor of the inference proxy itself. We present empirical evidence for a deterministic byte-exact deduplication primitive that satisfies this constraint with three to four orders of magnitude of headroom: median 1.10 microsecond in-process latency against typical inference budgets of 10 to 100 milliseconds (preprocessing) and 1 to 10 seconds (full inference call) . Pure engine work, measured on a representative top-k=15 retrieval workload with 3:1 redundancy, has median latency of approximately 1.1 microseconds when the dedup loop is run as an in-process function call, and approximately 5 to 30 microseconds as observed via the production binary’s internal counter on typical inference-call workloads. Subprocess invocation adds approximately 13 milliseconds (pipe IPC) or 21 milliseconds (tempfile + subprocess) of operating-system overhead unrelated to the engine itself. Across forty primary evaluation cells spanning four production language-model APIs (Google Gemini 2.5 Flash, OpenAI GPT-5.1, Anthropic Claude Sonnet 4.6, Meta Llama 3.3 70B) and three established academic benchmarks (RULER long-context retrieval, LongBench paragraph-safe longdocument tasks, HumanEval-Snowball with real WildChat dialogue history), and a separate twohundred-cell pipeline confirmation pass using a warm binary, the aggregate quality delta attributable to byte-exact deduplication is +0.0 percentage points on the primary sweep and-0.5 percentage points on the confirmation pass, with zero statistically significant degradations after Bonferroni correction within either family. Binary-output equivalence between the production binary and an independent reference wrapper, measured on Windows x86-64, is 100% on all non-code prompts (590/590 byteidentical) and 99.2% overall (635/640) . The engine is a single-binary implementation that is CPU bound with no runtime dependencies beyond the OS-provided C++/C runtime: 3.8 MB on Windows x86-64 and 3.5 MB on Linux ARM64, both statically linked. Empirical validation at scale: 22.2M passage cross-corpus run on real public BeIR data. Math-equivalence verified: merlin unique count equals Python set() unique_count for all 22.2M passages, zero violations. The primary contribution is the safety property: byte-exact deduplication preserves model quality at evaluation-grade resolution across multiple public benchmarks and corpus redundancy regimes. The companion paper extends the panel-validated safety claim to substantial byte removal on the RAG retrieval mechanism via a matched 5-judge panel measurement at multiplicity = 3 .513 (71 .98% byte reduction) with humanin-the-loop noise removal, under which all four production vendors clear the strict \u003C5% Wilson 95% upper-bound MAT threshold (post-audit UCLs 1.90%-4.34%) . The companion paper characterizes three byte-reduction regimes from 0.16%(clean academic) to 24.03%(constructed enterprise) to 80.34%  \nMerlin Pa","cbCailQj4G6f7ueX","https://ap.wps.com/l/cbCailQj4G6f7ueX","pdf",753952,28,"English","# Abstract\n## Introduction\n## Method and Deterministic Deduplication\n## Evaluation Setup and Benchmarks\n## Results: Latency, Quality, and Equivalence\n## Empirical Validation at Scale\n## Contribution and Companion Work","[{\"question\":\"Why is pre-prompt deduplication only beneficial under certain cost constraints?\",\"answer\":\"Deduplication helps only if its per-call overhead stays below the inference proxy’s noise floor, so the paper evaluates runtime costs relative to typical preprocessing and full inference budgets.\"},{\"question\":\"Does byte-exact deduplication change model quality in evaluation benchmarks?\",\"answer\":\"Across multiple APIs and established benchmarks, the quality delta attributable to byte-exact deduplication is effectively neutral, with no statistically significant degradations after Bonferroni correction.\"},{\"question\":\"How is lossless behavior validated in the paper?\",\"answer\":\"Binary-output equivalence is measured between the production binary and an independent reference wrapper, yielding 100% byte-identical results on all non-code prompts and 99.2% overall.\"}]","Merlin: Deterministic Byte-Exact Deduplication for Lossless Context Optimization in Large Language Model Inference - Preprint | PDF",71,[147,151,155,159],{"page_no":22,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-14/bfc5c9eafaaf3e5184f72ef5fd75e42f.webp",983,1272,{"page_no":26,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-14/ab3188b184931e2944d8bbf6f2385e60.webp",982,1270,{"page_no":30,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-14/eedca5becef3cf289e24f2ca6729e163.webp",981,1269,{"page_no":33,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-14/39d13a38ef04a2d6d8c891b3166a14e1.webp",980,1268,{"list":164,"token":11},[165,172,178,184,191,198,204,210,217,223],{"doc_id":166,"doc_title":167,"file_type":138,"home_preview_img_url":168,"slug":169,"view_count":170,"category_name":29,"create_tm":171},81836,"SemHash-LLM Multi-Granularity Semantic Hashing Framework for Document Deduplication","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808686218/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110739&Signature=NwCJx0yIrCtjjtPQ1NxvmoGs2Tc%3D","semhash-llm-multi-granularity-semantic-hashing-framework-for-document-deduplication",29,1784176523,{"doc_id":173,"doc_title":174,"file_type":138,"home_preview_img_url":175,"slug":176,"view_count":113,"category_name":29,"create_tm":177},83290,"Orchestrating Workflows with Declarative Deterministic–Probabilistic Composition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808959684/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110739&Signature=prEVGvXYt1lcL0GZyeIGNumcqgA%3D","orchestrating-workflows-with-declarative-deterministicprobabilistic-composition",1784186512,{"doc_id":179,"doc_title":180,"file_type":138,"home_preview_img_url":181,"slug":182,"view_count":170,"category_name":29,"create_tm":183},82778,"Candidate Constrained Retrieval Augmented Generation for LongEval RAG System Design and Empirical Analysis","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808788874/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110739&Signature=o%2B9rvUPZyQPr2GXmWoJ6kDr%2BVAk%3D","candidate-constrained-retrieval-augmented-generation-for-longeval-rag-system-design-and-empirical-analysis",1784182881,{"doc_id":185,"doc_title":186,"file_type":138,"home_preview_img_url":187,"slug":188,"view_count":189,"category_name":29,"create_tm":190},85695,"Replicating Belief, Not Bits: Epistemic State Replication for Agentic Systems","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809342743/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110739&Signature=FB%2BlYCZCEDXezQyro0ucQf0w8WA%3D","replicating-belief-not-bits-epistemic-state-replication-for-agentic-systems",25,1784205648,{"doc_id":192,"doc_title":193,"file_type":138,"home_preview_img_url":194,"slug":195,"view_count":196,"category_name":29,"create_tm":197},83357,"Multi-Agent Firewall Architecture for Privacy Protection of Sensitive Data in Interactions with Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808838128/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110739&Signature=Wkld4SOmZW8xbrUiIeBpbuPH9t8%3D","multi-agent-firewall-architecture-for-privacy-protection-of-sensitive-data-in-interactions-with-language-models",27,1784186975,{"doc_id":199,"doc_title":200,"file_type":138,"home_preview_img_url":201,"slug":202,"view_count":30,"category_name":29,"create_tm":203},698665,"LLM Evaluate - An Industry-Focused Evaluation Tool for Large Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010392363/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110739&Signature=9IIq7Wwtvuc2ZlfKGbKyu8BAqgo%3D","llm-evaluate-an-industry-focused-evaluation-tool-for-large-language-models",1794454353,{"doc_id":205,"doc_title":206,"file_type":138,"home_preview_img_url":207,"slug":208,"view_count":196,"category_name":29,"create_tm":209},81847,"Probabilistic Memory for Trustworthy Edge Intelligence","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808650166/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110739&Signature=FDTyeYZGbWxJBS99Tt26uGH5MUc%3D","probabilistic-memory-for-trustworthy-edge-intelligence",1784176625,{"doc_id":211,"doc_title":212,"file_type":138,"home_preview_img_url":213,"slug":214,"view_count":215,"category_name":29,"create_tm":216},85584,"A Fraud-Detection-Inspired Framework for LLM Agents Security","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809329700/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110739&Signature=IPNXOS775nX517Fj1h%2B8bN0o9rw%3D","a-fraud-detection-inspired-framework-for-llm-agents-security",34,1784204752,{"doc_id":218,"doc_title":219,"file_type":138,"home_preview_img_url":220,"slug":221,"view_count":215,"category_name":29,"create_tm":222},83890,"Toward Trustworthy Large Language Model Agents in Healthcare","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809112173/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110739&Signature=patojIQ77T2jCBcgeXYwSwT8MNw%3D","toward-trustworthy-large-language-model-agents-in-healthcare",1784191250,{"doc_id":224,"doc_title":225,"file_type":138,"home_preview_img_url":226,"slug":227,"view_count":228,"category_name":29,"create_tm":229},234,"XNX Gas Detector Calibration Guide 2023","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727733/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110739&Signature=Y4lEYidOO9OGBrvzECpsO5lCMPY%3D","xnx-gas-detector-calibration-2023",7896,1776136863]