Probing the Embedding Space of Transformers via Minimal Token Perturbations

Eddie Conti, Alejandro Astruc, Alvaro Parafita, Axel Brando
6/22/2025
cs.LGcs.AIstat.ML

No confident code implementation found for this paper.

Abstract

Understanding how information propagates through Transformer models is a key challenge for interpretability. In this work, we study the effects of minimal token perturbations on the embedding space. In our experiments, we analyze the frequency of which tokens yield to minimal shifts, highlighting that rare tokens usually lead to larger shifts. Moreover, we study how perturbations propagate across layers, demonstrating that input information is increasingly intermixed in deeper layers. Our findings validate the common assumption that the first layers of a model can be used as proxies for model explanations. Overall, this work introduces the combination of token perturbations and shifts on the embedding space as a powerful tool for model interpretability.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{conti2025probing,
  title  = {Probing the Embedding Space of Transformers via Minimal Token Perturbations},
  author = {Eddie Conti and Alejandro Astruc and Alvaro Parafita and Axel Brando},
  year   = {2025},
  eprint = {2506.18011},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.18011v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.18011.svg)](https://codeofpaper.com/paper/2506.18011)

Discussion