arXiv:2610.34608cs.DCOct 2026

Manuscript Offprint

arXiv:2610.34608

Failure-Resilient and Verifiable Distributed Approximate Nearest-Neighbor Retrieval

Abdullah Al-Mamun

Abstract

Distributed vector databases increasingly support security-sensitive applications, yet existing systems primarily protect index integrity or replica availability rather than the trustworthiness of retrieved results. Consequently, a compromised replica can return a plausible but manipulated result that remains cryptographically valid, while conventional replication and Byzantine defenses do not directly establish whether the retrieved results are trustworthy. We present TRUSTANN, a middleware layer that provides query-level trust for distributed approximate nearest-neighbor (ANN) retrieval without modifying the underlying ANN algorithm. TrustANN introduces three complementary protocols: TRUST-BIND, which verifies retrieval trust from authenticated, consistent, and failure-domain-independent replica evidence; COORDSHIFT, which asynchronously constructs reusable coordination epochs outside the query critical path; and AVAIL-GUARD, which performs bounded recovery when replicas are unavailable, stale, or conflicting while preserving the trust criterion. Queries are marked TRUSTED only when sufficient independent evidence exists for every relevant shard; otherwise, TrustANN returns UNVERIFIED. On an AWS deployment using distributed FAISS HNSW, TrustANN reduces retrieval attack success rate from 1.000 to 0.000 under the tested Byzantine-retrieval attack with two-of-three replica verification. The verification layer increases clean p95 latency by only 9.36%. Under replica crashes, TrustANN maintains trusted retrieval through 33% failures and correctly returns UNVERIFIED when sufficient evidence is unavailable.

1 Introduction

Distributed approximate nearest-neighbor (ANN) retrieval has become a core substrate for retrieval-augmented generation, recommendation, semantic search, and other vector-intensive applications [18, 38]. Modern ANN systems scale by partitioning vector collections across machines and replicating shards, while indexes such as HNSW, IVF/PQ, and DiskANN provide efficient large-scale search [14, 21, 27]. Recent distributed vector systems further improve scalability through parallel execution, communication optimization, and resource disaggregation [1, 32, 34, 41]. However, distributing retrieval also expands its trust boundary: a query result may depend on multiple shards, replicas, and workers whose behavior cannot necessarily be assumed correct. Thus, scalable distributed retrieval raises a fundamental question beyond performance: when can a distributed ANN result itself be trusted?

First, authenticated state does not imply trustworthy retrieval. Authenticated data structures can establish that stored state is consistent with an authenticated representation [11], and recent verifiable ANN systems extend this principle to approximate search. ANNProof, VLAH, and CD-ANN provide mechanisms for verifying ANN search results or protecting index/vector state using authenticated structures and, in some cases, blockchain anchoring [20, 29, 37]. These approaches establish important foundations for verifiable retrieval, but their primary abstraction is verification of an index or an individual search execution. In a distributed ANN fabric, however, a worker may possess a valid authenticated index while still omitting candidates, returning stale results, manipulating rankings, or providing inconsistent responses. Thus, authenticated state does not necessarily imply trustworthy distributed retrieval. What is missing is query-level retrieval trust: whether the distributed participants involved in a query provide sufficient independent evidence to justify accepting its result. This distinction is also broader than retrieval poisoning. PoisonedRAG and related work demonstrate that malicious retrieved content can substantially manipulate RAG systems [16, 42], but a retrieval participant can also compromise the result without injecting poisoned content, for example by suppressing, replaying, or selectively manipulating results.

Establishing such trust, however, creates a second challenge: coordination latency. A natural response to untrusted participants is to require them to agree before accepting a result. Byzantine-fault-tolerant consensus provides strong guarantees against faulty replicas, but requires communication and synchronization among participants [9]. Blockchain-based distributed systems similarly use replicated agreement to establish trusted state [15,36]. Putting such coordination directly on the ANN query path, however, couples retrieval latency to distributed agreement. This conflicts with the design objective of ANN systems, where parallelism and communication efficiency are central to low-latency search [21,27,41]. Existing blockchain-anchored verifiable ANN systems demonstrate the value of authenticated state [20,37], but do not address how to maintain reusable trust state without making distributed coordination a prerequisite for each retrieval operation. The challenge, therefore, is not simply to establish trust, but to establish reusable trust state without placing consensus-scale coordination on the latency-critical query path.

Finally, failures make replica availability an insufficient basis for trust. Even when coordination is kept off the query path, replication provides availability rather than sufficient trustworthy evidence. Distributed vector systems replicate data to tolerate failures and sustain retrieval [1, 34, 41], yet surviving replicas may crash, become unreachable, return stale state, or produce conflicting responses. A system that simply accepts any available response can therefore mistake availability for correctness, whereas lowering the integrity threshold when replicas fail weakens the very guarantee the system is intended to provide. Byzantine-resilient systems traditionally make the fault bound explicit when determining whether sufficient replicas support an operation [9]. For distributed ANN, the analogous requirement is to distinguish having an answer from having enough evidence to trust that answer. A trustworthy retrieval system must therefore preserve its evidence threshold under failures, attempt bounded recovery using surviving replicas, and explicitly reject a result when sufficient evidence cannot be established.

Proposed Solution. Existing systems address distributed ANN execution [1,32,34,41], authenticated ANN state [20,29,37], federated retrieval confidentiality [39], or malicious retrieval content [16,42], but do not provide query-level retrieval trust with reusable coordination and failure-aware evidence recovery. We present TrustANN, a middleware layer that operates above existing ANN indexes without modifying the underlying search algorithm. TrustANN separates retrieval execution from retrieval trust and background coordination from query-level safety by three tightly coupled components.

First, TrustBind establishes trust per shard from authenticated replica evidence by requiring sufficient, mutually consistent, and failure-domain-independent responses. Second, CoordShift asynchronously constructs reusable retrieval epochs through randomized, failure-domain-aware coordination; its state is cached and consumed by queries, but it is not the query-level safety boundary. Finally, AvailGuard performs bounded recovery by seeking additional independent evidence without weakening the trust threshold. If sufficient evidence cannot be established, TrustANN returns UNVERIFIED. Thus, coordination and recovery remain supporting mechanisms, while the query-level trust decision is independently determined by retrieval evidence.

We implement TrustANN over an existing HNSW-based distributed ANN substrate and evaluate it on Deep10M [19] using a multi-node AWS deployment, covering retrieval attacks, evidence ablations, failures, fan-out, recovery, and asynchronous coordination.

In summary, this paper makes the following contributions: (i) Query-level retrieval trust. We introduce TrustBind, which establishes per-shard retrieval trust from authenticated, consistent, and failure-domain-independent replica evidence. (ii) Asynchronous coordination. We introduce CoordShift, which builds reusable, failure-domain-aware retrieval epochs asynchronously without placing coordination on the query critical path.

(iii) Bounded failure recovery. We introduce AvailGuard, which recovers additional independent evidence under replica failures without weakening the trust criterion, returning UNVERIFIED when sufficient evidence cannot be established.

(iv) Prototype and empirical validation. We implement TrustANN over distributed HNSW and evaluate it on AWS. The configured majority threshold reduces R-ASR from 1.000 to 0.000 against the tested Byzantine-retrieval attack, while clean p95 overhead is 9.36%. TrustANN maintains trusted retrieval through 33% replica crashes and returns UNVERIFIED when sufficient evidence is no longer available.

References (36)