Dialog Generation Using Latent Vectors to Suppress High-Frequency Replies

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current dialog generation systems face challenges in maintaining high accuracy, particularly in multi-round dialog scenarios where information compression leads to low-quality replies and a high generation probability of high-frequency answers.

Innovation Solution

A method involving converting each term in a query sentence into word vectors, calculating positive and negative latent vectors, determining content topics, and using these vectors to generate replies, effectively suppressing high-frequency responses by incorporating topic information and bidirectional attention mechanisms.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If contexts are directly spliced into a long query sentence in single-round modeling, then the system can process multi-round dialogs, but information compression chaos occurs causing low quality of generated reply sentences

Engineering Contradiction:
Improvemulti-round dialog processing capabilityVSAvoidquality of generated reply sentence
Core Design Contradiction:
Adaptability or versatilityVSManufacturing precision

Solution Approach 1:

The patent segments the long query sentence into multiple short sentences, where each sentence corresponds to one round of dialog. This segmentation prevents information compression chaos by processing each dialog round separately while maintaining the ability to handle multi-round dialogs through sequential processing of segmented sentences.

Inventive Principle:
Principle #1Segmentation

2Adaptability or versatility

If multi-round query and reply transfer process is modeled, then the system can handle context, but the model tends to generate high-frequency answers with low accuracy

Engineering Contradiction:
Improvecontext handling capabilityVSAvoidaccuracy of generated reply
Core Design Contradiction:
Adaptability or versatilityVSMeasurement precision

Solution Approach 1:

The patent extracts and removes high-frequency answer patterns from the training data before model training. This extraction process eliminates the tendency to generate repetitive high-frequency answers, allowing the model to learn more diverse and accurate reply patterns while still handling dialog context effectively.

Inventive Principle:
Principle #2Taking out (Extraction)

3Measurement precision

If rule-based dialog system is used, then structure is simple and accuracy is high, but generalization capability is poor

Engineering Contradiction:
ImproveaccuracyVSAvoidgeneralization capability
Core Design Contradiction:
Measurement precisionVSAdaptability or versatility

Solution Approach 1:

The patent merges rule-based dialog processing with generation-type dialog modeling. The system uses rules for structured processing to maintain accuracy while incorporating generative modeling capabilities to improve generalization, creating a hybrid approach that combines the strengths of both methods.

Inventive Principle:
Principle #5Merging (Combining)

4Reliability

If searching-based dialog system is used, then recall can be improved, but a relatively large number of high quality corpuses are required

Engineering Contradiction:
ImproverecallVSAvoidamount of corpus required
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent performs preliminary processing of the corpus by segmenting dialog contexts into individual sentences and pre-processing training data to remove high-frequency patterns. This preliminary action reduces the complexity and requirements for the corpus, allowing the system to achieve good recall performance with less data while maintaining processing efficiency.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS10740564B2Dialog generation method, apparatus, and device, and storage medium
Publication Date: 2020.08.11 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • US10740564B2 patent drawing
  • US10740564B2 patent drawing
  • US10740564B2 patent drawing

AI summary

A dialog generation method, apparatus, and device, and a storage medium are provided. The method includes converting each term in a Kth round of a query sentence into a first word vector, and calculating a positive latent vector and a negative latent vector of each term according to the first word vector, where K denotes a positive integer greater than or equal to 2. A content topic of the Kth round of the query sentence is obtained, and converted into a second word vector. An initial latent vector output for the Kth round of the query sentence is determined according to the second word vector, the positive latent vector of a last term in the Kth round of the query sentence, a latent vector of a last term in a (K-1)th round of a reply sentence output for a (K-1)th round of the query sentence, and an initial latent vector of the (K-1)th round of the reply sentence output for the (K-1)th round of the query sentence. A reply sentence for the Kth round of the query sentence is generated according to the positive latent vector and the negative latent vector of each term in the Kth round of the query sentence and the initial latent vector output for the Kth round of the query sentence.