Zero-Shot Semantic Parsing for Instructions

Ofer Givoli, Roi Reichart

Introduction

Natural Language User Interfaces (NLUIs) have long been hindered by the "data bottleneck"—the requirement for vast amounts of labeled data to train semantic parsers for each new application domain. Traditional approaches require thousands of domain-specific examples to map natural language instructions (e.g., "Turn off the bedroom lights") to logical forms (e.g., turnLightOff(bedroom)). This paper, presented at ACL 2019, proposes a framework for zero-shot semantic parsing, enabling systems to execute instructions in unseen domains without any in-domain training data.

Methodology

The authors adapt the "floating parser" framework and introduce three critical components to facilitate zero-shot generalization:

  1. Gap Minimization via Domain Partitioning (GMDP): This novel training algorithm simulates domain shifts during the training phase. By partitioning source domains into two sets ($D_1$ and $D_2$), the model is first trained on $D_1$ and then fine-tuned on $D_2$. This two-step process encourages the model to learn weights that are robust to the lexical and structural variations encountered when transitioning to a completely new domain.
  2. Logical Form Filtering: The system leverages the application's state as a constraint. Candidate logical forms that result in execution errors or "no-op" states (e.g., turning off a light that is already off) are automatically discarded.
  3. API Description Features: To bridge the lexical gap in unseen domains, the model utilizes natural language descriptions of API methods (e.g., mapping "delete" to removeFiles). Features are extracted based on the co-occurrence of these descriptions and user instructions.

Dataset and Experimental Setup

The researchers introduced a multi-domain dataset comprising 1,390 examples across seven distinct application areas, ranging from calendar management to workforce administration. Each example pairs an initial application state with a human instruction and the target "desired" state.

Table 1: Overview of the seven domains, including entity types and interface methods used for evaluation.

Results and Discussion

The proposed GMDP model significantly outperforms standard training baselines. In a zero-shot setting, it achieved an average accuracy of 44.5% across all domains, compared to 39.1% for the AdaGrad baseline.

Table 2: Zero-shot performance (accuracy) across domains. GMDP consistently outperforms standard AdaGrad baselines.

Ablation studies highlighted the importance of the domain-independent features; removing logical filtering and API description features caused accuracy to drop to 28.3%. Performance varied significantly by domain, with the Messenger domain seeing the highest success (61.7%) and the File Manager proving the most challenging (28.7%).

Conclusion

This work demonstrates that simulating domain shifts during training and leveraging environment constraints can effectively bootstrap semantic parsers for new applications. Future work aims to address the "lexical gap" through word embeddings and extend the framework to handle multi-turn dialogues and more complex instruction sequences.

Summary updated

BibTeX
@inproceedings{givoli2019zero,
  author = {Ofer Givoli and Roi Reichart},
  title = {{Zero-Shot Semantic Parsing for Instructions}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1438},
}
Figure