HackerPapers

arXiv:2607.01308cs.MA

Cache Merging as a Convergent Replicated State for Multi-Agent Latent Reasoning

Carlos Baquero, Luís Brito

HN submission. Found in a submission link or body. Submitters do not count as commenters in the main ranking; a submission is not an endorsement.

Abstract

Multi-agent latent reasoning composes the KV-cache contributions of several agents into one context for a final agent. Prior work (Agent Primitives) does this by concatenating per-agent caches with RoPE re-encoding, a construction we name BagMerge. BagMerge is non-commutative, and the best input ordering is not predictable a priori: it shifts with deployment regime, latent-step budget, model scale, and model family. We make this cache exchange a convergent replicated state. CanonicalMerge fixes the layout by a content-determined ordering (mean K-norm at a middle layer), making the merged cache byte-identical under any input permutation, verified on synthetic tensors (N <= 5) and bit-for-bit on real Qwen3-1.7B and Qwen3-4B KV state. We then separate state from layout: the durable object is a set of content-addressed latent fragments merged by set union, a state-based CvRDT, and CanonicalMerge is its deterministic render, so every accuracy number is inherited and re-delivered duplicates are absorbed. On a partitioned-reasoning benchmark CanonicalMerge matches the best BagMerge ordering without knowing which it is (within 4 points in all 12 cells at 1.7B; same picture at 4B), and on Llama-3.1-8B, where the ordering gap grows to 19 points, it again tracks the best ordering. On HotpotQA (n = 200) and MuSiQue it is the best cache-level method, at a 7-point F1 cost against shipping the text on HotpotQA and at parity on MuSiQue, while the output-fusion baseline PackLLM trails by 45 points. At k > 2 we delimit the approach: cache merge transports latent traces but does not by itself compose them.

arXiv comments
33 pages. v2: adds a cross-family evaluation (Llama-3.1-8B), ordering-policy and zero-latent-step controls, a matched-budget text baseline, expanded natural-language evaluation (HotpotQA n=200, MuSiQue 2-hop), and an attention-mass analysis of the slot asymmetry; corrects the v1 HotpotQA reading (the n=50 parity does not hold at n=200)
Journal reference
DOI
Subjects
cs.MAMultiagent Systems

On Hacker News

No comments linking this paper were found in the collected sources. Found in 1 HN submission from Jul 2026 to Jul 2026. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments0 threads

No comments linking this paper were found in the collected sources. Open submission discussions.

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.