[Submitted on 2 Dec 2026 (
[v1](https://arxiv.org/abs/2612.03697v1)), last revised 3 Dec 2026 (this version, v2)]
[View PDF](https://arxiv.org/pdf/2612.03697)
[HTML (experimental)](https://arxiv.org/html/2612.03697v2)
Abstract:Multi-agent software engineering increasingly relies on specialized agents to generate, review, and validate code, creating redundancy when the same program is processed across different contexts. Cross-context key-value (KV) cache reuse can reduce this cost, but whether it preserves security-critical decisions remains unclear. We study this as an inference-fidelity problem by holding the model, code, prompt, and decoding configuration fixed and comparing approximate reuse against identical-input exact dense inference. Across 533 paired gate-hit executions spanning three open-weight models, KVCOMM admits 65.8% of validator calls to reuse and achieves a mean 2.52x TTFT speedup. Yet approximate execution changes 40.6-85.7% of security reports and silences 21.7-89.5% of dense vulnerability findings while creating at most 5.3% new findings. Most suppressed findings transition from FAIL to NOT APPLICABLE, revealing a strongly directional fidelity failure. A structurally distinct KV-reuse method, CacheBlend, reproduces the same pattern of decision deviation. PrimeVul experiments further show that both mechanisms can suppress dense detections corresponding to externally labeled vulnerabilities. Cross-context KV reuse can therefore improve inference efficiency while silently altering downstream security behavior.
Submission history #
From: Shreyas Mahajan Mahajan [
[view email](https://arxiv.org/show-email/8d3ac252/2612.03697)]
**Wed, 2 Dec 2026 12:04:10 UTC (71 KB)**
[\[v1\]](https://arxiv.org/abs/2612.03697v1)
**[v2]** Thu, 3 Dec 2026 09:21:37 UTC (71 KB)
Additional Features
References & Citations
...
Bibliographic Explorer
(What is the Explorer?) Connected Papers
(What is Connected Papers?) Litmaps
(What is Litmaps?) scite Smart Citations
(What are Smart Citations?) alphaXiv
(What is alphaXiv?) CatalyzeX Code Finder for Papers
(What is CatalyzeX?) DagsHub
(What is DagsHub?) Gotit.pub
(What is GotitPub?) Hugging Face
(What is Huggingface?) ScienceCast
(What is ScienceCast?) Influence Flower
(What are Influence Flowers?) CORE Recommender
(What is CORE?) arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.