Elamur Research

Machine Translation Hallucination Detection for Low and High Resource Languages using Large Language Models

Paper · 2024 · Kenza Benkirane, Laura Gongas, Shahar Pelles et al.

Summary

A machine translation can read smoothly while introducing information that has no basis in the original. Benkirane and colleagues study whether an automated check can spot these hallucinations after a translation has been produced. Their detectors see the original sentence and its machine translation. Some compare the meanings of the sentences through numerical representations. Others receive written instructions and return a judgment. Both approaches operate without a human reference translation, a useful property when the languages involved have limited translation resources. The study tests both approaches across 16 machine translation directions.

The benchmark, HalOmi, supplies human judgments about the presence and severity of hallucinations. The paper’s main experiment asks a binary question: does the translation contain a hallucination of any severity? The authors choose prompts and similarity thresholds on German–English translations in both directions, then evaluate those choices on the other directions. The test set contains 2,558 sentence pairs. The headline metric is the Matthews correlation coefficient, or MCC, which takes account of correct and incorrect decisions for both classes. That matters because clean translations are much more common in some directions than in others.

Llama3-70B achieves the highest overall MCC, at 0.43. In the high-resource group, it reaches 0.63, compared with 0.46 for BLASER-QE, the strongest previously reported HalOmi detector. The low-resource group tells a different story. Claude Sonnet leads the prompted systems on average and performs roughly on par with BLASER-QE, while BLASER-QE misses hallucinations more frequently. In the Spanish–Yoruba directions, Claude Opus leads the reported comparison, scoring 0.28 MCC against 0.11 for BLASER-QE. Sentence similarity is also competitive, especially for several high-resource directions involving different scripts.

The answer changes again when the task changes. In a separate experiment that asks detectors to rank translations by hallucination severity, BLASER-QE retains the best overall result. The paper therefore distinguishes a detector’s ability to flag unsupported content from its ability to order errors by extent. It also shows why averages need their language context. A detector that leads the full benchmark can have a weaker result where the source language, target language, and distribution of hallucinations differ from those in its strongest directions. This is especially important when evaluating low-resource languages.

Deep dive: Machine Translation Hallucination Detection for Low and High Resource Languages using Large Language Models

How well can prompted language systems and sentence similarity detect hallucinations in machine translation across high- and low-resource languages? · about 30 minutes to read

The problem and its context

A fluent sentence can still depart from its source

A translation is supposed to convey what the source says. To check whether it does, a reader has to compare the two texts. Fluency helps someone read the translation, but by itself says little about whether a detail in the target sentence can be traced to the original. A fluent sentence carrying an unrelated detail can pass a casual reading precisely because the detail fits smoothly into the rest of the sentence. The paper uses hallucination for this kind of departure from the source.

The paper’s examples of potential harm come from medicine and law. If a translation introduces unsupported information about a diagnosis or the use of a treatment, a reader may take it as an instruction from the original. A similar problem arises when a translated contract introduces a claim that changes how someone understands the agreement. The study evaluates benchmark sentences, and these applications explain the authors’ interest in detecting the error as a distinct category. A system’s general ability to produce readable translations gives only part of the evidence needed to trust a particular output.

The specific criterion also matters to people building a detector. An omission leaves something out. A hallucination introduces material that is unrelated to the source. A translation could leave out a clause and still contain no hallucination, or it could preserve much of a clause while introducing an unrelated piece of information. Under the binary task used in the paper, a negative label speaks to the absence of the latter error. The translation could still have other defects. General translation quality and hallucination detection consequently ask different questions about the same pair of sentences.

The criterion turns on meaning across languages. A faithful translation often uses different word order, changes how an idea is expressed, or requires target-language words that have no obvious one-to-one counterpart in the source. A comparison that treats each difference in wording as an error would miss the distinction the authors want to draw. The prompts developed for the study ask whether a word in the translation has a plausible semantic relation to what the source expresses. The similarity approach tackles the same problem at the sentence level by placing sentences from different languages in a common numerical space.

Earlier work supplied both detection methods and a benchmark

The authors describe two points at which researchers have addressed hallucinations. One is the translation process itself. Multilingual translation projects expanded coverage to languages with fewer resources, with the aim of producing more reliable translations in those directions. The paper cites M2M-100 and NLLB-200 among those efforts. It also discusses the work associated with MADLAD-400.

The other point is after translation. Once a sentence has been generated, a separate evaluator can inspect it before it is used. As the authors describe the field, much of this evaluation had concentrated on overall quality or on a broader inventory of errors. Hallucinations occur relatively infrequently in some settings, so their effects can receive little weight in an aggregate score. Work focusing directly on hallucinations had also tended to study translations involving English and high-resource languages. That left less evidence about detection in lower-resource settings and about directions that did without English altogether. Looking for a Needle in a Haystack

