Mimetic initialization is a method that initializes the self-attention weights of a Transformer to resemble the structure seen in the weights of pre-trained models. It builds the weights from matrices that mix random numbers with the identity, so that the product of the query and key weights is close to the identity matrix and the product of the value and output projection weights is close to the "negative" identity matrix. It was proposed in 2023 by Asher Trockman and J. Zico Kolter (ICML 2023, "Mimetic Initialization of Self-Attention Layers").
The Transformer is known to be hard to train from scratch on small datasets. For images, ViT loses badly to CNNs such as ResNet on small data, and the gap has only been narrowed by adding self-supervised pre-training, auxiliary losses, convolution-inspired components, and so on. As a result, a model pre-trained on large data is usually the starting point.
The question the paper asks is whether "part of the benefit of pre-training simply comes from providing good initial values". So the authors observed the weights of pre-trained ViTs and built an initialization that reproduces their characteristics with formulas alone, without any training.
- No pre-training or training required: It is determined by formulas and singular value decomposition alone, at almost no computational cost.
- No change to the architecture: It works with an ordinary Transformer with residual connections and layer normalization.
- Large gains on small image datasets: When training ViT from scratch, accuracy rose by up to over 5% on CIFAR-10 and up to about 4% on ImageNet. Improvements for language models were smaller.
The left side of the figure at the top shows where in ViT the initialization changes, and the right side shows how the two pairs of self-attention weights are built.

