LIVE · Thursday 3 December

Decision Models for Multilingual Inputs: When to Use XLM-R, Translate-Test or DMN Business Rules

For multilingual classification and routing, no single model wins. Use rules where policy is written down, test XLM-R against translate-test for the rest, and choose by each language's own results.

By Surya12 min read

For decision models that handle multilingual inputs, fine-tune a multilingual encoder such as XLM-R with a classification head, and benchmark translate-test with a strong English classifier alongside it. A 2023 EMNLP study by Mikel Artetxe and colleagues found that translate-test often beats multilingual models, but that the better choice depends on the task. Decisions that follow written business rules should go through extraction into fixed fields and a DMN decision table instead of a model. Choose between the learned options by held-out results for each language, with a confidence threshold for each language that sends uncertain inputs to review.

A multilingual decision has three parts that should be built separately

A multilingual decision system does three jobs: it defines the labels, it scores each input against them, and it acts on the chosen label. Building each job separately lets a team test each one on its own.

The first job is defining the shared label schema. This is the fixed list of intents, teams or allowed options that every input maps to, whatever its language. A support message in Polish and one in Portuguese must land in the same billing_refund label, or no per-language comparison means anything. The schema should also include an explicit abstain or needs_review outcome from the start.

The second job is scoring. A learned model reads the text and gives a score to each label or option. This is where XLM-R, translate-test, a prompted general model or an option-ranking model such as TOD sits. Scoring only picks a label. It does not do anything.

The third job is acting. Code that sits downstream issues the refund, opens the ticket or assigns the team. Keeping this step outside the model means that a wrong label can be caught by a threshold or a rule before anything happens.

Business rules are a fourth thing, and they are not a model at all. When a decision follows written policy, such as "refunds over a set amount need a manager," the policy should be written as a rule that runs the same way every time. The model's job then shrinks to extracting the facts that the rule needs.

The multilingual encoder XLM-R classifies the original text in one shared model

XLM-R is a masked language model trained on one hundred languages, using more than two terabytes of filtered CommonCrawl text. The ACL 2020 paper by Alexis Conneau and colleagues reported that it beat multilingual BERT by 14.6 points of average accuracy on XNLI, a cross-lingual inference benchmark. The gains were large for low-resource languages: XNLI accuracy rose by 15.7 points for Swahili and 11.4 points for Urdu over earlier XLM models.

For routing, the approach works like this. You add a classification head to the encoder, fine-tune it on labelled examples, and run it on text in the original language. One model serves every language, and no translation step adds cost or delay. The Hugging Face model card for xlm-roberta-base lists about 0.3 billion parameters and an MIT licence, and it describes sequence classification as a main intended use.

The same paper also describes a limit. It analyses a trade-off between positive transfer and "capacity dilution," which means that a fixed-size model spreads its capacity across all of its languages. A language that has little pretraining text or few labelled examples can still trail English by a wide margin. That trade-off is the reason that an aggregate score is not enough.

Translate-test reuses an English classifier, and its accuracy depends on the translation system

Translate-test translates each incoming message into English and then classifies it with an English-only model. Its appeal is reuse: a team that already has a strong English classifier and mostly English training data can serve new languages without relabelling.

For years this was treated as a weak baseline. Artetxe and colleagues revisited it at EMNLP 2023 using the NLLB 3.3B translation model across six classification benchmarks. They fixed two problems. They fine-tuned the translation model on back-translated task data, and they trained the classifier on round-trip translated text so that it would see the same style of input at training and at test time.

With those fixes, translate-test with RoBERTa averaged 72.9 across the six tasks, against 70.9 for the best XLM-R setup. With the stronger DeBERTaV3 model, translate-test averaged 76.2. All three models had 304 million backbone parameters, so the comparison is between methods rather than model sizes.

The result was not uniform, and the pattern matters for routing. Translate-test won on four of six benchmarks, and it did best on tasks that need commonsense or real-world knowledge. XLM-R trained on translated data won on sentiment classification, which the authors describe as a shallower task where translation noise outweighs the benefit of a stronger English model. Intent routing may behave more like sentiment than like commonsense reasoning, but that has not been measured.

