Autoencoder Reconstruction for Out-of-Domain Sentence Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Dialogue systems trained for a specific domain struggle with user experience when encountering out-of-domain queries due to scarce and broad out-of-domain data, leading to data imbalance and difficulty in capturing the out-of-domain distribution.

Innovation Solution

The method involves training autoencoders to maximize reconstruction loss for out-of-domain examples and minimize it for in-domain examples, using a negative factor for off-topic inputs, enhancing performance through an unsupervised approach.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If the dialogue system is trained only with in-domain data, then the system achieves high performance within its trained domain, but it fails to handle out-of-domain queries effectively

Engineering Contradiction:
Improveintent detection accuracyVSAvoidout-of-domain handling capability
Core Design Contradiction:
Measurement precisionVSAdaptability or versatility

Solution Approach 1:

The patent segments the training data into in-domain and out-of-domain portions, and segments the training process into two phases: first training on in-domain data to achieve high accuracy, then fine-tuning with out-of-domain data to improve adaptability. This segmentation allows the system to maintain domain expertise while gaining broader applicability.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies preliminary action by pre-training the dialogue system on in-domain data before exposing it to out-of-domain queries. This preliminary training establishes a strong baseline performance that can then be adapted to new domains through subsequent fine-tuning or few-shot learning.

Inventive Principle:
Principle #10Preliminary action

2Adaptability or versatility

If the dialogue system is trained with broad out-of-domain data, then the system improves its ability to handle out-of-domain queries, but the in-domain performance deteriorates due to data imbalance

Engineering Contradiction:
Improveout-of-domain handling capabilityVSAvoidin-domain intent detection accuracy
Core Design Contradiction:
Adaptability or versatilityVSMeasurement precision

Solution Approach 1:

The patent applies local quality by treating in-domain and out-of-domain data differently during training. In-domain data receives higher weighting or more training iterations to maintain high accuracy, while out-of-domain data is used in controlled amounts to improve adaptability without causing catastrophic forgetting. The training process locally optimizes for each data type's specific requirements.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent changes training parameters such as learning rate, batch composition, and loss function weighting to balance in-domain and out-of-domain learning. By adjusting these parameters dynamically during training, the system can prioritize in-domain performance when needed while still incorporating out-of-domain examples to improve versatility.

Inventive Principle:
Principle #35Parameter changes

3Speed

If the dialogue system uses traditional classification approaches, then the system achieves fast inference speed, but it cannot effectively identify out-of-domain queries due to scarce training data

Engineering Contradiction:
Improveinference speedVSAvoidout-of-domain detection reliability
Core Design Contradiction:
SpeedVSReliability

Solution Approach 1:

The patent enables the dialogue system to self-adapt to out-of-domain queries through few-shot learning or in-context learning mechanisms. Instead of requiring extensive retraining with large out-of-domain datasets, the system can quickly adapt to new domains using only a few examples, maintaining fast inference speed while improving out-of-domain detection reliability.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS12443796B2Out of domain sentence detection
Publication Date: 2025.10.14 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US12443796B2 patent drawing
  • US12443796B2 patent drawing
  • US12443796B2 patent drawing

AI summary

A method, a structure, and a computer system for OOD sentence detection in dialogue systems. The exemplary embodiments may include receiving, for a domain corresponding to a particular topic, one or more on-topic text inputs and one or more off-topic text inputs. The exemplary embodiments may further include encoding the one or more on-topic text inputs and the one or more off-topic text inputs into a latent space, as well as decoding the one or more on-topic text inputs and the one or more off-topic text inputs from the latent space. The exemplary embodiments may additionally include minimizing a reconstruction error between the encoded one or more on-topic text inputs and the decoded one or more on-topic text inputs, and maximizing a reconstruction error between the encoded one or more off-topic text inputs and the decoded one or more off-topic text inputs.