Transformer Position Embedding Offset Segmentation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional methods for training transformer models require longer sequence lengths for position embeddings, leading to larger neural networks and increased hardware usage.

Innovation Solution

The system determines different position values for training data using offset values, allowing for the generation of training data with shorter sequence lengths, which reduces the size of the neural network and hardware requirements.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If longer sequence lengths are used for position embeddings in transformer models, then the model can capture longer-range dependencies and contextual relationships, but the neural network size and hardware requirements increase

Engineering Contradiction:
Improveposition embedding capabilityVSAvoidneural network size
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent divides the position embedding space into multiple segments or regions, each handled by different components or strategies. This segmentation allows the model to efficiently capture positional information without requiring uniformly long sequence lengths across all positions, thereby reducing overall network complexity while maintaining adaptability.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent dynamically adjusts position embedding parameters such as sequence length, embedding dimension, or interpolation factors based on the specific task or input characteristics. This allows the model to use shorter effective sequence lengths when sufficient positional information can be captured with fewer tokens, reducing neural network size while preserving position embedding effectiveness through parameter optimization.

Inventive Principle:
Principle #35Parameter changes

2Reliability

If longer sequence lengths are used for position embeddings, then more comprehensive contextual information is captured, but hardware utilization increases

Engineering Contradiction:
Improvecontextual understandingVSAvoidhardware utilization
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent applies partial action by using only the necessary portion of the position embedding space required for effective contextual understanding. Instead of uniformly processing all positions with maximum sequence length, the model identifies and processes only the critical positional relationships needed for the task, reducing hardware utilization while maintaining reliability in contextual interpretation.

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The patent employs dynamic sequence length adjustment where the effective position embedding length varies based on input characteristics, task requirements, and computational constraints. This dynamic approach allows the model to use shorter sequence lengths when sufficient contextual information can be obtained, thereby reducing hardware utilization while preserving reliability through adaptive parameter selection.

Inventive Principle:
Principle #15Dynamics

3Device complexity

If shorter sequence lengths are used for training data, then the neural network size is reduced, but capturing long-range dependencies becomes more difficult

Engineering Contradiction:
Improveneural network sizeVSAvoidposition embedding effectiveness
Core Design Contradiction:
Device complexityVSAdaptability or versatility

Solution Approach 1:

The patent transitions from relying solely on sequence length (one dimension) to capturing positional information through multiple dimensions including relative position embeddings, absolute position embeddings, or rotary position encodings. This dimensional transformation allows the model to maintain position embedding effectiveness with shorter sequence lengths by encoding positional relationships in alternative representational spaces.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

Solution Approach 2:

The patent introduces intermediary mechanisms such as relative position biases, attention masks, or positional encodings that mediate between the tokens and the transformer layers. These intermediaries carry positional information efficiently, enabling the model to capture long-range dependencies even when the explicit sequence length is shortened, thus maintaining position embedding effectiveness while reducing network size.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS11954448B2Determining position values for transformer models
Publication Date: 2024.04.09 MICROSOFT TECHNOLOGY LICENSING LLC
  • US11954448B2 patent drawing
  • US11954448B2 patent drawing
  • US11954448B2 patent drawing

AI summary

Embodiments of the present disclosure include systems and methods for determining position values for training data that is used to train transformer models. In some embodiments, a set of input data for training a transformer model is received. The set of input data comprises a set of tokens. Based on an offset value, a set of successive position values for the set of tokens is determined. Each position value in the set of successive position values represents a position of a token in the set of tokens relative to other tokens in the set of tokens. A set of training data is generated to comprise the set of tokens and the set of successive position values. The transformer model is trained using the set of training data.