arXiv:2609.03712cs.DBSep 2026

Manuscript Offprint

arXiv:2609.03712

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 Won

Extended Version

Sukjoon Oh ∗^{*}

KAIST

sjoon@kaist.ac.kr

Minki Kang

KAIST

minki.kang@kaist.ac.kr

Jing Liu

Microsoft Research

jingliu3@microsoft.com

Qianxi Zhang

Microsoft Research

qiazh@microsoft.com

Dohyun Kim

KAIST

ehgus421210@kaist.ac.kr

Baotong Lu †^{\dagger}

Microsoft Research

baotonglu@microsoft.com

Qi Chen

Microsoft Research

cheqi@microsoft.com

Youjip Won †^{\dagger}

KAIST

ywon@kaist.ac.kr

ABSTRACT

Disk-based approximate nearest neighbor search (ANNS) incurs high I/O overhead due to frequent disk accesses during index traversal. Approximate caching, which reuses the results of past queries to serve future similar queries, offers a promising approach to bypass expensive disk searches. However, existing approaches suffer from two key limitations. First, their approximate hit predicates fail to simultaneously achieve high throughput and high accuracy, as they do not adapt to the varying local neighbor density in high-dimensional spaces. Second, they lack an effective refresh mechanism to maintain cache correctness under vector updates.

We present AKER, an approximate cache for disk-based ANNS. AKER addresses these limitations through two core design choices. First, we introduce a per-query similarity threshold, where each cache entry maintains its own threshold that is dynamically adjusted based on observed cache hit patterns. This design enables AKER to adapt to neighborhood densities to preserve both efficiency and accuracy. Second, we propose del-consistency, a consistency model for ANNS caches that applies deletions eagerly and insertions lazily. Under this model, AKER implements a low-overhead refresh mechanism that bounds cache staleness and preserves high search accuracy. We integrate AKER into pgvector and evaluate it on representative workloads. AKER improves recall by up to 64 percentage points over prior solutions and increases QPS by up to 3.2×, while using 0.6× the memory of pgvector's shared buffers.

PVLDB Reference Format:

Sukjoon Oh, Minki Kang, Dohyun Kim, Baotong Lu, Jing Liu, Qianxi Zhang, Qi Chen, and Youjip Won. AKER: Density-Aware Approximate Caching for Vector Search. PVLDB, 19(10): XXX-XXX, 2026. doi:XX.XX/XXX.XX

PVLDB Artifact Availability:

The source code, data, and/or other artifacts have been made available at https://github.com/sjoon-oh/aker.

Figure

(a) Traversal-centric

Figure

(b) Result-centric

Figure 1: Two categories of caching strategies for ANNS.

1 INTRODUCTION

Vector search has become a foundational component in modern data-intensive applications, spanning web search engines [11, 22], recommendation systems [25, 37, 39, 41, 58], scientific discovery [16], and retrieval-augmented generation (RAG) [14, 18, 38]. These workloads rely on approximate nearest neighbor search (ANNS) to efficiently probe million- to billion-scale vector collections and retrieve relevant results under sub-second latency constraints. At the core of ANNS is the vector index, which organizes high-dimensional vectors according to their proximity, enabling efficient query processing while preserving high search accuracy.

As data volumes continue to grow, modern vector stores place both vectors and indexes on disk at low cost [1, 3, 9, 21, 22, 32, 56, 60]. However, disk-resident storage makes I/O the dominant performance bottleneck during vector search. We observe that this bottleneck primarily stems from the inherent read amplification in ANNS: to satisfy accuracy requirements, a query typically accesses orders of magnitude more data than is ultimately returned. Specifically, the query first traverses a disk-resident index – organized as clusters [22, 26, 60] or graphs [32, 44] – during which candidates are fetched from disk into memory for distance computation, and then re-ranks the visited candidates to produce the top-k. Achieving higher accuracy targets requires more aggressively expanding the search scope during index traversal, which substantially increases disk I/O and further exacerbates read amplification [63].

To mitigate this bottleneck, prior work has improved ANNS performance through algorithmic optimizations [22, 32, 60, 63] or emerging hardware [31, 46, 53, 54]. Complementary to these efforts, this paper investigates a practical result-centric cache for disk-based ANNS, with the goal of reusing past query results in DRAM to improve end-to-end query performance.

∗^{*}Work partially performed during the internship at Microsoft Research.

†^{\dagger}Corresponding authors: Baotong Lu and Youjip Won.

This work is licensed under the Creative Commons BY-NC-ND 4.0 International License. Visit https://creativecommons.org/licenses/by-nc-nd/4.0/ to view a copy of this license. For any use beyond those covered by this license, obtain permission by emailing info@vldb.org. Copyright is held by the owner/author(s). Publication rights licensed to the VLDB Endowment.

Proceedings of the VLDB Endowment, Vol. 19, No. 10 ISSN 2150-8097. doi:XX.XX/XXX.XX

