atlas

Research map / Architectures and efficiency / Pruning and efficient tuning

Transformer as Linear Expansion of Learngene

AAAI 2024 · Architectures and efficiency › Pruning and efficient tuning · approach: Efficient ViT adaptation · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes TLEG, which learns a compact learngene (two Transformer layers' worth of parameters) via a linearly expanded auxiliary Transformer trained with soft distillation from LeViT-384, then linearly expands it to initialize Transformers of varying depths.

Problem

Efficiently producing and initializing Transformers of varying depths for diverse resource constraints without storing and pre-training a separate model for each scale.

Approach

Observes that the layer-position-to-weight relationship in well-trained ViTs is approximately linear, so each layer's weights are parameterized as theta_B + (l-1)/L * theta_A; only the two shared modules are learned (via distillation from an ancestry model) and then linearly expanded to initialize descendant models of any depth.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Initialize Des-Ti from a linearly expanded learngene instead of training from scratchDes-Ti · ImageNet-1K, 3 layersTop-1 accuracy (%): 45.0 -> 46.6 (+1.6)Helped
Initialize Des-S from a linearly expanded learngene instead of training from scratchDes-S · ImageNet-1K, 6 layersTop-1 accuracy (%): 68.7 -> 69.5 (+0.8)Helped
Initialize Des-B from a linearly expanded learngene instead of training from scratchDes-B · ImageNet-1K, 12 layersTop-1 accuracy (%): 78.6 -> 79.9 (+1.3)Helped
Use TLEG rather than Mini-Init to initialize Des-SDes-S · Mi-INetTop-1 accuracy (%): 73.39 -> 80.92Helped
Use TLEG rather than Mini-Init to initialize Des-SDes-S · Ti-INetTop-1 accuracy (%): 64.56 -> 71.32Helped
Use TLEG rather than Mini-Init to initialize Des-SDes-S · C-100Top-1 accuracy (%): 75.98 -> 83.64Helped
Use TLEG rather than Pre-Fin(U) to initialize Des-SDes-S · C-100Top-1 accuracy (%): 84.43 -> 83.64Hurt
Include linear expansion of LN along with MSA and MLP (ablation)TLEG Aux-S / Des-S · C-100, 6 layersTop-1 accuracy (%): 82.03 -> 83.64Helped
Expand MSA, MLP, and LN rather than MSA only (ablation)TLEG Aux-S / Des-S · C-100, 6 layersTop-1 accuracy (%): 79.16 -> 83.64Helped
Expand MSA, MLP, and LN rather than MLP only (ablation)TLEG Aux-S / Des-S · C-100, 6 layersTop-1 accuracy (%): 77.26 -> 83.64Helped
Initialize all six layers rather than only layers 1–3 or 4–6 (ablation)TLEG Des-Ti · C-100, 6 layersTop-1 accuracy (%): 74.29 -> 78.66; 72.00 -> 78.66Helped
Initialize all six layers rather than only layers 1–3 or 4–6 (ablation)TLEG Des-S · C-100, 6 layersTop-1 accuracy (%): 74.88 -> 83.64; 74.33 -> 83.64Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1K iNaturalist 2019 Mini-ImageNet Tiny-ImageNet CIFAR-10 CIFAR-100 Food-101

Benchmarks: ImageNet-1K iNat 2019 Mini-ImageNet Tiny-ImageNet CIFAR-10 CIFAR-100 Food-101

Metrics: Top-1 accuracy Top-5 accuracy FLOPs Params S-Params

Baselines: Scratch Pre-Fin(U) He-LG Share-Init Mini-Init

Builds on: Learngene DeiT MiniViT Knowledge distillation

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy