PR-XAI: PageRank-Based Feature Attribution for Transformers

Behrooz Azarkhalili, Linyi Li, Maxwell W. Libbrecht


Abstract
We introduce PR-XAI, a feature attribution method for transformer models based on the PageRank algorithm. The proposed PR-XAI models the attention mechanism as a directed graph, with weights derived from attention weights and their gradients. Evaluations across five well-known text classification datasets and three different architectures show that PR-AG, one variant of PR-XAI, outperforms state-of-the-art attribution methods in faithfulness and classification metrics, with significant gains on long-form text.
Anthology ID:
2026.acl-long.22
Volume:
Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)
Month:
July
Year:
2026
Address:
San Diego, California, United States
Editors:
Maria Liakata, Viviane P. Moreira, Jiajun Zhang, David Jurgens
Venue:
ACL
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
534–554
Language:
URL:
https://preview.aclanthology.org/ingest-acl/2026.acl-long.22/
DOI:
Bibkey:
Cite (ACL):
Behrooz Azarkhalili, Linyi Li, and Maxwell W. Libbrecht. 2026. PR-XAI: PageRank-Based Feature Attribution for Transformers. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 534–554, San Diego, California, United States. Association for Computational Linguistics.
Cite (Informal):
PR-XAI: PageRank-Based Feature Attribution for Transformers (Azarkhalili et al., ACL 2026)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-acl/2026.acl-long.22.pdf
Checklist:
 2026.acl-long.22.checklist.pdf