Prototypical Calibration for Few-Shot Learning of Language Models
Abstract
In-context learning of GPT-like models has been recognized as fragile across different hand-crafted templates, and demonstration permutations. In this work, we propose prototypical calibration to adaptively learn a more robust decision boundary for zero- and few-shot classification, instead of greedy decoding. Concretely, our method first adopts Gaussian mixture distribution to estimate the prototypical clusters for all categories. Then we assign each cluster to the corresponding label by solving a weighted bipartite matching problem. Given an example, its prediction is calibrated by the likelihood of prototypical clusters. Experimental results show that prototypical calibration yields a substantial improvement on a diverse set of tasks. Extensive analysis across different scales also indicates that our method calibrates the decision boundary as expected, greatly improving the robustness of GPT to templates, permutations, and class imbalance.
Cite
Text
Han et al. "Prototypical Calibration for Few-Shot Learning of Language Models." International Conference on Learning Representations, 2023.Markdown
[Han et al. "Prototypical Calibration for Few-Shot Learning of Language Models." International Conference on Learning Representations, 2023.](https://mlanthology.org/iclr/2023/han2023iclr-prototypical/)BibTeX
@inproceedings{han2023iclr-prototypical,
title = {{Prototypical Calibration for Few-Shot Learning of Language Models}},
author = {Han, Zhixiong and Hao, Yaru and Dong, Li and Sun, Yutao and Wei, Furu},
booktitle = {International Conference on Learning Representations},
year = {2023},
url = {https://mlanthology.org/iclr/2023/han2023iclr-prototypical/}
}