Rewind-HNSW: Memory-Efficient Rewindable HNSW

Hierarchical navigable small world (HNSW) indexes are widely used for in-memory approximate nearest neighbor search. Increasingly, many applications also require support for querying earlier states of an evolving vector collection, such as agent memory services whose revisions need to be inspected or rolled back. However, providing such versioning support in HNSW is non-trivial: search follows graph topology which is rewired by vector inserts and replacements, so searching for an earlier version requires that version's topology, not only visible vectors. Existing approaches often keep a full index per version or per update, which bloat memory usage and add non-trivial performance overhead. We present Rewind-HNSW, a memory-efficient, multi-version HNSW index that retains high query performance. The key idea is to version the graph at the granularity of individual adjacency lists. Rewind-HNSW stores each vector and its latest adjacency list only once, and rolls back to older versions on demand using reverse deltas that store older adjacency lists as differences from newer ones. Each historical query traverses exactly the graph of its target version. Rewind-HNSW uses on average 86.9% less memory than prior approaches on various datasets, while retaining high performance for querying the latest index version.

Authors

Institutions

Publication Details

Journal
arXiv
Published
2026-12-02
Primary Topic
Advanced Image and Video Retrieval Techniques
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Rewind-HNSW: Memory-Efficient Rewindable HNSW

Kaisong Huang, Baotong Lu, Qianxi Zhang, Victor Harry Shea et al.
arXiv
Advanced Image and Video Retrieval Techniques
preprint

Rewind-HNSW: Memory-Efficient Rewindable HNSW

Kaisong Huang, Baotong Lu, Qianxi Zhang, Victor Harry Shea, Tianzheng Wang, Qi Chen
preprint en

Abstract

Hierarchical navigable small world (HNSW) indexes are widely used for in-memory approximate nearest neighbor search. Increasingly, many applications also require support for querying earlier states of an evolving vector collection, such as agent memory services whose revisions need to be inspected or rolled back. However, providing such versioning support in HNSW is non-trivial: search follows graph topology which is rewired by vector inserts and replacements, so searching for an earlier version requires that version's topology, not only visible vectors. Existing approaches often keep a full index per version or per update, which bloat memory usage and add non-trivial performance overhead. We present Rewind-HNSW, a memory-efficient, multi-version HNSW index that retains high query performance. The key idea is to version the graph at the granularity of individual adjacency lists. Rewind-HNSW stores each vector and its latest adjacency list only once, and rolls back to older versions on demand using reverse deltas that store older adjacency lists as differences from newer ones. Each historical query traverses exactly the graph of its target version. Rewind-HNSW uses on average 86.9% less memory than prior approaches on various datasets, while retaining high performance for querying the latest index version.

arXiv
Microsoft (United States) (US), University of Calgary (CA)
Advanced Image and Video Retrieval Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon