Deep Supervised Hashing with Nonlinear Projections

Sen Su, Gang Chen, Xiang Cheng, Rong Bi

Introduction

Large-scale image retrieval relies heavily on hashing techniques to map high-dimensional visual data into compact binary codes. While deep learning has significantly advanced this field, most existing methods employ a linear projection layer to transform CNN-extracted features into a latent space for quantization. This linear approach often fails to capture the complex, nonlinear structures inherent in real-world image data, leading to suboptimal hash codes.

To address this, researchers have introduced Deep Supervised Hashing with Nonlinear Projections (DSHNP). This architecture replaces the standard linear bottleneck with a set of differentiable "soft" decision trees, enabling end-to-end nonlinear feature mapping from pixels to hash bits.

The DSHNP Architecture

The DSHNP framework integrates feature learning and nonlinear projection into a single, unified pipeline.

The DSHNP architecture combines a deep CNN with a set of soft decision trees for nonlinear projection.

The architecture consists of three primary stages:

  1. Feature Extraction: A shared Deep CNN (GoogLeNet) processes raw images to generate high-level feature vectors.
  2. Nonlinear Projection via Soft Decision Trees: Instead of a fully connected layer, the model utilizes $K$ soft decision trees. These trees use sigmoid gating functions at internal nodes, making the entire structure differentiable and compatible with standard backpropagation.
  3. Regularized Learning: To minimize redundancy between bits, the authors implement an orthogonal regularizer that forces the projection directions of different trees to be independent. A parallel regularizer is also used to maintain consistency across leaf nodes.

The model is optimized using a pairwise negative log-likelihood loss, ensuring that semantically similar images are mapped to nearby points in the Hamming space.

Experimental Evaluation

The performance of DSHNP was benchmarked against several state-of-the-art hashing methods on the CIFAR-10 and FLICKR (MIRFLICKR-25K) datasets.

Comparison of Mean Average Precision (MAP) results across different bit lengths and datasets.

As shown in the table above, DSHNP consistently outperforms competing methods such as DPSH, NINH, and CNNH across all tested bit lengths (12 to 48 bits). On CIFAR-10, DSHNP achieved a MAP of 0.784 at 48 bits, representing a notable improvement over the previous state-of-the-art. Similar gains were observed on the multi-label FLICKR dataset.

Key Insights

  • Nonlinearity is Essential: Ablation studies (comparing DSHNP to its linear counterpart, DSHNP-1) revealed a 2-3% performance drop when the nonlinear trees were removed, confirming the value of the tree-based projection.
  • Optimal Tree Depth: Experiments indicated that a tree depth of level 2 provides the best balance between representational power and optimizability. Deeper trees were found to be more prone to overfitting and harder to train effectively.
  • Redundancy Reduction: The orthogonal regularizer proved vital for performance. By ensuring that each tree (and thus each bit) captures unique information, the model generates more discriminative and compact codes.

Conclusion

DSHNP demonstrates that replacing linear projections with differentiable, nonlinear decision trees can significantly enhance the quality of deep hashing. By maintaining nonlinearity throughout the network and enforcing bit independence, the model achieves superior retrieval accuracy on standard benchmarks, paving the way for more efficient large-scale image search systems.

Summary updated

BibTeX
@inproceedings{su2017deep,
  author = {Sen Su and Gang Chen and Xiang Cheng and Rong Bi},
  title = {{Deep Supervised Hashing with Nonlinear Projections}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.24963/ijcai.2017/388},
}
Figure