SGL: Speaking the Graph Languages of Semantic Parsing via Multilingual Translation

Luigi Procopio, Rocco Tripodi, Roberto NavigliNAACL 2021

Introduction

Semantic parsing (SP) is a critical task in natural language processing that involves mapping natural language sentences into machine-readable meaning representations, typically structured as directed graphs. Despite its importance, the field has long been fragmented by "framework-specific balkanization." Researchers often develop specialized architectures for specific formalisms like Abstract Meaning Representation (AMR) or Universal Conceptual Cognitive Annotation (UCCA), making it difficult to generalize across different semantic schemas.

Furthermore, semantic parsing faces a significant data bottleneck. While machine translation (MT) benefits from massive parallel corpora, annotated semantic datasets are comparatively tiny. This scarcity is even more pronounced in cross-lingual settings, where generating an English-based semantic graph from a non-English sentence (e.g., Italian to AMR) traditionally requires complex and error-prone "annotation projection" pipelines.

Methodology: Graphs as Languages

The SGL (Speaking the Graph Languages) framework addresses these challenges by reframing graph-based semantic parsing as a standard multilingual machine translation task. The core premise is that the structural complexity of a graph can be effectively modeled by the same attention mechanisms used for human languages, provided the graphs are appropriately serialized.

Linearization and Unified Representation

To process graphs with standard sequence-to-sequence (seq2seq) models like the Transformer, SGL employs linearization techniques. AMR graphs are converted into strings using the PENMAN notation, while UCCA graphs are transformed using a Depth-First Search (DFS) bracketed notation.

Examples of AMR and UCCA graphs alongside their corresponding linearizations used for sequence-to-sequence training.

By linearizing these diverse formalisms, the model can treat <AMR> or <UCCA> as just another "language" tag, similar to <EN> or <IT>.

The Bridge Strategy

The most innovative aspect of SGL is its "Bridge Strategy." The model is trained simultaneously on two types of data:

  1. Semantic Parsing Data: Mapping English sentences to their corresponding linearized graphs (e.g., English $\to$ AMR).
  2. Parallel Machine Translation Data: Mapping English to other languages and vice versa (e.g., English $\leftrightarrow$ Italian).
The SGL framework treats semantic graphs and natural languages as interchangeable sequences within a single Transformer model.

During training, the authors use "stochastic flipping," randomly reversing the direction of the MT data. This forces the Transformer to learn a shared semantic representation space. Because the model learns that an Italian sentence is semantically equivalent to an English sentence, and it already knows how to map that English sentence to an AMR graph, it implicitly learns to map Italian directly to AMR.

Key Results and Insights

The SGL approach yields several significant findings across different benchmarks:

  • Competitive Performance: Using a pre-trained mBART model, SGL achieved a Smatch score of 82.3 on the AMR-2.0 benchmark. This performance is competitive with highly specialized, state-of-the-art parsers like SPRING, despite SGL's more general-purpose architecture.
  • Cross-Lingual State-of-the-Art: SGL set new records for cross-lingual AMR parsing. For Italian-to-AMR, it reached a Smatch of 72.3 with additional projected data.
  • Zero-Shot Emergence: Remarkably, SGL demonstrated strong "zero-shot" capabilities. Even without seeing any Italian-AMR training pairs, the model achieved a Smatch of 64.1 for Italian-to-AMR parsing, significantly outperforming previous baselines. This confirms that the MT data acts as a powerful semantic regularizer.
  • Generalization to UCCA: The method's success on UCCA benchmarks proves that SGL is not overfit to AMR's specific structure but is a robust approach for various graph-based formalisms.

Limitations and Future Directions

While SGL is highly effective, it is not without limitations. Because the model generates graphs as raw strings, it can occasionally produce "malformed" outputs with unmatched brackets or invalid syntax. While the researchers utilize repair scripts to mitigate this, future work could involve constrained decoding to ensure structural validity.

Additionally, the current approach remains somewhat English-centric, as formalisms like AMR are inherently biased toward English predicates. The authors plan to explore scaling SGL to even more diverse languages and formalisms, such as Elementary Dependency Structures (EDS), to further unify the landscape of semantic parsing.

Conclusion

SGL demonstrates that the boundaries between machine translation and semantic parsing are thinner than previously thought. By treating graph formalisms as languages and leveraging the scale of MT data, SGL provides a unified, high-performance, and cross-lingual solution for understanding the deep semantics of natural language.

Summary updated

BibTeX
@inproceedings{procopio2021sgl,
  author = {Luigi Procopio and Rocco Tripodi and Roberto Navigli},
  title = {{SGL: Speaking the Graph Languages of Semantic Parsing via Multilingual Translation}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.naacl-main.30},
}
Figure