# Zarc: Exact Search Across Billions of Vectors in Seconds

> Zarc is a system for finding the exact nearest vectors in a large dataset without loading the entire dataset into GPU memory. That matters for machine-learning workloads that need to retrieve specific...

**Source**: arxiv.org | **Published**: 2026-11-24 | **Type**: research

## Key Facts

- Deploy Zarc to scale exact vector search beyond GPU memory limits using host memory.
- Accelerate sparse-attention retrieval by pruning unlikely vectors before fetching full data.
- Support longer-context LLM memory without sacrificing nearest-neighbor accuracy.
- Improve training-data deduplication with exact matches instead of potentially unreliable approximate indexes.
- Reduce GPU memory pressure by keeping compact proof data on-device and fetching only candidate vectors.

## Summary

**Paper:** [Zarc: Exact Nearest Neighbors over a Billion Vectors in Seconds](https://arxiv.org/abs/2611.29252)

**Authors:** Dongfang Zhao

\## Executive Summary

Zarc is a system for finding the exact nearest vectors in a large dataset without loading the entire dataset into GPU memory. That matters for machine-learning workloads that need to retrieve specific vectors, including sparse attention in large language models, long-context memory, and training-data deduplication.

The trade-off in existing approaches is straightforward: exhaustive GPU search checks every vector for each query, which can be slow, while approximate indexes are faster but may return the wrong neighbors. Earlier exact-search methods reduce work by using inexpensive half-precision calculations to prove that most vectors are too far away to matter. But those methods require one GPU to hold the full dataset, limiting their use at very large scale.

Zarc changes where the search data lives. It keeps the short rows of those proof calculations in GPU memory, then fetches the full vectors from host memory only for the small number that remain plausible candidates. The system supports exact Euclidean-distance, cosine, and inner-product searches, as well as filtered queries, and it can handle updates. “Exact” here means the search returns the true nearest neighbors rather than an approximation.

The reported results are substantial on the tested workloads. Across four H100 GPUs, Zarc answered 10,000 exact queries over one billion vectors in 1.1 seconds; the abstract reports five minutes for the comparison approach. In tests involving eleven open large language models, it retrieved the exact top-10 attention keys 2.2 to 13.1 times faster than exhaustive search. In a sparse-attention test over one million tokens, it ran 3.1 times faster than bf16 selection with FlashInfer. The abstract also notes an accuracy difference: FlashInfer missed the exact top-64 for most queries in that test.

These findings suggest that exact vector search may be practical for workloads where approximate results are unacceptable or where exhaustive scanning is too slow. The results are particularly relevant to attention mechanisms that select a small set of keys from a much larger context. They also point to potential use in other exact-search tasks named in the abstract, such as long-context memory and deduplicating training data. The abstract does not report deployments in production systems or results from real-world customer workloads. Its performance claims come from the stated system tests, including tests on GPUs and open LLMs, so they should not be read as guarantees for every dataset or application.

\## Academic Abstract

Exact k-nearest-neighbor vector search lies on the critical path of machine learning systems, from sparse attention in the latest large language models (LLMs) to long-context memories and training-data deduplication. Exhaustive GPU search scans the whole dataset for every query, while approximate indexes return inexact neighbors. Recent methods skip almost every vector with a cheap half-precision proof that it lies too far away, but only on one GPU that holds the whole dataset. Our insight is to keep only the short rows of these proofs in GPU memory and to fetch the few remaining full vectors from host memory. Our system, Zarc, answers Euclidean, cosine, inner-product, and filtered queries exactly under updates. On four H100 GPUs, it answers 10,000 exact queries over one billion vectors in 1.1 seconds instead of five minutes. On eleven open LLMs, it retrieves the exact top-10 attention keys 2.2x to 13.1x faster than exhaustive search. In sparse attention over one million tokens, it runs 3.1x faster than bf16 selection with FlashInfer, which misses the exact top-64 for most queries.

## Frequently Asked Questions

**What business problems could Zarc help address?**

Zarc could support machine-learning workloads that need exact nearest-vector retrieval, including sparse attention in large language models, long-context memory, and training-data deduplication. It aims to avoid both the potentially slow exhaustive GPU search and the risk of incorrect neighbors from approximate indexes.

**Which industries would benefit most from Zarc?**

The research summary does not identify specific industries. Organizations working with large-scale machine-learning workloads that require exact vector retrieval could potentially benefit.

**What practical implementation considerations should a business assess?**

Zarc keeps compact proof-calculation data in GPU memory and fetches full vectors from host memory for the remaining plausible candidates. Implementers would need to consider their GPU and host-memory setup and whether this data movement fits their workload; the summary does not specify deployment requirements.

**What resources or expertise might be needed to use Zarc?**

A deployment could require access to GPU and host-memory resources, along with expertise in machine-learning systems and vector retrieval. The summary does not state specific hardware requirements, staffing levels, or implementation effort.

**What competitive advantages could Zarc offer?**

Zarc could make exact nearest-neighbor search practical for datasets too large to fit entirely in one GPU’s memory, while avoiding the possibility of wrong neighbors associated with approximate indexes. The summary does not claim a particular business outcome or quantify a performance advantage.

## Links

- [Read on Welcome.AI](https://welcome.ai/content/zarc-exact-search-across-billions-of-vectors-in-seconds)
- [Original source](https://arxiv.org/abs/2611.29252)

---

Source: Welcome.AI | https://welcome.ai/content/zarc-exact-search-across-billions-of-vectors-in-seconds