A feed-forward network composes layers
where is applied by matrix-multiplication and is a nonlinearity such as ReLU, . Without the whole network collapses to one linear map.
Training minimises a loss with gradient-descent, with gradients from backpropagation. Overfitting is controlled as in overfitting-regularization. Modern sequence models use transformers.