Learning Cross-lingual Distributed Logical Representations for Semantic Parsing

Yanyan Zou, Wei Lu

Abstract

With the development of several multilingual datasets used for semantic parsing, recent research efforts have looked into the problem of learning semantic parsers in a multilingual setup. However, how to improve the performance of a monolingual semantic parser for a specific language by leveraging data annotated in different languages remains a research question that is under-explored. In this work, we present a study to show how learning distributed representations of the logical forms from data annotated in different languages can be used for improving the performance of a monolingual semantic parser. We extend two existing monolingual semantic parsers to incorporate such cross-lingual distributed logical representations as features. Experiments show that our proposed approach is able to yield improved semantic parsing results on the standard multilingual GeoQuery dataset.

Introduction

Semantic parsing is the task of translating natural language queries, such as "Which states have a river?", into machine-readable logical forms like answer(state(loc(river(all)))). While high-quality datasets exist in multiple languages, most research focuses on building parsers for one language at a time. This paper addresses a critical gap: Can we leverage annotated data from auxiliary languages to improve a parser's performance in a specific target language? The authors propose that the way different languages express concepts can provide a richer, language-agnostic understanding of underlying logic, helping to overcome the scarcity of annotated data.

Methodology: Cross-lingual Distributed Semantic Representations

The core innovation of this work is the method for learning language-independent embeddings for semantic units. The authors build upon "hybrid tree" parsers (HT-D and its neural variant, HT-D (NN)), which model the relationship between words and semantic units as latent variables.

To create these features, the authors follow a three-step process:

  1. Co-occurrence Matrix Construction: A large matrix $M$ is created where rows represent unique semantic units (e.g., stateid, river) and columns represent unique words collected from all available auxiliary languages in the dataset.
  2. SVD for Embeddings: Singular Value Decomposition (SVD) is applied to this matrix to compress high-dimensional co-occurrence data into low-dimensional vectors. This process captures a "universal" signature for each semantic unit that transcends any single language.
  3. Feature Integration: These embeddings are integrated into the parser’s scoring function as continuous features, providing the model with a shared semantic space.
Visualization of semantic unit embeddings in a 2D space, showing how related concepts cluster together regardless of the source language.

Experimental Setup

The approach was evaluated using the multilingual GeoQuery dataset, a standard benchmark containing 880 instances of US geography queries paired with logical forms. The dataset spans eight languages: English, Thai, German, Greek, Chinese, Indonesian, Swedish, and Farsi.

Key Results and Insights

The inclusion of cross-lingual representations led to significant performance gains across the majority of the tested languages.

  • Performance Gains: The proposed method improved the F1-measure for 5 out of 8 languages. Notably, the neural parser (HT-D NN) with these features achieved a state-of-the-art F1 score of 90.0 for English.
  • Semantic Disambiguation: The cross-lingual features proved particularly effective at resolving ambiguities. For instance, in English, the phrase "have a river" can be ambiguous. By observing how other languages explicitly distinguish between "located in" (loc) and "running through" (traverse), the parser can more accurately select the correct predicate.
Comprehensive performance comparison (Accuracy and F1) across eight languages, comparing the proposed HT-D (NN) models against several baselines.

Discussion and Limitations

While the results are promising, the authors noted some limitations. Interestingly, performance decreased for German, a language that has historically shown unique behavior in this dataset when additional features are introduced. Furthermore, because the SVD approach relies on co-occurrence, semantic opposites (like "largest" and "smallest") are sometimes grouped together because they appear in similar linguistic contexts.

Future work will explore more sophisticated representation learning techniques beyond SVD and aim to develop frameworks where parsers and representations are learned jointly in an end-to-end fashion.

Summary updated

BibTeX
@inproceedings{zou2018learning,
  author = {Yanyan Zou and Wei Lu},
  title = {{Learning Cross-lingual Distributed Logical Representations for Semantic Parsing}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2018},
  url = {https://openreview.net/forum?id=S147uhgdWS},
}
Figure