Locality-sensitive hash functions are becoming increasingly common components of machine learning systems.1 However, Tensorflow does not have good hash function implementations. To address this, I’ve released my own implementations on GitHub. This post describes some of the design considerations. High-profile conferences such as NeurIPS and ICML have published several algorithms to train networks with LSH (SLIDE and MONGOOSE), perform negative sampling with LSH, improve transformers (the Re...