← AI news

Dharma AI reports lower inference costs from task-specific vocabulary

Brief by TrendCue AI · Dates refer to the original sources.

Dharma AI says a task-specific vocabulary cut measured inference cost by 77.0% in its Portuguese essay grader while improving its combined quality score. The results preview a VocabX paper still under review and may change before publication.

A vocabulary tailored to the task

The production grader uses Qwen3-4B to return grades and comments in JSON. Dharma AI rebuilt its general-purpose vocabulary using VocabX, which selects subword tokens and repeated spans based on estimated savings, giving greater weight to costlier generated text. The company says it kept the base model, data and training recipe unchanged.

Hugging Face

Cost and quality in the grader

Dharma AI tested seven tokenizer variants on the same 500 requests, using an RTX 5090 GPU and vLLM; cost was calculated from measured runtime. Average output fell from 350 to 101 tokens, and its bench score, combining grading and screening accuracy, rose from 0.703 to 0.810. An earlier, more compact design scored 0.689: it fused grades into structural tokens, whereas the revised design kept grades separate.

Hugging Face

Tests beyond the production system

The company also compared VocabX with reference methods across contracts, medical papers, scientific papers, news and Python code using Qwen3, Llama-3.1 and Gemma-3. It says VocabX achieved greater compression in every tested combination, and its pruned variant led on estimated inference cost. The full experimental tables are planned for the forthcoming paper.

Hugging Face

Original sources

Original websites and X posts open in a new tab.

Community vote