Generalized Attention Flow: Feature Attribution for Transformer Models via Maximum Flow
Azarkhalili, Behrooz, Libbrecht, Maxwell
–arXiv.org Artificial Intelligence
This paper introduces Generalized Attention Flow (GAF), a novel feature attribution method for Transformer-based models to address the limitations of current approaches. By extending Attention Flow and replacing attention weights with the generalized Information Tensor, GAF integrates attention weights, their gradients, the maximum flow problem, and the barrier method to enhance the performance of feature attributions. The proposed method exhibits key theoretical properties and mitigates the shortcomings of prior techniques that rely solely on simple aggregation of attention weights. Our comprehensive benchmarking on sequence classification tasks demonstrates that a specific variant of GAF consistently outperforms state-of-the-art feature attribution methods in most evaluation settings, providing a more reliable interpretation of Transformer model outputs.
arXiv.org Artificial Intelligence
Feb-14-2025
- Country:
- South America > Brazil
- Rio de Janeiro > Rio de Janeiro (0.04)
- Oceania > Australia
- Queensland (0.04)
- North America
- Dominican Republic (0.04)
- United States
- Washington > King County
- Seattle (0.04)
- Tennessee > Davidson County
- Nashville (0.04)
- Oregon > Multnomah County
- Portland (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- Colorado > Denver County
- Denver (0.04)
- California > Alameda County
- Berkeley (0.04)
- Washington > King County
- Canada > Ontario
- Toronto (0.04)
- Europe
- United Kingdom > England
- Cambridgeshire > Cambridge (0.14)
- Italy > Tuscany
- Florence (0.04)
- United Kingdom > England
- Asia > China
- Hong Kong (0.04)
- South America > Brazil
- Genre:
- Research Report > New Finding (0.46)
- Technology: