﻿# vocabFilter: incremental language filtering with a measurable purity tradeoff

The LoResMT vocabFilter study adds language-specific vocabulary filters to corpus preparation. Its MT results and rejection errors define the useful scope.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/vocabfilter-incremental-language-purity-tradeoff/
Language: en

## What the named study adds

The LoResMT paper [Text Filter Based on Automatically Acquired Vocabularies for Multilingual Machine Translation](https://aclanthology.org/2026.loresmt-1.3/) proposes vocabFilter: a separate acceptance test for each target language. It addresses a specific weakness of document or sentence language classification. A predominantly target-language sentence can receive the desired label while still containing a foreign-language fragment.

The method does not translate text or repair mixed sentences. It decides which sentences survive corpus preparation. That distinction matters when evaluating its results: improved translation after retraining on selected data is downstream evidence, while a filter score is only evidence about vocabulary membership. The [language-identification guide](/journal/data-guide-languageid-short-mixed-documents/) explains why the unit submitted to a classifier changes the meaning of its prediction.

## Vocabulary membership is the decision rule

The [full paper](https://aclanthology.org/2026.loresmt-1.3.pdf) describes collecting subword frequencies from a monolingual corpus. Frequent subwords become the valid vocabulary. A candidate sentence is tokenized with the same tokenizer, and the fraction of tokens found in that vocabulary determines retention.

Experiments use CC-100 and the multilingual SentencePiece Unigram tokenizer associated with mBART and XLM-R. The chosen vocabulary covers 99.5% of observed token frequency; sentences need a valid-token ratio of at least 0.9. These are experimental settings, not calibrated probabilities that a sentence belongs exclusively to one language.

A new language needs its own corpus and frequency vocabulary. Existing language filters need not be retrained. This incremental property concerns the filtering component; it does not mean that a translation model automatically acquires a new language without training or that every low-resource language has sufficient clean source material.

## Translation gains depend on direction and combination

Evaluation uses WMT noisy parallel corpora for German–English, Pashto–English and Khmer–English. After filtering, pairs are ranked by existing alignment scores and selected to a fixed English-side token budget: 100 million tokens for German and 5 million for each other language. Fairseq translation models are then trained on those selections.

Holding the token budget fixed helps distinguish selection quality from simply retaining more training text. It does not make the selected sentences identical: their lengths and content distribution change. The [WMT evaluation guide](/journal/data-guide-wmt-news-test-version/) explains why task edition, direction and scoring setup still belong beside a comparison.

Vocabulary filtering alone is weaker than fastText alone for German. Combinations generally improve the reported BLEU results, but the result is not universal: applying every filter reduces performance for English-to-Khmer. The experiment therefore supports testing complementary selection signals, rather than replacing language identification with an unconditional vocabulary rule.

## Purity has observable costs

The paper shows rejected examples containing long numbers and correctly written target-language fragments absent from the valid vocabulary. Conversely, frequent foreign expressions can survive because they occur often enough in the source corpus. Vocabulary membership is therefore neither a perfect language boundary nor a semantic quality check.

The authors explicitly identify reduced linguistic variety as a limitation, including useful code-mixed social content. A corpus intended for bilingual dialogue may need precisely those examples. Retain rejected samples for review, evaluate rare names and numeric text separately, and compare downstream quality on the intended domain before adopting the paper's thresholds. These are proposed application checks; the study does not provide measured PC throughput, RAM requirements or a universal retention policy.
