Los puntos clave no están disponibles para este artículo en este momento.
Predictive models in natural language processing (NLP) have evolved from training models from scratch to fine-tuning pre-trained models with labelled data. An extreme form of this fine-tuning involves in-context learning (ICL), where the output of a pre-trained generative model (frozen decoder parameters) is controlled only with variations in the input strings (called instructions or prompts). An important component of ICL is the use of a small number of labelled data instances as examples in the prompt. While existing work uses a static number of examples during inference for each data instance, in this paper we propose a novel methodology of dynamically adapting the number of examples as per the data. This is analogous to the use of a variable-sized neighborhood in k-nearest neighbors (k-NN) classifier. In our proposed workflow of adaptive ICL (AICL), the number of demonstrations to employ during the inference on a particular data instance is predicted by the Softmax posteriors of a classifier. The parameters of this classifier are fitted on the optimal number of examples in ICL required to correctly infer the label of each instance in the training set with the hypothesis that a test instance that is similar to a training instance should use the same (or a closely matching) number of few-shot examples. Our experiments show that our AICL method results in improvement in text classification task on several standard datasets.
Building similarity graph...
Analyzing shared references across papers
Loading...
Manish Chandra
Debasis Ganguly
Yiwen Li
Building similarity graph...
Analyzing shared references across papers
Loading...
Chandra et al. (Sun,) studied this question.
www.synapsesocial.com/papers/68e74cc9b6db6435876c4ff6 — DOI: https://doi.org/10.48550/arxiv.2403.06402
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: