Superbloom: Bloom filter meets Transformer

02/11/2020
by   John Anderson, et al.
6

We extend the idea of word pieces in natural language models to machine learning tasks on opaque ids. This is achieved by applying hash functions to map each id to multiple hash tokens in a much smaller space, similarly to a Bloom filter. We show that by applying a multi-layer Transformer to these Bloom filter digests, we are able to obtain models with high accuracy. They outperform models of a similar size without hashing and, to a large degree, models of a much larger size trained using sampled softmax with the same computational budget. Our key observation is that it is important to use a multi-layer Transformer for Bloom filter digests to remove ambiguity in the hashed input. We believe this provides an alternative method to solving problems with large vocabulary size.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/28/2023

Pb-Hash: Partitioned b-bit Hashing

Many hashing algorithms including minwise hashing (MinHash), one permuta...
research
06/15/2021

What Context Features Can Transformer Language Models Use?

Transformer-based language models benefit from conditioning on contexts ...
research
06/08/2021

Hash Layers For Large Sparse Models

We investigate the training of sparse layers that use different paramete...
research
05/15/2022

Transkimmer: Transformer Learns to Layer-wise Skim

Transformer architecture has become the de-facto model for many machine ...
research
03/12/2022

Low-Rank Softmax Can Have Unargmaxable Classes in Theory but Rarely in Practice

Classifiers in natural language processing (NLP) often have a large numb...
research
04/04/2023

Attention Map Guided Transformer Pruning for Edge Device

Due to its significant capability of modeling long-range dependencies, v...
research
03/18/2021

deepBF: Malicious URL detection using Learned Bloom Filter and Evolutionary Deep Learning

Malicious URL detection is an emerging research area due to continuous m...

Please sign up or login with your details

Forgot password? Click here to reset