paper-with-me

홈 › Papers

DecompX: Explaining Transformers Decisions by Propagating Token Decomposition

2023-06-05 · Ali Modarressi, Mohsen Fayyaz, Ehsan Aghazadeh, Yadollah Yaghoobzadeh, Mohammad Taher Pilehvar

An emerging solution for explaining Transformer-based models is to use vector-based analysis on how the representations are formed. However, providing a faithful vector-based explanation for a multi-layer model could be challenging in three aspects: (1) Incorporating all components into the analysis, (2) Aggregating the layer dynamics to determine the information flow and mixture throughout the entire model, and (3) Identifying the connection between the vector-based analysis and the model's predictions. In this paper, we present DecompX to tackle these challenges. DecompX is based on the construction of decomposed token representations and their successive propagation throughout the model without mixing them in between layers. Additionally, our proposal provides multiple advantages over existing solutions for its inclusion of all encoder components (especially nonlinear feed-forward networks) and the classification head. The former allows acquiring precise vectors while the latter transforms the decomposition into meaningful prediction-based values, eliminating the need for norm- or summation-based vector aggregation. According to the standard faithfulness evaluations, DecompX consistently outperforms existing gradient-based and vector-based approaches on various datasets. Our code is available at https://github.com/mohsenfayyaz/DecompX.

📄 PDF Abstract BibTeX arXiv:2306.02873

Code (1)

mohsenfayyaz/decompx 공식 구현 pytorch

Similar Papers 제목 키워드 기반

Holistically Explainable Vision Transformers

2023-01-20 · Moritz Böhle, Mario Fritz, Bernt Schiele

Transformers increasingly dominate the machine learning landscape across many tasks and domains, which increases the importance for understanding their outputs. While their attention modules provide partial insight into …

Residual Connections and the Causal Shift: Uncovering a Structural Misalignment in Transformers

2026-02-16 · Jonathan Lys, Vincent Gripon, Bastien Pasdeloup, Axel Marmoret 외 arxiv

Large Language Models (LLMs) are trained with next-token prediction, implemented in autoregressive Transformers via causal masking for parallelism. This creates a subtle misalignment: residual connections tie activations…

Token-Label Alignment for Vision Transformers

2022-10-12 · ICCV 2023 1 · Han Xiao, Wenzhao Zheng, Zheng Zhu, Jie zhou 외

Data mixing strategies (e.g., CutMix) have shown the ability to greatly improve the performance of convolutional neural networks (CNNs). They mix two images as inputs for training and assign them with a mixed label with …

image-classificationImage ClassificationSemantic SegmentationTransfer Learning

Interpreting Language Models with Contrastive Explanations

2022-02-21 · Kayo Yin, Graham Neubig

Model interpretability methods are often used to explain NLP model decisions on tasks such as text classification, where the output space is relatively small. However, when applied to language generation, where the outpu…

Language ModelingLanguage Modellingtext-classificationText Classification+1

FrugalPrompt: Reducing Contextual Overhead in Large Language Models via Token Attribution

2025-10-18 · Syed Rifat Raiyan, Md Farhan Ishmam, Abdullah Al Imran, Mohammad Ali Moni arxiv

Human communication heavily relies on laconism and inferential pragmatics, allowing listeners to successfully reconstruct rich meaning from sparse, telegraphic speech. In contrast, large language models (LLMs) owe much o…