CLJul 12, 2024

Transformer Layers as Painters

arXiv:2407.09298v454 citationsh-index: 5
Originality Synthesis-oriented
AI Analysis

This work provides insights for better usage and architectural improvements of transformers, though it is incremental as it builds on existing understanding without introducing new methods.

The paper investigates the internal workings of transformer layers in pretrained models, showing that lower and final layers differ from middle layers, which are surprisingly uniform, and that some problems are robust to skipping, reordering, or parallelizing layers, enabling potential accuracy-latency trade-offs.

Despite their nearly universal adoption for large language models, the internal workings of transformers are not well understood. We aim to better understand the impact of removing or reorganizing information throughout the layers of a pretrained transformer. Such an understanding could both yield better usage of existing models as well as to make architectural improvements to produce new variants. We present a series of empirical studies on frozen models that show that the lower and final layers of pretrained transformers differ from middle layers, but that middle layers have a surprising amount of uniformity. We further show that some classes of problems have robustness to skipping layers, running the layers in an order different from how they were trained, or running the layers in parallel. Our observations suggest that even frozen pretrained models may gracefully trade accuracy for latency by skipping layers or running layers in parallel.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes