Parallel Context-of-Experts Decoding for Retrieval Augmented Generation
Giulio Corallo, Paolo Papotti
TL;DR
Retrieval Augmented Generation often sacrifices cross-document reasoning when using independent KV caches or incurs steep latency with long concatenated prompts. The authors introduce Parallel Context-of-Experts Decoding (Pced), a training-free decoding framework that treats each retrieved document as a separate expert and aggregates evidence at decode time through retrieval-aware contrastive decoding, guided by per-document priors. Pced demonstrates strong performance on LOFT and LongBench, often matching or exceeding full-context baselines while delivering substantial speedups, and shows robust cross-document reasoning with large candidate pools. The work highlights practical deployment considerations, including logits access requirements and storage-cost trade-offs for offline KV caches, and identifies limitations tied to retrieval quality and API-access restrictions.
Abstract
Retrieval Augmented Generation faces a trade-off: concatenating documents in a long prompt enables multi-document reasoning but creates prefill bottlenecks, while encoding document KV caches separately offers speed but breaks cross-document interaction. We propose Parallel Context-of-Experts Decoding (Pced), a training-free framework that shifts evidence aggregation from the attention mechanism to the decoding. Pced treats retrieved documents as isolated "experts", synchronizing their predictions via a novel retrieval-aware contrastive decoding rule that weighs expert logits against the model prior. This approach recovers cross-document reasoning capabilities without constructing a shared attention across documents.
