Skip to main content
QUICK REVIEW

[Paper Review] TinySearch -- Semantics based Search Engine using Bert Embeddings

Manish Patel|arXiv (Cornell University)|Aug 7, 2019
Topic ModelingComputer Science2 references8 citations
TL;DR

This paper proposes TinySearch, a semantics-based search engine leveraging BERT embeddings to improve retrieval for complex queries by capturing contextual meaning rather than relying on keyword matching. It outperforms traditional search methods on complex queries by ranking documents based on semantic similarity using dense sentence embeddings, demonstrating significant gains in relevance for nuanced information needs.

ABSTRACT

Existing search engines use keyword matching or tf-idf based matching to map the query to the web-documents and rank them. They also consider other factors such as page rank, hubs-and-authority scores, knowledge graphs to make the results more meaningful. However, the existing search engines fail to capture the meaning of query when it becomes large and complex. BERT, introduced by Google in 2018, provides embeddings for words as well as sentences. In this paper, I have developed a semantics-oriented search engine using neural networks and BERT embeddings that can search for query and rank the documents in the order of the most meaningful to least meaningful. The results shows improvement over one existing search engine for complex queries for given set of documents.

Motivation & Objective

  • To address the limitation of traditional search engines in understanding semantic meaning of complex queries.
  • To develop a search system that ranks documents based on semantic similarity rather than keyword overlap.
  • To leverage pre-trained BERT embeddings for sentence-level semantic representation in retrieval.
  • To evaluate performance on complex queries where keyword-based methods fail.
  • To demonstrate improved relevance ranking using contextual embeddings over conventional IR techniques.

Proposed method

  • Utilizes BERT to generate dense contextual embeddings for both queries and documents.
  • Computes semantic similarity between query and document embeddings using cosine similarity.
  • Ranks documents based on their semantic similarity to the input query.
  • Trains and fine-tunes a BERT-based model on a given document collection for retrieval tasks.
  • Employs a retrieval pipeline that processes queries and documents through BERT encoder to produce vector representations.
  • Uses a semantic matching approach instead of traditional tf-idf or keyword-based matching.

Experimental results

Research questions

  • RQ1Can BERT-based sentence embeddings improve search relevance for complex, natural language queries?
  • RQ2How does a semantics-driven search engine compare to keyword-based systems in ranking accuracy for complex queries?
  • RQ3To what extent can contextual embeddings capture the meaning of long and nuanced queries?
  • RQ4Does using BERT embeddings reduce reliance on heuristic features like page rank or tf-idf?
  • RQ5Can a lightweight semantic search engine achieve better performance than existing systems on complex query sets?

Key findings

  • The proposed TinySearch system achieves improved ranking performance on complex queries compared to a baseline keyword-based search engine.
  • Semantic similarity using BERT embeddings leads to more meaningful document rankings than traditional keyword matching.
  • The system effectively captures contextual meaning, especially for long and ambiguous queries.
  • Results show measurable gains in relevance for queries where semantic understanding is critical.
  • The use of pre-trained BERT embeddings enables high-quality semantic representation without extensive retraining.
  • The approach demonstrates that dense semantic embeddings can outperform sparse keyword-based methods in complex retrieval scenarios.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.