IP Library › Granted Patent US 12,640,145
Granted Patent B2
US 12,640,145 · App. 18/201,103 · Granted May 26, 2026

Data processing method, apparatus, device, storage medium and program product

Inventors: Ziwei Fan (Beijing, CN); Jiqing Zhan (Beijing, CN); Jian Yu (Beijing, CN); Yanfeng Wang (Beijing, CN); Yun Zhu (Beijing, CN); Ang Zhao (Beijing, CN)
Assignee: BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO., LTD.
G10L15/187G06N20/00G10L15/063G10L15/22
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,640,145
App. No.
18/201,103
Filed
May 23, 2023
Granted
May 26, 2026
Kind
B2
Art Unit
2658
USPC
704/243
Abstract

This application discloses a data processing method performed by a computer device. Obtained service data is inputted into a pre-trained model and an initial service model to obtain first fully-connected layer outputs of the pre-trained model and second fully-connected layer outputs of the initial service model. The pre-trained model and the initial service model construct modeling units with different granularities, first modeling units of the pre-trained model are matched with second modeling units of the initial service model, fully-connected layer outputs of the second modeling units have the same sequence length as fully-connected layer outputs of matched target first modeling units so that with the assistance of the pre-trained model, the target service model can be obtained through the initial service model, the knowledge distillation of the models including modeling units with different granularities is realized, thereby effectively improving the service performance of the service model.

Claims (67)

1 . A method performed by a computer device, the method comprising:

obtaining service data;

inputting the service data into a pre-trained model and an initial service model to obtain first fully-connected layer outputs of the pre-trained model and second fully-connected layer outputs of the initial service model, wherein:

each of first modeling units of the pre-trained model is a single character,

each of second modeling units of the initial service model is a phrase,

the pre-trained model is obtained by training based on both pre-training data and the service data, and

the initial service model is obtained by training based on the service data;

determining, from the first modeling units, target first modeling units matched with the second modeling units respectively, wherein fully-connected layer outputs of the second modeling units and fully-connected layer outputs of the matched target first modeling units have a same sequence length; and

performing knowledge distillation by utilizing the second fully-connected layer outputs of the initial service model and the fully-connected layer outputs corresponding to the matched target first modeling units in the first fully-connected layer outputs of the pre-trained model to obtain a target service model.

2 . The method according to claim 1 , wherein the service data is a string of text, the first modeling units of the pre-trained model have a granularity of a single character and the second modeling units of the initial service model have a granularity of a phrase.

3 . The method according to claim 1 , wherein the service data is a string of text without punctuations, the method further comprises:

adding punctuations to the string of text using the target service model.

4 . The method according to claim 1 , where the determining, from the first modeling units, the target first modeling unit matched with the second modeling units respectively comprises:

matching, according to a target phrase corresponding to a target second modeling unit, a target character set constituting the target phrase from the first modeling units, the target character set containing a plurality of characters; and

determine, from the target character set, a first modeling unit corresponding to the last character as a target first modeling unit matched with the target second modeling unit, based on a word order.

5 . The method according to claim 1 , wherein the service data is voice data and the method further comprises:

obtaining voice data;

recognizing the voice data to obtain a target text corresponding to the voice data;

adding punctuations to the target text using the target service model;

outputting the target text added with the punctuations.

6 . The method according to claim 1 , wherein the pre-trained model is obtained by self-supervised training based on pre-training data, and a data volume of the pre-training data is greater than a data volume of service data required for training to obtain the target service model.

7 . A computer device comprising:

a processor, a communication interface, a memory and a communication bus;

the processor, the communication interface and the memory communicating with each other through the communication bus; the communication interface being an interface of a communication module;

the memory being configured to store a program code and transmit the program code to the processor;

the processor being configured to invoke instructions in the memory to perform a data processing method including:

obtaining service data;

inputting the service data into a pre-trained model and an initial service model to obtain first fully-connected layer outputs of the pre-trained model and second fully-connected layer outputs of the initial service model, wherein:

each of first modeling units of the pre-trained model is a single character,

each of second modeling units of the initial service model is a phrase,

the pre-trained model is obtained by training based on both pre-training data and the service data, and

the initial service model is obtained by training based on the service data;

determining, from the first modeling units, target first modeling units matched with the second modeling units respectively, wherein fully-connected layer outputs of the second modeling units and fully-connected layer outputs of the matched target first modeling units have a same sequence length; and

performing knowledge distillation by utilizing the second fully-connected layer outputs of the initial service model and the fully-connected layer outputs corresponding to the matched target first modeling units in the first fully-connected layer outputs of the pre-trained model to obtain a target service model.

8 . The computer device according to claim 7 , wherein the service data is a string of text, the first modeling units of the pre-trained model have a granularity of a single character and the second modeling units of the initial service model have a granularity of a phrase.

9 . The computer device according to claim 7 , wherein the service data is a string of text without punctuations, the data processing method further comprises:

adding punctuations to the string of text using the target service model.

10 . The computer device according to claim 7 , where the determining, from the first modeling units, the target first modeling unit matched with the second modeling units respectively comprises:

matching, according to a target phrase corresponding to a target second modeling unit, a target character set constituting the target phrase from the first modeling units, the target character set containing a plurality of characters; and

determine, from the target character set, a first modeling unit corresponding to the last character as a target first modeling unit matched with the target second modeling unit, based on a word order.

11 . The computer device according to claim 7 , wherein the service data is voice data and the method further comprises:

obtaining voice data;

recognizing the voice data to obtain a target text corresponding to the voice data;

adding punctuations to the target text using the target service model;

outputting the target text added with the punctuations.

12 . The computer device according to claim 7 , wherein the pre-trained model is obtained by self-supervised training based on pre-training data, and a data volume of the pre-training data is greater than a data volume of service data required for training to obtain the target service model.

13 . A non-transitory computer readable storage medium, having stored thereon a computer program that, when executed by a processor of a computer device, causes the computer device to perform a data processing method including:

obtaining service data;

inputting the service data into a pre-trained model and an initial service model to obtain first fully-connected layer outputs of the pre-trained model and second fully-connected layer outputs of the initial service model, wherein:

each of first modeling units of the pre-trained model is a single character,

each of second modeling units of the initial service model is a phrase,

the pre-trained model is obtained by training based on both pre-training data and the service data, and

the initial service model is obtained by training based on the service data;

determining, from the first modeling units, target first modeling units matched with the second modeling units respectively, wherein fully-connected layer outputs of the second modeling units and fully-connected layer outputs of the matched target first modeling units have a same sequence length; and

performing knowledge distillation by utilizing the second fully-connected layer outputs of the initial service model and the fully-connected layer outputs corresponding to the matched target first modeling units in the first fully-connected layer outputs of the pre-trained model to obtain a target service model.

14 . The non-transitory computer readable storage medium according to claim 13 , wherein the service data is a string of text, the first modeling units of the pre-trained model have a granularity of a single character and the second modeling units of the initial service model have a granularity of a phrase.

15 . The non-transitory computer readable storage medium according to claim 13 , wherein the service data is a string of text without punctuations, the data processing method further comprises:

adding punctuations to the string of text using the target service model.

16 . The non-transitory computer readable storage medium according to claim 13 , where the determining, from the first modeling units, the target first modeling unit matched with the second modeling units respectively comprises:

matching, according to a target phrase corresponding to a target second modeling unit, a target character set constituting the target phrase from the first modeling units, the target character set containing a plurality of characters; and

determine, from the target character set, a first modeling unit corresponding to the last character as a target first modeling unit matched with the target second modeling unit, based on a word order.

17 . The non-transitory computer readable storage medium according to claim 13 , wherein the service data is voice data and the method further comprises:

obtaining voice data;

recognizing the voice data to obtain a target text corresponding to the voice data;

adding punctuations to the target text using the target service model;

outputting the target text added with the punctuations.

18 . The non-transitory computer readable storage medium according to claim 13 , wherein the pre-trained model is obtained by self-supervised training based on pre-training data, and a data volume of the pre-training data is greater than a data volume of service data required for training to obtain the target service model.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 1, 2026
From: FAN, ZIWEI; ZHAN, JIQING; YU, JIAN; WANG, YANFENG; ZHU, YUN; ZHAO, ANG
To: BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO., LTD.
Reel/Frame 074542/0575 →
Priority Claims (1)
CN 202111094328.0 · Sep 17, 2021 · national
Continuity (2)
Continuation PCTCN2022112643 · Aug 16, 2022
Related Publication 20240395247A1 · Nov 28, 2024
References Cited (29)
US 10304444B2 · Mathias · 2019 [cited by examiner]
US 20200243094A1 · Thomson · 2020 [cited by examiner]
US 20200380211A1 · Fan · 2020 [cited by examiner]
US 20200401929A1 · Duerig et al. · 2020 [cited by applicant]
US 20210182661A1 · Li et al. · 2021 [cited by applicant]
US 20210350082A1 · Huang · 2021 [cited by examiner]
US 20220094649A1 · Le · 2022 [cited by examiner]
US 20220261631A1 · Cohen · 2022 [cited by examiner]
US 20220284283A1 · Yin · 2022 [cited by examiner]
US 20220318557A1 · Mohseni · 2022 [cited by examiner]
US 20230177746A1 · Shao · 2023 [cited by examiner]
US 20230386470A1 · Su · 2023 [cited by examiner]
CN 107767870A · 2018 [cited by applicant]
CN 110110327A · 2019 [cited by applicant]
CN 110674629A · 2020 [cited by applicant]
CN 111832701A · 2020 [cited by applicant]
CN 112232086A · 2021 [cited by applicant]
CN 112380319A · 2021 [cited by applicant]
CN 112395876A · 2021 [cited by applicant]
CN 112487182A · 2021 [cited by applicant]
CN 112686046A · 2021 [cited by applicant]
CN 113807540A · 2021 [cited by applicant]
CN 114154395A · 2022 [cited by applicant]
KR 20210094445A · 2021 [cited by applicant]
WO WO2020242567A1 · 2020 [cited by applicant]
Tiffany Chien et al., “Adversarial Analysis of Natural Language Inference Systems”, IEEE 14th International Conference on Semantic Computing (ICSC), DOI: 10.1109/ICSC.2020.00008. Feb. 2020, 8 pgs. [cited by applicant]
Tencent Technology, ISR, PCT/CN2022/112643, Nov. 16, 2022, 2 pgs. [cited by applicant]
Tencent Technology, WO, PCT/CN2022/112643, Nov. 16, 2022, 6 pgs. [cited by applicant]
Tencent Technology, IPRP, PCT/CN2022/112643, Mar. 5, 2024, 7 pgs. [cited by applicant]