SITH: Semantic Interpreter for Transformer Hierarchy
While Transformers and their derivatives have shown strong performance in various NLP tasks, understanding their internal mechanisms remains challenging. Mainstream interpretability research often focuses solely on numerical attributes, neglecting the complex semantic structure inherent in the model. We have developed the SITH(Semantic Interpreter for Transformer Hierarchy) framework to address this issue. We focus on creating universal text representation methods and uncovering the semantic principles of the Transformer's hierarchical structure. We use the convex hull method to represent sequence semantics in an n-dimensional Semantic Euclidean space and define different evaluation indicators through convex hull to analyze semantic quality and quantity changes. Our analysis takes a dual perspective: a multi-layer cumulative perspective and an individual layer-to-layer shift perspective. When applied to machine translation, our results reveal potential semantic processes and emphasize the effectiveness of stacking and hierarchical differences. These insights are valuable for fine-tuning hyperparameters at the encoder and decoder layers.
Authors
- Jingxu Cao (ORCID: https://orcid.org/0000-0002-8988-9381)
- Jinxin Lv (ORCID: https://orcid.org/0000-0002-6988-4081)
- Dawei Song (ORCID: https://orcid.org/0000-0002-8660-3608)
- Jiachuan Sheng (ORCID: https://orcid.org/0000-0002-4286-1365)
- Cheng Zhang (ORCID: https://orcid.org/0000-0002-7196-9463)
- Tiancheng Zhang (ORCID: https://orcid.org/0009-0006-7681-1223)
Institutions
- Beijing Institute of Technology (CN)
- Tianjin University (CN)
- Tianjin University of Finance and Economics (CN)
- The Open University (GB)
Publication Details
- Published
- 2024-10-28
- DOI
- https://doi.org/10.1109/ictai62512.2024.00023
- Primary Topic
- Power Systems and Technologies
- Type
- article
- Field-Weighted Citation Impact
- 0.00