atlas

Research map / Architectures and efficiency / Pruning and efficient tuning

Dynamic Layer Tying for Parameter-Efficient Transformers

ICLR 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.

Uses a deep Q-learning agent that, during a single training run, dynamically decides for each transformer layer whether to train independently or copy and tie weights from an earlier layer, cutting trainable parameters and memory while matching or slightly beating perplexity.

Problem

Transformers are overparameterized, and training large transformers requires many trainable parameters and high memory; prior NAS and weight-sharing methods use fixed patterns or multiple training sessions.

Approach

An RL (deep Q-learning, epsilon-greedy) driver network periodically chooses, during training of the primary transformer, which earlier layer each layer should copy and tie to, yielding a dynamic single-pass NAS with weight tying rather than fixed sharing patterns.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use dynamic layer tying during training instead of conventional trainingGPT-2 · Wiki-2perplexity: 53.57 -> 49.37Helped
Use dynamic layer tying during training instead of conventional trainingGPT-2 · Wiki-103perplexity: 22.32 -> 22.35Hurt
Use dynamic layer tying during training instead of conventional trainingGPT-2 · Lambadaperplexity: 94.96 -> 93.84Helped
Use dynamic layer tying during training instead of conventional trainingGPT-2 · 1-billionperplexity: 88.35 -> 72.35Helped
Use dynamic layer tying during training instead of conventional trainingBERT · Wiki-2, Wiki-103, Lambada, and 1-billionperplexity: 70.15 -> 69.27; 154.2 -> 132.6; 202.70 -> 156.30; $>$1000 -> 215.50Helped
Use a vanilla transformer with the same number of layers as the independent layers in the full method (ablation)Dynamic layer tying · Wiki-2 and Shakespeareperplexity: 49.37 -> 54.64; 161.1 -> 167.3Hurt
Train all epochs with the final architecture instead of changing architecture dynamically (ablation)Dynamic layer tying · Wiki-2 and Shakespeareperplexity: 49.37 -> 59.35; 161.1 -> 185.3Hurt
Apply recorded dynamics to permuted layer indices (ablation)Dynamic layer tying · Wiki-2 and Shakespeareperplexity: 49.37 -> 65.21; 161.1 -> 172.2Hurt
Replay recorded states without Q-learning (ablation)Dynamic layer tying · Wiki-2 and Shakespeareperplexity: 49.37 -> 50.05; 161.1 -> 161.3No clear effect
Remove weight tying while retaining weight replication (ablation)Dynamic layer tying · Wiki-2 and Shakespeareperplexity: 49.37 -> 235.8; 161.1 -> 202.9Hurt
Make all layers trainable at initialization instead of freezing all but layer 0 (ablation)Dynamic layer tying · Wiki-2 and Shakespeareperplexity: 49.37 -> 50.18; 161.1 -> 159.3Mixed
Replace dynamic tying with the Cycle fixed pattern (ablation)Dynamic layer tying · Wiki-2 and Shakespeareperplexity: 49.37 -> 51.93; 161.1 -> 176.6Hurt

Surprising findings

Limitations

Experimental setup

Datasets: WikiText-2 WikiText-103 LAMBADA 1-billion words Shakespeare CIFAR-10 GLUE

Benchmarks: WikiText-2 WikiText-103 LAMBADA 1-billion words Shakespeare CIFAR-10 GLUE (SST-2, CoLA, QNLI, MRPC, RTE)

Metrics: perplexity accuracy number of trainable parameters number of independent layers peak and average GPU memory training time per epoch

Baselines: Conventional training Cycle weight-sharing pattern Cycle Rev Sequence pattern Vision Transformer (ViT)

Builds on: DQN Cyclic layer sharing (Reuse/Subformer-style fixed patterns) Bellman equation Q-learning

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