Impacts of Misspelled Queries on Translation and Product Search

Greg Hanneman, Natawut Monaikul, Taichi NakataniACL 2024

In the global e-commerce landscape, search queries often traverse a complex pipeline before returning results. A common scenario involves a user entering a query in their native language, which is then translated into a target language (typically the store's primary catalog language) to match against products. However, human input is frequently imperfect, containing typos or informal variations like omitted diacritics. This paper, presented at ACL 2024 by researchers at Amazon, investigates how these spelling errors propagate through machine translation (MT) systems and ultimately degrade the end-user search experience.

The Downstream Impact of Typos

While traditional MT evaluation focuses on intrinsic metrics like BLEU or chrF, this study argues for a downstream perspective. A typo that leads to a nonsensical translation directly impacts search engine performance, resulting in irrelevant product listings. The researchers quantified this by analyzing 50 production-grade MT systems, finding that spelling errors in queries correlate with lower click-through rates and higher search reformulation rates. For instance, in certain locales like India (bn-IN), correctly spelled queries were found to have a 12.48% higher click rate than misspelled ones, highlighting the significant business impact of search robustness.

Quantifying MT Robustness

To understand how MT systems handle noise, the authors defined several metrics for "implicit correction":

  • Equal Outputs: The frequency with which an MT system produces the same translation for a misspelled query as it does for its corrected version.
  • Consistency: A measure of the semantic similarity between translations of noisy and clean query pairs.
  • Pseudo-Success: A metric intended to capture successful translation despite noise, though its correlation with actual search quality proved complex.

Analysis across dozens of systems revealed a strong positive correlation between these robustness metrics and downstream search quality, measured by Mean Normalized Discounted Cumulative Gain (NDCG).

Correlation between MT robustness metrics (Equal Outputs, Consistency, Pseudo-Success) and downstream search quality (Mean NDCG) across 50 production MT systems.

As shown in the figure above, systems that more frequently produce "Equal Outputs" or maintain high "Consistency" when faced with typos tend to deliver significantly better search rankings. Interestingly, the "Pseudo-Success" metric showed a negative correlation with NDCG, suggesting it may capture instances where the model produces a fluent but incorrect translation that misleads the search engine.

Strategies for Improving Robustness

The research explored two primary methods for mitigating the impact of misspelled queries:

1. BPE Scaling in MT Models

Byte-Pair Encoding (BPE) is the standard method for sub-word tokenization in MT. The authors hypothesized that high BPE operation counts make models brittle to character-level changes. By testing variants with BPE operations ranging from 32,000 down to 0 (pure character-level), they found that lower BPE counts significantly improved robustness to typos in 5 out of 6 language pairs without sacrificing general translation quality. Character-level models (0 BPE) were the most robust, though they come with increased computational overhead due to longer sequence lengths.

2. Dedicated Spelling Correction and Data Augmentation

Beyond MT architecture, the researchers implemented a BART-based spelling correction model as a pre-processing step. To handle language-specific informalities, such as the common omission of accents in Spanish, they used synthetic data augmentation. Training the corrector on millions of pairs where diacritics were intentionally removed led to substantial gains. Integrating this dedicated corrector improved the Mean NDCG on misspelled queries from 0.401 to 0.759.

Conclusion

This work highlights that spelling errors are not just a translation challenge but a significant business problem in e-commerce. By optimizing MT tokenization (reducing BPE operations) and employing targeted data augmentation for pre-translation spelling correction, systems can become significantly more resilient to the "messy" nature of human input. Future work may explore the computational trade-offs of character-level models and the potential for stacking these techniques with other robustness methods like adversarial training.

Summary updated

BibTeX
@inproceedings{hanneman2024impacts,
  author = {Greg Hanneman and Natawut Monaikul and Taichi Nakatani},
  title = {{Impacts of Misspelled Queries on Translation and Product Search}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.750},
}
Figure