Towards smaller, faster decoder-only transformers: Architectural variants and their implications

Sathya Krishnan Suresh, Shunmugapriya P
4/22/2024
6 citations
cs.LG
transformer-attention

Official code: SkAndMl/gpt-variations (5 stars, Python, Apache-2.0, last commit 2025-01-04).

Abstract

In recent times, the research on Large Language Models (LLMs) has grown exponentially, predominantly focusing on models underpinned by the transformer architecture, as established by [1], and further developed through the decoder-only variations by [2]. Contemporary efforts in this field primarily aim to enhance model capabilities by scaling up both the architecture and data volumes utilized during training.

Show full abstract

However, the exploration into reduce these model sizes while preserving their efficacy remains scant. In this study, we introduce three modifications to the decoder-only transformer architecture, namely ParallelGPT (pgpt), LinearGPT (lgpt), and ConvGPT (cgpt). These variants demonstrate comparable performance to the conventional architecture in language generation, yet benefit from reduced model sizes and faster training processes. We open-source the model weights and the complete codebase for these implementation for further research.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code for the paper - "Towards smaller, faster decoder-only transformers: Architectural variants and their implications"

52PythonMar 9, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{suresh2024towards,
  title  = {Towards smaller, faster decoder-only transformers: Architectural variants and their implications},
  author = {Sathya Krishnan Suresh and Shunmugapriya P},
  year   = {2024},
  eprint = {2404.14462},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.14462v4}
}

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

Discussion