From Large Language Models to Small Logic Programs: Building Global Explanations from Disagreeing Local Post-hoc Explainers

by Andrea Agiollo, Luciano Siebert Cavalcante, Pradeep Kumar Murukannaiah and Andrea Omicini

Abstract

The expressive power and efectiveness of large language models (LLMs) is going to increasingly push intelligent agents towards sub-symbolic models for natural language processing (NLP) tasks in human–agent interaction. However, LLMs are characterised by a performance vs. transparency trade-of that hinders their applicability to such sensitive scenarios. This is the main reason behind many approaches focusing on local post-hoc explanations, recently proposed by the XAI community in the NLP realm. However, to the best of our knowledge, a thorough comparison among available explainability techniques is currently missing, as well as approaches for constructing global post-hoc explanations leveraging the local information. This is why we propose a novel framework for comparing state-of-the-art local post-hoc explanation mechanisms and for extracting logic programs surrogating LLMs. Our experiments—over a wide variety of text classifcation tasks— show how most local post-hoc explainers are loosely correlated, highlighting substantial discrepancies in their results. By relying on the proposed novel framework, we also show how it is possible to extract faithful and efficient global explanations for the original LLM over multiple tasks, enabling explainable and resource-friendly AI techniques.

How to access

How to cite

Bibtex

@article{skenlp-jaamas38,
    articleno = 32,
    author = {Agiollo, Andrea and Siebert, Luciano Cavalcante and Murukannaiah, Pradeep Kumar and Omicini, Andrea},
    dblp = {journals/aamas/AgiolloSMO24},
    doi = {10.1007/s10458-024-09663-8},
    iris = {11585/973894},
    journal = {Autonomous Agents and Multi-Agent Systems},
    keywords = {Natural language processing, post-hoc explanations, symbolic knowledge extraction, eXplainable AI, resource-friendly AI},
    month = jul,
    note = {Special Issue on Multi-Agent Systems and Explainable AI},
    numpages = 33,
    pages = {1--33},
    publisher = {Springer},
    scholar = {13114388339509722903},
    scopus = {2-s2.0-85197706028},
    title = {From Large Language Models to Small Logic Programs: Building Global Explanations from Disagreeing Local Post-hoc Explainers},
    url = {http://link.springer.com/10.1007/s10458-024-09663-8},
    urlopenaccess = {https://link.springer.com/content/pdf/10.1007/s10458-024-09663-8.pdf},
    urlpdf = {https://link.springer.com/content/pdf/10.1007/s10458-024-09663-8.pdf},
    volume = 38,
    wos = {WOS:001264787900001},
    year = 2024
}