Hierarchical NLP Routing for Accuracy and Resource Efficiency

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing natural language processing (NLP) systems rely on large, resource-intensive machine learning models that are impractical for real-world use due to their need for extensive data sets and compute/storage resources, limiting their efficiency and scalability.

Innovation Solution

A hierarchical NLP system with a lightweight, task-agnostic first machine learning model and a heavier, task-specific second model, where the first model processes utterances quickly and efficiently, determining whether and how to route the output to the second model, thereby optimizing resource usage and improving processing speed and accuracy.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If a large, resource-intensive machine learning model is used for NLP tasks, then accuracy and task-specific performance are improved, but resource requirements and processing time increase significantly

Engineering Contradiction:
ImproveNLP task accuracyVSAvoidcompute and storage resources
Core Design Contradiction:
Measurement precisionVSUse of energy by moving object

Solution Approach 1:

The NLP system is segmented into two distinct models: a lightweight task-agnostic first model and a heavier task-specific second model. The first model handles initial processing and routing decisions, while the second model handles complex task-specific analysis only when needed. This segmentation allows the system to achieve high accuracy on complex tasks while reducing overall resource consumption by avoiding unnecessary use of the heavy model for simple queries.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system dynamically routes utterances between the two models based on the first model's analysis. The routing decision is dynamic and adapts to each utterance's characteristics, allowing the system to optimize resource usage in real-time by selecting the appropriate model capacity for each specific task.

Inventive Principle:
Principle #15Dynamics

2Measurement precision

If a large, resource-intensive machine learning model is used for NLP tasks, then task-specific performance is improved, but processing speed decreases

Engineering Contradiction:
Improvetask-specific accuracyVSAvoidprocessing speed
Core Design Contradiction:
Measurement precisionVSSpeed

Solution Approach 1:

By segmenting the processing pipeline into two models with different performance characteristics, the system can process simple utterances quickly using the lightweight first model while reserving the heavier second model for complex tasks that require more computational power and time.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The first model performs preliminary analysis of each utterance to determine its complexity and appropriate routing. This preliminary action allows the system to quickly filter out simple queries that don't require the heavier model, thereby improving overall processing speed while maintaining accuracy for complex tasks.

Inventive Principle:
Principle #10Preliminary action

3Measurement precision

If a single dedicated machine learning model is used for each NLP task, then task-specific accuracy is improved, but system complexity and resource requirements increase

Engineering Contradiction:
Improvetask-specific accuracyVSAvoidsystem complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The first task-agnostic model serves multiple functions: it processes all incoming utterances, performs initial analysis, determines routing decisions, and can handle simple tasks directly. This universal model reduces system complexity by eliminating the need for separate dedicated models for every possible NLP task, while the second model provides specialized capability when needed.

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

Data Source

PatentUS11880659B2Hierarchical natural language understanding systems
Publication Date: 2024.01.23 SALESFORCE INC
  • US11880659B2 patent drawing
  • US11880659B2 patent drawing
  • US11880659B2 patent drawing

AI summary

Methods and systems for hierarchical natural language understanding are described. A representation of an utterance is inputted to a first machine learning model to obtain information on the first utterance. According to the information on the utterance a determination that the representation of the utterance is to be inputted to a second machine learning model that performs a dedicated natural language task is performed. In response to determining that the representation of the utterance is to be inputted to a second machine learning model, the utterance is inputted to the second machine learning model to obtain an output of the dedicated natural language task.