Introduction
Semantic parsing—the process of translating human natural language (NL) into machine-readable code or meaning representations (MRs) like SQL or Python—is a critical component of modern AI interfaces. While English-centric semantic parsing has seen significant advancements, the development of systems that support the world's diverse linguistic landscape has been hindered by fragmented research and isolated datasets.
XSemPLR addresses this by providing a massive, unified benchmark for Cross-Lingual Semantic Parsing (CLSP). By standardizing 22 natural languages and 8 meaning representations, XSemPLR offers a comprehensive "yardstick" to evaluate how well models generalize across different linguistic structures and machine languages.
Methodology and Data Standardization
The researchers aggregated nine high-quality existing datasets, including MSpider, MTOP, and MCoNaLa, covering 164 domains. These were reformatted into a consistent structure to allow for cross-dataset comparison. The benchmark spans 15 language families (including Arabic, Chinese, Vietnamese, and Hindi) and 8 MRs (SQL, Lambda Calculus, FunQL, Prolog, SPARQL, ThingTalk, Python, and Hierarchical Intent/Slot).
To evaluate the state of the art, the study benchmarked three primary model architectures:
- Encoder-only + Pointer: Models like mBERT and XLM-R using a pointer mechanism to copy entities.
- Encoder-Decoder: Sequence-to-sequence models such as mBART and mT5.
- Decoder-only LLMs: Large-scale models like Codex and BLOOM, tested via in-context learning (prompting).
Key Findings
The Dominance of mT5
The study identifies mT5 as the clear leader in CLSP. It achieved the highest average performance across the board, with a monolingual average score of 58.16%. The researchers found that encoder-decoder architectures are significantly better at handling the structural complexity of meaning representations than encoder-only models that rely on pointers.
The "Curse of Multilinguality"
A significant finding is the trade-off inherent in multilingual training. While training a single model on many languages generally boosts performance for low-resource languages, it often results in a performance drop for English. This "curse" suggests that model capacity is stretched thin when forced to accommodate too many diverse linguistic patterns simultaneously.
The Zero-Shot Transfer Gap
The performance gap between English and other languages remains a major challenge. In zero-shot transfer settings (training on English and testing on other languages), mT5’s performance plummeted to 31.97%. Interestingly, massive LLMs like BLOOM performed poorly in these zero-shot settings, indicating that general multilinguality does not automatically translate to the precise structural reasoning required for semantic parsing. However, providing the model with just 10% of target-language data (few-shot) drastically closed this gap.
Conclusion
XSemPLR highlights that while encoder-decoder models like mT5 are currently the most effective, there is still a staggering performance gap between English and other languages. Future work must focus on moving beyond translated datasets to native-authored queries and exploring better optimization strategies for LLMs to bridge the cross-lingual divide in code generation.
Summary updated