Dynamic Layer Tying for Parameter-Efficient Transformers

Tamir David Hay, Lior Wolf
1/23/2024
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

In the pursuit of reducing the number of trainable parameters in deep transformer networks, we employ Reinforcement Learning to dynamically select layers during training and tie them together. Every few iterations, the RL agent is asked whether to train each layer $i$ independently or to copy the weights of a previous layer $j<i$. This facilitates weight sharing, reduces the number of trainable parameters, and also serves as an effective regularization technique. Experimental evaluations validate that our model modestly outperforms the baseline transformer model with regard to perplexity and drastically reduces the number of trainable parameters. In particular, the memory consumption during training is up to one order of magnitude less than the conventional training method.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hay2024dynamic,
  title  = {Dynamic Layer Tying for Parameter-Efficient Transformers},
  author = {Tamir David Hay and Lior Wolf},
  year   = {2024},
  eprint = {2401.12819},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.12819v1},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.12819.svg)](https://codeofpaper.com/paper/2401.12819)

Discussion