REVIEW 7 cited by
Fast WordPiece Tokenization
Not yet reviewed by Pith; the record is open.
This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.
SPECIMEN: schema-true, not a live event
T0 review · schema-true
One-sentence machine reading of the paper's core claim.
pith:XXXXXXXX · record.json · timestamp
read the original abstract
Tokenization is a fundamental preprocessing step for almost all NLP tasks. In this paper, we propose efficient algorithms for the WordPiece tokenization used in BERT, from single-word tokenization to general text (e.g., sentence) tokenization. When tokenizing a single word, WordPiece uses a longest-match-first strategy, known as maximum matching. The best known algorithms so far are O(n^2) (where n is the input length) or O(nm) (where m is the maximum vocabulary token length). We propose a novel algorithm whose tokenization complexity is strictly O(n). Our method is inspired by the Aho-Corasick algorithm. We introduce additional linkages on top of the trie built from the vocabulary, allowing smart transitions when the trie matching cannot continue. For general text, we further propose an algorithm that combines pre-tokenization (splitting the text into words) and our linear-time WordPiece method into a single pass. Experimental results show that our method is 8.2x faster than HuggingFace Tokenizers and 5.1x faster than TensorFlow Text on average for general text tokenization.
Forward citations
Cited by 7 Pith papers
-
Multimodal Medical Code Tokenizer
MedTok encodes medical codes with text and graph information into a shared vector-quantized token space, improving downstream EHR prediction and medical QA when swapped in for standard tokenizers.
-
Multidimensional Byte Pair Encoding: Shortened Sequences for Improved Visual Data Generation
A multidimensional extension of Byte Pair Encoding compresses visual token grids losslessly into shorter sequences, improving transformer-based generation FID on image and 3D datasets.
-
EndoChat: Grounded Multimodal Large Language Model for Endoscopic Surgery
EndoChat is a grounded multimodal LLM for endoscopic surgery, trained on the new Surg-396K dataset and reported to outperform prior MLLMs, though its evaluation is confounded by training-data overlap.
-
1 bit is all we need: binary normalized neural networks
Binary normalized layers with all parameters in {0,1} reach near-32-bit accuracy on Food-101 and WikiText-103, with some caveats.
-
Comparative analysis of subword tokenization approaches for Indian languages
Across SMT and NMT models for 11 Indian languages, SentencePiece gives the highest BLEU for most language pairs, while BPE wins in the multilingual model.
-
POINTS1.5: Building a Vision-Language Model towards Real World Applications
POINTS1.5-7B, a vision-language model with a NaViT-style encoder, bilingual data, and filtered instruction tuning, ranks first on OpenCompass among sub-10B models.
-
Evaluating Tokenizer Performance of Large Language Models Across Official Indian Languages
A single-sentence evaluation claims SUTRA's tokenizer is most token-efficient across 14 of India's 22 official languages, based on one example text per language.
Discussion (0). Continue with ORCID to comment.