↓

Announcement Hugging Face ·

How specializing the vocabulary of SLMs can cut inference cost by 77% in real applications

Dharma-AI's VocabX rebuilds a small model's vocabulary by weighing each token's generation cost rather than frequency, combining sub-word and multi-word macro tokens. On a Portuguese essay grader built on Qwen3-4B, inference cost fell 77% and the score rose from 0.703 to 0.810 (preview results).

What the article says

On October 21, 2026, Dharma-AI published a Hugging Face post previewing results from its forthcoming VocabX paper, which is still under review and may change. VocabX specializes a language model's tokenizer vocabulary around the cost of each token rather than its frequency; in production it cut measured inference cost by 77% without changing the base model.

The case is an automated grader for Portuguese essays built on Qwen3-4B, which kept the general-purpose tokenizer. After specialization the vocabulary went from 151,669 to 64,767 entries, average response length from 350 to 101 tokens, and the bench score from 0.703 to 0.810. Across five public domains and three model families, VocabX compressed more than the strongest reference method in all 15 combinations. Full methods are deferred to the forthcoming paper.

Read the official article AnnuIA profile

Summary written by AnnuIA in its own words from the official page of Hugging Face. The content and rights belong to the publisher: please read the original article.

More announcements from Hugging Face

Latest AI news

All news