Transformer Encoder Metadata Relativity Matrix

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current transformer-based autoencoders do not effectively incorporate metadata into their attention mechanisms, failing to model the relationships between metadata tokens and using embeddings that are not easily generalizable across different types of text and metadata, which limits their performance in natural language processing tasks.

Innovation Solution

A method that constructs a relativity matrix from metadata to model attention between metadata tokens, using a transformer-based encoding scheme with dedicated parameters for metadata attention, allowing for the computation of token and relativity embeddings that incorporate contextual information from metadata without requiring specific metadata embeddings.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If metadata is incorporated into the attention mechanism using existing embedding methods, then the model can process metadata, but the embeddings are not easily generalizable across different types of text and metadata

Engineering Contradiction:
Improvegeneralizability of metadata embeddingsVSAvoidcomplexity of metadata encoding scheme
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent applies universality by designing a single, unified metadata embedding layer that serves multiple types of metadata (speaker information, turn information, threading information, sectioning hierarchy) across different text types (dialogues, transcripts, subtitles). This embedding layer is trained on diverse metadata types and can generalize to unseen combinations, eliminating the need for type-specific embedding schemes while maintaining adaptability across domains.

Inventive Principle:
Principle #6Universality (Multi-functionality)

2Reliability

If specific metadata embeddings are created for different metadata types, then the model can process specific metadata effectively, but the encoding scheme is not easily generalizable to other metadata types

Engineering Contradiction:
Improveeffectiveness of metadata processingVSAvoidgeneralizability to different metadata types
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The patent implements a universal metadata embedding layer that processes diverse metadata types (speaker, turn, threading, sectioning hierarchy) through a single encoding scheme. This layer is trained on multi-type metadata and generalizes to unseen types, achieving both reliability in processing known metadata and adaptability to new metadata types without requiring type-specific embeddings.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The patent uses parameter changes by training the metadata embedding layer on diverse metadata types with varying characteristics. The embedding parameters are optimized during training to capture general metadata patterns that apply across different types, enabling the model to adapt to new metadata types through parameter adjustments rather than architectural changes.

Inventive Principle:
Principle #35Parameter changes

3Ease of operation

If metadata is encoded as embeddings and combined with token embedding in existing attention mechanism, then metadata can be processed, but the model architecture does not explicitly account for attention between metadata tokens

Engineering Contradiction:
Improvesimplicity of metadata integrationVSAvoidmetadata relationship information
Core Design Contradiction:
Ease of operationVSLoss of information

Solution Approach 1:

The patent segments the attention mechanism into distinct components: token self-attention for text tokens, metadata self-attention for metadata tokens, and cross-attention between tokens and metadata. This segmentation allows the model to explicitly model metadata relationships through dedicated metadata self-attention while maintaining simplicity through modular integration with the existing token embedding and attention architecture.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary metadata embedding layer that bridges tokens and metadata. This layer receives token embeddings and generates corresponding metadata embeddings, enabling explicit attention between metadata tokens while maintaining integration with the existing attention mechanism. The intermediary layer preserves metadata relationship information that would otherwise be lost in direct combination approaches.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS11893346B2Transformer-based encoding incorporating metadata
Publication Date: 2024.02.06 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11893346B2 patent drawing
  • US11893346B2 patent drawing
  • US11893346B2 patent drawing

AI summary

From metadata of a corpus of natural language text documents, a relativity matrix is constructed, a row-column intersection in the relativity matrix corresponding to a relationship between two instances of a type of metadata. An encoder model is trained, generating a trained encoder model, to compute an embedding corresponding to a token of a natural language text document within the corpus and the relativity matrix, the encoder model comprising a first encoder layer, the first encoder layer comprising a token embedding portion, a relativity embedding portion, a token self-attention portion, a metadata self-attention portion, and a fusion portion, the training comprising adjusting a set of parameters of the encoder model.