EMNLP 2024finding1 citations

Improving LLM Attributions with Randomized Path-Integration

Oren Barkan, Yehonatan Elisha, Yonatan Toib, Jonathan Weill, Noam Koenigstein

Abstract

We present Randomized Path-Integration (RPI) - a path-integration method for explaining language models via randomization of the integration path over the attention information in the model. RPI employs integration on internal attention scores and their gradients along a randomized path, which is dynamically established between a baseline representation and the attention scores of the model. The inherent randomness in the integration path originates from modeling the baseline representation as a randomly drawn tensor from a Gaussian diffusion process. As a consequence, RPI generates diverse baselines, yielding a set of candidate attribution maps. This set facilitates the selection of the most effective attribution map based on the specific metric at hand. We present an extensive evaluation, encompassing 11 explanation methods and 5 language models, including the Llama2 and Mistral models. Our results demonstrate that RPI outperforms latest state-of-the-art methods across 4 datasets and 5 evaluation metrics.

BibTeX
@inproceedings{barkan-etal-2024-improving,
    title = "Improving {LLM} Attributions with Randomized Path-Integration",
    author = "Barkan, Oren  and
      Elisha, Yehonatan  and
      Toib, Yonatan  and
      Weill, Jonathan  and
      Koenigstein, Noam",
    editor = "Al-Onaizan, Yaser  and
      Bansal, Mohit  and
      Chen, Yun-Nung",
    booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2024",
    month = nov,
    year = "2024",
    address = "Miami, Florida, USA",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2024.findings-emnlp.551/",
    doi = "10.18653/v1/2024.findings-emnlp.551",
    pages = "9430--9446"
}
Improving LLM Attributions with Randomized Path-Integration · EMNLP 2024