Aker: Density-Aware Approximate Caching for Vector Search (Extended Version)

Sukjoon Oh, Minki Kang, Dohyun Kim, Baotong Lu, Jing Liu, Qianxi Zhang, Qi Chen, Youjip WonarXiv 2026 · DOI

TL;DR

Aker is a novel result-centric approximate cache for disk-based vector search that dynamically adjusts similarity thresholds on a per-query basis to adapt to non-uniform data densities. By pairing this density awareness with an asymmetric "del-consistency" update model, Aker bypasses expensive disk-based index traversals, boosting query throughput by up to 3.2× and improving accuracy by up to 64 percentage points over state-of-the-art approximate caches.

What Problem Does This Paper Address?

Approximate Nearest Neighbor Search (ANNS) is the backbone of modern vector databases used in web search, recommendation systems, and Retrieval-Augmented Generation (RAG). To handle massive datasets cost-effectively, modern vector stores place indexes on disk. However, this introduces severe read amplification: to find the top-$k$ neighbors accurately, a query must traverse a massive web of disk-resident clusters or graphs, loading orders of magnitude more data than it actually returns.

Caching past query results in memory (result-centric caching) is a promising way to bypass this disk I/O bottleneck. Because semantic queries often overlap, an approximate cache can return the results of a past query if a new query is "close enough" based on a similarity threshold.

Figure 1: Two categories of caching strategies for ANNS.

However, existing approximate caches suffer from two fatal flaws:

  1. The Global Threshold Dilemma: High-dimensional vector spaces are highly non-uniform; some regions are dense, while others are sparse. A single global similarity threshold is either too loose for dense regions (destroying accuracy) or too tight for sparse regions (destroying cache efficiency).
  2. Heavyweight Cache Refreshes: Real-world databases are dynamic. When vectors are continuously inserted or deleted, keeping the cache accurate requires scanning all entries or aggressively invalidating them, both of which ruin performance.
Read amplification ($\rho$) of disk-based ANNS systems under different recalls.

Methods

The authors introduce Aker, an approximate cache designed to address these limitations through three core mechanisms:

  • Per-Query Similarity Thresholds: Instead of a one-size-fits-all threshold, Aker maintains an individual threshold ($\tau_q$) for each cached query. It dynamically tunes this threshold at runtime based on the hit type. If a query results in an approximate match (a warning sign that the radius might be too permissive), Aker shrinks the threshold. If it results in an exact equality match, Aker cautiously expands it.
  • Del-Consistency Model: Aker treats insertions and deletions asymmetrically to minimize update overhead. Deletions are handled eagerly to prevent the cache from returning non-existent data; Aker pre-fetches a small reserve pool ($\Delta$) of extra neighbors during initial index traversal to immediately fill gaps left by deleted vectors. Conversely, insertions are handled lazily. Aker tracks a global recall-degradation risk score ($R$) and only triggers background batch updates when the estimated risk exceeds a set threshold.
  • Memory-Efficient Caching Structures: To save space, Aker organizes queries into representative entries (which hold the actual top-$k$ results) and lightweight alias entries (which point to representatives for near-duplicate queries). It indexes representative queries using a small, embedded HNSW index called a Query Filter to enable fast lookups without brute-force scans. To prevent deletions from breaking the HNSW graph connectivity, Aker employs a dual-index (Active/Standby) epoch-based swapping mechanism.
Aker architecture and cache entry structure.

Datasets

Aker was evaluated using several standard large-scale vector datasets:

  • SPACEV (10M & 1M scales): Bing web search query descriptors.
  • SPHERE (10M scale): Web-scale text embeddings.
  • BIGANN (10M scale): Used for initial read amplification analysis and query filter microbenchmarks.
  • TriviaQA: A question-answer dataset used to simulate realistic RAG workloads.

Because public production traces containing both semantic and temporal query locality are unavailable, the authors designed simZipf, a workload generator that synthesizes realistic query streams by jointly modeling query similarity and Zipfian request skew.

Key Insights and Ideas

  • Density Matters: Local neighborhood density varies wildly in vector spaces. Tailoring the reuse radius to the local neighborhood density is mandatory for balancing accuracy and throughput.
  • Asymmetric Update Urgency: Deletions threaten database correctness (returning a deleted item is a hard failure), whereas delayed insertions only cause minor staleness (acceptable in approximate search). Exploiting this asymmetry allows for highly efficient, low-overhead cache maintenance.
  • Graph Caching via Dual-Indexes: Graph-based indexes like HNSW are fast for lookups but notoriously difficult to update when elements are deleted. Swapping active and standby filters at epoch boundaries elegantly reclaims space without requiring expensive graph rebuilds.

Key Results

The authors integrated Aker into pgvector (a popular PostgreSQL vector search extension) and evaluated it against state-of-the-art approximate caches like Potluck and Proximity:

  • Superior Accuracy: Aker maintained a stable recall above 0.80 across all workload skews, outperforming prior solutions by up to 64 percentage points because its per-query thresholds prevented over-permissive caching in dense regions.
  • Throughput and I/O Gains: Compared to pgvector's default shared buffer pool, Aker increased Queries Per Second (QPS) by up to 3.2× and reduced read amplification down to 0.4×, all while utilizing only 0.6× of the memory.
  • Low Refresh Overhead: In dynamic stress tests with up to 25% deletion rates, Aker's del-consistency pipeline introduced negligible overhead, adding an average of just 0.22 ms (accounting for only ~4.4% of total search latency).

Limitations and Future Work

  • Synthesized Workloads: Due to the lack of open-source production vector query logs, the evaluation relies heavily on the synthesized simZipf workload. Testing on real-world production query traces remains an open avenue.
  • Parameter Tuning: While Aker adapts dynamically, its initial performance relies on a few hyperparameters (like the reserve size $\Delta$ and risk threshold $\tau_{risk}$) which may require manual tuning depending on how write-heavy the target workload is.

Summary updated

BibTeX
@misc{oh2026aker,
  author = {Sukjoon Oh and Minki Kang and Dohyun Kim and Baotong Lu and Jing Liu and Qianxi Zhang and Qi Chen and Youjip Won},
  title = {{Aker: Density-Aware Approximate Caching for Vector Search (Extended Version)}},
  year = {2026},
  eprint = {2609.03712},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.03712},
}
Figure