Deep learningTransformers (encoder)

BERT

BERT

Tasks
Language processing, Classification
Application areas
Natural language processing (including Arabic through specialized versions)
Common metrics
Accuracy, Precision, Recall, F1-score, ROC-AUC
Papers in the repository
0

Description and architecture

A bidirectional language model.

A Transformer encoder pre-trained with masked modelling and next-sentence prediction.

Inputs and outputs: Text → representations/classes

What can be optimized?

learning_rate, batch_size, epochs, warmup, max_seq_length

Advantages

Strong transfer learning

Limitations

Large size, limited context length

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.
Data AugmentationSearching for the augmentation policy (types of transformations and their strength) is a well-known 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.
Class Imbalance OptimizationClass weights, the decision threshold or resampling ratios can be optimized for a balanced metric (F1, Balanced Accuracy).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

Devlin et al. (2019) BERT 10.18653/v1/N19-1423