Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Explore BestHub

#BPE

RSS feed
Follow or choose interest 7-day signal and related keywords

Latest articles

10 articles in the current browsing window, ordered by publication date.

CNF-MCE Tokenizer: Counting & Min-Cost Encoding Beats BPE with 26-60% Compression Gains

Former Tencent AI Lab director Shi Shuming introduces CNF-MCE, a tokenizer replacing BPE's greedy merging with counting-based vocabulary construction and min-cost encoding, achieving 26-60% compression improvements over BPE while maintaining model performance on most benchmarks.

Why LLMs Can't Count Letters in 'Strawberry': The Tokenization Problem Explained

This article explains how tokenization works in large language models, why it causes failures like miscounting letters in 'strawberry', details the BPE algorithm, discusses costs like language inequality and security risks, and explores alternatives like byte-level and dynamic tokenization.

Tokenization: The Hidden Layer Causing 54x AI Cost Gaps Across Languages

Google's 32-author survey on tokenization reveals it as the most underestimated component in LLMs, showing 94% of models reuse identical tokenizers, a 54.3x cost disparity between English and low-resource languages, and that BPE dominates generative models while fundamental fairness and efficiency challenges remain largely unsolved.

Understanding Byte Pair Encoding (BPE): A Greedy Subword Compression Algorithm for NLP

The article explains how Byte Pair Encoding (BPE) works as a greedy, linear‑time subword segmentation technique, walks through its step‑by‑step token merging process with a concrete sentence example, discusses its strengths in handling OOV words, and outlines its limitations and alternatives such as WordPiece and SentencePiece.

How LLMs Turn Text into Numbers: Tokenization & Embeddings Explained

This article explains how natural language is converted into neural network inputs, covering tokenization with BPE using DeepSeek's 128K vocabulary, special tokens, and word embeddings via Word2Vec CBOW/Skip-gram, demonstrated with cosine similarity examples from a 7B model's 4096-dimensional embedding layer.

Implementing the Input Processing Layer of a Transformer Model: Tokenization, Embedding, and Positional Encoding

This article explains how to build the input processing stage of a Transformer—including tokenization with Hugging Face tokenizers, token‑to‑embedding conversion using BERT models, custom BPE tokenizers, and positional encoding—providing complete Python code examples and test results.

How to Crush the Kaggle Toxic Comment Challenge: Data Prep, Models, and Ensemble Secrets

This article breaks down the Kaggle toxic comment classification competition, detailing thorough data cleaning, advanced word‑vector techniques, pseudo‑labeling, BPE tokenization, diverse neural models and ensemble strategies, and shares practical insights and pitfalls from the author's nine‑month competition journey.

Up to 500 articles, 100 per page. The archive offers another way to explore older articles.