Transformer Weight Matrix Slicing for Memory-Efficient Dropout

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Neural networks, particularly transformers, face challenges of high memory requirements and computational complexity due to existing dropout implementations, which do not effectively reduce memory overhead despite addressing overfitting.

Innovation Solution

A unique dropout method for transformers that slices contiguous memory segments of weight matrices instead of randomly dropping them, preserving regularization effects while reducing memory and computational demands by modifying the logical view of weight matrices without changing physical memory.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If standard dropout implementation is used to prevent overfitting, then regularization effect is achieved, but memory requirement and computational complexity remain high

Engineering Contradiction:
Improveregularization effectVSAvoidmemory requirement
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent segments the weight matrix into multiple blocks and applies dropout by selectively zeroing out entire blocks rather than individual neurons. This segmentation approach maintains the regularization effect while significantly reducing the number of active parameters during training, thereby lowering memory requirements and computational complexity.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent extracts and removes specific blocks of weights from the full weight matrix during training. By taking out entire blocks of weights rather than individual neurons, the method achieves dropout regularization while reducing the effective model size, which directly addresses the memory requirement issue.

Inventive Principle:
Principle #2Taking out (Extraction)

2Reliability

If standard dropout implementation is used to prevent overfitting, then regularization effect is achieved, but computational complexity remains high

Engineering Contradiction:
Improveregularization effectVSAvoidcomputational complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent segments the computational graph by dividing weight matrices into blocks and applying dropout at the block level. This segmentation reduces the number of active computations during forward and backward passes, thereby lowering computational complexity while maintaining regularization through block-wise weight zeroing.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent extracts and removes entire blocks of weights during training, which reduces the computational burden on the model. By taking out blocks rather than individual neurons, the method maintains regularization effectiveness while significantly reducing the number of computations required during training.

Inventive Principle:
Principle #2Taking out (Extraction)

3Reliability

If transformer model parameters are increased to improve performance, then performance increases dramatically, but memory requirement increases

Engineering Contradiction:
Improvemodel performanceVSAvoidmemory requirement
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent implements dynamic dropout by randomly selecting which blocks of weights to zero out during each training iteration. This dynamic approach allows the model to effectively train with a smaller subset of parameters at any given time, reducing memory requirements while still achieving high performance through the regularization effect.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent changes the effective number of active parameters during training by applying block-wise dropout. This parameter change allows the model to train with fewer active weights, reducing memory consumption while maintaining performance through the regularization effect of selectively removing blocks.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS12518158B2Training transformers using sliceout
Publication Date: 2026.01.06 COHERE INC
  • US12518158B2 patent drawing
  • US12518158B2 patent drawing
  • US12518158B2 patent drawing

AI summary

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.