← Back to the feed
Build10 min readSource-linked

A smaller AI vocabulary should keep room for the answer

Dharma-AI reports large savings from task-specific vocabulary changes. The interesting lesson is to optimize repeated formatting without squeezing away meaningful choices.

A large ceramic tray of tiny graphite squares beside a smaller lavender dish and a closed metal case.
AI-generated editorial illustration · Conceptual artwork, not a product photograph.

The repeated wrapper can be a surprising part of the work

Think about an AI feature that returns the same kind of small response thousands of times: a category, a short explanation, and a few structured fields. The content changes, but the wrapper barely does. A general-purpose model carries a broad vocabulary into that narrow task. The question is whether some of that flexibility is useful overhead or avoidable work.

In an October 21 post, Dharma-AI previewed VocabX, a method for specializing a model's vocabulary around a task's inference cost. The authors report a 77% reduction in measured inference cost for their Portuguese essay-grading system built on Qwen3-4B. They describe a comparison using the same base model and training recipe, with 500 requests on an RTX 5090 using vLLM. The article says its paper is still under review and forthcoming, so the figures are preliminary author-reported results, not a universal saving or an independently reproduced finding.

This is more substantial than replacing a prompt with a shorter sentence. The work changes the vocabulary and involves a training comparison. Do not assume you can swap a tokenizer into an existing model and obtain the reported result. The useful idea for a broader audience is that repeated structure and meaningful decisions deserve different treatment.

Our proposed exercise starts before any model modification: inspect a fictional structured-output task and identify what repeats, what carries meaning, and what must remain flexible. You can learn from that audit without access to VocabX code or specialized hardware. The goal is a clearer account of what your AI feature is spending effort to express.

Source: Dharma-AI: VocabX vocabulary-specialization research preview ↗

Understand the three objects you are comparing

Text, tokens, and a useful answer are different objects. Text is what the user reads. Tokens are the pieces the model processes and generates. The answer is the meaning your application needs. Changing how text is divided can change token counts without making the user's task any easier or harder. Conversely, removing a meaningful distinction can make a response shorter while making the product worse.

For a fictional example, imagine a tool that labels a club's public event submissions as ready, needs details, or outside scope. It returns a category, a short explanation, and a list of missing fields. These labels and fields are our invented application, not the essay-grading system in the VocabX report.

Some text repeats because of the response format: the same field names, punctuation, and empty-list representation. Other text repeats because similar issues recur, such as an absent venue. Still other text carries the decision: which category applies, which information is missing, and why. An optimization proposal should identify which of these it changes.

Before counting anything, write what a correct response means. A submission with no date may need details. A submission that is fully specified may be ready. A submission outside the club's published remit needs a different explanation. Keep those conditions in a human-readable policy for the exercise rather than allowing the model's output frequency to define them.

Then preserve a few examples with expected decisions. Include a rare but valid case and a case that should remain uncertain. If your sample contains only ordinary successes, the most compact design may simply be the one that never had to express anything difficult.

This distinction makes the audit useful: you are studying the representation of a task whose purpose is already defined.

Audit the output before chasing a savings number

Collect a small, permitted sample of outputs from your own sandbox, or write synthetic ones for the fictional event tool. Keep the exact strings and the intended meaning beside them. Mark repeated formatting separately from explanations and decisions. You can start by visually highlighting the fields; a script is optional.

If you use a tokenizer to inspect counts, record the exact tokenizer and version. A count only makes sense in that context. Do not compare one model's count with another model's bill and call the difference a saving. Likewise, a shorter response is not automatically a lower-cost completed task if it requires another round of questions or a manual correction.

Write down how much output is necessary for the user. Does the application need a full paragraph, or would a category and one specific missing field be enough? That is a product-design question you can explore without modifying vocabulary. Keep it separate from the research intervention, which changes how a trained model represents text.

For the fictional tool, a useful compact answer might identify the absent date directly rather than repeating the entire submission. But a bare needs details label could be too short to help the organizer act. The right endpoint is a response that supports the next step, not the smallest possible string.

Retain examples that do not fit the common pattern. Perhaps an event has a date range, a remote venue, or a description in a language your exercise is designed to accept. An audit that treats those cases as disposable noise can optimize away a real requirement.

End the audit with a question: which repeated text could be represented more efficiently without removing a decision the system still needs to make? That is much more precise than asking whether all responses can be shorter.

Protect the boundary where a choice becomes meaningful

Dharma-AI's report includes a useful tradeoff: an earlier compact vocabulary design fused grading decisions into surrounding structure and performed worse on the authors' quality measure. Separating the grade from that structure used a little more output but improved their reported result. We draw a general design question from that example, not a guarantee that the same intervention helps another system.

In the fictional event tool, imagine treating an entire common answer as one indivisible choice: category ready, explanation complete, no missing fields. That might represent a frequent response compactly. But the application also needs to express combinations that are less common: a ready event with a clarification note, an incomplete event with several missing details, or an uncertain category requiring a person.

