Dual Encoder LLM Training With Unique IDs for Classification

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing large language models (LLMs) trained on pre-processed embeddings struggle to effectively incorporate novel task types outside retrieval and similarity/relatedness matching tasks, leading to misidentification of positive examples as negative examples in classification tasks.

Innovation Solution

Assigning unique identifiers to pairs of input text and classification labels, using a random number generator or fingerprint, to distinguish correct targets in dual encoder embeddings models, allowing seamless integration of classification tasks without modifying the models.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If dual encoder embeddings models are trained on classification tasks without unique identifiers, then the model can process classification data, but positive examples are misidentified as negative examples when multiple inputs share the same classification label

Engineering Contradiction:
Improveclassification accuracyVSAvoidmisidentification of positive examples
Core Design Contradiction:
ReliabilityVSLoss of information

Solution Approach 1:

The patent segments the training data by assigning unique identifiers to each input-text classification-label pair, allowing the model to distinguish between different positive examples that share the same classification label. This segmentation prevents the model from confusing different positive examples as negative examples during training.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The unique identifier acts as an intermediary element between the input text and classification label, providing an additional dimension of information that helps the model correctly identify positive examples. The identifier mediates the relationship between text and label, ensuring that multiple inputs with the same label are treated as distinct positive examples rather than negatives.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If the model architecture is modified to support novel task types, then classification performance improves, but compatibility with existing retrieval and similarity training mixtures is lost

Engineering Contradiction:
Improveclassification task performanceVSAvoidcompatibility with retrieval tasks
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The patent implements a universal training framework where the same dual encoder embeddings model architecture can handle multiple task types (retrieval, similarity, and classification) by using task-specific training mixtures. The model remains adaptable to different tasks without requiring architectural modifications, as the unique identifier mechanism works within the existing model framework.

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

Solution Approach 2:

The patent prepares classification data in advance by assigning unique identifiers to each input-text classification-label pair before training. This preliminary preparation allows the model to process classification tasks using the same architecture and training mechanisms as retrieval tasks, maintaining compatibility while improving performance.

Inventive Principle:
Principle #10Preliminary action

3Reliability

If classification examples are formatted to look like retrieval problems, then model performance improves, but the training data does not directly target embedding representations for classification tasks

Engineering Contradiction:
Improvemodel performanceVSAvoidembedding representation quality for classification
Core Design Contradiction:
ReliabilityVSManufacturing precision

Solution Approach 1:

The patent applies local quality by assigning unique identifiers specifically to classification examples while maintaining the general retrieval problem format for other examples. This allows the training data to have different characteristics for different task types, with classification examples receiving the additional identifier treatment that directly improves embedding representation quality for classification tasks.

Inventive Principle:
Principle #3Local quality

Data Source

PatentUS20260044714A1Large language model informed risk assessment
Publication Date: 2026.02.12 GOOGLE LLC
  • US20260044714A1 patent drawing
  • US20260044714A1 patent drawing
  • US20260044714A1 patent drawing

AI summary

Aspects of the disclosure relate to pre-format embeddings used for model training, and in particular, training of dual encoder LLMs. For instance, a dataset batch of pairs of input text and one or more classification labels may be accessed. A unique identifier to each pair of input text and one or more classification labels may be assigned. The pairs of input text and one or more classification labels and assigned unique identifiers may be used to train a model to assign classification labels to textual inputs.