Abstract
Semantic parsing, the task of converting natural language into machine-readable logical forms, often suffers from data scarcity in specialized domains. This paper explores transfer learning via multi-task sequence-to-sequence architectures to mitigate this issue. By co-training a target task with limited data alongside an auxiliary task with abundant data, the authors demonstrate significant performance improvements. They introduce the "one-to-shareMany" architecture, which balances shared representation learning with task-specific output layers, achieving up to 4.4% absolute accuracy gains in low-data regimes.
Introduction
Semantic parsing serves as the foundational technology for conversational agents, translating user utterances into Meaning Representation Languages (MRLs). However, modern deep learning models are data-intensive, and annotating large-scale datasets for every new proprietary API or service is impractical. This research investigates whether knowledge can be transferred from a data-rich source formalism to a data-poor target formalism using multi-task learning.
Multi-Task Architectures
The authors utilize a sequence-to-sequence framework based on Gated Recurrent Units (GRUs) with attention and copy mechanisms. To facilitate transfer learning, they compare three distinct multi-task configurations:
- One-to-Many: Shares only the encoder, with separate attention and decoder modules for each task.
- One-to-One: Shares all parameters, including the output layer, using task-specific tokens to guide generation.
- One-to-ShareMany: Shares the encoder, attention, and decoder, but maintains separate softmax output layers for each task.
The One-to-ShareMany approach (Figure 3) is particularly effective as it forces the model to learn a unified internal representation while allowing the final output to be tailored to the specific vocabulary of each task. This hybrid design avoids the vocabulary imbalance issues often found in fully shared "one-to-one" models.
Experimental Setup
The models were evaluated on both internal Amazon datasets (AlexaMRL and EviMRL) and public benchmarks (ATIS and WSJ). AlexaMRL served as the target task with varying training sizes (10k to 200k), while EviMRL provided a massive auxiliary dataset of over one million utterances. For public data, the ATIS semantic parsing task was paired with WSJ constituency parsing to test if syntactic knowledge could aid semantic understanding.
Results and Discussion
The experiments revealed that multi-task learning consistently outperforms independent training. Notably, sharing decoder parameters proved more beneficial than sharing only the encoder.
As shown in Figure 6, the One-to-ShareMany architecture achieved the highest gains (up to +4.4%) when target data was most scarce (10k samples). Interestingly, even when the auxiliary task was purely syntactic (WSJ), ATIS performance improved by 2.5%, suggesting that the model successfully leverages shared structural patterns between syntax and semantics. Furthermore, the multi-tasking setup acted as a regularizer, even slightly improving performance on the massive auxiliary task by introducing helpful noise during training.
Conclusion
Transfer learning via multi-task seq2seq models is a robust solution for the data scarcity problem in semantic parsing. The "one-to-shareMany" architecture provides an optimal balance for multi-tenant systems, offering both high accuracy and training efficiency. Future work includes expanding these models to handle an increasing number of tasks incrementally and exploring cross-lingual transfer to support non-English languages.
Summary updated