atlas

Research map / Architectures and efficiency / Pruning and efficient tuning

ShareBERT: Embeddings Are Capable of Learning Hidden Layers

AAAI 2024 · Architectures and efficiency › Pruning and efficient tuning · approach: Low-rank compression and merging · 3 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 embedding parameter-sharing (EPS and virtual EPS) that generates transformer encoder weights from embedding columns, yielding ShareBERT which keeps 95.5% of BERT Base GLUE performance with 5M parameters.

Problem

Pre-trained language models are too large for memory-limited devices, and small models usually lose substantial accuracy without knowledge distillation; input embeddings are often ignored in compression.

Approach

Share embedding matrix columns with the hidden-layer weights of a single shared encoder layer (EPS), and use a linear projection to build a virtual embedding matrix (VEPS) when the embedding dimension is too small, so that encoders need near-zero extra parameters.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply EPS to BERT Base (ablation)BERT Base · GLUE devaverage score: 81.4 -> 77.0Hurt
Increase feed-forward size from I=3072 to I=6144 (ablation)BERT + EPS · GLUE devaverage score: 77.0 -> 76.5Hurt
Add embedding factorization and increase hidden size (ablation)BERT + EPS · GLUE devaverage score: 77.0 -> 80.9Helped
Use virtual EPS with F=128 and V=2048 (ablation)ShareBERT · GLUE devaverage score: 77.0 -> 77.8Helped
Increase embedding factorization dimension from F=128 to F=384 (ablation)ShareBERT · GLUE devaverage score: 77.8 -> 79.3Helped
Increase embedding factorization dimension from F=384 to F=768 and use L=6 (ablation)ShareBERT · GLUE devaverage score: 79.3 -> 81.4Helped
Apply VEPS instead of vanilla EPS (ablation)BERT embeddings · Word Similarity averageSpearman correlation: 0.485 -> 0.594Helped
Apply VEPS instead of vanilla EPS (ablation)BERT embeddings · Word Analogyaccuracy: 9.9% -> 10.7%Helped
Apply vanilla EPS (ablation)BERT embeddings · Word Analogyaccuracy: 9.9% -> 3.3%Hurt
Apply EPS to shared linear transformations (ablation)Simple-Share MT · English-Vietnamese NMTBLEU: 29.85 -> 29.58Hurt
Apply EPS to shared linear transformations (ablation)Simple-Share IC · Image CaptioningCIDEr-D: 130.8 -> 132.6Helped

Surprising findings

Limitations

Experimental setup

Datasets: English Wikipedia BookCorpus GLUE Word Analogy WordSim-353 RW SCWS edge probing tasks

Benchmarks: GLUE Word Analogy Word Similarity edge probing WMT En-Vi NMT image captioning COCO

Metrics: accuracy F1 Spearman correlation BLEU CIDEr-D relative performance vs BERT Base

Baselines: BERT Base TinyBERT4 ALBERT Base DistilBERT MobileBERT BERT-of-Theseus Simple-Share

Builds on: BERT ALBERT Transformer 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