One earlier line of work compared the source and translation using semantic similarity. A sentence embedding is a set of numbers representing the sentence as a whole. If an embedding space represents meaning across languages well, two sentences that convey the same thing can be close in that space even when they share little surface vocabulary. Prior work with multilingual representations such as LASER and LaBSE had shown that this kind of comparison could help detect severe hallucinations. Benkirane and colleagues are particularly interested in whether that evidence extends across resource levels. Bitext Mining Using Distilled Sentence Representations · Language-agnostic BERT Sentence Embedding · Detecting and Mitigating Hallucinations in Machine Translation

A second line of work treated translation evaluation as a task that could be described in natural language to a general-purpose system. The earlier results cited in the paper include strong assessments of overall translation quality in high-resource languages. Those assessments were made at system level, where the aim is to assess a translation system across examples. The present study asks for a judgment about each sentence pair. The paper also discusses AUTOMQM, an approach designed to identify a wider range of translation errors, including in lower-resource settings. The existence of such approaches made a dedicated hallucination label a natural task to test. The Devil Is in the Errors

HalOmi provided a way to bring these approaches into a common comparison. It contains machine translations that people assessed for hallucinations and omissions. Its coverage includes directions between English and other high-resource languages, directions between English and lower-resource languages, and directions that involve a high-resource and a lower-resource language without English. It also includes languages using different scripts. A direction matters because translating out of a language requires a different decision from translating into it. The target sentence is where the detector looks for unsupported content, so exchanging the source and target changes what is being judged.

HalOmi had already established a strong comparison point in BLASER-QE. It uses the SONAR multilingual representation space to assign a quality score to a translation based on its relation to the source. The proposed study could therefore compare a prompted judgment with two related numerical approaches. One uses similarity directly. The other uses an existing quality estimator built on a multilingual representation. Running both the direct SONAR comparison and BLASER-QE helps show how much the choice of scoring procedure matters when the sentence representation comes from the same family. SONAR · SeamlessM4T

The method, step by step

Set aside directions for choosing the detector settings

Each item starts with a source sentence and the sentence a machine translation system produced from it. HalOmi’s human judgments supply the expected labels against which detector decisions are checked. The authors first restrict the benchmark to natural machine translations. HalOmi also contains perturbed examples, where changes were introduced for the benchmark. The authors were interested in errors that arose in ordinary translation output, because performance on introduced changes may carry over imperfectly to naturally occurring hallucinations.

Next they split the data by translation direction. German into English and English into German form the validation set, with 301 sentences. Validation is where the authors decide which phrasing to use and where to place the cutoff for similarity-based decisions. The test set is reserved for assessing those decisions. Because the split is by direction, none of the test directions contributes its own examples to the choice of prompt or threshold. The authors chose German and English because the pair has extensive resources and established benchmarks. They then tested whether settings chosen there would work in other directions.

The test directions come from pairs involving English and Arabic, Chinese, Russian, or Spanish, as well as English and Kashmiri, Manipuri, or Yoruba. Spanish and Yoruba provide both directions without English. The validation and test split thus tests transfer in several senses at once. The validator sees just the German–English pair when a setting is being chosen. The test can then ask the same setting to handle another language, a different script, or a different distribution of hallucinations. English remains on one side in most of the test directions, while Spanish–Yoruba provides a smaller test of transfer away from English.

The authors also exclude six test sentence pairs because prompted systems flagged them for sensitive content and filtered them out. The resulting test set used in the main evaluation contains 2,558 sentence pairs. This filter is distinct from removing perturbed examples. The earlier decision defines the kind of translation error the study is meant to capture. The later one defines which of those examples could be carried through the evaluation. The paper makes the HalOmi evaluation data and the study code available on GitHub.

Decide what a positive label means

HalOmi distinguishes four levels for a sentence. The clean category indicates an absence of hallucinated material. A small hallucination involves a short piece of unsupported content, a partial one affects more of the translation, and a full one covers nearly the whole output. These categories preserve information about extent. In a small sample, however, a direction may have very few examples of an individual severity. That makes it hard to assess whether performance on the category is representative.

The main experiment combines small, partial, and full hallucinations under a single positive label. The negative class is the original category for translations judged free of hallucinations. A translation containing a small unrelated fragment therefore receives the same binary target label as a translation judged almost wholly unrelated to its source. The detector gets credit for finding either. Its binary score measures how well it draws the boundary between presence and absence, while the labels for severity remain available for a separate ranking experiment.

