Towards Distributed Inference of LLMs on a P2P Network

Shabari S Nair, Krishanu Saini
5/7/2026
cs.DCcs.AI

No confident code implementation found for this paper.

Abstract

Prefix caching can reduce LLM inference latency by reusing KV caches across requests with shared prompts, but cluster-scale reuse is challenging because caches are partitioned across nodes. We propose a decentralized, prefix-cache-aware routing scheme for peer-to-peer LLM serving.

Show full abstract

Each node maintains a local radix tree of its own cached prefixes and asynchronously refreshed estimates of peer caches using periodic anti-entropy. Requests are routed to the node with the longest estimated prefix match, without centralized coordination or KV-cache transfer. Stale metadata only causes cache misses, not incorrect outputs, making weak consistency sufficient for correctness. Evaluation on simulated MMLU workloads show that decentralized routing improves latency under low communication delay and skewed prefix distributions, while high network latency and affinity-induced hotspots limit its benefits.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{nair2026towards,
  title  = {Towards Distributed Inference of LLMs on a P2P Network},
  author = {Shabari S Nair and Krishanu Saini},
  year   = {2026},
  eprint = {2606.17059},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.17059v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.17059.svg)](https://codeofpaper.com/paper/2606.17059)

Discussion