Retrieval-Augmented Few-shot Text Classification
Guoxin Yu, Lemao Liu, Haiyun Jiang, Shuming Shi, Xiang Ao
Abstract
Retrieval-augmented methods are successful in the standard scenario where the retrieval space is sufficient; whereas in the few-shot scenario with limited retrieval space, this paper shows it is non-trivial to put them into practice. First, it is impossible to retrieve semantically similar examples by using an off-the-shelf metric and it is crucial to learn a task-specific retrieval metric; Second, our preliminary experiments demonstrate that it is difficult to optimize a plausible metric by minimizing the standard cross-entropy loss. The in-depth analyses quantitatively show minimizing cross-entropy loss suffers from the weak supervision signals and the severe gradient vanishing issue during the optimization. To address these issues, we introduce two novel training objectives, namely EM-L and R-L, which provide more task-specific guidance to the retrieval metric by the EM algorithm and a ranking-based loss, respectively. Extensive experiments on $10$ datasets prove the superiority of the proposed retrieval augmented methods on the performance.
BibTeX
@inproceedings{
yu2023retrievalaugmented,
title={Retrieval-Augmented Few-shot Text Classification},
author={Guoxin Yu and Lemao Liu and Haiyun Jiang and Shuming Shi and Xiang Ao},
booktitle={The 2023 Conference on Empirical Methods in Natural Language Processing},
year={2023},
url={https://openreview.net/forum?id=b6e1wV03hy}
}