The way the researchers combine labels should also be distinguished from the way they instruct the detectors. They do more than map a set of severity predictions to a binary answer after the fact. They write prompts that ask the binary question directly, and choose thresholds that turn a similarity score into that same decision. The severity experiment has its own prompts and its own evaluation criterion. In effect, the paper builds detectors for two forms of the task from the same underlying human assessments. Linguistic annotation

How the authors build and test sentence-level detectors

The steps in order.

How the authors build and test sentence-level detectorsStep 1: Keep naturally generated HalOmi translations1. Keep naturally generated HalOmi translationsStep 2: Reserve German–English directions for validation2. Reserve German–English directions for validationStep 3: Combine severity labels for binary detection3. Combine severity labels for binary detectionStep 4: Prompt each system or compare sentence embeddings4. Prompt each system or compare sentence embeddingsStep 5: Choose prompts and thresholds on validation data5. Choose prompts and thresholds on validation dataStep 6: Apply the chosen settings to held-out directions6. Apply the chosen settings to held-out directionsStep 7: Compare detector decisions with human labels7. Compare detector decisions with human labels

Ask a prompted system for a sentence-level judgment

The prompted approach turns evaluation into an instruction-following task. The system message establishes the role of the evaluator, describes hallucination, and specifies the admissible answers. The user message supplies the particular source and translation, then asks for the relevant label. The division allows the task instructions to stay fixed while the sentence pair changes from one item to the next. The binary answers are Hallucination and No Hallucination.

A key part of the instructions is the meaning of unrelated. The task asks whether the translation introduces information that is completely unrelated to its source. This is a narrower criterion than simply asking whether the translation is good. Some versions give the source and target language names in the instructions. The language names make the expected relation between the two texts explicit. Other variations change how the evaluator role and decision criterion are worded. Each version still receives the same kinds of input and returns the same kind of binary answer.

The authors adapt task descriptions from G-Eval prompts used for assessing summaries. That starting point supplies the pattern of giving an evaluator a definition and a structured task. Here the object of evaluation is a translation, which requires relating content across languages. To make the decision procedure more explicit, some versions include a written sequence of checks, an approach the paper calls chain-of-thought prompting. In this experiment the extra steps are part of the instructions. The response is still supposed to consist of the label. Chain-of-Thought Prompting

One reasoning variant draws on the instructions used by human annotators. It asks the evaluator to consider whether a suspicious part of the translation has a reasonable source-language counterpart. The check allows for relations in meaning and for a plausible account of how the translation could have arisen. The attention is on suspicious material and its connection to the original, so a reader can see how the prompt tries to separate a legitimate reformulation from content that has no basis in the source.

The other variant makes the handling of suspicious words more explicit by adding a count. Its instructions initialize the count before the translation is reviewed.

n = 0

Here n is the running count of words judged hallucinated. The equals sign marks the assigned value, and 0 is the initial count before any word has been judged unsupported. The instructions then tell the evaluator to increment the count when a word meets the criterion. For binary detection, the presence of any such word is sufficient for the positive label. In the severity task, the extent of hallucinated material is used to choose a level.

The prompted experiments are zero-shot. In this setting, that means the evaluator receives a task description and the current sentence pair without worked classification examples in the prompt. The authors tune the choice of instructions using the validation data. The prompted systems’ underlying weights are kept fixed during this exercise. The paper lists a temperature of 0 to minimize randomness and a maximum output setting of 15 tokens to limit verbosity. Tokens are units of text used by the system when representing the prompt and response. The short response allowance matches the request for a label. Tokenization

The authors compare GPT4-turbo and GPT4o from OpenAI, and Command R and Command R+ from Cohere. The remaining entries are Mistral-8x22b, Claude Sonnet, Claude Opus, and Llama3-70B. These systems were chosen to cover different families and capabilities. The authors also describe an initial screening in which some candidates had difficulty following the task and were dropped. The comparison therefore concerns systems that were retained after that screening. They ran Llama3-70B locally and used LangChain for the other prompted evaluations.

The binary prompt search covers three base prompts and two kinds of reasoning instructions, together with versions that omit the extra steps. The paper’s validation table specifies the combinations actually checked. For each prompted system the authors take the mean MCC across the two German–English directions and retain the best-performing version. In a tie, they favor a shorter prompt without the extra reasoning instructions. Each selected prompt is then applied in the test directions. This allows different systems to use different formulations while giving each of them the same validation language pair.

Turn sentence similarity into a detector

