Lune

SIGIR2025Top-tier venue

WebANNS: Fast and Efficient Approximate Nearest Neighbor Search in Web Browsers

Mugeng Liu, Siqi Zhong, Qi Yang, Yudong Han, Xuanzhe Liu, Yun Ma

Abstract

Approximate nearest neighbor search (ANNS) has become vital to modern AI infrastructure, particularly in retrieval-augmented generation (RAG) applications. Numerous in-browser ANNS engines have emerged to seamlessly integrate with popular LLM-based web applications, while addressing privacy protection and challenges of heterogeneous device deployments. However, web browsers present unique challenges for ANNS, including computational limitations, external storage access issues, and memory utilization constraints, which state-of-the-art (SOTA) solutions fail to address comprehensively.

We propose WebANNS, a novel ANNS engine specifically designed for web browsers. WebANNS leverages WebAssembly to overcome computational bottlenecks, designs a lazy loading strategy to optimize data retrieval from external storage, and applies a heuristic approach to reduce memory usage. Experiments show that WebANNS is fast and memory efficient, achieving up to 743.8× improvement in 99th percentile query latency over the SOTA engine, while reducing memory usage by up to 39%. Note that WebANNS decreases query time from 10 seconds to the 10-millisecond range in browsers, making in-browser ANNS practical with user-acceptable latency.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • SIVF: GPU-Resident IVF Index for Streaming Vector Analytics cites Fast Vector Query Processing for Large Datasets Beyond GPU Memory with Reordered Pipelining
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Beyond Static Endpoints: Tool Programs as an Interface for Flexible Agentic Web ServicesMugeng Liu, Shuoqi Li, Yixuan Zhang, Yun MaICML 2026
  2. SIVF: GPU-Resident IVF Index for Streaming Vector AnalyticsDongfang ZhaoHPDC 2026
  3. Breaking the Single-Reference-Vector Barrier in Approximate Nearest Neighbor SearchJiadong Xie, Jeffrey Liang, Siyi Teng, Jeffrey Xu Yu et al.WWW 2026

Builds on8

  1. Why Johnny Can't Prompt: How Non-AI Experts Try (and Fail) to Design LLM PromptsJ. D. Zamfirescu-Pereira, Richmond Y. Wong, Bjoern Hartmann, Qian YangCHI 2023 · 892 citations
  2. SPANN: Highly-efficient Billion-scale Approximate Nearest Neighborhood SearchQi Chen, Bing Zhao, Haidong Wang, Mingqin Li et al.NeurIPS 2021 · 219 citations
  3. WikiChat: Stopping the Hallucination of Large Language Model Chatbots by Few-Shot Grounding on WikipediaSina J. Semnani, Violet Z. Yao, Heidi C. Zhang, Monica S. LamEMNLP Findings 2023 · 44 citations
  4. Fast Vector Query Processing for Large Datasets Beyond GPU Memory with Reordered PipeliningZili Zhang, Fangyue Liu, Gang Huang, Xuanzhe Liu et al.NSDI 2024 · 37 citations
  5. Constructing Tree-based Index for Efficient and Effective Dense RetrievalHaitao Li, Qingyao Ai, Jingtao Zhan, Jiaxin Mao et al.SIGIR 2023 · 21 citations

Related papers

  1. UpANNS: Enhancing Billion-Scale ANNS Efficiency with Real-World PIM ArchitectureSitian Chen, Amelie Chi Zhou, Yucheng Shi, Yusen Li et al.SC 2025 · 8 citations
  2. DRIM-ANN: An Approximate Nearest Neighbor Search Engine based on Commercial DRAM-PIMsMingkai Chen, Tianhua Han, Cheng Liu, Shengwen Liang et al.SC 2025 · 5 citations
  3. SeIM: In-Memory Acceleration for Approximate Nearest Neighbor SearchChaoqiang Liu, Dan Chen, Yu Huang, Wenjing Xiao et al.DAC 2025 · 2 citations
  4. REIS: A High-Performance and Energy-Efficient Retrieval System with In-Storage ProcessingKangqi Chen, Rakesh Nadig, Manos Frouzakis, Nika Mansouri-Ghiasi et al.ISCA 2025 · 14 citations
  5. MIRAGE-ANNS: Mixed Approach Graph-based Indexing for Approximate Nearest Neighbor SearchSairaj Voruganti, M. Tamer ÖzsuSIGMOD 2025 · 10 citations
Dusk over the sea between two cliffs drawn in fine vertical lines