Hilbert Curve Mapping for Semantic Embedding Search

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Efficiently searching and retrieving relevant documents from large databases is challenging due to high time complexity and computational overhead, especially when matching longer semantic embedding vectors, which hinders quality and efficiency in document retrieval.

Innovation Solution

The method employs the Hilbert curve to map multidimensional semantic embedding vectors into one-dimensional vectors, creating an index table and using binary search to reduce time complexity and computational overhead while maintaining high-quality search results.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If sequential matching of longer embedding vectors is used to ensure semantic matching quality, then search accuracy is improved, but search time increases significantly

Engineering Contradiction:
Improvesearch accuracyVSAvoidsearch time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent applies dimensionality change by mapping multi-dimensional semantic embedding vectors to one-dimensional Hilbert numbers through the Hilbert curve transformation. This allows the system to preserve semantic relationships while enabling efficient one-dimensional binary search, resolving the contradiction between search accuracy and search time by operating in a transformed dimensional space.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

Solution Approach 2:

The Hilbert curve acts as an intermediary transformation that bridges the gap between multi-dimensional semantic embedding space and one-dimensional search space. By introducing this intermediate mapping layer, the system maintains the semantic matching quality of the original embedding vectors while enabling fast binary search operations on the transformed one-dimensional Hilbert numbers.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Measurement precision

If semantic embedding vectors for sentences are used instead of entire document embedding vectors, then search quality is improved, but computational overhead increases

Engineering Contradiction:
Improvesearch qualityVSAvoidcomputational overhead
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent reduces computational overhead by transforming sentence-level semantic embedding vectors into compact one-dimensional Hilbert numbers. This dimensionality change compresses the representation while preserving semantic information, allowing the system to process multiple sentence embeddings efficiently without the quadratic complexity of comparing long embedding vectors directly.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

Solution Approach 2:

The patent segments documents into sentences and processes each sentence's embedding vectors separately, transforming them into Hilbert numbers. This segmentation allows the system to handle large documents by processing smaller units independently, reducing the computational overhead compared to processing entire document embeddings as a single large vector.

Inventive Principle:
Principle #1Segmentation

3Speed

If Hilbert curve mapping is applied to accelerate search, then search speed is improved, but system complexity increases

Engineering Contradiction:
Improvesearch speedVSAvoidsystem complexity
Core Design Contradiction:
SpeedVSDevice complexity

Solution Approach 1:

The patent applies preliminary action by pre-computing and storing the Hilbert curve mappings of embedding vectors in an index structure during an offline phase. This preprocessing step transforms the complex multi-dimensional vectors into one-dimensional Hilbert numbers in advance, so that during online search, the system only needs to perform simple binary search operations, achieving fast search speed with minimal online computational complexity.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12130790B1Method for accelerated long document search using Hilbert curve mapping
Publication Date: 2024.10.29 ELM INC
  • US12130790B1 patent drawing
  • US12130790B1 patent drawing
  • US12130790B1 patent drawing

AI summary

A system and method includes a textual document search engine. The method initializes the textual document search engine by inputting, into a memory, a very large number of documents, where each document has textual sentences, and each sentence of each document has m semantic embedding vectors. The method maps the m semantic embedding vectors to 1-dimensional vectors of Hilbert numbers using a Hilbert curve transformation, constructs an index table with the 1-dimensional vectors, and stores the index table in the memory. The index table is used for efficient search by inputting a full query document, which has embedding vectors corresponding to sentences in the query document, where the query embedding vectors are mapped into 1-dimensional vectors of Hilbert numbers using Hilbert curve transformation. The index table is searched using the Hilbert numbers and candidate documents are retrieved that are similar to the query document based on the Hilbert numbers.