NLP Model Optimization via Clustering and Synthetic Data Augmentation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Natural language processing (NLP) models often exhibit systematic failures on specific subgroups of data, leading to unfair outcomes and user dissatisfaction, despite high aggregate accuracy, due to underrepresentation of challenging subgroups in training data and the difficulty in identifying and effectively augmenting these subgroups.

Innovation Solution

A system that clusters validation data to identify potentially problematic subgroups, estimates data needs using held-out data, and utilizes a large language model (LLM) to generate synthetic training data, improving performance on underperforming subgroups while maintaining overall model performance.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If additional training data is collected to improve NLP model accuracy, then aggregate accuracy increases, but the system cannot identify and address specific problematic subgroups effectively

Engineering Contradiction:
ImproveNLP model accuracyVSAvoidsystem complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The validation dataset is divided into multiple clusters representing different subgroups of data. The clustering engine segments the data based on similarity metrics, allowing the system to identify specific subgroups where the NLP model underperforms. This segmentation enables targeted data augmentation for problematic clusters rather than treating all data uniformly.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

A clustering engine is introduced as an intermediary component between the NLP model and the training data. This engine automatically identifies problematic clusters and generates clustering information that guides selective data augmentation. The intermediary translates raw validation data into structured cluster representations that reveal performance patterns.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Measurement precision

If training data is augmented for specific subgroups, then performance on those subgroups improves, but overall model performance may deteriorate

Engineering Contradiction:
Improvesubgroup performanceVSAvoidoverall model performance
Core Design Contradiction:
Measurement precisionVSReliability

Solution Approach 1:

The system applies data augmentation selectively to only those clusters identified as problematic, rather than augmenting all training data uniformly. The selective data augmentation engine determines which clusters need augmentation based on clustering information, applying enhancement only where necessary to maintain subgroup performance while preserving overall model reliability.

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The system uses validation data to cluster into subgroups, evaluates performance on each cluster, and feeds this information back to guide selective augmentation. This feedback loop allows the system to monitor both subgroup and overall performance, adjusting augmentation strategies to maintain balance between targeted improvement and global stability.

Inventive Principle:
Principle #23Feedback

3Ease of manufacture

If manual identification of problematic subgroups is performed, then data augmentation can be targeted, but the process requires significant human effort and time

Engineering Contradiction:
Improvedata augmentation efficiencyVSAvoidtime for identifying subgroups
Core Design Contradiction:
Ease of manufactureVSLoss of time

Solution Approach 1:

The clustering engine automatically performs subgroup identification without human intervention. It takes validation data as input, applies clustering algorithms, and generates cluster representations that identify problematic subgroups. This self-service automation eliminates the need for manual analysis while providing systematic, reproducible subgroup identification.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The manual mechanical process of identifying problematic subgroups is replaced with an automated computational clustering system. The clustering engine uses algorithmic processing to analyze validation data and identify patterns, substituting human cognitive effort with automated mathematical operations that are faster and more consistent.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Data Source

PatentUS20240370662A1Intelligent system and method of optimizing natural language processing models
Publication Date: 2024.11.07 MICROSOFT TECHNOLOGY LICENSING LLC
  • US20240370662A1 patent drawing
  • US20240370662A1 patent drawing
  • US20240370662A1 patent drawing

AI summary

A system and method and for method for optimizing performance of a natural language processing (NLP) model includes clustering a validation dataset used in training the NLP model into a plurality of clusters; measuring a generalization in context parameter for one or more of the plurality of clusters; measuring an interference in context parameter for one or more of the plurality of clusters; and identifying a cluster, from among the plurality of clusters, for data augmentation, based on the measured generalization in context parameter and the measured interference in context parameter. Once a cluster is identified, a prompt is generated for submission as an input to a large language model (LLM) to prompt the LLM to automatically generate synthetic training data for the identified cluster, before the prompt is provided to the LLM and synthetic training data is received from the LLM. The synthetic training data is then labeled by a human before being used to further train the NLP model to improve the performance of the NLP model with respect to the identified cluster.