Probabilistic Attributed Hashing

Mingdong Ou, Peng Cui, Jun Wang, Fei Wang, Wenwu Zhu

Introduction

Approximate nearest neighbor (ANN) search is a critical component for managing massive datasets. Hashing has emerged as a primary technique due to the efficiency of comparing binary codes. However, traditional hashing methods predominantly focus on continuous, low-level features, such as image pixel vectors. In practice, data is often accompanied by semantic attributes—user tags, brands, or profiles—which are discrete, high-dimensional, and sparse. Standard linear projection techniques struggle with these attributes because estimating covariance matrices for such data is statistically unreliable and computationally expensive.

Methodology: The PAH Generative Model

To address the limitations of existing multi-modal hashing, we propose Probabilistic Attributed Hashing (PAH). PAH is a generative model that bridges the gap between continuous features and discrete attributes by assuming both are generated from a shared set of latent binary variables, which serve as the hash codes.

The probabilistic graphical model of PAH, illustrating the shared latent space for attributes and features.

As shown in the graphical model above, PAH employs two distinct generative processes tailored to the data types:

  1. For Attributes: A multinomial mixture distribution, inspired by Latent Dirichlet Allocation (LDA), is used. This allows the model to group co-occurring tags into clusters corresponding to hash bits without requiring a massive covariance matrix.
  2. For Features: A standard Gaussian generative process is utilized, where hash codes correspond to specific Gaussian centers.

The model is trained using an iterative Expectation-Maximization (EM) algorithm with Maximum A Posteriori (MAP) estimation. A key innovation is the bit-by-bit update of hash codes, which enables the direct learning of binary representations and avoids the information loss typical of post-hoc thresholding.

Experimental Evaluation

PAH was evaluated on two benchmark datasets:

  • DBLP: A bibliographic dataset where attributes are authors and features are LDA topics from titles/abstracts.
  • NUS-WIDE: An image dataset from Flickr featuring 5,018 user-generated tags as attributes and 500-dimensional Bag-of-Visual-Words as features.

Key Results

PAH consistently outperformed state-of-the-art multi-modal hashing methods, including MLBE, CVH, and CHMS, across various bit lengths.

Precision-Recall curves comparing PAH against baseline methods on multiple datasets and bit lengths.

On the NUS-WIDE dataset (32-bit), PAH achieved a Mean Average Precision (MAP) of 0.625, a 24% relative improvement over the best competitor. On DBLP, it reached 0.573 MAP. Ablation studies confirmed that joint modeling of both modalities is crucial for this performance gain. Furthermore, the training complexity is linear $O(N)$, making it highly scalable for large-scale applications; in practice, training a 32-bit code takes only about 20 milliseconds per example.

Conclusion

Probabilistic Attributed Hashing provides a robust framework for integrating semantic attributes with low-level features. By utilizing tailored distributions and direct binary learning, PAH achieves superior retrieval accuracy and scalability. Future work will explore extending the model to handle relative attributes and incorporating supervised label information.

Summary updated

BibTeX
@inproceedings{ou2015probabilistic,
  author = {Mingdong Ou and Peng Cui and Jun Wang and Fei Wang and Wenwu Zhu},
  title = {{Probabilistic Attributed Hashing}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2015},
  doi = {10.1609/aaai.v29i1.9543},
}
Figure