Translate-test also adds two failure sources of its own, according to the paper. Information can be lost in translation, and the translated text can differ in style from the original text that the classifier was trained on. The study also found translate-test more sensitive to translation quality than translate-train. Two practical limits follow from this:

  • The translation system's licence can rule out the research setup. The model card for the distilled NLLB-200 model lists a CC-BY-NC-4.0 licence and states that it is "not released for production deployment."
  • The set of supported languages shrinks to the overlap of the translator and the classifier. The 2023 study dropped Quechua from one benchmark because NLLB does not support it, and dropped Haitian Creole because XLM-R does not.

A commercial translation API removes the licence problem but adds a cost for each character. Google Cloud's pricing page lists $20 per million characters for its standard translation model after the first 500,000 free characters each month, and it bills whitespace too.

A prompted general model returns a valid label but no confidence score by itself

A third option is to send the message and the label list to a general model and ask for one label. This needs no training data, which makes it the fastest option to try.

OpenAI's Structured Outputs guide describes a way to keep the answer inside the label list. It constrains completed, non-refusal output to a supplied JSON Schema, including enum values. The same guide states that applications must still handle refusals, incomplete responses and API errors.

The weakness for routing is the threshold. A label returned through a schema carries no probability, so there is no score to set a per-language threshold on. Abstention has to come from another method, such as asking for an explicit needs_review label or scoring the label list in a separate step. How well either method works across languages has not been measured.

Option-ranking decision models such as TOD are a candidate that still needs per-language tests

Parsec, a small language model lab, sells a model called TOD that ranks the next action from a list of allowed actions. According to Parsec's TOD page, it reads text and images plus policy and task state, it writes no free text, and a confidence gate passes uncertain turns unchanged to the main language model. The page lists a price of $0.30 per 1,000 decisions, separate from the main model's costs. The release that should be tested is the one that the page calls "TOD decision v1 release evaluation, 29 September 2026." According to its model card, this release is a set of LoRA adapters on google/gemma-4-12B-it plus a ModernBERT-base retriever, and it requires acceptance of the Gemma 4 licence. Its repo describes a predict(state, options, question, images) call that returns one probability per option. The evaluations that Parsec publishes for TOD do not include per-language results. Any claim about how it handles a given language would need a new test.

Decisions governed by written policy belong in DMN business rules, after extraction

Some routing questions should not be answered by a model at all. If the rule is "German-language enterprise accounts with an open invoice go to the Frankfurt billing team," a model can only approximate a rule that the business already knows exactly.

Decision Model and Notation, or DMN, is the standard for writing such rules. The Apache KIE documentation for Drools defines DMN as "a standard established by the Object Management Group (OMG) for describing and modeling operational decisions." A DMN decision table holds one or more business rules in rows, with input conditions in columns and an output for each row. Drools runs DMN 1.1 to 1.4 models at conformance level 3, which is the level for fully executable models.

In a multilingual system, the learned part shrinks to extraction. A model reads the message in any language and fills fixed fields, such as account tier, product and whether an invoice is mentioned. The decision table then applies the same policy to every language. The rule half has no language dependence at all, so only the extraction step needs per-language testing.

DMN also makes conflicts visible. Camunda's documentation describes the "Unique" hit policy, under which evaluation fails and raises an incident when more than one rule matches. That behaviour is useful when an extraction error would otherwise trigger two policies at once.

Per-language accuracy, calibration and coverage decide which option to use

The multilingual research agrees that an overall average can hide weak languages. The XTREME-R benchmark paper, which covers 50 typologically diverse languages, was built for fine-grained evaluation and found progress uneven across tasks. A routing evaluation should copy that approach.

