Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Memory-efficient Stochastic methods for Memory-based Transformers

About

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.

Vishwajit Kumar Vishnu, C. Chandra Sekhar• 2023

Related benchmarks

TaskDatasetResultRank
Language ModelingWikiText-103 (test)
Perplexity22.91
524
Character-level Language Modelingenwik8 (test)
BPC1.033
195
Word-level Language ModelingWikiText-103 (dev)
Perplexity21.87
64
Character-level Language Modelingenwik8 (dev)
BPC1.058
10
Showing 4 of 4 rows

Other info

Code

Follow for update