mlsanityData to 7 Oct 2026

Transformer as Linear Expansion of Learngene

arXiv 2312.05614 ↗First posted 9 Dec 2023cs.AI cs.LGcited by 13

Not on the map. Why?

Abstract (arXiv)

We propose expanding the shared Transformer module to produce and initialize Transformers of varying depths, enabling adaptation to diverse resource constraints. Drawing an analogy to genetic expansibility, we term such module as learngene. To identify the expansion mechanism, we delve into the relationship between the layer's position and its corresponding weight value, and find that linear function appropriately approximates this relationship. Building on this insight, we present Transformer as Linear Expansion of learnGene (TLEG), a novel approach for flexibly producing and initializing Transformers of diverse depths. Specifically, to learn learngene, we firstly construct an auxiliary Transformer linearly expanded from learngene, after which we train it through employing soft distillation. Subsequently, we can produce and initialize Transformers of varying depths via linearly expanding the well-trained learngene, thereby supporting diverse downstream scenarios. Extensive experiments on ImageNet-1K demonstrate that TLEG achieves comparable or better performance in contrast to many individual models trained from scratch, while reducing around 2x training cost. When transferring to several downstream classification datasets, TLEG surpasses existing initialization methods by a large margin (e.g., +6.87% on iNat 2019 and +7.66% on CIFAR-100). Under the situation where we need to produce models of varying depths adapting for different resource constraints, TLEG achieves comparable results while reducing around 19x parameters stored to initialize these models and around 5x pre-training costs, in contrast to the pre-training and fine-tuning approach. When transferring a fixed set of parameters to initialize different models, TLEG presents better flexibility and competitive performance while reducing around 2.9x parameters stored to initialize, compared to the pre-training approach.

Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 31 of its 45 references that are in the map. First posted on arXiv 9 Dec 2023.

Builds on

31 of 45 references.

References · 31

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  6. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  7. 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
  8. 2020End-to-End Object Detection with Transformerscited by 7,384
  9. 2016Layer Normalizationcited by 5,579
  10. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  11. 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,848
  12. 2016Gaussian Error Linear Units (GELUs)cited by 3,431
19 more
  1. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  2. 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,360
  3. 2016Matching Networks for One Shot Learningcited by 2,246
  4. 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
  5. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
  6. 2019Deep Equilibrium Modelscited by 603
  7. 2022Image as a Foreign Language: BEiT Pretraining for All Vision and Vision-Language Taskscited by 510
  8. 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
  9. 2019BBN: Bilateral-Branch Network with Cumulative Learning for Long-Tailed Visual Recognitioncited by 403
  10. 2018Meta-Transfer Learning for Few-Shot Learningcited by 306
  11. 2019Revealing the Dark Secrets of BERTcited by 300
  12. 2022TinyViT: Fast Pretraining Distillation for Small Vision Transformerscited by 232
  13. 2021Few-Shot Incremental Learning with Continually Evolved Classifierscited by 184
  14. 2015All you need is a good initcited by 124
  15. 2019PolyTransform: Deep Polygon Transformer for Instance Segmentationcited by 92
  16. 2022MiniViT: Compressing Vision Transformers with Weight Multiplexingcited by 88
  17. 2021Learngene: From Open-World to Your Learning Taskcited by 27
  18. 2023Learngene: Inheriting Condensed Knowledge from the Ancestry Model to Descendant Modelscited by 24
  19. 2022Breaking the Architecture Barrier: A Method for Efficient Knowledge Transfer Across Networkscited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 4; 2025: 3; 2026: 6.

13 papers.

Sort:

By area: