FreshDiskANN lets a single workstation serve and update an 800-million-vector SSD index in real time, sustaining 1,800 inserts/s, 1,800 deletes/s, and 1,000 searches/s concurrently above 92% to 95% 5-recall@5 in under 125 GB DRAM per billion points. Aditi Singh, Suhas Jayaram Subramanya, Ravishankar Krishnaswamy, and Harsha Vardhan Simhadri (Microsoft Research India and CMU) show that this cuts hardware cost by 5x to 10x compared to distributed streaming LSH clusters (such as PLSH on roughly 100 machines) and completes incremental updates 5.25x faster than rebuilding static DiskANN from scratch.

Static proximity graphs like HNSW, NSG, and Vamana deliver the best search speed, but break under continuous deletes: removing vertices severs routing paths and causes aggressive edge pruning (alpha = 1) to thin out the graph until recall collapses. FreshDiskANN repairs deleted neighborhoods locally without losing navigability and batches disk writes into sequential SSD passes.

  • 5.25x faster updates than full rebuilds: Merging 30M inserts and 30M deletes (7.5% churn) into an 800M SIFT1B index with 40 threads takes 15,832 seconds (~4.4 hours), versus 83,140 seconds (~23 hours) to rebuild DiskANN from scratch on 96 threads (about 8.5% of rebuild time at equal thread count).
  • Sub-millisecond writes, low-latency search: Real-time inserts hit ~1 ms latency (bursting to 40,000 inserts/s into RAM) and lazy deletes take ~0.1 microseconds; idle search scales to 6,500 QPS (64 threads) under 10 ms mean and 12 ms p99 latency.
  • Amortized ~10 KB SSD write per update: Two-pass StreamingMerge writes the 320 GB long-term index sequentially rather than triggering 64 to 128 random 4 KB SSD writes per vector.
  • Bounded memory footprint: Peak DRAM reaches ~100 GB for 800M points (~125 GB extrapolated for 1B), keeping only 32-byte Product Quantization (PQ) codes and a capped 30M-point insert buffer in RAM.
How FreshDiskANN splits streaming state across DRAM and NVMe SSD
1. DRAM: TempIndex + DeleteList
One mutable RW-TempIndex absorbs live inserts (~1 ms); snapshotted 5M-point RO-TempIndex chunks and DeleteList keep reads fresh.
2. SSD: Long-Term Index (LTI)
Holds full-precision vectors and R=64 graph on SSD; keeps only 32-byte PQ codes in RAM (~24 GB at 800M).
3. Background StreamingMerge
Three phases: sequential Delete pass, SSD-read Insert pass (reverse edges in RAM Delta), and sequential Patch pass.

Source: Singh et al. (2021), Section 5.1 through 5.3. Every query searches LTI plus all active TempIndex instances and filters out DeleteList IDs.

How It Works

FreshDiskANN combines a new graph update algorithm (FreshVamana) with a two-tier storage engine (StreamingMerge).

First, why do naive deletions degrade graph indexes? When a node p is deleted, removing its edges severs shortest paths through p. Even if an index bridges incoming edges (p_in, p) and outgoing edges (p, p_out) into (p_in, p_out), pruning algorithms with alpha = 1 (used in HNSW and NSG) drop too many shortcut edges, lowering average degree and dragging SIFT1M 5-recall@5 down toward 85% to 90% across 20 delete-reinsert cycles of 5% of the index. FreshVamana fixes this by retaining DiskANN’s relaxed alpha-RNG pruning (alpha = 1.2, R = 64), which keeps denser detour edges so distance to the query shrinks geometrically and recall stays flat over 50 cycles of up to 50% churn.

Second, running graph edits directly on SSD would trigger 64 to 128 random writes per insert or delete. FreshDiskANN therefore buffers live inserts in an in-memory FreshVamana RW-TempIndex (capped at 30M points, ~13 GB RAM, snapshotted every 5M points so redo-log crash recovery takes ~2.5 minutes instead of 16 minutes) and records deletes in a DeleteList (used for routing during search, then filtered from final results). Once RO-TempIndex memory hits its limit, StreamingMerge runs in the background using only compressed PQ codes in RAM:

  1. Delete phase: Sweeps the SSD-resident LTI block-by-block, reconnecting and pruning neighbors of DeleteList points, writing an intermediate LTI.
  2. Insert phase: Runs GreedySearch on the intermediate LTI (~100 random 4 KB reads per new point) to pick forward edges and accumulates reverse edges in an in-memory Delta table (O(|N|R), ~7 GB for 30M inserts).
  3. Patch phase: Sweeps the intermediate LTI block-by-block a second time, merges Delta reverse edges, prunes to R = 64, and writes out the updated LTI.

Key Findings

Evaluated for a full week on an 800M-point SIFT1B subset (with 200M spare vectors for churn) on a dual Xeon 8160 server (48 cores / 96 threads, 3.2 TB Samsung PM1725a PCIe SSD), FreshDiskANN validates both recall stability and SSD write efficiency.

800M-point update cost: full rebuild vs. FreshDiskANN StreamingMerge (lower is better)
Time to reflect 30M inserts + 30M deletes (7.5% churn on 800M SIFT1B)5.25x faster (using 2.4x fewer threads)
DiskANN rebuild (96 threads)83,140 s
StreamingMerge (40 threads)15,832 s

Source: Singh et al. (2021), Appendix B Table 2. At an equal 40-thread budget, StreamingMerge (~16,000 s) takes 8.5% of a ~190,000 s rebuild.

During ramp-up from 100M to 800M points (3 insert threads at 3,500 inserts/s, 8,400 s per merge, 10 search threads), mean search latency hovered near 5 ms between merges and 15 ms during merges. In steady state (1,800 inserts/s and 1,800 deletes/s matching a 16,277 s merge cycle), search with L_s = 100 cost ~120 random 4 KB SSD reads and ~8,000 distance comparisons per query. Unlike FAISS quantized indexes that plateau early on high-precision 1-recall@1, FreshDiskANN retains high recall alongside filtered DiskANN extensions on single-node SSDs.

Caveats and Builder Takeaway

  • PQ approximation lowers steady-state recall slightly: Because StreamingMerge scores candidate edges using 32-byte PQ distances in RAM rather than exact vectors on SSD, recall dips over the first ~20 merge cycles before stabilizing slightly below a fresh static DiskANN build.
  • Ingestion must be throttled to merge speed: Sustainably serving more than 1,800 inserts and deletes/s causes TempIndex to outgrow its 30M-point DRAM cap before StreamingMerge completes.
  • Background merge creates tail-latency spikes: Sequential Delete and Patch sweeps cause SSD head-of-line blocking, spiking concurrent search latency up to ~40 ms at 40 merge threads (tuning down to 10 to 20 merge threads smooths search latency at lower update throughput).
  • Random-delete and vision-vector assumptions: The O(|D|R^2) delete-phase bound assumes uniform random deletions; deleting dense hub clusters or indexing 1,536-dimensional modern text embeddings increases memory per point proportionally.

Builder takeaway: If your vector index outgrows DRAM and changes by 5% to 10% between maintenance windows, FreshDiskANN’s split between a small in-memory alpha > 1 graph and sequential SSD merge passes avoids expensive cluster-wide index rebuilds without dropping recall.