Triplet-Learned Embedding Angular Distance for Text Similarity

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing text classification approaches often fail to accurately determine similarity between data items, leading to inadequate performance in applications like search engines and recommendation systems.

Innovation Solution

A self-supervised machine learning model trained using triplet data, which embeds anchor and positive elements closer together than anchor and negative elements, generating similarity scores based on angular distance metrics to improve classification accuracy.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If traditional text classification algorithms are used, then the system is simpler to implement, but the accuracy of similarity determination is inadequate

Engineering Contradiction:
Improvesimilarity determination accuracyVSAvoidmodel complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The system employs self-supervised learning where the model trains itself using triplet data without requiring external labeled similarity information. The model automatically learns to distinguish between similar and dissimilar text pairs by minimizing angular distance between embeddings of similar items and maximizing distance between dissimilar items, thereby achieving high accuracy without manual annotation complexity

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The patent transforms text classification from traditional parameter estimation approaches to a geometric parameter space where text embeddings are represented as vectors with angular distances. By changing the representation parameters from word frequencies or n-grams to embedding space angles, the system achieves more accurate similarity measurement while maintaining manageable computational complexity through efficient angular distance calculations

Inventive Principle:
Principle #35Parameter changes

2Reliability

If more sophisticated machine learning approaches are applied, then classification accuracy may improve, but the system becomes more complex and harder to train

Engineering Contradiction:
Improveclassification accuracyVSAvoidtraining complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The triplet loss function implements a feedback mechanism during training where the model continuously adjusts embeddings based on the angular distance between text pairs. The loss function provides gradient feedback that pushes similar items closer and dissimilar items farther apart in embedding space, enabling the model to learn accurate similarity relationships through iterative optimization without requiring complex architecture

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The training process is segmented into triplet-based mini-batches where each training step focuses on a specific anchor-positive-negative text combination. This segmentation allows the model to learn subtle similarity relationships step-by-step through many small training iterations, reducing the overall training complexity compared to training on all data at once while maintaining high accuracy

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS20230376835A1Deep angular similarity learning
Publication Date: 2023.11.23 MICROSOFT TECHNOLOGY LICENSING LLC
  • US20230376835A1 patent drawing
  • US20230376835A1 patent drawing
  • US20230376835A1 patent drawing

AI summary

A comparison engine performs item similarity comparisons. A source item and one or more candidate items are input into a triplet-trained machine learning model trained using training data including triplets of anchor elements, positive elements, and negative elements. Each triplet corresponds to an item included in the training data. The anchor elements and the positive elements are included in the corresponding item. The negative element is included in a different item in the training data. A similarity score between the source item and each of the one or more candidate items is generated from the triplet-trained machine learning model.