Adaptive Hash Function Generation for Short Hamming Codes
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing methods for generating binary hashing functions for nearest neighbor search often result in poor discrimination with short Hamming codes, requiring more storage and computation for longer codes to achieve better discrimination.
Innovation Solution
The method involves generating an ordered sequence of hash functions by determining weight vectors that maximize an accuracy measure derived from constraints, updating constraint weights to compensate for errors, and using these weight vectors to map features to bits in a Hamming space, allowing for efficient nearest neighbor search with short Hamming codes.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Quantity of substance
If shorter Hamming codes are used, then storage overhead and computation time are reduced, but discrimination ability deteriorates
Solution Approach 1:
The patent changes the parameters of the hash functions by learning optimal weight vectors through iterative optimization. Instead of using fixed or random hash functions, the system adapts the hash function parameters (weight vectors) to maximize the satisfaction of constraints derived from training data, thereby improving discrimination ability with shorter codes
Solution Approach 2:
The patent implements a feedback mechanism where constraints are derived from training data, hash functions are generated, their performance is evaluated against constraints, and the weight vectors are updated iteratively to improve constraint satisfaction. This closed-loop feedback enables the system to learn optimal hash functions that achieve better discrimination with shorter codes
2Measurement precision
If longer Hamming codes are used, then discrimination ability is improved, but storage overhead and computation time increase
Solution Approach 1:
The patent optimizes the parameters of hash functions through learned weight vectors, enabling shorter Hamming codes to achieve the same discrimination ability that would otherwise require longer codes, thus reducing computation time and storage overhead
3Ease of manufacture
If conventional hash function methods are used, then implementation is simple, but discrimination ability with short codes deteriorates
Solution Approach 1:
The patent performs preliminary learning of weight vectors using training data before deploying the hash functions for actual nearest neighbor search. This preliminary training phase enables the hash functions to achieve better discrimination ability, and the learned weight vectors are stored for efficient reuse during query processing
Solution Approach 2:
The patent transforms conventional fixed hash functions into adaptive learned hash functions by introducing trainable weight vectors. The parameters of these hash functions are optimized through constraint satisfaction on training data, enabling short Hamming codes to achieve superior discrimination ability
Data Source
AI summary
Methods, systems, and apparatus, including computer programs encoded on computer storage media, for generating hash functions. In one aspect, a method includes generating hash functions by sequentially determining a weight vector for each hash function to maximize an accuracy measure derived from current constraint weights and updating the current constraint weights for use in calculating a weight vector of a next hash function in the sequence. In another aspect, the determined weight vector maximizes an accuracy measure and a variance measure. In still another aspect, a method includes generating an adjusted covariance matrix and generating a sequence of hash functions from the adjusted covariance matrix. In still another aspect, a method includes sequentially generating a sequence of hash functions, where the weight vectors for any previously generated hash functions are used to identify constraints used to generate the weight vector for each next hash function in the sequence.


