Model training method, content generation method and device

The embodiment of the invention discloses a model training method and device, a content generation method and device, a storage medium and electronic equipment. The model training method comprises the following steps: training a to-be-trained basic model and an attack model by using a training sampl...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: CAO JIAJIONG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The embodiment of the invention discloses a model training method and device, a content generation method and device, a storage medium and electronic equipment. The model training method comprises the following steps: training a to-be-trained basic model and an attack model by using a training sample, and evaluating generation contents of the basic model and the attack model through a quality module to obtain a quality score; the training targets comprise minimizing the diffusion loss of the basic model, maximizing the difference between the output content of the basic model and the output content of the attack model, and maximizing the quality score of the output content of the basic model. 本说明书实施例公开了一种模型训练方法、内容生成方法、装置、存储介质及电子设备。其中,模型训练方法利用训练样本训练待训练的基础模型和攻击模型,通过质量模块对基础模型和攻击模型的生成内容进行评估,得到质量分,训练的目标包括:最小化基础模型的扩散损失、最大化基础模型输出内容和所述攻击模型输出内容之间的差异以及最大化基础模型输出内容的质量分。