Enhancing Unsupervised Semantic Parsing with Distributed Contextual Representations

Zixuan Ling, Xiaoqing Zheng, Jianhan Xu, Jinshu Lin, Kai-Wei Chang, Cho-Jui Hsieh, Xuanjing Huang

Introduction

Semantic parsing—the translation of natural language into machine-executable logic—is a cornerstone of natural language understanding. Traditional supervised methods, while effective, are constrained by the high cost and poor scalability of human-annotated datasets. Unsupervised Semantic Parsing (USP) offers a promising alternative, yet existing models often struggle with polysemy and computational efficiency. This paper introduces USP-DCR, a framework that integrates pre-trained contextual embeddings into a non-parametric Bayesian model to address these limitations.

The USP-DCR Framework

The core of USP-DCR lies in Distributed Contextual Representations (DCR). Unlike previous USP models that cluster words based on surface forms, USP-DCR leverages BERT embeddings to enable context-aware clustering. This allows the model to distinguish between different senses of the same word (e.g., "windows" as software vs. "windows" as architectural features).

Semantic mapping of diverse syntactic structures to shared semantic units (USA, Border, Canada).

To handle the structural dependencies of language, the model employs a Hierarchical Pitman-Yor Process (HPYP). This non-parametric approach effectively models the power-law distribution characteristic of natural language, where a small set of predicates and arguments appear frequently while many others are rare. This structure allows the model to learn the statistical dependencies between predicates (actions) and their arguments (entities).

Hierarchical representation of heads and modifiers using Pitman-Yor processes to model semantic dependencies.

Optimization and Composition

A significant bottleneck in Bayesian semantic parsing is the slow convergence of Markov Chain Monte Carlo (MCMC) sampling. USP-DCR introduces a similarity-driven Metropolis-Hastings sampler. By using the cosine similarity of contextual embeddings to propose cluster merges or splits, the model directs the search toward semantically plausible moves, significantly accelerating convergence. Furthermore, the model utilizes phrase-level embeddings to perform Fragment Composition, determining whether adjacent tokens should be treated as a single semantic unit (e.g., "The United States").

Experimental Results

The model was evaluated on the GENIA corpus (biomedical abstracts) for Question Answering (QA) and the CASIE dataset (cybersecurity news) for Relation Extraction (RE).

  • GENIA (QA): USP-DCR achieved 86.1% accuracy, a significant improvement over the 79.7% achieved by the USP-Bayes baseline.
  • CASIE (RE): The model reached an F1-score of 27.2, compared to 23.3 for the baseline.

Qualitative analysis confirmed the model's ability to resolve polysemy, correctly separating technical and general senses of words (such as "windows") that baseline models conflated. This confirms that context is foundational for accuracy in unsupervised learning.

Conclusion and Future Work

USP-DCR demonstrates that combining the nuance of neural embeddings with the structural rigor of Bayesian models can significantly enhance unsupervised semantic parsing. While the model remains dependent on the quality of initial dependency parsing, the integration of contextual similarity into the sampling process provides a scalable path forward for learning complex semantic structures without manual supervision. Future research aims to explore joint models that learn syntax and semantics simultaneously to overcome current dependency reliance.

Summary updated

BibTeX
@inproceedings{ling2023enhancing,
  author = {Zixuan Ling and Xiaoqing Zheng and Jianhan Xu and Jinshu Lin and Kai-Wei Chang and Cho-Jui Hsieh and Xuanjing Huang},
  title = {{Enhancing Unsupervised Semantic Parsing with Distributed Contextual Representations}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.726},
}
Figure