The embedding comparison takes a different route to the same binary answer. It encodes the source and the machine translation separately, using the same representation for both. If the representation aligns meanings across languages, a faithful translation should tend to be close to its source. An unrelated translation should tend to be farther away. The authors test OpenAI’s text-embedding-3-large, Cohere’s Embed v3, Mistral’s mistral-embed, and SONAR. Each space gets its own scores and its own cutoff.

The underlying comparison is cosine similarity. It compares the directions of the two numerical vectors. This is the mathematical form of the operation the authors use.

s = (u · v) / (∥u∥ ∥v∥)

Here u denotes the source sentence embedding, and v denotes the embedding of the machine translation. The dot · denotes the dot product, which combines the corresponding coordinates. The expressions ∥u∥ and ∥v∥ are the lengths of the respective vectors. Their juxtaposition indicates multiplication, and / denotes division by that product. The equals sign defines s, the cosine similarity. When the vectors point in similar directions, s is higher. The comparison therefore expresses how well the encoded meanings align.

Similarity produces a score for each sentence pair. To produce the two labels needed for the main task, the authors choose a threshold for each embedding space. Low similarity is the evidence for a hallucination. A cutoff determines how much separation in the embedding space is required for the detector to assign that label. Raising the cutoff on the similarity scale makes the detector more willing to treat a pair as suspicious. Lowering it requires a stronger departure before a translation is flagged.

The authors choose the threshold using the precision–recall curve on the German–English validation examples. Precision is the share of predicted hallucinations that agree with the human labels. Recall is the share of human-labeled hallucinations that the detector finds. A stricter cutoff can improve the reliability of individual flags while leaving more actual errors undetected. A looser cutoff can recover more of the errors while adding flags on clean sentences. The selected point maximizes validation F1, which combines precision and recall into a single score. The authors carry the chosen value for each representation into every test direction.

The choice of selection metric differs across the approaches. Prompt selection uses average validation MCC. Threshold selection maximizes validation F1. Both are then judged using the main test metrics. Prompt search works over a set of possible texts, each yielding labels directly. Threshold search works over a score that can be converted to labels at different points. The procedure gives both approaches validation data to choose their settings, and it leaves their calibration choices in place when they encounter a new direction.

For severity ranking, the numerical route keeps a continuous score and reverses its sign.

r = −s

Here r is the score used to order examples by predicted severity. The equals sign defines it, s is the cosine similarity just described, and the minus sign − reverses the ordering. A translation with low similarity now has a higher ranking score than a translation with high similarity. As a consequence, the ranking procedure can compare pairs of examples without first fixing a binary cutoff. The ranking test for the prompted systems, by comparison, uses outputs drawn from the four severity labels.

Experiments and results

The same benchmark holds different detection problems

The main test covers 16 directions and 2,558 sentence pairs. The high-resource group contains directions between English and Arabic, Chinese, Russian, or Spanish. The lower-resource group includes directions between English and Kashmiri, Manipuri, or Yoruba, and the Spanish–Yoruba pair. The direction names specify which language supplies the original and which supplies the translation. A result for Spanish into Yoruba thus evaluates how well a detector identifies unsupported content in Yoruba when given a Spanish original. The reverse result concerns unsupported content in Spanish against a Yoruba original.

The makeup of the sentence samples varies alongside these language changes. For example, the paper highlights Manipuri into English, where it reports that only 28% of the pairs are free of hallucinations. Other directions contain a large majority of clean translations. A detector with a tendency to return the negative label can appear more accurate by simple fraction correct in a mostly clean sample. The same tendency can miss a large share of the errors in a sample with many hallucinations. The authors use metrics that make this behavior easier to see.

BLASER-QE is the primary external comparison. Earlier HalOmi evaluation identified it as the strongest detector, and it is the previous benchmark leader against which the headline improvements are stated. The authors also compare the prompted systems with each other and with the four direct embedding approaches. Including SONAR directly is informative because BLASER-QE builds on its representation. A direct similarity score and a quality estimate fitted for translation can make different decisions even when they draw on the same underlying space.

What the metrics reveal

The binary task has four possible outcomes per sentence pair. A true positive occurs when a detector correctly flags a hallucination. A true negative is a correct decision that the translation is free of hallucinations. A false positive is a flag on a clean example. A false negative is a hallucination that the detector misses. Together these four outcomes form the confusion matrix. Each metric emphasizes a different aspect of that record.

The main metric, the Matthews correlation coefficient, combines information from all four outcomes. The paper gives its range as -1 to +1. Higher values indicate closer agreement between the predicted and human labels, while a value around 0 indicates weak correspondence. Accounting for both classes makes MCC useful in this study, where the frequency of the positive class varies widely by direction. A good MCC depends on how the decisions match the labels across the whole confusion matrix. The number of correct decisions on the majority class supplies only part of that evidence.

