Few-Shot Natural Language Inference Generation with PDD: Prompt and Dynamic Demonstration

Kaijian Li,Shansan Gong,Kenny Q. Zhu
DOI: https://doi.org/10.48550/arXiv.2205.10593
2022-05-21
Abstract:Natural Language Inference Generation task is to generate a text hypothesis given a text premise and a logical relation between the two. This task can be used in data augmentation and controllable text generation in practice. In this paper, we propose language models with prompt and dynamic demonstration (LM-PDD) to tackle this problem in few-shot settings. Our framework outperforms standard fine-tuned models with low resource, achieving an average 8% absolute improvement on SNLI and MNLI datasets, and the results on 13 natural language classification tasks also show that our dynamic demonstration method has good generalizability.
Computation and Language,Artificial Intelligence
What problem does this paper attempt to address?