Unveiling Transformer Perception by Exploring Input Manifolds
<|reference_start|>Unveiling Transformer Perception by Exploring Input Manifolds: This paper introduces a general method for the exploration of equivalence classes in the input space of Transformer models. The proposed approach is based on sound mathematical theory which describes the internal layers of a Transformer architecture as sequential deformations of the input manifold. Using eigendecomposition of the pullback of the distance metric defined on the output space through the Jacobian of the model, we are able to reconstruct equivalence classes in the input space and navigate across them. We illustrate how this method can be used as a powerful tool for investigating how a Transformer sees the input space, facilitating local and task-agnostic explainability in Computer Vision and Natural Language Processing tasks.<|reference_end|>
@article{benfenati2024unveiling,
    title={Unveiling Transformer Perception by Exploring Input Manifolds},
    author={Alessandro Benfenati and Alfio Ferrara and Alessio Marta and Davide
  Riva and Elisabetta Rocchetti},
    journal={arXiv preprint arXiv:2410.06019},
    year={2024},
    archivePrefix={arXiv},
    eprint={2410.06019},
    primaryClass={cs.LG cs.AI cs.CL}
}