[Paper Review] VectorSearch: Enhancing Document Retrieval with Semantic Embeddings and Optimized Search
VectorSearch proposes a hybrid vector retrieval system that combines semantic embeddings from BERT and RoBERTa with optimized indexing via FAISS and HNSWlib to enhance document retrieval accuracy and efficiency. It achieves state-of-the-art precision (1.0) and recall (1.0) with minimal query latency (0.002344s) on real-world datasets, outperforming baselines in both retrieval quality and scalability.
Traditional retrieval methods have been essential for assessing document similarity but struggle with capturing semantic nuances. Despite advancements in latent semantic analysis (LSA) and deep learning, achieving comprehensive semantic understanding and accurate retrieval remains challenging due to high dimensionality and semantic gaps. The above challenges call for new techniques to effectively reduce the dimensions and close the semantic gaps. To this end, we propose VectorSearch, which leverages advanced algorithms, embeddings, and indexing techniques for refined retrieval. By utilizing innovative multi-vector search operations and encoding searches with advanced language models, our approach significantly improves retrieval accuracy. Experiments on real-world datasets show that VectorSearch outperforms baseline metrics, demonstrating its efficacy for large-scale retrieval tasks.
Motivation & Objective
- To address the limitations of traditional keyword-based and vector similarity search methods in capturing semantic nuances and handling large-scale, dynamic datasets.
- To overcome the scalability and performance bottlenecks of existing vector databases in real-time, high-dimensional retrieval scenarios.
- To enable advanced multi-vector query processing and hybrid indexing for improved retrieval accuracy and efficiency.
- To integrate state-of-the-art sentence embeddings (e.g., BERT, RoBERTa, MiniLM) with efficient vector database techniques for large-scale information retrieval.
- To develop a comprehensive evaluation framework that measures precision, recall, F1-score, and query time across diverse models and indexing strategies.
Proposed method
- Leverages pre-trained language models (MiniLM-L6-v2, BERT-base-uncased, RoBERTa-base) to generate high-dimensional semantic embeddings for document titles and queries.
- Employs FAISS and HNSWlib as hybrid indexing backends to optimize nearest-neighbor search performance and support distributed, scalable vector storage.
- Uses a multi-vector search operation to process complex queries involving multiple embeddings, enabling richer semantic matching beyond single-vector similarity.
- Applies a similarity threshold (e.g., 0.5–0.9) to filter results and balance precision and recall in retrieval outcomes.
- Optimizes the retrieval pipeline by combining efficient embedding encoding, distributed indexing, and low-latency query execution.
- Employs a harmonic mean-based evaluation metric to assess system performance across varying hyperparameters, including embedding dimensionality and similarity thresholds.
Experimental results
Research questions
- RQ1How does the integration of advanced sentence embeddings with optimized vector indexing improve retrieval precision and recall in large-scale document retrieval?
- RQ2To what extent can hybrid indexing (FAISS and HNSWlib) reduce query latency while maintaining high retrieval accuracy in dynamic, high-dimensional datasets?
- RQ3How do different pre-trained models (e.g., MiniLM, BERT, RoBERTa) compare in performance when used with vector search systems under varying indexing and threshold configurations?
- RQ4Can multi-vector query processing significantly enhance retrieval effectiveness compared to single-vector similarity search in semantic retrieval tasks?
- RQ5What is the trade-off between retrieval accuracy (precision, recall) and query performance (latency) across different embedding models and indexing techniques?
Key findings
- MiniLM-L6-v2 achieved perfect precision and recall (1.0) at a similarity threshold of 0.5, with a query time of only 0.002344 seconds.
- BERT-base-uncased achieved 0.98 precision and 0.73 recall, representing a ~34% improvement in precision and ~35% in recall over the ConSERTbase baseline.
- RoBERTa-base achieved 0.68 precision and 0.64 recall, outperforming the SimCSE-BERTbase baseline by ~11% in precision and ~16% in recall.
- The MiniLM-L6-v2 model showed a ~36% improvement in precision and ~30% in recall compared to the IS-BERTbase baseline.
- VectorSearch reduced query time to 0.002344s for MiniLM-L6-v2, significantly outperforming baseline systems like Neural Corpus Indexer (Base) and (Large), which had query times of 92.42s and 92.49s respectively.
- BERT embeddings improved retrieval accuracy by 8% for longer texts compared to Sentence Transformers, as measured by both precision and recall metrics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.