Figure 1 summarizes two caching strategies for ANNS: traversal-centric caching and result-centric caching. Traversal-centric caches [9, 32, 46, 62] retain intermediate data accessed during index traversal in memory, such as pages, clusters, or graph neighbors. By reusing the cached index structures and vectors, this approach reduces disk I/O during query processing. However, sustaining high performance typically requires a large cache budget, as ANNS traversal often incurs a high memory footprint due to excessive vector accesses.

In contrast, result-centric caches [23, 27, 45, 47, 49] store only the past query vectors and their top-k results. To serve an incoming query, the system evaluates its similarity to cached queries and returns the corresponding top-k results when the similarity exceeds a predefined threshold. As this strategy does not require strict query equivalence, it constitutes an approximate cache relying on semantic similarity between queries. By avoiding the storage of intermediate traversal data, result-centric caching significantly reduces memory consumption. Moreover, cache hits can entirely bypass expensive ANN index traversals, yielding substantial performance gains. As a result, result-centric caching represents a promising direction for improving ANNS efficiency. However, the broader hit predicate makes cache hits no longer accuracy-safe, introducing two challenges that limit existing designs in practice.

Dilemma between cache efficiency and accuracy. Since result-centric caching relies on query similarity, it faces a trade-off between cache efficiency and accuracy. A loose similarity threshold increases cache hit ratios and thus improves system efficiency, but may match insufficiently similar queries, degrading accuracy. Conversely, a tight threshold preserves accuracy but may lead to low cache hit ratios by missing potential reuse opportunities. Furthermore, vector distributions in the high-dimensional space are often highly skewed: some regions are dense, while others are sparse. This heterogeneity renders the one-size-fits-all similarity thresholds adopted by prior work [18, 23, 27, 30, 45, 49] ineffective in balancing efficiency and accuracy across varying local vector densities.

Heavyweight cache refresh. Modern vector databases continuously receive update operations [51, 60], requiring cached results to be refreshed to avoid staleness and maintain correctness. Otherwise, caches may miss newly inserted vectors or return deleted items. However, supporting cache refresh is expensive: it either requires scanning all cached entries to determine whether their results should be updated or aggressively invalidating cached entries, which forces costly ANNS executions in the underlying database. Consequently, existing result-centric caching approaches [18, 30] choose to permit stale entries at the expense of ANN accuracy or degrade cache efficiency under frequent updates.

This paper presents AKER, an approximate cache that makes similarity-based reuse practical for disk-based vector searches by balancing accuracy and efficiency while supporting lightweight cache refresh. AKER is built on two core ideas. First, AKER introduces a density-aware caching strategy which maintains an individual similarity threshold for each cached query. Specifically, AKER adapts the threshold based on the local data distribution: it tightens the threshold for queries located in dense regions to preserve accuracy, while relaxing it in sparse regions to improve cache utilization. Moreover, the similarity threshold is dynamically adjusted at runtime, with accuracy treated as a first-class optimization objective.

Second, AKER introduces del-consistency, a practical consistency model between the cache and the underlying vector database. Del-consistency enforces immediate invalidation of deleted items to prevent stale results from being returned, while allowing the visibility of insertions to be deferred for update efficiency, which aligns well with the approximate nature of ANNS.

We implement AKER through carefully designed caching structures that achieve high memory efficiency and fast cache-side searches. To reduce metadata overhead for queries sharing identical top-k results, AKER organizes cached queries into representative entries and lightweight alias entries. Only representative entries store the top-k results, while alias entries are linked to their corresponding representatives. To support efficient lookup for similar queries, AKER maintains a query filter which builds an embedded ANN index over cached queries, enabling the retrieval of similar queries without brute-force scans. Finally, AKER implements del-consistency via a lightweight refresh pipeline. We execute deletions in the cache by removing deleted vectors from cached results and repairing affected top-k lists using a small pool of top- (k+Δ)(k + \Delta) candidates, avoiding costly ANNS traversal in the underlying database. In contrast, insertion visibility is safely deferred by tracking an accuracy degradation risk for each cached query, triggering top-k recomputation only when the estimated risk exceeds a threshold.

We make three contributions. First, we identify two fundamental limitations of existing approximate caches for ANNS and highlight the design challenges. Second, we propose AKER, an approximate caching system that combines density-aware similarity thresholds to balance accuracy and efficiency with del-consistency to efficiently support cache refresh under continuous updates. Finally, we implement AKER with memory-efficient caching structures that support fast lookups and lightweight refresh pipelines.

By integrating AKER into the popular PostgreSQL pgvector extension [1–3, 9], we verify the effectiveness of AKER through end-to-end evaluations. Across both web search and RAG workloads, AKER improves accuracy by up to 64 percentage points over prior state-of-the-art approximate caches. Moreover, compared to pgvector's default shared buffer (i.e., traversal-centric caching), AKER reduces read amplification by up to 0.4×0.4\times and increases throughput by up to 3.2×3.2\times while using only 0.6×0.6\times of the memory.