The paper also reports binary F1, macro F1, and precision–recall area under the curve. Binary F1 combines precision and recall for detection of the positive class. Macro F1 gives both classes equal weight by averaging their individual F1 scores. Precision–recall area summarizes the relation between precision and recall across operating points available from detector outputs. Taken together, these measures help explain why two methods with similar headline scores can behave differently. A system that flags many translations may find many of the hallucinations and include more false alarms. One that rarely flags them may make a reliable flag when it does so and miss many of the positive examples.

The reported comparisons are often averages over directions. The high-resource average collects directions that share a broad resource grouping. The overall average covers another set, with the lower-resource and non-English directions included. Neither aggregate tells the reader which system led every direction. The paper also reports a measure of variation across directions, using standard deviation to describe how much a system’s scores varied. A small standard deviation describes consistency in the measured scores. The highest mean answers a different question about their level.

Prompted judgments lead overall and gain most in high-resource directions

Llama3-70B achieves the best overall reported binary MCC, at 0.43. The results section reports that it improves on BLASER-QE by +5 points in the comparison across test directions. Its strongest aggregate result comes in the high-resource group, where the reported average is 0.63 MCC. BLASER-QE has 0.46 in that group. The paper’s abstract describes the high-resource improvement as 0.16 MCC. The reported group scores show the scale of the result and specify which set of directions it applies to.

Average binary MCC on HalOmi high-resource test directions

Llama3-70B leads the previous benchmark detector in the high-resource group.

Average binary MCC on HalOmi high-resource test directionsBLASER-QE: 0.46BLASER-QE0.46Llama3-70B (this paper): 0.63Llama3-70B (this paper)0.63
The numbers
System or settingMCC
BLASER-QE0.46
Llama3-70B (this paper)0.63

The high-resource improvement extends beyond the leading system. The paper reports that 10 out of 12 evaluated methods exceed BLASER-QE in its comparison for that resource group. The result places the strongest prompted system at the top of a group in which several approaches are already competitive. It also helps explain why the overall winner is not necessarily the best choice in a particular direction. A high average can be driven by strong results in several related settings while other settings favor different systems.

Taking the best result in each direction, the evaluated approaches exceed BLASER-QE in 13 out of the 16 test directions. The exceptions are Kashmiri into English, Yoruba into English, and English into Manipuri. This is a result for the collection of approaches tested. It answers whether an evaluated method could improve on the benchmark leader in each direction separately. The overall result for Llama3-70B answers whether a given prompted system has the best mean across directions. Those findings describe different uses of a comparison with multiple candidates.

GPT4o shows the lowest standard deviation across languages among the prompted systems, according to the paper. Its relatively low variation is useful alongside the average scores. It indicates that the highest aggregate performance and the most consistent measured performance came from different systems. The test also shows a pattern by direction of translation. In the high-resource group, the highest scores occur in directions into English. The lower-resource directions with the highest scores instead have English or Spanish on the source side.

Lower-resource results depend on the direction and the kinds of mistakes

In the lower-resource group, Claude Sonnet has the highest average MCC among the prompted approaches. Claude Opus follows, with GPT4o and Mistral next in the ordering reported by the authors. The abstract describes Sonnet’s average advantage over the other prompted systems in terms of 0.03 MCC. The comparison with the strongest prior detector is closer. The authors describe Sonnet and BLASER-QE as roughly level on the low-resource directions in aggregate.

Their errors differ. BLASER-QE has a higher false-negative rate, meaning that more of the hallucinations labeled by people go unflagged. Sonnet has a more balanced relation between false positives and false negatives. To interpret a close average, a reader needs to know what a missed hallucination and a false alarm mean in the task. One leaves unrelated content in a translation without a warning. The other assigns a warning to a translation that the human judgment classifies as clean. The main MCC can summarize overall agreement while leaving that distinction for the separate error analysis.

The aggregate closeness also hides differences in which directions each approach handles well. BLASER-QE remains effective on directions from English, and the paper describes it as comparable to Sonnet on directions into English. Its lower results for translation without English matter because those directions are one reason for studying language coverage in the first place. A detector that has looked reliable in English-centered evaluations has yet to establish the same pattern for a pair in which neither side is English.

The authors also report that rankings are more stable across metrics in high-resource settings than in low-resource ones. This is especially apparent for directions without English. They associate part of the difference with recurring prediction preferences. BLASER-QE and SONAR return a high share of clean labels in some settings, while Command R and the OpenAI embeddings are more inclined to flag hallucinations. Changes in the frequency of hallucinations and in the way a metric weights those predictions can therefore affect the ordering. An MCC lead, a stronger positive-class F1 score, and a better precision–recall result offer related evidence, but each comparison measures its own property.

