Orthoplex Quantization for LSH Hash Computation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing locality-sensitive hashing (LSH) techniques face challenges in efficiently computing hash values and achieving balanced distribution of items into buckets, leading to high computational complexity and reduced effectiveness in nearest-neighbor searches, especially when dealing with large datasets.

Innovation Solution

The use of Orthoplex Quantization, which involves inscribing an orthoplex within a multi-dimensional space and employing pseudo-random rotations using the Fast Hadamard Transform to map embedding vectors into buckets, reducing computational complexity and improving distribution balance.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If traditional LSH hashing is used to map embedding vectors to buckets, then the technique can aggregate similar items into partitions, but the computational complexity becomes O(D·2B) which is too high for efficient processing

Engineering Contradiction:
Improvehash computation efficiencyVSAvoidcomputational complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent segments the high-dimensional embedding space by inscribing an orthoplex (cross-polytope) within the multi-dimensional space. This geometric segmentation divides the space into distinct regions defined by the orthoplex vertices, allowing efficient mapping of embedding vectors to buckets based on their proximity to vertices rather than exhaustive computation across all possible hash combinations.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent changes the parameter representation by using pseudo-random rotations applied to the embedding vectors before mapping. This transformation modifies the coordinate system and distribution characteristics of the data, enabling the use of simpler distance calculations to achieve balanced bucket distribution while reducing computational complexity from O(D·2B) to O(B·2B).

Inventive Principle:
Principle #35Parameter changes

2Reliability

If LSH buckets are created to reduce candidate comparisons, then similar items are aggregated into partitions, but poor distribution balance causes all items to map to the same bucket, rendering hashing ineffective

Engineering Contradiction:
Improvehash distribution balanceVSAvoidhashing effectiveness
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent introduces asymmetry through pseudo-random rotations that are uniquely applied to different embedding vectors or batches of vectors. This asymmetric transformation ensures that identical embedding vectors do not consistently map to the same bucket due to numerical precision issues, while still maintaining the locality-sensitive property that similar vectors are likely to hash to the same or adjacent buckets. The asymmetry breaks ties and distributes items more evenly across buckets.

Inventive Principle:
Principle #4Asymmetry

3Speed

If simple comparisons are used instead of hashing, then computation is faster, but the ability to efficiently identify nearest neighbors in large datasets is lost

Engineering Contradiction:
Improvecomputation speedVSAvoidnearest-neighbor search capability
Core Design Contradiction:
SpeedVSAdaptability or versatility

Solution Approach 1:

The patent performs preliminary action by pre-defining the orthoplex geometry and its vertices in the multi-dimensional space before actual hashing occurs. The orthoplex structure, with its symmetric vertices positioned at specific coordinates, is established in advance, allowing embedding vectors to be quickly mapped to nearest vertices using simple distance calculations rather than complex hash function evaluations during query processing.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS11442914B1Efficient LSH computation
Publication Date: 2022.09.13 PINTEREST INC
  • US11442914B1 patent drawing
  • US11442914B1 patent drawing
  • US11442914B1 patent drawing

AI summary

Systems and methods are presented for efficient and effective computation of LSH hashing functions for use in various environments, including nearest-neighbor search. A corpus of items is maintained, with each item of the corpus being associated with information identifying one of a plurality of LSH partitions to which the item has been mapped or hashed. In response to an input item, the input item is projected one or more times into an orthoplex inscribed within a multi-dimensional space. For each mapping, a determination is made as to the nearest vertex of the orthoplex to the projected input item, and the LSH partitions associated with the nearest vertex are aggregated and associated with the input item as the input item's LSH partition.