Manuscript Offprint

arXiv:2609.07213

Unraveling the Real Working Mechanism and Inherent Flaws of GAE: A Method for Interpreting Transformer Processes from an Economic Perspective

Yongjin Cui, Xiaohui Fan

Yongjin Cui, Xiaohui Fan

Abstract—We observe a phenomenon that current algorithmic research in the field of explainable artificial intelligence primarily pursues better performance on several proxy metrics. On the one hand, these proxy metrics themselves are more or less flawed and cannot properly measure the quality of methods. On the other hand, metric-oriented research approaches often lead to the neglect of the rationality and interpretability of the methods themselves. Explainable artificial intelligence is abbreviated as XAI. The metric-driven research paradigm has resulted in a lack of interpretability of the relevant XAI methods themselves. Accordingly, there is a need for interpretability research on XAI methods, which can be playfully referred to as XXAI. This paper is one of our works on XXAI. This paper takes Generic Attention-model Explainability (GAE), a widely influential model interpretation method, or rather, XAI method that represents an important technical route, as the research object, and explores the real working mechanism and flaws of this method as well as the technical route it represents. Based on the conclusions of this study, it may be necessary to re-examine or verify GAE-related methods and their domain applications. We argue that GAE is an interpretation method that focuses on the attention process. After pointing out the working mechanism and flaws of GAE, we propose Cumulative Asset Holdings (CAH), a more reasonable Transformer interpretation method integrating both process-based and feature-based ideas from an economic zero-sum games perspective. In addition, it is worth noting that our method is applicable to models with special tokens, where existing methods may suffer from limitations. The model simplification research method and the analysis of additive operations adopted in this study may provide inspiration for other research works in XAI.

This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

I. INTRODUCTION

Transformer was initially proposed and applied in the field of natural language processing [1], and has subsequently been successfully applied to computer vision [2], [3], audio processing [4], [5], multimodal learning [6]–[8], and other interdisciplinary fields such as pharmaceuticals [9]–[11]. It has also spawned a series of large models [12]–[14], further advancing the development of AI. The proposal of Transformer marks a major turning point in the development of AI, and its remarkable performance has further motivated efforts to interpret its internal mechanisms.

Along with the remarkable progress of AI driven by Transformer, concerns have also emerged. These concerns mainly stem from the black-box nature of deep models, which may bring unknown issues, such as algorithmic safety in AI-based healthcare and autonomous driving, as well as algorithmic fairness across different groups.

It is worth noting that interpretability research differs substantially from traditional model training research. Model training has a clear objective: minimizing the loss. For example, in the training of image recognition models, both the training objective and evaluation metric are the recognition accuracy of the model, and the objective is reliable. Therefore, its performance evaluation method is well-defined, and model training is clearly metric-oriented. However, model interpretation often lacks well-defined evaluation metrics, and the few existing metrics are flawed proxy metrics.

Currently, there are two main approaches to evaluating the performance of model interpretation methods: qualitative and quantitative. Qualitative methods compare model interpretation results with human understanding of target features to verify their consistency. There are two types of quantitative methods. One is similar to qualitative evaluation, which compares the consistency between model interpretation results and feature regions in a batch manner. The other type perturbs the input based on model interpretation results—for example, removing corresponding elements in order of importance and observing the magnitude of changes in model outputs.

Consistency-based evaluation relies on a default assumption: human perception is the optimal solution, and the tested model is sufficiently good to achieve this optimal solution. Under this assumption, model interpretation results are compared with human understanding of features—the higher the consistency, the better the interpretation method. First, we cannot be fully certain that human cognition indeed represents the optimal solution; models may also learn other patterns on their own. Another issue is that we cannot guarantee that the tested model is sufficiently good. In this case, deviations in model interpretation results may stem from the interpretation method itself, insufficient model performance, or new patterns learned by the model that differ from human cognition.

Perturbation-based evaluation methods ignore the inherent regularities of data. The information conveyed by data depends on the relationships between elements. Quantitative evaluation methods based on perturbation essentially rely on marginal

