Seq2seq Model Training with Global Semantic Loss

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional training of neural sequence-to-sequence (seq2seq) models focuses primarily on local loss, neglecting global or semantic properties, which can result in generated target sequences lacking desired properties such as consistency and semantic coherence, impacting applications like summarization and translation.

Innovation Solution

The method involves training seq2seq models to minimize both local cross-entropy loss and global semantic loss by using moment matching and cross-entropy-based gradient updates, incorporating feature functions to represent global features and constraints, and alternating between these training modes to optimize model performance.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Device complexity

If conventional training focuses primarily on local loss, then training simplicity is maintained, but global or semantic properties of generated sequences deteriorate

Engineering Contradiction:
Improvetraining complexityVSAvoidglobal or semantic properties
Core Design Contradiction:
Device complexityVSReliability

Solution Approach 1:

The training objective is segmented into two independent components: local cross-entropy loss for token-level accuracy and global semantic loss for sequence-level properties. Each component can be trained separately and combined through weighted summation, allowing the model to address both local and global requirements without overwhelming complexity

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a weighting parameter lambda that controls the balance between local and global loss contributions. By adjusting this parameter, the training process can emphasize different aspects (local accuracy vs. global coherence) depending on the specific application requirements, providing flexible control over the trade-off

Inventive Principle:
Principle #35Parameter changes

2Productivity

If only local cross-entropy loss is minimized, then training efficiency is maintained, but coherence and consistency of generated sequences deteriorate

Engineering Contradiction:
Improvetraining efficiencyVSAvoidcoherence and consistency
Core Design Contradiction:
ProductivityVSManufacturing precision

Solution Approach 1:

The patent merges two training objectives (local cross-entropy loss and global semantic loss) into a unified training framework. The combined loss function integrates both components through weighted summation, allowing the model to simultaneously optimize for token-level accuracy and sequence-level coherence without sacrificing either efficiency or quality

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The global semantic loss component provides feedback on sequence-level properties that are not captured by local loss alone. This feedback mechanism enables the model to learn from global coherence requirements and adjust its predictions accordingly, improving the overall quality of generated sequences

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS11681911B2Method and system for training neural sequence-to-sequence models by incorporating global features
Publication Date: 2023.06.20 NAVER CORP
  • US11681911B2 patent drawing
  • US11681911B2 patent drawing
  • US11681911B2 patent drawing

AI summary

Methods for training a neural sequence-to-sequence (seq2seq) model. A processor receives the model and training data comprising a plurality of training source sequences and corresponding training target sequences, and generates corresponding predicted target sequences. Model parameters are updated based on a comparison of predicted target sequences to training target sequences to reduce or minimize both a local loss in the predicted target sequences and an expected loss of one or more global or semantic features or constraints between the predicted target sequences and the training target sequences given the training source sequences. Expected loss is based on global or semantic features or constraints of general target sequences given general source sequences.