Do not assume the most frequent combinations exhaust the legitimate ones. Write a few counterexamples that recombine familiar fields in a new way. Ask whether the proposed representation still allows each distinction to be expressed clearly and checked by the application. This is a paper exercise, not a claim about the internal behavior of any particular tokenizer.

Also distinguish format validity from task correctness. A response can be perfectly structured and choose the wrong category. It can choose the right category but omit the information the user needs to correct the submission. A useful evaluation checks both, rather than treating valid JSON as proof that the work is done.

When a decision affects a person, keep the human process visible. Our fictional classifier is an organizing aid for a club's sandbox, not an authority for grading students or deciding access to real opportunities. The published research example does not establish that automated assessment is appropriate in every educational setting.

The broader lesson is constructive: efficiency should preserve the places where the application needs to distinguish one valid answer from another.

Measure the full task under an honest comparison

If you later evaluate a specialized model, define the comparison before looking at the results. Keep the task, input set, output requirements, and serving conditions as consistent as practical. Record which parts changed. A new vocabulary, new training data, and a new serving setup together describe a new overall system; they do not isolate one cause of improvement.

Choose useful outcomes. For our fictional classifier, you might check category agreement with the exercise policy, whether missing fields are identified, whether the output can be read by the application, and how often a person has to correct it. Keep individual cases as well as summary numbers. A compact average can hide a small group of requests that became much harder.

Track time and resource measures appropriate to the system you actually run. Input processing, output generation, batching, and total completed requests are different parts of an evaluation. The VocabX article reports a specific serving experiment; it is not a current price quote for a hosted service or a forecast of your cloud bill.

Include failed and retried requests in your practical account. If a compact response regularly forces the application to ask again, the first response's token count is an incomplete picture. A useful metric should reflect the whole path to an acceptable result, including any human review your product requires.

Reserve an evaluation set that was not used to select the optimization. If you inspect a difficult case and redesign around it, keep it as a development example and use different cases for the next check. Otherwise the comparison can become a record of how closely you adapted to a familiar sample.

Make the limitations readable. A single-language, fixed-format result can be valuable without claiming the same benefit for an open-ended multilingual chat assistant. Scope is part of what makes a result useful, because it tells another builder where to investigate rather than what to assume.

For anyone considering a model modification, use the eventual technical materials and current implementation documentation when available. This article is a way to read the research question, not a training recipe or a promise that a release is ready to install.

Treat unusual language as a requirement to discuss

A domain-specific system makes choices about which expressions are common enough to represent efficiently. That creates an important product question: what happens when a valid user expresses the same idea differently? The answer depends on the task and the intended users, so write those requirements down before declaring a narrow vocabulary sufficient.

For the club tool, you could include a legitimate event description with an unfamiliar place name, a spelling variation, or a different supported language. Check whether the final response still preserves the person's meaning and follows the exercise policy. These examples are proposed tests, not evidence that VocabX fails on them.

Do not confuse uncommon with unimportant. An emergency exception, an unusual name, or a less frequent category can matter precisely because a generic happy-path answer would be wrong. Frequency is useful information for optimization, but it is not a complete account of a product's obligations to its users.

At the same time, a narrow scope can be honest. A system designed for one language and one structured task can state that boundary clearly and offer an appropriate fallback for unsupported requests. The problem is presenting a specialized system as if its tested scope were unlimited.

Ask who decides the scope and how a user discovers it. A small note in a model card may not be enough for the person using the finished interface. The application should make relevant limits understandable at the point where they affect a decision, without overwhelming every ordinary interaction.

A good optimization report includes the quality of these less common cases. That keeps the pursuit of efficiency connected to the people and tasks the feature exists to serve.

A useful first step needs no new model

Take a small structured-output feature and make a response inventory. List the stable wrapper, the repeated phrases, the meaningful choices, and the cases that must remain expressible. Then ask whether the existing response format gives users what they need with unnecessary repetition removed.

Try two human-designed output formats on synthetic examples. One can be deliberately verbose; the other can be compact while preserving the same decisions and actionable information. Ask someone to use each result to take the next step. That exercise tests the product contract before you consider changing how a model encodes it.

Keep this format experiment separate from a claim to reproduce VocabX. You have not trained a vocabulary-specialized model, measured the authors' hardware setup, or verified the reported saving. What you have done is make the task's essential distinctions explicit, which is valuable preparation for any later efficiency work.

The research preview is interesting because it asks builders to look at a layer often treated as fixed. The practical habit is to make sure optimization still leaves room for the answer. Repeated formatting is a promising place to investigate. Meaningful choices are the part you need to preserve.

YOUR NEXT MOVE

Try this, then make it yours.

Invent a small structured-output task. Highlight its repeated wrapper and its decision fields, add rare valid cases, and compare a verbose and compact response format before considering any model modification.

Explore the tool ↗

Follow the signal.

Our reporting starts here. Practical suggestions are our analysis, and vendor performance statements are claims unless independently verified. We haven’t hands-on tested this release.

  1. Dharma-AI: VocabX vocabulary-specialization research preview ↗ · 2026-10-21