Summary Generation Model Training with Contrastive Loss

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing summary generation models trained with maximum likelihood probability functions struggle to accurately reflect semantic relationships, leading to reduced accuracy in generating coherent and faithful summaries.

Innovation Solution

The introduction of a total contrastive loss function based on document and summary representations, including positive and negative samples, to train the summary generation model, ensuring semantically relevant summaries are generated by keeping relevant samples close and irrelevant samples far apart.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of manufacture

If maximum likelihood probability function is used to train the summary generation model, then the training process is simple, but the accuracy of summary generation is reduced

Engineering Contradiction:
Improvetraining simplicityVSAvoidsummary generation accuracy
Core Design Contradiction:
Ease of manufactureVSManufacturing precision

Solution Approach 1:

The patent changes the loss function parameter from maximum likelihood probability to contrastive loss function, which fundamentally alters the training objective to optimize semantic representation alignment between documents and summaries, thereby improving generation accuracy

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent introduces a new dimension of semantic representation by constructing contrastive loss based on embedding spaces, adding a semantic alignment dimension to the training process that goes beyond traditional probability-based approaches

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

2Manufacturing precision

If contrastive loss function is used to train the summary generation model, then the accuracy of summary generation is improved, but the device complexity increases

Engineering Contradiction:
Improvesummary generation accuracyVSAvoidmodel training complexity
Core Design Contradiction:
Manufacturing precisionVSDevice complexity

Solution Approach 1:

The patent segments the contrastive loss function into distinct components: positive sample construction, negative sample construction, and loss calculation, making the complex training process more structured and manageable

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces summary representations as intermediary elements that bridge the document input and the loss function, facilitating the contrastive learning process by creating explicit semantic intermediates for comparison

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS12093297B2Summary generation model training method and apparatus, device and storage medium
Publication Date: 2024.09.17 BEIJING BAIDU NETCOM SCI & TECH CO LTD
  • US12093297B2 patent drawing
  • US12093297B2 patent drawing
  • US12093297B2 patent drawing

AI summary

The present disclosure provides a summary generation model training method and apparatus, a device and a storage medium, and relates to the field of computer technologies, and in particular, to the field of artificial intelligence such as natural language processing and deep learning. The summary generation model training method includes: acquiring a document representation corresponding to a document sample; constructing, based on the document representation, a summary representation corresponding to the document representation, the summary representation including a positive summary representation and a negative summary representation; and constructing a total contrastive loss function based on the document representation, the positive summary representation and the negative summary representation, and training a summary generation model based on the total contrastive loss function. The present disclosure may improve accuracy of the summary generation model.