Analyzing Transformers in Embedding Space
Dar, Guy, Geva, Mor, Gupta, Ankit, Berant, Jonathan
–arXiv.org Artificial Intelligence
Understanding Transformer-based models has attracted significant attention, as they lie at the heart of recent technological advances across machine learning. While most interpretability methods rely on running models over inputs, recent work has shown that a zero-pass approach, where parameters are interpreted directly without a forward/backward pass is feasible for some Transformer parameters, and for two-layer attention networks. In this work, we present a theoretical analysis where all parameters of a trained Transformer are interpreted by projecting them into the embedding space, that is, the space of vocabulary items they operate on. We derive a simple theoretical framework to support our arguments and provide ample evidence for its validity. First, an empirical analysis showing that parameters of both pretrained and fine-tuned models can be interpreted in embedding space. Second, we present two applications of our framework: (a) aligning the parameters of different models that share a vocabulary, and (b) constructing a classifier without training by ``translating'' the parameters of a fine-tuned classifier to parameters of a different model that was only pretrained. Overall, our findings open the door to interpretation methods that, at least in part, abstract away from model specifics and operate in the embedding space only.
arXiv.org Artificial Intelligence
Dec-24-2023
- Country:
- Africa
- Asia
- Pakistan (0.04)
- Japan > Honshū
- Kansai > Osaka Prefecture > Osaka (0.04)
- Vietnam > Thái Nguyên Province
- Thái Nguyên (0.04)
- Malaysia > Kuala Lumpur
- Kuala Lumpur (0.04)
- Afghanistan > Kabul Province
- Kabul (0.04)
- Azerbaijan (0.04)
- Laos (0.04)
- Middle East
- Israel > Tel Aviv District
- Tel Aviv (0.04)
- Republic of Türkiye
- Ankara Province > Ankara (0.04)
- Istanbul Province > Istanbul (0.04)
- Saudi Arabia (0.04)
- Yemen (0.04)
- Israel > Tel Aviv District
- Russia (0.04)
- Taiwan (0.04)
- India
- Gujarat (0.04)
- Karnataka > Bengaluru (0.04)
- Maharashtra > Mumbai (0.05)
- Tamil Nadu > Chennai (0.04)
- Indonesia > Java
- Europe
- Ireland (0.04)
- United Kingdom
- England > Cambridgeshire
- Cambridge (0.04)
- Scotland (0.04)
- England > Cambridgeshire
- Middle East > Republic of Türkiye
- Istanbul Province > Istanbul (0.04)
- Ukraine (0.04)
- Slovenia (0.04)
- Finland (0.04)
- Iceland (0.04)
- Italy > Tuscany
- Florence (0.04)
- Bulgaria (0.04)
- Russia > Central Federal District
- Moscow Oblast > Moscow (0.04)
- Sweden > Stockholm
- Stockholm (0.04)
- North America
- Canada
- Alberta
- Manitoba > Winnipeg Metropolitan Region
- Winnipeg (0.05)
- Nova Scotia (0.04)
- Ontario > Toronto (0.04)
- Quebec (0.04)
- Saskatchewan (0.04)
- United States
- California (0.04)
- Colorado > El Paso County
- Colorado Springs (0.04)
- Oregon > Multnomah County
- Portland (0.04)
- Texas (0.04)
- Wisconsin (0.04)
- Canada
- Oceania > Australia
- Australian Capital Territory > Canberra (0.05)
- Queensland (0.04)
- Tasmania (0.04)
- South America
- Argentina > Pampas
- Buenos Aires F.D. > Buenos Aires (0.04)
- Brazil (0.04)
- Argentina > Pampas
- Genre:
- Research Report > New Finding (0.66)
- Industry:
- Government (1.00)
- Health & Medicine (0.93)
- Leisure & Entertainment > Sports
- Hockey (0.45)
- Media
- Technology: