← USPTO Patent Grants

Method and apparatus for adversarial training of machine learning model, and medium

Grant US12579424B2 Kind: B2 Mar 17, 2026

Assignee

BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD.

Inventors

Siyu Ding, Shuohuan Wang, Yu Sun

Abstract

The present application discloses a method and an apparatus for adversarial training of a machine learning (ML) model and a medium. The method includes: obtaining input information in a training sample; extracting features of a plurality of input characters in the input information; inputting the features of the plurality of input characters to the ML model, to capture an attention weight on an input character of the plurality of input characters by an attention layer of the ML model; disturbing the attention weight captured by the attention layer, so that the ML model outputs a predicted character according to the attention weight disturbed; and training the ML model according to a difference between the predicted character and a labeled character in the training sample.

CPC Classifications

G06N 3/04 G06N 3/045 G06N 3/0475 G06N 3/0499 G06F 40/58 G06F 40/30 G06F 40/40

Filing Date

2021-07-07

Application No.

17369699

Claims

15