NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Semantic Preserving Hashing for Scalable Retrieval

This direction is split into other directions: semantic-aware hashing. Its last version stays readable and citable here.

Version 1 of 1102 papers131 conceptsfrozen 2026-10-04

In large-scale image and multimedia retrieval, the challenge is to find a "needle in a haystack" across billions of items in milliseconds. Traditional exhaustive search is impossible at this scale. The standard solution is hashing: mapping high-dimensional data (like a 4096-element feature vector) into a compact binary code (like 64 bits).

However, simple hashing often fails because of the semantic gap. Two images might be visually different at the pixel level (a white dog vs. a black dog) but semantically identical. Conversely, two images might be visually similar (a sea and a blue sky) but semantically distinct. Semantic-preserving hashing aims to bridge this gap by ensuring that the Hamming distance between binary codes reflects human-defined category relationships rather than just raw data distributions.

Supervised Hashing as Learned Metric Learning

Early hashing methods like Locality Sensitive Hashing (LSH) were data-independent, using random projections to preserve Euclidean distances. As Jun Wang 0006 and Wei Liu detail in Learning to Hash for Indexing Big Data - A Survey, the field shifted toward supervised hashing.

The core intuition is to treat hashing as a form of metric learning. Instead of hoping that random projections capture meaning, researchers use labels or pairwise constraints to "pull" semantically similar items together and "push" dissimilar items apart in the binary space. Junfeng He and colleagues demonstrated in Scalable similarity search with optimized kernel hashing that integrating semantic label consistency into the hashing objective significantly enhances retrieval precision compared to unsupervised methods.

Joint Optimization and Multi-Task Learning

A recurring breakthrough in this area is the move from two-stage pipelines (extract features, then hash) to joint optimization. In this paradigm, a single neural network is trained to perform two tasks simultaneously: classifying the image and generating its hash code.

In Supervised Learning of Semantics-Preserving Hashing via Deep Neural Networks for Large-Scale Image Search, Huei‐Fang Yang and Kevin Lin show that a classification loss acts as a powerful regularizer. By forcing the network to predict a category label from the same features used for hashing, the resulting binary codes are "anchored" to semantic categories. Ting Yao further refined this in Deep Semantic-Preserving and Ranking-Based Hashing for Image Retrieval, demonstrating that co-training for classification ensures the shared feature space aligns with human-defined labels rather than low-level textures.

Semantic Anchoring with Word Embeddings

While simple labels (e.g., "dog", "cat") help, they don't capture the relationships between categories. A "husky" is semantically closer to a "wolf" than to a "car." To capture this nuance, researchers began using semantic word embeddings (like word2vec) as targets for the hashing process.

Li Liu 0004 and Ling Shao pioneered this in Deep Sketch Hashing, where they integrated word embeddings into the loss function. This ensures that the Hamming distance between the hash codes of a "sketch of a dog" and an "image of a wolf" is small, reflecting their conceptual proximity. This approach is particularly vital for Zero-Shot Hashing, as seen in Zero-Shot Sketch-Image Hashing, where a generative objective forces the model to reconstruct a semantic word vector from the hash code, allowing the system to retrieve categories it has never seen during training.

Overcoming the Discrete Optimization Bottleneck

The most significant mathematical hurdle in hashing is that binary codes are discrete (0 or 1), while neural networks are optimized using continuous gradients. Traditionally, researchers "relaxed" the problem by using continuous values during training and rounding them to bits afterward—a process that introduces significant quantization error.

To solve this, Chunhua Shen and Fumin Shen proposed Supervised Discrete Hashing. They introduced a Discrete Cyclic Coordinate descent (DCC) algorithm that optimizes the bits directly, one by one, without relaxation. Similarly, the LLC framework by Aditya Kusupati in LLC: Accurate, Multi-purpose Learnt Low-dimensional Binary Codes learns class-level codebooks. By optimizing these codebooks so that semantic similarity between classes is reflected in the Hamming distance of their codes, they achieve high accuracy with as few as 20 bits.

Bridging Modalities and Domains

The ultimate utility of semantic hashing lies in its ability to unify different data types into a single search space. In Cross-Modal Hashing, the goal is to search for images using text or vice versa.

Methods like MESH by Fangming Zhong and AgNet by Zhong Ji align different modalities into a shared, semantically rich attribute space before generating bits. By grounding the hash codes in a shared semantic distribution, these systems ensure that a text query "golden retriever" and an image of that dog map to the same binary "fingerprint," enabling lightning-fast cross-modal retrieval at a massive scale.

Papers in this version

Showing 60 of 102 papers.

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_semantic_preserving_hashing_for_scalable_bf072f9c,
  title = {Semantic Preserving Hashing for Scalable Retrieval},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/semantic-preserving-hashing-for-scalable-retrieval/rdr_bf072f9c2b4e4b6680d05db71be1d622},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-28},
}

This exact version (version 1, frozen text):

@misc{lacuna_semantic_preserving_hashing_for_scalable_bf072f9c_v1,
  title = {Semantic Preserving Hashing for Scalable Retrieval},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/semantic-preserving-hashing-for-scalable-retrieval/rdr_bf072f9c2b4e4b6680d05db71be1d622/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-28},
}