All Roads Lead to Rome? Exploring the Invariance of Transformers' Representations
Yuxin Ren, Qipeng Guo, Zhijing Jin, Shauli Ravfogel, Mrinmaya Sachan,, Bernhard Sch\"olkopf, Ryan Cotterell

TL;DR
This paper investigates whether transformer models learn invariant representations across different training runs, proposing a bijective alignment method using invertible neural networks to analyze and interpret these representations.
Contribution
It introduces the Bijection Hypothesis and BERT-INN, a novel invertible neural network approach for aligning transformer representations, advancing interpretability research.
Findings
BERT-INN outperforms CCA in aligning representations
Transformers learn largely isomorphic representation spaces
Aligned embeddings reveal meaningful interpretability insights
Abstract
Transformer models bring propelling advances in various NLP tasks, thus inducing lots of interpretability research on the learned representations of the models. However, we raise a fundamental question regarding the reliability of the representations. Specifically, we investigate whether transformers learn essentially isomorphic representation spaces, or those that are sensitive to the random seeds in their pretraining process. In this work, we formulate the Bijection Hypothesis, which suggests the use of bijective methods to align different models' representation spaces. We propose a model based on invertible neural networks, BERT-INN, to learn the bijection more effectively than other existing bijective methods such as the canonical correlation analysis (CCA). We show the advantage of BERT-INN both theoretically and through extensive experiments, and apply it to align the reproduced…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsExplainable Artificial Intelligence (XAI) · Topic Modeling · Adversarial Robustness in Machine Learning
MethodsMulti-Head Attention · Linear Warmup With Linear Decay · Refunds@Expedia|||How do I get a full refund from Expedia? · WordPiece · Softmax · Layer Normalization · Dropout · Attention Is All You Need · Linear Layer · Attention Dropout
