Procrustean Orthogonal Sparse Hashing

Mariano Tepper, Dipanjan Sengupta, Theodore L. WillkearXiv 2020

Introduction

Similarity search—the task of finding the "nearest neighbors" to a query in massive, high-dimensional databases—is a fundamental challenge in modern AI. From recommender systems to genomics, the efficiency of these searches often relies on hashing, which compresses complex data into short binary strings.

While traditional methods focus on "dense" hashing, recent neuroscience has revealed that the olfactory system of the Drosophila melanogaster (fruit fly) utilizes sparse hashing to identify odors. Previous attempts to replicate this biological efficiency, such as BioHash, were often heuristic. This paper introduces Procrustean Orthogonal Sparse Hashing (POSH), a method that provides a rigorous mathematical foundation for the fly's neural circuitry and improves upon it through formal optimization.

The POSH Framework: From Biology to SVD

The core innovation of POSH lies in the formalization of the "Winner-Take-All" (WTA) mechanism found in the fruit fly's brain. The authors prove that this biological process is actually the unique solution to a squared-error minimization problem.

Building on this, the authors identify a critical missing component in previous bio-inspired models: orthogonality. While random biological connections are approximately orthogonal in high dimensions, explicitly enforcing this constraint (ensuring the projection matrix $W$ satisfies $W^\top W = I$) prevents information loss during the hashing process. POSH employs an alternating optimization strategy: it solves for sparse hash codes using WTA and then updates the projection matrix using the Orthogonal Procrustes method, solved efficiently via Singular Value Decomposition (SVD).

Optimization dynamics of POSH compared to BioHash and SphericalHash. POSH (bottom right) shows a clear minimization of its objective function while maintaining high MAP performance.

Additionally, the researchers introduced SphericalHash, proving that the existing BioHash method is mathematically equivalent to spherical k-means. This discovery allows for significantly faster training while maintaining or exceeding BioHash's accuracy.

Experimental Evaluation

The researchers evaluated POSH and SphericalHash against standard computer vision benchmarks, including MNIST, CIFAR-10, and the large-scale Places205 dataset (containing 2.5 million images).

Key Results

  • Superior Accuracy: POSH consistently outperformed state-of-the-art unsupervised methods like ITQ, LSH, and KNNH. On the massive Places205 dataset, POSH achieved a Mean Average Precision (MAP@1000) of 32.83% at 64 bits, outperforming the original FruitFly method (32.02%).
  • The Orthogonality Advantage: As shown in the performance benchmarks, explicitly orthogonal matrices (the "Orthogonal" bars in the figure below) consistently provide the highest relative improvement in MAP across diverse datasets.
  • Refinement Boost: A post-processing "Candidate Refinement" step, using a learned linear decoder to break ties in Hamming space, provided a consistent accuracy lift with minimal computational overhead.
Performance comparison across datasets. (a) Distribution of matrix elements showing near-orthogonality. (b) Relative improvement in MAP@100, highlighting the consistent advantage of orthogonal matrices (purple bars).

Insights and Future Directions

The success of POSH suggests that biological architectures are not just efficient heuristics but are often mathematically optimal solutions to specific reconstruction problems. High-dimensional sparse codes appear better suited to preserving local neighborhood structures than dense codes of equivalent length.

However, the current implementation of POSH relies on SVD, which is not biologically plausible (neurons do not perform SVD). Future work may explore "Hebbian" or local update rules to achieve similar orthogonal constraints. Furthermore, moving from a two-step learning process (encoder then decoder) to a joint end-to-end training framework could yield even greater performance gains.

Summary updated

BibTeX
@misc{tepper2020procrustean,
  author = {Mariano Tepper and Dipanjan Sengupta and Theodore L. Willke},
  title = {{Procrustean Orthogonal Sparse Hashing}},
  year = {2020},
  eprint = {2006.04847},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.04847},
}
Figure