No study has compared XLM-R, translate-test, a prompted model, TOD and extraction plus DMN on the same multilingual routing workload. The Tribune has not run that comparison either. A comparison that would support a decision has to report these items for each language:

  1. Report decision accuracy, false positives and false negatives for each label, with the number of test examples, so that a 2-point gap on 40 examples is not mistaken for a real difference.
  2. Report uncertainty as an interval over repeated runs or bootstrap samples. The 2023 translate-test study averaged five fine-tuning runs with different seeds.
  3. Report calibration separately from accuracy. Desai and Durrett found that fine-tuned BERT and RoBERTa models were reasonably calibrated on data like their training data, and that temperature scaling reduced the error further. A language with little training data may not behave like training data, so it should be checked on its own.
  4. Report coverage at an accepted error rate. Set a threshold for each language so that errors among the accepted inputs stay under the target, then report the share of traffic that the model accepts.
  5. Report translation-induced failures separately for translate-test, by comparing the label on the translated text with the label on a human translation where one exists.
  6. Report latency and total cost with the hardware, numeric precision, number of candidate labels, and translation and fallback costs stated.

The test set should include low-resource languages, regional dialects and code-switched messages. The GLUECoS benchmark for English-Hindi and English-Spanish found that multilingual models fine-tuned on artificially generated code-switched data performed best on most tasks. Public sets such as MASSIVE, with 1 million labelled assistant utterances across 51 languages and 60 intents, can serve as a starting point. They do not replace a test set drawn from your own traffic.

The test set should also include inputs that ought to be sent to review. Three examples show the kind:

  • A message in a language that the system was never trained on, which should go to review instead of the nearest label.
  • A message that mixes Hindi and English and asks for two things, such as cancelling one order and changing another.
  • A message whose meaning depends on policy that the model cannot see, such as a refund request just above an approval limit.

With those results in hand, the choice usually follows from the situation:

  • Use extraction plus DMN when the outcome is set by written policy and an auditor needs to see why each decision was made.
  • Use XLM-R with a classification head when you have labelled data in most target languages and need one model with no translation step.
  • Use translate-test when your best classifier and most of your labels are in English and the translation system covers every language that you serve.
  • Use a prompted general model to set a baseline quickly before labelled data exists, with a separate method for abstention.
  • Test an option-ranking model when the decision is a choice among allowed actions inside an assistant, and only for languages that you have measured.

Translation and dedicated GPUs set most of the cost at one million messages a month

A worked example shows how the bill differs. It assumes 1 million messages a month, 300 characters each on average, with 600,000 of them not in English. It assumes that each message's language is already known from account settings. Self-hosted models run on one Together AI H100 dedicated endpoint at its listed $5.49 an hour, for 720 hours a month. Whether this workload needs a full H100 has not been measured.

On those assumptions, the monthly costs work out as follows:

  • Running XLM-R on one H100 costs $5.49 × 720 = $3,952.80.
  • Running translate-test adds translation of 600,000 × 300 = 180 million characters. At Google's $20 per million after the free 500,000, translation costs 179.5 × $20 = $3,590. With the English classifier on the same kind of H100, the total is $7,542.80.
  • Running a prompted gpt-6-luna with 600 input tokens and 10 output tokens per message costs $60 + $5 = $65 at OpenAI's listed $0.10 and $0.50 per million tokens. If the 500-token shared prefix is billed at the $0.01 cached rate, the total falls to $20.

Token counts per message differ by language and have not been measured here. Google also bills whitespace, so real character counts can run higher than the visible text. Latency for each option has not been measured on this workload either.

A new fine-tune is worth trying only as a separate, tested experiment

The cheapest result is that an existing model already meets the error target in every language that you serve. Fine-tuning a larger model, adapting a translation system as the 2023 study did, or tuning a vendor's decision model can all raise accuracy. Each change also adds a new version that has to be tested again in every language.

Treat tuning as its own experiment. Fix the label schema and the per-language test set first, record the current model's accuracy, calibration and coverage, and then compare the tuned model against those numbers on the same examples. Publish the scripts, the model and translation versions, and every test example that your data terms allow. A tuned model that raises the average but lowers coverage in one language has not improved the system for that language's users.

Sources

More in Research

All Research →