The Best of Both Worlds: Combining Human and Machine Translations for Multilingual Semantic Parsing with Active Learning

Zhuang Li, Lizhen Qu, Philip R. Cohen, Raj V. Tumuluri, Gholamreza Haffari · DOI

Introduction

Semantic parsing—the process of converting natural language utterances into machine-executable logical forms—is a cornerstone of modern natural language interfaces. While English-language semantic parsers have reached high levels of maturity, extending these capabilities to other languages remains a significant challenge. The primary bottleneck is data: researchers are typically forced to choose between high-quality but prohibitively expensive Human Translations (HT) or fast, inexpensive, but noisy Machine Translations (MT).

Machine translation often introduces "translationese," a phenomenon where the output lacks lexical diversity and contains subtle semantic errors that can break the logic of a parser. This paper introduces HAT (Human and Automatic Translations), an active learning framework designed to find a middle ground. By strategically selecting a small subset of data for human correction, HAT achieves performance comparable to fully human-translated datasets at a fraction of the cost.

The HAT Framework

HAT is an iterative active learning procedure that optimizes the composition of a multilingual training set. The process begins by machine-translating an entire English source dataset into the target language. The framework then follows a four-step loop:

  1. Selection: An acquisition function identifies the most "valuable" English utterances for human intervention.
  2. Annotation: These specific utterances are sent to human translators to ensure high-quality, diverse translations.
  3. Integration: The human translations replace their machine-translated counterparts in the training set.
  4. Training: The multilingual parser is updated using the hybrid dataset.

The ABE Acquisition Function

The core innovation of HAT is the Aggregated Bias and Error (ABE) acquisition function. To select the most informative samples, ABE evaluates utterances based on four distinct criteria:

  • Translation Bias: This identifies instances where the MT system exhibits high confidence but low diversity, suggesting the model is stuck in a "lexical rut."
  • Translation Error: Using a back-translation mechanism, the system translates the target language back into English. If the parser cannot reconstruct the original meaning from the back-translation, it indicates a semantic shift or error in the MT output.
  • Semantic Density: The function prioritizes utterances located in "crowded" regions of the semantic space to ensure that the most representative examples are corrected first.
  • Semantic Diversity: To prevent the model from over-focusing on a single topic, this criterion ensures the selected batch covers a wide range of semantic intents.

To ensure computational efficiency, the authors employ a Bayesian factorization trick, allowing the system to estimate translation entropy without the need for exhaustive sampling.

Experimental Results

The researchers evaluated HAT on two benchmark datasets: GEOQUERY (600 questions about US geography in German, Thai, and Greek) and NLMAP (1,500 OpenStreetMap queries in German).

The "16% Rule"

A primary finding of the study is that human translation is subject to the law of diminishing returns. By using HAT to select just 16% of the dataset for human translation, the parser achieved up to 95% of the accuracy of a model trained on a 100% human-translated dataset. This suggests that the vast majority of machine-translated data is "good enough," provided the most critical errors and biases are addressed by humans.

Performance Gains

On the GEOQUERY(DE) dataset, the HAT framework improved parser accuracy by 28% compared to a baseline trained exclusively on machine-translated data. Furthermore, HAT consistently outperformed standard active learning baselines, such as random sampling or uncertainty sampling, across all tested languages and datasets. The method also proved robust across various MT engines, including Google Translate and Bing, demonstrating that the ABE criteria identify fundamental weaknesses inherent in machine translation rather than specific engine quirks.

Discussion and Limitations

The study confirms that MT-only datasets are often "lexically thin." Human translations act as a necessary "lexical nutrient," providing the diversity required for a parser to generalize effectively. The use of back-translation as a quality filter is particularly noteworthy, as it allows the system to detect semantic drift without requiring a gold-standard reference for every sentence.

However, some challenges remain. The ABE acquisition function currently requires a small existing bilingual dataset to tune the weights of its four components. Future work will focus on tuning these hyperparameters "on the fly" for entirely new language pairs. Additionally, while HAT is effective on small-to-medium datasets, its scalability to web-scale semantic parsing tasks remains to be tested. Finally, the framework requires training a small distilled translation model to estimate bias, which introduces a minor computational overhead to the active learning cycle.

Conclusion

HAT provides a principled way to balance the trade-off between cost and quality in multilingual semantic parsing. By focusing human effort where machine translation is most likely to fail—specifically where it is biased or semantically inaccurate—researchers can build robust multilingual systems with significantly less manual labor.

Summary updated

BibTeX
@inproceedings{li2023best,
  author = {Zhuang Li and Lizhen Qu and Philip R. Cohen and Raj V. Tumuluri and Gholamreza Haffari},
  title = {{The Best of Both Worlds: Combining Human and Machine Translations for Multilingual Semantic Parsing with Active Learning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.529},
}
Figure