Skip to main content
QUICK REVIEW

[Paper Review] Making Online Sketching Hashing Even Faster

Xixian Chen, Haiqin Yang|arXiv (Cornell University)|Oct 10, 2020
Advanced Image and Video Retrieval TechniquesComputer Science57 references7 citations
TL;DR

This paper proposes FROSH (Fastest Online Sketching Hashing) and its distributed variant DFROSH to accelerate online sketching hashing, enabling single-pass, low-memory processing of streaming data. By applying independent transformations to compactly sketch data, FROSH achieves comparable sketching precision to OSH with up to 300x faster training—reducing time from minutes to seconds on large-scale datasets like FLICKR-25600.

ABSTRACT

Data-dependent hashing methods have demonstrated good performance in various machine learning applications to learn a low-dimensional representation from the original data. However, they still suffer from several obstacles: First, most of existing hashing methods are trained in a batch mode, yielding inefficiency for training streaming data. Second, the computational cost and the memory consumption increase extraordinarily in the big data setting, which perplexes the training procedure. Third, the lack of labeled data hinders the improvement of the model performance. To address these difficulties, we utilize online sketching hashing (OSH) and present a FasteR Online Sketching Hashing (FROSH) algorithm to sketch the data in a more compact form via an independent transformation. We provide theoretical justification to guarantee that our proposed FROSH consumes less time and achieves a comparable sketching precision under the same memory cost of OSH. We also extend FROSH to its distributed implementation, namely DFROSH, to further reduce the training time cost of FROSH while deriving the theoretical bound of the sketching precision. Finally, we conduct extensive experiments on both synthetic and real datasets to demonstrate the attractive merits of FROSH and DFROSH.

Motivation & Objective

  • Address the inefficiency of batch-trained hashing methods in streaming and big data settings.
  • Reduce computational cost and memory consumption in high-dimensional data processing.
  • Overcome the limitations of existing online hashing methods in terms of training speed and scalability.
  • Provide theoretical guarantees on sketching precision for online and distributed variants.
  • Enable practical deployment of hashing in real-time, distributed, and data-streaming applications.

Proposed method

  • Propose FROSH, an online sketching hashing algorithm that uses independent transformations to compress data into a compact form.
  • Theoretical analysis proves that FROSH maintains sketching precision comparable to OSH under the same memory budget.
  • Introduce DFROSH, a distributed extension of FROSH that processes data across multiple machines in parallel.
  • Use a sketching size ℓ = 2r, where r is the code length, to balance precision and efficiency.
  • Apply empirical settings with m = 4d for FROSH and DFROSH, and distribute data evenly across five machines in DFROSH.
  • Leverage SVD-based approximation and low-rank matrix decomposition to maintain accuracy while minimizing computation.

Experimental results

Research questions

  • RQ1Can online sketching hashing be made significantly faster without sacrificing sketching precision?
  • RQ2How does the proposed FROSH algorithm compare to OSH in terms of training time and precision under identical memory constraints?
  • RQ3Can a distributed implementation of FROSH (DFROSH) further accelerate training while preserving theoretical bounds on precision?
  • RQ4How does FROSH perform on high-dimensional, real-world datasets such as FLICKR-25600 compared to batch-trained methods?
  • RQ5What is the trade-off between training efficiency and accuracy across different code lengths (32, 64, 128 bits)?

Key findings

  • FROSH reduces training time to 1/20th to 1/10th of OSH, achieving 0.63s for 32-bit codes on CIFAR-10 and 72s on FLICKR-25600.
  • DFROSH achieves up to 300x speedup over batch-trained OCH, reducing training time from over 5,000s to under 30s on FLICKR-25600.
  • FROSH and DFROSH maintain MAP scores comparable to OSH and even outperform OCH on FLICKR-25600, indicating strong generalization on high-dimensional data.
  • Precision-recall curves show FROSH and DFROSH nearly overlap with OSH, confirming competitive retrieval accuracy.
  • On all datasets, FROSH and DFROSH consistently improve MAP scores with incoming data, demonstrating effective adaptation to data drift.
  • Theoretical analysis confirms that FROSH and DFROSH preserve sketching precision within bounds, justifying their efficiency-accuracy trade-off.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.