DETAIL: Task DEmonsTration Attribution for Interpretable In-context Learning

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Zhou, Zijian, Lin, Xiaoqiang, Xu, Xinyi, Prakash, Alok, Rus, Daniela, Low, Bryan Kian Hsiang
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866929629381525504
author Zhou, Zijian
Lin, Xiaoqiang
Xu, Xinyi
Prakash, Alok
Rus, Daniela
Low, Bryan Kian Hsiang
author_facet Zhou, Zijian
Lin, Xiaoqiang
Xu, Xinyi
Prakash, Alok
Rus, Daniela
Low, Bryan Kian Hsiang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2405_14899
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle DETAIL: Task DEmonsTration Attribution for Interpretable In-context Learning
Zhou, Zijian
Lin, Xiaoqiang
Xu, Xinyi
Prakash, Alok
Rus, Daniela
Low, Bryan Kian Hsiang
Computation and Language
Artificial Intelligence
Machine Learning
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.
title DETAIL: Task DEmonsTration Attribution for Interpretable In-context Learning
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2405.14899