DemoShapley: Valuation of Demonstrations for In-Context Learning
<|reference_start|>DemoShapley: Valuation of Demonstrations for In-Context Learning: Large language models (LLMs) leveraging in-context learning (ICL) have set new benchmarks in few-shot learning across various tasks without needing task-specific fine-tuning. However, extensive research has demonstrated that the effectiveness of ICL is significantly influenced by the selection and ordering of demonstrations. Considering the critical role of demonstration selection in ICL, we introduce DemoShapley which is inspired by the Data Shapley valuation theorem. This approach assesses the influence of individual demonstration instances, distinguishing between those that contribute positively and those that may hinder performance. Our findings reveal that DemoShapley not only enhances model performance in terms of accuracy and fairness but also generalizes queries from domains distinct from those of the in-context demonstrations, highlighting its versatility and effectiveness in optimizing ICL demonstration selection. Last but not least, DemoShapley demonstrates its ability to aid in identifying noisy data within the demonstration set.<|reference_end|>
@article{xie2024demoshapley:,
    title={DemoShapley: Valuation of Demonstrations for In-Context Learning},
    author={Shan Xie, Man Luo, Chadly Daniel Stern, Mengnan Du, Lu Cheng},
    journal={arXiv preprint arXiv:2410.07523},
    year={2024},
    archivePrefix={arXiv},
    eprint={2410.07523},
    primaryClass={cs.CL cs.AI cs.LG}
}