The Universal Weight Subspace Hypothesis
Organizations: Department of Computer Science Johns Hopkins University Baltimore, MD, USA
Abstract
We show that deep neural networks trained across diverse tasks exhibit remarkably similar low-dimensional parametric subspaces. We provide the first large-scale empirical evidence that demonstrates that neural networks systematically converge to shared spectral subspaces regardless of initialization, task, or domain. Through mode-wise spectral analysis of over 1200 models - including 500 Mistral-7B LoRAs, 500 Vision Transformers, and 50 LLaMA-8B models - we identify universal subspaces capturing majority variance in just a few principal directions. By applying spectral decomposition techniques to the weight matrices of various architectures trained on a wide range of tasks and datasets, we identify sparse, joint subspaces that are consistently exploited, within shared architectures across diverse tasks and datasets. Our findings offer new insights into the intrinsic organization of information within deep networks and raise important questions about the possibility of discovering these universal subspaces without the need for extensive data and computational resources. Furthermore, this inherent structure has significant implications for model reusability, multi-task learning, model merging, and the development of training and inference-efficient algorithms, potentially reducing the carbon footprint of large-scale neural models.
Figures & tables
| Method | Style 1 | Style 2 | Style 3 | Style 4 | Style 5 | Style 6 | Style 7 | Style 8 | Style 9 | Style 10 | Avg |
|---|---|---|---|---|---|---|---|---|---|---|---|
| LoRA | 21.95 | 15.59 | 22.18 | 18.84 | 16.65 | 17.99 | 24.66 | 17.47 | 22.07 | 19.93 | 19.73 |
| Universal SDXL LoRA | 21.96 | 16.07 | 22.07 | 18.79 | 16.68 | 17.99 | 24.66 | 17.56 | 22.46 | 20.09 | 19.83 |
| Method | IID | OOD |
|---|---|---|
| Full Training | 94.4 1.7 | 91.3 2.1 |
| Universal ViT | 94.1 2.0 | 87.8 1.5 |
| Method | Speedup | CoLA | MRPC | RTE | QNLI | SST-2 | STS-B | Avg. |
|---|---|---|---|---|---|---|---|---|
| LoRA | 59.56 | 86.76 | 77.61 | 92.53 | 94.72 | 90.81 | 83.67 | |
| Universal order-2 | 61.82 | 87.25 | 77.62 | 92.71 | 94.15 | 90.48 | 84.01 | |
| Universal order-3 | 62.06 | 86.52 | 75.81 | 92.98 | 94.26 | 90.39 | 83.67 |
| Params | CIFAR100 | Food101 | Flowers | CIFAR10 | Pets | |
|---|---|---|---|---|---|---|
| Full Training | 86M | 92.8 | 90.7 | 98.82 | 99.0 | 91.2 |
| Universal ViT | 10K | 90.1 | 89.1 | 90.1 | 96.7 | 89.4 |
Appendix figures & tables25 assets
Supplementary material from the paper’s appendix.
Appendix
| Notation | Description |
|---|---|
| Separable Hilbert space with inner product , norm . | |
| Rank-one operator , . | |
| Number of tasks. | |
| Distribution over tasks. | |
| Data distribution for task . | |
| Dataset of size for task . |
| Protocol | Variance Threshold | Original Acc. | Reconstructed Acc. |
|---|---|---|---|
| IID | 60% | 81.00 | 62.71 |
| IID | 70% | 81.00 | 71.56 |
| IID | 80% | 81.00 | 78.26 |
| IID | 85% | 81.00 | 79.86 |
| IID | 90% | 81.00 | 80.45 |
| IID | 95% | 81.00 | 80.85 |
| Protocol | Variance Threshold | Original Acc. | Reconstructed Acc. | Adapted Acc. | Coeff. Params |
|---|---|---|---|---|---|
| IID | 60% | 90.63 | 70.52 | 86.25 | 1.28M |
| IID | 70% | 90.63 | 80.98 | 87.63 | 1.64M |
| IID | 80% | 90.63 | 88.07 | 88.76 | 2.10M |
| OOD | 60% | 90.59 | 69.82 | 86.74 | 1.28M |
| OOD | 70% | 90.59 | 79.82 | 87.86 | 1.64M |
| OOD | 80% | 90.59 | 87.06 | 88.87 | 2.10M |
| Protocol | Original IS | Reconstructed IS | IS | PSNR (dB) |
|---|---|---|---|---|
| IID | ||||
| OOD |
| Model | GT CD | Pair CD |
|---|---|---|
| Original | – | |
| Universal reconstruction |
| Lots-of-LoRAs/Mistral-7B-Instruct-v0.2-4b-r16-task391 | Lots-of-LoRAs/Mistral-7B-Instruct-v0.2-4b-r16-task290 |
| Lots-of-LoRAs/Mistral-7B-Instruct-v0.2-4b-r16-task442 | Lots-of-LoRAs/Mistral-7B-Instruct-v0.2-4b-r16-task1598 |
| Lots-of-LoRAs/Mistral-7B-Instruct-v0.2-4b-r16-task039 | |
| Lots-of-LoRAs/Mistral-7B-Instruct-v0.2-4b-r16-task076 | Lots-of-LoRAs/Mistral-7B-Instruct-v0.2-4b-r16-task627 |
| Lots-of-LoRAs/Mistral-7B-Instruct-v0.2-4b-r16-task664 | Lots-of-LoRAs/Mistral-7B-Instruct-v0.2-4b-r16-task819 |
| Lots-of-LoRAs/Mistral-7B-Instruct-v0.2-4b-r16-task1631 | |
| Lots-of-LoRAs/Mistral-7B-Instruct-v0.2-4b-r16-task190 | Lots-of-LoRAs/Mistral-7B-Instruct-v0.2-4b-r16-task1391 |
| alphonse-mucha-style | directors-coen-brothers-style | larry-carlson-style | rene-magritte-style |
| beeple-mike-winkelmann-style | director-sergei-eisenstein-style | lascaux | richard-corben-style |
| character-design | director-sofia-coppola-style | laurel-burch-style | richard-dadd-style |
| director-christopher-nolan-style | director-terrence-malick-style | lawrence-alma-tadema-style | richard-hescox-style |
| director-lars-von-trier-style | director-tim-burton-style | leonid-afremov-style | richard-scarry-style |
| director-ridley-scott-style | director-wes-anderson-style | leonora-carrington-style | robert-adams-style |
| director-stanley-kubrick-style | director-wong-kar-wai-style | levitating-cube | robert-crumb-style |
| Family | Models | Mean | Retained Layers | ||
|---|---|---|---|---|---|
| ViT | 464 | 4.7066 | 0.0518 | 0.3545 | 18 / 40 |
| GPT-2 | 177 | 4.0951 | 0.0725 | 0.3059 | 23 / 49 |
| LLaMA-3-8B | 50 | 5.2391 | 0.0940 | 0.3290 | 116 / 224 |
| Flan-T5 GLUE | 196 | 3.9136 | 0.0224 | 0.4850 | 179 / 216 |
| 0.50-200Train-100Test-vit-base | 2025-01-21-16-13-04-vit-base-patch16-224 |
| 2025-02-05-14-22-36-vit-base-patch16-224 | 21BAI1229 |
| Accomodation_room_classification | adam_VitB-p16-224-1e-4-batch_16_epoch_4_classes_24 |
| age_face_detection_base | AIvisionGuard-v2 |
| alea | amns |
| AnimeCharacterClassifierMark1 | autotrain-48ci8-roib9 |
| autotrain-8oqr6-image0807-20 | autotrain-ap-pass-fail-v1 |
| Meta-Llama-3-8B-Instruct-Jailbroken | Llama-3-13B-Instruct | large_crafting_sft_success | suzume-llama-3-8B-multilingual |
|---|---|---|---|
| summary-llama3-8b-f16-full | Llama-3-13B-Instruct-v0.1 | Llama-3-8B-ProLong-64k-Base | LLaMAntino-3-ANITA-8B-Inst-DPO-ITA |
| ai-medical-model-32bit | filtered_crafting_train_data_shorter_length | Llama-3-portuguese-Tom-cat-8b-instruct | Llama-3-MAAL-8B-Instruct-v0.1 |
| Human-Like-LLama3-8B-Instruct | LLaMA-3-8B-Instruct-TR-DPO | CabraLlama3-8b | chartgpt-llama3 |
| KoLlama-3-8B-Instruct | honeypot-llama3-8B | Llama-SEA-LION-v2-8B | TR |
| Llama3-8B-Instruct-Turkish-Finetuned | Llama-3-15B-Instruct-zeroed | Llama-3-8B-Instruct-TAR-Bio-v2 | Bio-Medical-Llama-3-8B |
| filtered_construction_train_data | shisa-v1-llama3-8b | REFUEL-Llama-3-Armo-iter_1 | llama3-instrucTrans-enko-8b |
| openai-community/gpt2 | pierreguillou/gpt2-small-portuguese |
| ai-forever/rugpt3small_based_on_gpt2 | uer/gpt2-chinese-cluecorpussmall |
| axtonyao/gpt2-fp16-tflite | Xenova/gpt2 |
| tensorblock/rakeshkiriyath_gpt2Medium_text_to_sql-GGUF | 13on/gpt2-wishes |
| 13onn/gpt2-wishes-2 | 13onnn/gpt2-wish |
| 3koozy/gpt2-HxH | 850886470/xxy_gpt2_chinese |
| AAli/gpt2-wikitext2 | ARCYVILK/gpt2-bot |
| tanganke/flan-t5-base_glue-cola | tanganke/flan-t5-base_glue-mnli |
| tanganke/flan-t5-base_glue-mrpc | tanganke/flan-t5-base_glue-qnli |
| tanganke/flan-t5-base_glue-rte | tanganke/flan-t5-base_glue-qqp |
| tanganke/flan-t5-base_glue-sst2 | tanganke/flan-t5-base_glue-stsb |
| Method | Model Number | Rouge-L Score |
|---|---|---|
| Normal Model | - | 73.7 |
| Universal model | 50 | 55.8 |
| Universal model | 150 | 66.1 |
| Universal model | 250 | 71.9 |
| Universal model | 450 | 72.3 |
| Method | Datasets | Avg. | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Cars | DTD | EuroSAT | GTSRB | MNIST | RESISC45 | SUN397 | SVHN | ||
| Per-Task Absolute Accuracies (%) | |||||||||
| Finetuned | 74.0 | 58.3 | 99.0 | 92.7 | 99.3 | 88.4 | 64.5 | 96.2 | 84.1 |
| Combined-Model Accuracy Normalized by Finetuned Accuracy (%) | |||||||||
| RegMean | 80.2 | 71.3 | 37.9 | 47.3 | 43.1 | 70.5 | 93.9 | 43.0 | 60.9 |
| TA | 82.0 | 73.6 | 48.8 | 42.1 | 53.1 | 71.5 | 97.5 | 41.2 | 63.7 |