The Spanish–Yoruba pair and the role of script

For the Spanish–Yoruba pair, considering both directions, Claude Opus reaches 0.28 MCC. BLASER-QE reaches 0.11, and the highest-scoring direct embedding method is Mistral’s at 0.12. Opus also leads Sonnet in this comparison, despite Sonnet’s higher average among prompted systems across the full low-resource group. The reversal shows how the mix of directions in an average can matter. The system favored in a sample covering several low-resource languages can differ from the system favored on a particular pair.

Binary MCC on the HalOmi Spanish–Yoruba test pair

Claude Opus leads both the prior benchmark detector and the strongest direct embedding method for this pair.

Binary MCC on the HalOmi Spanish–Yoruba test pairBLASER-QE: 0.11BLASER-QE0.11Mistral embeddings: 0.12Mistral embeddings0.12Claude Opus (this paper): 0.28Claude Opus (this paper)0.28
The numbers
System or settingMCC
BLASER-QE0.11
Mistral embeddings0.12
Claude Opus (this paper)0.28

The results for Yoruba into Spanish separately give further reason to keep the two directions visible. The paper describes several evaluated methods, along with BLASER-QE, as close to random guessing in this direction. The average across the pair therefore coexists with a difficult case for many individual detectors. The result is evidence about the tested examples and systems, since the pair also carries its own pattern of hallucination types, source material, and target-language demands.

Script contributes another view of where the approaches work. Direct embedding comparisons do well in high-resource directions into English from Arabic, Russian, and Chinese. The authors identify embeddings as the top performers in those directions. Their broader high-resource comparison describes direct embedding methods as competitive in five out of eight directions, with SONAR frequently comparable to or better than BLASER-QE. This is one reason the paper includes the simpler similarity detector. Its success can be visible on particular directions even when a prompted approach has the strongest resource-group average.

The paper’s examples from Arabic into English and Yoruba into Spanish illustrate how differently detector judgments can behave in different directions. The authors use them to discuss challenges involving script and to show where sentence-level similarity can struggle on a pair that does without English. An example is evidence that the behavior can arise. The direction-level scores establish how the tested methods compare across a larger set of those sentences. Earlier work cited by the paper also found weaker judgments from prompted evaluators on non-Latin scripts, which gives context for the authors’ comparison. Are Large Language Model-based Evaluators the Solution to Scaling Up Multilingual Evaluation?

What the ablations show

Changing the question changes the overall winner

The paper’s formal ablation returns to HalOmi’s severity ranking. It asks whether a detector gives a higher severity to a more extensively hallucinated example than to a less extensively hallucinated one. A method can succeed at binary detection by flagging both examples. Severity ranking additionally requires it to put them in the right order. The experiment therefore tests whether the lead in identifying the presence of hallucinations also appears when the benchmark asks for a finer judgment.

For the prompted systems, the instructions define the four levels. Small hallucinations are described as involving 1-2 words. A partial hallucination involves at least 3 hallucinated words while leaving some of the translation connected to the source. A full hallucination covers nearly all of the output, allowing for 1-2 words that still relate to the original. The prompts ask for a single severity label. The authors again compare instruction versions on the German–English validation directions, this time selecting by average ranking performance. The embedding comparisons use negative cosine similarity directly, without using validation data to choose a cutoff.

The ranking metric is a multiclass adaptation of the area under the receiver operating characteristic curve, or ROC AUC. The authors describe it in terms of the proportion of incorrectly ordered pairs of examples that have different human severity labels.

A = 1 − e

Here A is the adapted ranking score, and the equals sign defines it. The value 1 represents a perfect ordering. The symbol e is the share of differently labeled example pairs that the detector orders incorrectly, expressed on the same scale. The minus sign subtracts that share from the perfect score. The authors calculate the score separately for each direction. A correct ordering puts, for instance, an example with a full hallucination above one with a partial hallucination, and it puts hallucinated examples above clean examples.

BLASER-QE has the best overall test ROC AUC at 0.81. The direct SONAR comparison reaches 0.8. Claude Sonnet, Claude Opus, and Llama3-70B each have a reported overall score of 0.65 in the severity table. These figures concern the ordering of examples, so they answer a different question from the overall binary MCC of 0.43 for Llama3-70B. The change in ordering among methods suggests that the distinction between severity levels contributes substantially to the outcome of the evaluation.

The severity table also shows how the representations vary with resource level. SONAR reaches 0.86 ROC AUC across the high-resource test directions and 0.73 across the lower-resource directions. BLASER-QE has corresponding scores of 0.88 and 0.75. Both keep much of their standing when attention shifts from the full set to either group. High-resource results for several embeddings remain strong, consistent with their competitiveness in binary detection. The ranking results give a separate reason to retain similarity methods in the comparison, since their scores preserve an ordering that the binary threshold no longer exposes.

The authors point out that 11 of the 18 benchmark directions have fewer than five examples in at least one hallucination severity category. With that little support in some classes, results for ordering those levels may depend considerably on the individual sentences selected. Combining the hallucination categories makes each example count towards estimation of the same positive class. It also discards the information required to assess whether the detector can distinguish a small hallucination from a more extensive one. The ablation shows the practical consequences of that choice for the ranking of the systems.

More explicit reasoning instructions have uneven effects

The validation comparisons provide a second view of the method. The authors vary the wording of the base prompt and compare variants with and without written reasoning steps. The changes give the evaluator different routes to the same answer. One formulation asks for a label after a direct definition, while another asks the evaluator to think through plausible relations between source and target. The counting variant gives a procedure for accumulating evidence before selecting the output.

In the severity validation table, Claude Opus reaches 0.85 ROC AUC with the third base prompt and no added reasoning steps. The corresponding configuration with its assigned reasoning variant reaches 0.77. GPT4o reaches 0.83 with and without the additional steps for both the second and third base prompts. In that table the effect of supplying a reasoning procedure depends on the system and the rest of the instructions. A procedure that makes the intended task clearer to a reader may change the system’s decisions very little, or it may move those decisions away from the human judgments.

For binary detection, Sonnet, GPT4o, and Llama3-70B are among the systems the authors identify as relatively stable across prompt variations in validation. Sonnet’s reported standard deviation across the tested prompt configurations is 0.01 MCC. GPT4o and Llama3-70B each have a reported value of 0.03. All three subsequently perform well in some test settings. In the authors’ view, this suggests that those systems might perform the task without extensive prompt tuning. The scope of the finding is the range of instructions that were tried on the validation pair. The test compares the selected version for each system, so it gives little direct evidence about how all the discarded versions would fare in the held-out directions.

These comparisons explain part of why the paper tests multiple methods. Embeddings use a single sentence-level contrast, and a quality estimator can turn a related representation into a different ordering. Prompted systems allow the authors to state an error definition and describe how to investigate a suspected word. Each approach exposes a different kind of decision. The ablations show that the value of those decisions depends on whether the evaluation rewards finding the error at all, ordering its severity, or keeping performance stable across changes to the instructions.

Limitations

Limits the authors identify

The authors emphasize imbalance even after the severity labels have been combined. In their limitations discussion, they describe the share of clean translations as ranging between 79% and 94% in high-resource directions and from 28% to 85% in low-resource directions. A tendency to predict the majority label can therefore have different consequences across directions. MCC addresses some of the problems with using raw accuracy under imbalance. It still evaluates the decisions on the particular mixture of clean translations and hallucinations in the benchmark.

The mix also reflects how HalOmi’s examples were selected. The authors distinguish uniform sampling, sampling biased toward potentially problematic translations, and sampling that targets translations rated worst by detectors. This strategy brings rarer errors into view. Its proportions vary by direction, however. The appendix highlights directions from English into lower-resource languages as having many examples drawn through biased selection. Resource level, observed error rates, and selection policy can therefore vary together. The authors propose larger, more diverse samples, a better balance of severity levels, and consistent source text across languages to make future comparisons easier to interpret.

The validation design is another stated constraint. Every prompt decision and every binary embedding threshold comes from translations between German and English. The paper points out that these settings may generalize more readily to other high-resource directions. The authors initially planned a cross-validation approach, in which multiple splits would allow choices and evaluations to be checked under changing assignments of data. Financial constraints on evaluating non-open systems prevented that part of the study. The reported test demonstrates transfer from one validation pair, and other validation designs remain to be assessed.

The authors also acknowledge possible contamination. The training data for some of the prompted systems are unavailable for inspection, so the authors cannot determine whether benchmark material had already appeared there. They expect the possibility to matter more in the high-resource languages, which figure more prominently in training. This is a possibility raised by the authors. They present no measurement of contamination that would allow the reader to adjust the scores or attribute a result to prior exposure.

The baseline comparison is deliberately narrow. The authors compare their newly evaluated approaches with the strongest prior result, BLASER-QE, and leave a wider comparison with other methods previously evaluated on HalOmi for future work. The experimental labels apply to sentences. The authors suggest that identifying the specific hallucinated spans would make the benchmark more interpretable. Span annotations could let a future evaluation distinguish detecting the presence of an error from locating the words responsible for that judgment.

