paper-with-me

홈 › Papers

Weight subcloning: direct initialization of transformers using larger pretrained ones

2023-12-14 · Mohammad Samragh, Mehrdad Farajtabar, Sachin Mehta, Raviteja Vemulapalli, Fartash Faghri, Devang Naik, Oncel Tuzel, Mohammad Rastegari

Training large transformer models from scratch for a target task requires lots of data and is computationally demanding. The usual practice of transfer learning overcomes this challenge by initializing the model with weights of a pretrained model of the same size and specification to increase the convergence and training speed. However, what if no pretrained model of the required size is available? In this paper, we introduce a simple yet effective technique to transfer the knowledge of a pretrained model to smaller variants. Our approach called weight subcloning expedites the training of scaled-down transformers by initializing their weights from larger pretrained models. Weight subcloning involves an operation on the pretrained model to obtain the equivalent initialized scaled-down model. It consists of two key steps: first, we introduce neuron importance ranking to decrease the embedding dimension per layer in the pretrained model. Then, we remove blocks from the transformer model to match the number of layers in the scaled-down network. The result is a network ready to undergo training, which gains significant improvements in training speed compared to random initialization. For instance, we achieve 4x faster training for vision transformers in image classification and language models designed for next token prediction.

📄 PDF Abstract BibTeX arXiv:2312.09299

Code (0)

등록된 구현이 없습니다.

Tasks

image-classificationImage ClassificationTransfer Learning

Methods 이 논문이 사용한 방법론

SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…

Similar Papers 제목 키워드 기반

What’s Hidden in a One-layer Randomly Weighted Transformer?

2021-11-01 · EMNLP 2021 11 · Sheng Shen, Zhewei Yao, Douwe Kiela, Kurt Keutzer 외

We demonstrate that, hidden within one-layer randomly weighted neural networks, there exist subnetworks that can achieve impressive performance, without ever modifying the weight initializations, on machine translation t…

Machine TranslationTranslation

TransMamba: Fast Universal Architecture Adaption from Transformers to Mamba

2025-02-21 · Xiuwei Chen, Sihao Lin, Xiao Dong, Zisheng Chen 외

Transformers have been favored in both uni-modal and multi-modal foundation models for their flexible scalability in attention modules. Consequently, a number of pre-trained Transformer models, e.g., LLaVA, CLIP, and DEI…

image-classificationImage ClassificationMambaQuestion Answering+3

What's Hidden in a One-layer Randomly Weighted Transformer?

2021-09-08 · Sheng Shen, Zhewei Yao, Douwe Kiela, Kurt Keutzer 외

We demonstrate that, hidden within one-layer randomly weighted neural networks, there exist subnetworks that can achieve impressive performance, without ever modifying the weight initializations, on machine translation t…

Machine TranslationTranslation

Transformers Are Born Biased: Structural Inductive Biases at Random Initialization and Their Practical Consequences

2026-02-05 · Siquan Li, Yao Tong, Haonan Wang, Tianyang Hu arxiv

Transformers underpin modern large language models (LLMs) and are commonly assumed to be behaviorally unstructured at random initialization, with all meaningful preferences emerging only through large-scale training. We …

Mimetic Initialization of Self-Attention Layers

2023-05-16 · Asher Trockman, J. Zico Kolter

It is notoriously difficult to train Transformers on small datasets; typically, large pre-trained models are instead used as the starting point. We explore the weights of such pre-trained Transformers (particularly for v…