Deep learningTransformers (decoder)

GPT Architecture

GPT architecture

Tasks
Language processing, Generation
Application areas
Language processing, text generation
Common metrics
Perplexity, Accuracy
Papers in the repository
0

Description and architecture

A family of generative language models.

An autoregressive Transformer decoder pre-trained to predict the next token.

Inputs and outputs: Text → text

What can be optimized?

learning_rate, context length, layers, LoRA rank (when fine-tuning)

Advantages

Generative abilities and few-shot learning

Limitations

Huge training cost, hallucination

Relationship table: three separate kinds of evidence

Theoretical fit Theoretically suitable optimization types

Optimization typeRationaleConditions of use
Hyperparameter OptimizationModel performance is sensitive to its hyperparameters, and the search space is mixed and non-differentiable, so population-based algorithms are suited to exploring it.The evaluation cost is high: use data subsets, fewer epochs or surrogate models.
Neural Architecture SearchThe architecture (number of layers, filters, connections) is a large discrete space; evolutionary and swarm algorithms are well-known NAS methods.The evaluation cost is high: use data subsets, fewer epochs or surrogate models.
Loss Function OptimizationThe weights of the components of a composite loss function (such as Dice + CE) can be searched as a continuous optimization problem.The evaluation cost is high: use data subsets, fewer epochs or surrogate models.
Training Strategy OptimizationTraining parameters (batch size, number of epochs, regularization) can be tuned with black-box search.The evaluation cost is high: use data subsets, fewer epochs or surrogate models.
Learning Rate OptimizationThe learning-rate schedule and optimizer parameters strongly affect convergence and can be tuned as continuous hyperparameters.The evaluation cost is high: use data subsets, fewer epochs or surrogate models.
Model CompressionModel compression is multi-objective by nature: accuracy versus size and inference time.The evaluation cost is high: use data subsets, fewer epochs or surrogate models.
PruningChoosing the filters/channels to remove is a large binary problem suited to binary encoding.The evaluation cost is high: use data subsets, fewer epochs or surrogate models.
QuantizationSetting the bit precision of each layer (mixed precision) is a discrete multi-objective problem.The evaluation cost is high: use data subsets, fewer epochs or surrogate models.
Model SelectionModel selection and its hyperparameters can be encoded together in one vector (CASH) and evaluated with cross-validation.The evaluation cost is high: use data subsets, fewer epochs or surrogate models.

Published result Algorithms that appeared with this model in repository papers

An aspect that did not appear in the current search results within the repository.

Tested by the user Completed experiments recorded by lab users

No completed experiments have been recorded for this model yet.

Reference

Radford et al. (2018) Improving Language Understanding by Generative Pre-Training — technical report without a DOI