Zero-shot Transfer Learning for Semantic Parsing

Javid Dadashkarimi, Alexander R. Fabbri, Sekhar Tatikonda, Dragomir R. RadevarXiv 2018

Abstract

While neural networks have shown impressive performance on large datasets, applying these models to tasks where little data is available remains a challenging problem. In this paper we propose to use feature transfer in a zero-shot experimental setting on the task of semantic parsing. We first introduce a new method for learning the shared space between multiple domains based on the prediction of the domain label for each example. Our experiments support the superiority of this method in a zero-shot experimental setting in terms of accuracy metrics compared to state-of-the-art techniques. In the second part of this paper we study the impact of individual domains and examples on semantic parsing performance. We use influence functions to this aim and investigate the sensitivity of domain-label classification loss on each example. Our findings reveal that cross-domain adversarial attacks identify useful examples for training even from the domains the least similar to the target domain. Augmenting our training data with these influential examples further boosts our accuracy at both the token and the sequence level.

Introduction

Semantic parsing—the task of converting natural language into machine-readable logical forms—typically requires large, annotated datasets. However, collecting this data for every new domain is expensive and slow. This paper addresses the challenge of zero-shot or low-resource transfer: how can a model perform well on a new "target" domain when it has seen very few or even zero examples from that specific domain during training? Previous attempts often used complex architectures with multiple encoders or decoders, which frequently overfit when data is scarce.

Methodology

Shared Space via Domain Prediction

Instead of using separate parameters for each domain, we propose using a single encoder and a single decoder. To help the model generalize, we introduce a mapping matrix ($W_T$) that predicts the domain label for every input example. By adding a loss term that penalizes domain misclassification, the model is forced to map samples from different domains into a unified, shared semantic space. This leaner architecture is more robust against overfitting when examples are sparse.

Influence Functions for Data Selection

To understand which data actually helps, we apply influence functions (a technique from robust statistics). This allows us to mathematically estimate how much a specific training example from a source domain affects the model's loss on a test example in the target domain. We use this to perform "cross-domain adversarial attacks" (flipping labels) to identify the most sensitive and influential examples.

Density distribution of corrections for the calendar and publications domains, used to identify influential training examples.

We then augment the training set with these highly influential examples from other domains to improve accuracy on the target task. One of the most surprising findings is that even the "farthest" domains (those least similar to the target) can contain useful information, such as linguistic tokens or structural patterns that the encoder can leverage.

Experimental Results

The study evaluates the model across several well-known semantic parsing benchmarks, including Overnight, GeoQuery, ATIS, and WikiSQL.

Superiority of the "z-shot" Method

The proposed single encoder-decoder with domain classification consistently outperformed state-of-the-art "many-to-many" (m2m) or "one-to-many" (o2m) models in zero-shot and low-resource settings.

Accuracy comparison across training sizes for 'publications' and 'calendar' domains. Subplots (a) and (b) compare single vs. aggregate models; (c) and (d) compare the proposed z-shot method against various baselines.

On the calendar task, the proposed method achieved a denotation-level accuracy of 0.101, compared to 0.065 for a standard single-domain model and 0.077 for a standard shared encoder-decoder. These gains are particularly pronounced when the target domain has fewer than 40 training examples.

Effective Augmentation

By identifying influential examples from the ATIS (flights) domain and adding them to the training set for the calendar domain, we observed significant improvements in both token-level and sequence-level accuracy. Influence functions act as a sophisticated filter, ensuring the model only "listens" to the examples that are mathematically proven to reduce loss on the target domain. This asymmetric influence suggests that the "relatedness" of domains is more complex than simple similarity metrics suggest.

Conclusion

This paper demonstrates that a shared semantic space and targeted data selection via influence functions can significantly boost performance in zero-shot semantic parsing. Our findings suggest that even distant data can be leveraged effectively to overcome data scarcity, providing a path toward more robust and scalable multi-task learning systems.

Summary updated

BibTeX
@misc{dadashkarimi2018zero,
  author = {Javid Dadashkarimi and Alexander R. Fabbri and Sekhar Tatikonda and Dragomir R. Radev},
  title = {{Zero-shot Transfer Learning for Semantic Parsing}},
  year = {2018},
  eprint = {1808.09889},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1808.09889},
}
Figure