TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Memory-efficient Stochastic methods for Memory-based Trans...

Memory-efficient Stochastic methods for Memory-based Transformers

Vishwajit Kumar Vishnu, C. Chandra Sekhar

2023-11-14Paraphrase IdentificationLanguage Modelling
PaperPDFCode(official)

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.

Results

TaskDatasetMetricValueModel
Language ModellingWikiText-103Test perplexity22.91Skip Cross-Head Transformer-XL
Language ModellingWikiText-103Validation perplexity21.87Skip Cross-Head Transformer-XL
Language Modellingenwik8Bit per Character (BPC)1.033Skip Cross-Head Transformer-XL
Semantic Textual SimilarityQuora Question Pairs DevVal Accuracy91.422BERT + SCH attm
Semantic Textual SimilarityQuora Question Pairs DevVal F1 Score88.436BERT + SCH attn
Paraphrase IdentificationQuora Question Pairs DevVal Accuracy91.422BERT + SCH attm
Paraphrase IdentificationQuora Question Pairs DevVal F1 Score88.436BERT + SCH attn

Related Papers

Visual-Language Model Knowledge Distillation Method for Image Quality Assessment2025-07-21Making Language Model a Hierarchical Classifier and Generator2025-07-17VisionThink: Smart and Efficient Vision Language Model via Reinforcement Learning2025-07-17The Generative Energy Arena (GEA): Incorporating Energy Awareness in Large Language Model (LLM) Human Evaluations2025-07-17Inverse Reinforcement Learning Meets Large Language Model Post-Training: Basics, Advances, and Opportunities2025-07-17Assay2Mol: large language model-based drug design using BioAssay context2025-07-16Describe Anything Model for Visual Question Answering on Text-rich Images2025-07-16InstructFLIP: Exploring Unified Vision-Language Model for Face Anti-spoofing2025-07-16