Yongjin Cui, Zhejiang University, cuiyongjin@zju.edu.cn; Xiaohui Fan, Zhejiang University, fanxh@zju.edu.cn effects, which destroy the interdependence of data and introduce uncertainty, making it difficult to guarantee the accuracy and reliability of evaluation results. For example, the artifact phenomenon [15] validates this issue; readers may refer to that paper for artifact cases. Regarding the limitations of marginal effects, we can illustrate them with a very simple everyday example. A man and a woman marry and have a child. If evaluated using marginal effects and assuming the absence of the man in this relationship, the child would not exist. Therefore, marginal-effect-based evaluation would attribute the entire contribution of having the child to the man, which is obviously incorrect.

Researchers in the field of XAI are often influenced by the mindset of model training research and still adopt a metric-oriented research approach, yet they overlook that the evaluation metrics for model interpretation results are unreliable proxy metrics. This metric-oriented research approach leads researchers to focus more on metric performance while neglecting the rationality and interpretability of the model interpretation methods themselves. This phenomenon perfectly exemplifies Goodhart's Law: when a measure becomes a target, it ceases to be a good measure. This is particularly true when the proxy metrics themselves are inherently flawed.

Model interpretation methods, or XAI methods, were originally developed to study the interpretability of models, but their own interpretability still needs to be investigated—herein referred to as XXAI. Existing studies have demonstrated that widely recognized results, such as Grad-ECLIP [16], TAM [17], BT [18], DIX [19], and ODAM [20], [21], have flaws or errors [22]–[24].

Among numerous Transformer interpretation methods, GAE [25] holds a very important position. It formally provides a highly representative technical pipeline: first assigning weights to attention maps (GAE uses the positive gradient of attention maps as weights), and then performing attention rollout [26] across all layers to obtain the final interpretation scores:

Aˉ(l)=I+EH((∇A(l))+⊙A(l)),(1)\bar{A}^{(l)}=I+\mathbb{E}_{H}\big((\nabla A^{(l)})^{+}\odot A^{(l)}\big), \tag{1} rollout=Aˉ(L)⋅Aˉ(L−1)⋯Aˉ(2)⋅Aˉ(1),(2)\mathrm{r o l l o u t}=\bar{A}^{(L)}\cdot\bar{A}^{(L-1)}\cdots\bar{A}^{(2)}\cdot\bar{A}^{(1)}, \tag{2} C=rollout[0,1:].(3)C=\mathrm{r o l l o u t}[0,1:]. \tag{3}

where A(l)A^{(l)} is the attention map of the l-th layer, EH\mathbb{E}_H denotes the expectation over multiple heads, ⊙\odot denotes the Hadamard product, (⋅)+(\cdot)^+ takes the positive part, and CC is the overall contribution originating from the cls token.

Note that the original GAE paper introduces this computation pipeline from the perspective of correlation propagation, while the actual calculation process is completely equivalent.

However, the working mechanism of this technical pipeline has not been fully and effectively studied, yet it has been widely accepted due to its outstanding performance on existing flawed proxy metrics. As of August 11, 2026, statistics from Web of Science show that GAE has been cited 4,411 times across 289 publications (Figure 1).

GAE has been applied in many fields and has influenced numerous subsequent methods; see Section II for details. Therefore, it is highly necessary to conduct a detailed and in-depth investigation of the working mechanism of GAE.

This paper conducts an in-depth discussion on the working mechanism of GAE, and clarifies its real mechanism and inherent flaws. Based on the conclusions of this study, it may be necessary to re-examine or verify GAE-related methods and their domain applications.

GAE is essentially a gradient-based method built on linear approximations of numerous nonlinear operations in the model, which introduces certain approximation errors and fails to satisfy Sensitivity [27]. Integrated Gradients is a more accurate model interpretation method, but it cannot be applied to attention maps. Since attention maps are generated from features, the two are not independent of each other, making it impossible to perform Integrated Gradients operations on attention maps alone; see the mechanism of Integrated Gradients for details [24], [27]. In addition, in Transformers with special tokens—such as ViT [2], which contains the cls token—applying Integrated Gradients assigns part of the output contribution to the cls token. Except for the initial cls token, the cls tokens in other layers all contain contributions from other patch tokens. Accordingly, it is difficult to further allocate the contribution of the cls token to individual patch tokens.

That is to say, Integrated Gradients is more accurate, but it cannot be applied to attention maps (the process-based perspective), nor can it be easily applied to interpreting Transformers with special tokens (the feature-based perspective). Having criticized GAE to a certain extent, we ought to propose a new interpretation method. Finally, we integrate process-based and feature-based perspectives, and propose a Transformer interpretation method from the perspective of zero-sum games in economics.

References (54)