DETAIL: Task DEmonsTration Attribution for Interpretable In-Context Learning

Abstract

In-context learning (ICL) allows transformer-based language models that are pre-trained on general text to quickly learn a specific task with a few "task demonstrations" without updating their parameters, significantly boosting their flexibility and generality. ICL possesses many distinct characteristics from conventional machine learning, thereby requiring new approaches to interpret this learning paradigm. Taking the viewpoint of recent works showing that transformers learn in context by formulating an internal optimizer, we propose an influence function-based attribution technique, DETAIL, that addresses the specific characteristics of ICL. We empirically verify the effectiveness of our approach for demonstration attribution while being computationally efficient. Leveraging the results, we then show how DETAIL can help improve model performance in real-world scenarios through demonstration reordering and curation. Finally, we experimentally prove the wide applicability of DETAIL by showing our attribution scores obtained on white-box models are transferable to black-box models in improving model performance.

Cite

Text

Zhou et al. "DETAIL: Task DEmonsTration Attribution for Interpretable In-Context Learning." Neural Information Processing Systems, 2024. doi:10.52202/079017-0797

Markdown

[Zhou et al. "DETAIL: Task DEmonsTration Attribution for Interpretable In-Context Learning." Neural Information Processing Systems, 2024.](https://mlanthology.org/neurips/2024/zhou2024neurips-detail/) doi:10.52202/079017-0797

BibTeX

@inproceedings{zhou2024neurips-detail,
  title     = {{DETAIL: Task DEmonsTration Attribution for Interpretable In-Context Learning}},
  author    = {Zhou, Zijian and Lin, Xiaoqiang and Xu, Xinyi and Prakash, Alok and Rus, Daniela and Low, Bryan Kian Hsiang},
  booktitle = {Neural Information Processing Systems},
  year      = {2024},
  doi       = {10.52202/079017-0797},
  url       = {https://mlanthology.org/neurips/2024/zhou2024neurips-detail/}
}