Limits that follow from the comparison

The direction-by-direction wins and the overall winner answer different questions about choosing a detector. The first considers the best observed method for each test direction after the measurements are available. In a new direction, the analyst would need evidence for choosing which method to use before seeing its scored outcomes. The paper provides evidence that good candidates exist for many of the studied directions. A reliable selection procedure for a new direction is a further problem, particularly given that the experiment has a single validation pair.

The comparisons by script and resource level are observational. Arabic, Russian, and Chinese into English share a place in the analysis because their source languages use non-Latin scripts. They also differ in language, in the sentences sampled, and potentially in the errors that the translation system makes. A result consistent with a script effect is therefore a starting point for explanation. The experiment would have to vary script while holding other relevant conditions fixed to isolate that effect. Similar reasoning applies to the authors’ suggested explanation that training data may contribute to embedding performance on high-resource directions.

The distribution of detected errors in the benchmark should also be distinguished from the prevalence of errors in unselected translation output. HalOmi’s sampling strategies help create a set with examples worth studying. A direction with a higher share of benchmark hallucinations may include more examples chosen precisely because a detector rated them suspicious. The main comparison evaluates performance on those selected translations. Estimates of how often a translation service hallucinates in everyday use would require a sample suited to that separate question.

The binary setup also puts errors of very different extent into the same positive class. This helps obtain more usable sample sizes for evaluation. Its results give credit for finding any unsupported material, whether a short addition or a mostly unrelated sentence. Consequently, the aggregate binary score alone gives limited information about the risk of missing a particular kind of hallucination. The severity analysis partly recovers that distinction, but its sparse categories constrain the conclusions the reader can draw about rare severities in any given direction.

The detectors are reference-free in the sense that the input at inference time is the source and the translation, along with the instructions or the scoring procedure. Human judgments still determine which outputs count as correct during validation and testing. This distinction is important for interpreting the paper’s claim of practical usefulness. Being able to assess a sentence pair as soon as the translation is available is a property of the input design. Actual latency, exposure to filtered inputs, and the rate of warnings in a live application would need to be measured under the conditions of that application.

The tests without English are limited to the Spanish–Yoruba pair. That pair shows why such experiments matter, since its results differ from the broader low-resource average and some detectors have particular difficulty with Yoruba into Spanish. Its value as evidence comes from the comparison within those directions. Broader claims about translation among languages other than English require evidence from more pairs, including settings where the amount of training and evaluation material and the distributions of error types vary independently.

What came after

Two later papers cite Benkirane and colleagues. One concerns automatic evaluation for a translation task in a different modality. The other concerns how to formalize the reasoning involved in answering a prompt. These are different connections to the work. The former is close to the paper’s problem of assessing translation output automatically. The latter is close to a methodological choice about supplying written reasoning steps when asking for a judgment.

A Critical Study of Automatic Evaluation in Sign Language Translation takes up automatic evaluation in sign-language translation. In Benkirane and colleagues’ study, the evaluator judges a machine-translated sentence against a source sentence, and its decisions are checked against human labels for unsupported content. The later paper’s subject puts automatic evaluation in a different translation setting. Its citation establishes the connection to the earlier work. The way it used HalOmi or any individual detector is unreported here.

Time-for-Accuracy studies chain-of-thought through the idea of an expansion of logical depth. Benkirane and colleagues used chain-of-thought instructions as an experimental variable. They compared prompts with and without a written procedure for considering whether suspicious material in the translation could be grounded in the source. Their evaluation measured the resulting label decisions. The later paper’s topic brings the reasoning procedure itself into focus. Its citation records a link between the studies, while the specific role of the hallucination experiments in the later argument is unreported.

Cite

Cite as Kenza Benkirane, Laura Gongas, Shahar Pelles, Naomi Fuchs, Joshua Darmon, Pontus Stenetorp, David Ifeoluwa Adelani and Eduardo Sánchez. 2024. Machine Translation Hallucination Detection for Low and High Resource Languages using Large Language Models. Findings of the Association for Computational Linguistics: EMNLP 2024.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2024.findings-emnlp.564

@inproceedings{benkirane2024machine,
  title = {{Machine Translation Hallucination Detection for Low and High Resource Languages using Large Language Models}},
  author = {Kenza Benkirane, Laura Gongas, Shahar Pelles, Naomi Fuchs, Joshua Darmon, Pontus Stenetorp, David Ifeoluwa Adelani and Eduardo Sánchez},
  booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2024},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.564},
  url = {https://doi.org/10.18653/v1/2024.findings-emnlp.564}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/benkirane-2024-machine-translation-hallucination-detection-low/