Memory-efficient Stochastic methods for Memory-based Transformers

Vishwajit Kumar Vishnu, C. Chandra Sekhar
11/14/2023
cs.LGcs.CL

No confident code implementation found for this paper.

Abstract

Training Memory-based transformers can require a large amount of memory and can be quite inefficient. We propose a novel two-phase training mechanism and a novel regularization technique to improve the training efficiency of memory-based transformers, which are often used for long-range context problems. For our experiments, we consider transformer-XL as our baseline model which is one of memorybased transformer models. We show that our resultant model, Skip Cross-head TransformerXL, outperforms the baseline on character level language modeling task with similar parameters and outperforms the baseline on word level language modelling task with almost 20% fewer parameters. Our proposed methods do not require any additional memory. We also demonstrate the effectiveness of our regularization mechanism on BERT which shows similar performance with reduction in standard deviation of scores of around 30% on multiple GLUE tasks.

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{vishnu2023memoryefficient,
  title  = {Memory-efficient Stochastic methods for Memory-based Transformers},
  author = {Vishwajit Kumar Vishnu and C. Chandra Sekhar},
  year   = {2023},
  eprint = {2311.08123},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.08123v1}
}

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/2311.08123.svg)](https://codeofpaper.com/paper/2311.08123)

Discussion