Multilingual CheckList: Generation and Evaluation

Karthikeyan K, Shaily Bhatt, Pankaj Singh, Somak Aditya, Sandipan Dandapat, Sunayana Sitaram, Monojit Choudhury

TL;DR

Evaluating multilingual models with behavioral "unit tests" usually requires native speakers to manually draft templates for every language—a bottleneck that prevents scaling. This paper introduces the Template Extraction Algorithm (TEA), an automated method that extracts target-language templates and slot lexicons directly from machine-translated test sentences. Evaluated across 10 diverse languages, TEA (with or without human verification) dramatically slashes creation cost while yielding failure rate estimates that closely mirror manual testing.

What Problem Does This Paper Address?

Standard multilingual NLP benchmarks (e.g., XNLI, XTREME) primarily report aggregate accuracy across standard datasets, obscuring specific linguistic failure modes like negation, temporal logic, or coreference. The CheckList framework addressed this in English through behavioral testing via fill-in-the-blank templates (e.g., "{CITY} is beautiful" filled with city lexicons).

However, scaling CheckLists to dozens of languages is prohibitively expensive. Direct word-for-word translation of templates fails due to word-order divergence and grammatical agreement (e.g., gender, case). Meanwhile, machine-translating raw test instances leaves engineers with massive uncurated sentence sets that lack abstraction and are impossible to audit efficiently.

Methods

The authors propose TEA (Template Extraction Algorithm) to automatically recover abstract templates from translated sentence instances:

  1. Instance Generation & Translation: Source English templates are populated with lexicon values and translated to the target language via machine translation (e.g., Bing Translator).
  2. Terminal Grouping via Directed Acyclic Graphs (DAGs): Target sentences are converted into a word-level DAG where directed edges represent sequential tokens. Paths of length $\le k+1$ ($k=2$) that share start and end nodes are grouped into candidate terminals (lexicon values) assigned to a non-terminal key (slot).
  3. Greedy Template Extraction: Given candidate slots, candidate templates are generated per sentence. TEA solves a greedy set-cover problem to find the smallest set of templates that covers all target instances.

The authors benchmark four creation strategies:

  • SCR (Scratch): Native speakers write templates from scratch.
  • t9n: Annotators manually translate English templates.
  • TEA: Fully automated extraction via MT and TEA.
  • TEA-ver: Semi-automated; humans inspect and lightly edit TEA’s output.

Datasets

The authors evaluate on two core NLP tasks with XLM-RoBERTa (XLM-R):

  • Sentiment Analysis (SA): 5–6 capabilities (Vocabulary, Negation, Temporal, SRL, Fairness, Robustness) sourced from Ribeiro et al. (2020), fine-tuned on SST-2.
  • Natural Language Inference (NLI): 5 reasoning capabilities (Coreference, Spatial, Conditional, Comparative, Causal) adapted from Tarunesh et al. (2021), fine-tuned on MNLI.
  • Languages: Extensive testing on Hindi, followed by scaling experiments on 9 typologically diverse languages: Arabic, French, German, Gujarati, Japanese, Russian, Spanish, Swahili, and Vietnamese.

Key Insights and Ideas

  • Instance translation preserves syntax better than template translation: Translating instantiated sentences captures native word order and inflections. TEA then works backward to reconstruct the grammar.
  • Unverified automated templates are surprisingly accurate proxies: Even though roughly a third of raw TEA templates contain minor noise or ungrammatical quirks (P/R vs. verified is ~0.61–0.67), the resulting Failure Rate (FR) of the underlying model barely deviates (FR difference is typically < 1–3%).
  • Human-in-the-loop is best spent on verification, not generation: Verification (TEA-ver) cuts human time per template to roughly a third of authoring from scratch (SCR) while capturing greater structural diversity.

Key Results

  • Efficiency & Diversity (Hindi SA):
  • Creation time plummeted from 5.38 minutes/template (SCR) and 2.07 minutes (t9n) down to 1.77 minutes for TEA-ver and 0 minutes for TEA.
  • TEA produced 105 templates (147 lexicon values) compared to just 17 templates (35 lexicon values) produced by human annotators working from scratch.
  • Failure Rate Consistency: On Hindi SA, model failure rates across all 4 setups were consistent (16.5% for t9n, 19.7% for TEA-ver, and 19.3% for raw TEA).
  • Cross-Lingual Scaling: Across French, Gujarati, and Swahili, the Pearson correlation between raw TEA failure rates and human-verified TEA-ver was exceptionally high: 0.99, 0.98, and 0.97, respectively.
  • Data Augmentation Utility: CheckList instances generated via TEA successfully remediated model weaknesses when fine-tuned: continual fine-tuning (Aug-CFT) achieved 95.3% accuracy on Hindi SA and 83.2% on NLI.

Limitations and Future Work

  • Semantic Blindness: TEA relies on topological graph paths rather than word meaning, occasionally splitting multi-word named entities incorrectly (e.g., treating "New" and "Las" as shared slot keys).
  • Morphological Inflection: Rich morphology (such as gender and tense agreement in Hindi) causes TEA to over-generate distinct template variations.
  • Translation Artifacts: Mistranslations in polysemous contexts (e.g., translating "the service is poor" to Hindi "poor" meaning "lacking money") propagate into templates unless caught by human verifiers.
  • Cultural Context: Manual templates naturally incorporate local entities (e.g., Indian city names), whereas TEA outputs retain translated Western entities unless explicitly re-contextualized.

Summary updated

BibTeX
@inproceedings{k2022multilingual,
  author = {Karthikeyan K and Shaily Bhatt and Pankaj Singh and Somak Aditya and Sandipan Dandapat and Sunayana Sitaram and Monojit Choudhury},
  title = {{Multilingual CheckList: Generation and Evaluation}},
  booktitle = {AACL/IJCNLP (Findings)},
  year = {2022},
  url = {https://openreview.net/forum?id=i8NyRRoxoP},
}

Loading related content...

Figure