Training Transformers Using Sliceout
AssigneeCohere Inc.
InventorsAidan GOMEZ, Seoyeon YOO
Life of this patent
Estimating the term…
Loading patent…
AssigneeCohere Inc.
InventorsAidan GOMEZ, Seoyeon YOO
Estimating the term…
A system for training the neural network using dropout with slicing operations preserves the regularization effects of dropout, while speeding up computations and reducing the memory requirements of training the neural network. Instead of randomly dropping weights connected to neurons in a neural network, the system slices contiguous memory segments of weight matrices. For transformer models, the approach first receives input data that consist of a sequence of elements. Based on the input data, input embedding vectors with positional encoding are generated. Then the transformer model is trained by passing the input embedding vectors through various neural network layers. While passing through linear layers, some of the weight matrices are sliced (e.g., masked) such that a contiguous section of a weight matrix is kept unsliced and used for training and the rest of the weight matrix is not accessed.
A method for training a transformer model comprising:
A non-transitory computer-readable storage medium comprising computer program code, the computer program code when executed by a processor causing the processor to perform operations comprising:
A computing device comprising a processor and a computer-readable storage medium comprising computer program code, the computer program code when executed by the processor causing the computing device to perform operations comprising:
Dependencies are inferred from the claim text.