Cross-Lingual Intent Classification With Semantic Similarity and OOD Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing machine learning models for intent classification in conversational systems require extensive training on large datasets in multiple languages and domains, leading to increased training time and computational overhead.

Innovation Solution

An instance-based semantic similarity model using a pre-trained multilingual language model and a weighted K-nearest neighbor classifier to classify intents across multiple languages with reduced training data, incorporating an OOD threshold to identify out-of-domain utterances.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If separate machine learning models are trained per language and domain, then service specificity is improved, but training time and computational overhead increase

Engineering Contradiction:
Improveservice specificityVSAvoidtraining time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent combines multiple language models into a single unified model that can handle multiple languages and domains simultaneously. The system uses a shared encoder architecture with language-specific and domain-specific adaptation layers, allowing one model to serve multiple purposes that traditionally required separate models, thereby reducing training time while maintaining service specificity.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The patent creates a universal machine learning model capable of functioning across multiple languages and domains through a single system. The model employs multi-task learning with shared representations that can be adapted to different languages and domains, making the system multi-functional and eliminating the need for separate specialized models.

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

2Reliability

If separate machine learning models are trained per language and domain, then service specificity is improved, but computational overhead increases

Engineering Contradiction:
Improveservice specificityVSAvoidcomputational overhead
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent merges multiple computational models into a single unified architecture, reducing the total computational resources required. By sharing encoder layers and using efficient adaptation mechanisms, the system decreases memory usage and processing power requirements compared to maintaining separate models for each language and domain.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The universal model performs multiple functions (supporting multiple languages and domains) within a single computational framework, reducing overall computational overhead. The shared representations and efficient inference mechanisms allow the system to handle diverse tasks without requiring proportional increases in computational resources.

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

3Measurement precision

If extensive training data in multiple languages is used, then classification accuracy is improved, but data requirements and training complexity increase

Engineering Contradiction:
Improveclassification accuracyVSAvoidtraining data volume
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The patent applies pre-training on large multilingual corpora before fine-tuning on specific domain data. This preliminary action allows the model to learn general language representations that transfer across domains, reducing the amount of domain-specific training data needed while maintaining high classification accuracy through efficient few-shot learning.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent changes the approach from requiring extensive domain-specific data to using parameter-efficient adaptation methods. By freezing most pre-trained parameters and only training adaptation layers, the system achieves high accuracy with minimal additional training data, effectively changing the data efficiency parameters of the training process.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS12619834B2Systems and methods for intent classification in a natural language processing agent
Publication Date: 2026.05.05 SALESFORCE INC
  • US12619834B2 patent drawing
  • US12619834B2 patent drawing
  • US12619834B2 patent drawing

AI summary

Embodiments described herein provide a cross-lingual intent classification model that predicts in multiple languages without the need of training data in all the multiple languages. For example, data requirement for training can be reduced to just one utterance per intent label. Specifically, when an utterance is fed to the intent classification model, the model checks whether the utterance is similar to any of the example utterances provided for each intent. If any such utterance(s) are found, the model returns the specified intent, otherwise, it returns out of domain (OOD).