IP Library › Granted Patent US 12,499,367
Granted Patent B2
US 12,499,367 · App. 16/892,730 · Granted Dec 16, 2025

Electronic apparatus for artificial intelligence model compression and method thereof

Inventors: Dongsoo Lee (Suwon-si, KR); Sejung Kwon (Suwon-si, KR); Byeoungwook Kim (Suwon-si, KR)
Assignee: Samsung Electronics Co., Ltd.
G06N3/084G06N5/046H03M7/3082H03M7/6005H03M7/6011
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,499,367
App. No.
16/892,730
Granted
Dec 16, 2025
Kind
B2
Abstract

An electronic apparatus is provided. The electronic apparatus includes a memory configured to store one instruction or more and a processor configured to obtain output data by inputting input data to an artificial intelligence model including a plurality of layers by executing the instruction, and the artificial intelligence model is configured to output the output data based on operation through the plurality of layers and the processor is configured to encode operation data output from one of the plurality of layers and store the encoded operation data in the memory, obtain recovery data corresponding to the operation data by decoding the encoded operation data stored in the memory, and provide the obtained recovery data to another layer from among the plurality of layers.

Claims (58)

1 . An electronic apparatus comprising:

memory configured to store one instruction or more; and

at least one processor configured to obtain output data by inputting input data to an artificial intelligence model including a plurality of layers by executing the one instruction or more,

wherein the artificial intelligence model is configured to output the output data based on operation through the plurality of layers,

wherein the one instruction or more, when executed by the at least one processor causes the electronic apparatus to:

determine, based on a capacity of the memory, that compression of data output from a first layer of the artificial intelligence model is required in case of the data being stored in the memory without compression and being provided to a second layer of the artificial intelligence model after retrieval from the memory,

add a first hidden layer and a second hidden layer between the first layer and the second layer based on the determination, wherein the first hidden layer has a dimension that is lower than that of the first layer, and the second hidden layer has a dimension that is equal to that of the first layer,

encode operation data output from the first layer without the operation data having been or being stored in the memory, based on a weight of the first hidden layer retrieved from the memory when the operation data is output from the first layer, and store the encoded operation data in the memory,

retrieve the encoded operation data and a weight of the second hidden layer from the memory, and obtain restoration data corresponding to the operation data by decoding, based on the weight of the second hidden layer that is retrieved from the memory, the encoded operation data that is retrieved from the memory, and

provide the obtained restoration data to the second layer without the obtained restoration data having been or being stored in the memory,

wherein the artificial intelligence model is configured to learn the weight of the first hidden layer and the weight of the second hidden layer so as to reconstruct data of the first layer into a layer having fewer nodes than a number of nodes of the first layer,

wherein the artificial intelligence model is further configured to learn the weight of the first hidden layer and the weight of the second hidden layer so that an error between the operation data output by the first layer and the obtained restoration data output by the second hidden layer is minimized,

wherein the artificial intelligence model is further configured to, based on the first hidden layer and the second hidden layer being added after learning that of a subset of the plurality of layers, which does not include the first hidden layer and the second hidden layer, is completed, obtain the weight of the first hidden layer and the weight of the second hidden layer through learning of an entire system including the subset of the plurality of layers, the first hidden layer, and the second hidden layer while fixing weights of the plurality of layers, and

wherein the learned weight of the first hidden layer and the weight of the second hidden layer are stored in the memory.

2 . The electronic apparatus as claimed in claim 1 , wherein the artificial intelligence model is further configured to obtain the weight of the first hidden layer and the weight of the second hidden layer through learning of an entire system including the plurality of layers, the first hidden layer, and the second hidden layer.

3 . The electronic apparatus as claimed in claim 1 ,

wherein the plurality of layers include a third layer, and a third hidden layer, and a fourth hidden layer between the second layer and the third layer, and

wherein the artificial intelligence model is further configured to:

learn a weight of the third hidden layer and a weight of the fourth hidden layer to generate the fourth hidden layer that reconstructs the second layer, and

learn so that the first hidden layer and the third hidden layer have a same weight, and the second hidden layer and the fourth hidden layer have a same weight.

4 . The electronic apparatus as claimed in claim 3 , wherein the one instruction or more, when executed by the at least one processor, further causes the electronic apparatus to:

perform encoding of the operation data and encoding of input data of the third hidden layer through one encoder, and

perform decoding of the encoded operation data and decoding of input data of the fourth hidden layer through one decoder.

5 . A method performed by an electronic apparatus, the method comprising:

determining, based on a capacity of a memory, that compression of data output from a first layer of an artificial intelligence model including a plurality of layers is required in case of the data being stored in the memory without compression and being provided to a second layer of the artificial intelligence model after retrieval from the memory;

adding a first hidden layer and a second hidden layer between the first layer and the second layer based on the determination, wherein the first hidden layer has a dimension that is lower than that of the first layer, and the second hidden layer has a dimension that is equal to that of the first layer;

encoding, operation data output from the first layer without the operation data having been or being stored in the memory, based on a weight of the first hidden layer retrieved from the memory when the operation data is output from the first layer, and storing the encoded operation data in the memory;

retrieving the encoded operation data and a weight of the second hidden layer from the memory, and obtaining restoration data corresponding to the operation data by decoding, based on the weight of the second hidden layer that is retrieved from the memory, the encoded operation data that is retrieved from the memory; and

providing the obtained restoration data to the second layer without the obtained restoration data having been or being stored in the memory,

wherein the artificial intelligence model is configured to learn the weight of the first hidden layer and the weight of the second hidden layer so as to reconstruct data of the first layer into a layer having fewer nodes than a number of nodes of the first layer,

wherein the artificial intelligence model is further configured to learn the weight of the first hidden layer and the weight of the second hidden layer so that an error between the operation data output by the first layer and the obtained restoration data output by the second hidden layer is minimized,

wherein the artificial intelligence model is further configured to, based on the first hidden layer and the second hidden layer being added after learning of a subset of the plurality of layers, which does not include the first hidden layer and the second hidden layer, is completed, obtain the weight of the first hidden layer and the weight of the second hidden layer through learning of an entire system including the subset of the plurality of layers, the first hidden layer, and the second hidden layer while fixing weights of the plurality of layers, and

wherein the learned weight of the first hidden layer and the weight of the second hidden layer are stored in the memory.

6 . The method as claimed in claim 5 , wherein the artificial intelligence model is further configured to obtain the weight of the first hidden layer and the weight of the second hidden layer through learning of an entire system including the plurality of layers, the first hidden layer, and the second hidden layer.

7 . The method as claimed in claim 5 ,

wherein the plurality of layers include a third layer, and a third hidden layer, and a fourth hidden layer between the second layer and the third layer, and

wherein the artificial intelligence model is further configured to:

learn a weight of the third hidden layer and a weight of the fourth hidden layer to generate the fourth hidden layer that reconstructs the second layer; and

learn so that the first hidden layer and the third hidden layer have a same weight, and the second hidden layer and the fourth hidden layer have a same weight.

8 . The method as claimed in claim 7 , further comprising:

performing encoding of the operation data and encoding of input data of the third hidden layer through one encoder; and

performing decoding of the encoded operation data and decoding of input data of the fourth hidden layer through one decoder.

9 . A non-transitory computer readable recording medium storing at least one instruction that, when executed by at least one processor of an electronic apparatus, cause an electronic apparatus to perform operations to:

determine, based on a capacity of a memory, that compression of data output from a first layer of an artificial intelligence model including a plurality of layers is required in case of the data being stored in the memory without compression and being provided to a second layer of the artificial intelligence model after retrieval from the memory;

add a first hidden layer and a second hidden layer between the first layer and the second layer based on the determination, wherein the first hidden layer has a dimension that is lower than that of the first layer, and the second hidden layer has a dimension that is equal to that of the first layer;

encode operation data output from the first layer without the operation data having been or being stored in the memory, based on a weight of the first hidden layer retrieved from the memory when the operation data is output from the first layer, and store the encoded operation data in the memory;

retrieve the encoded operation data and a weight of the second hidden layer from the memory, and obtain restoration data corresponding to the operation data by decoding, based on the weight of the second hidden layer that is retrieved from the memory, the encoded operation data that is retrieved from the memory; and

provide the obtained restoration data to the second layer without the obtained restoration data having been or being stored in the memory,

wherein the artificial intelligence model is configured to learn the weight of the first hidden layer and the weight of the second hidden layer so as to reconstruct data of the first layer into a layer having fewer nodes than a number of nodes of the first layer,

wherein the artificial intelligence model is further configured to learn the weight of the first hidden layer and the weight of the second hidden layer so that an error between the operation data output by of the first layer and the obtained restoration data output by the second hidden layer is minimized,

wherein the artificial intelligence model is further configured to, based on the first hidden layer and the second hidden layer being added after learning of a subset of the plurality of layers, which does not include the first hidden layer and the second hidden layer, is completed, obtain the weight of the first hidden layer and the weight of the second hidden layer through learning of an entire system including the subset of the plurality of layers, the first hidden layer, and the second hidden layer while fixing weights of the plurality of layers, and

wherein the learned weight of the first hidden layer and the weight of the second hidden layer are stored in the memory.

10 . The non-transitory computer readable recording medium of claim 9 , wherein the encoded operation data is encoded in a vector having one dimension less than a vector including the operation data.

11 . The non-transitory computer readable recording medium of claim 10 , wherein the vector including the operation data comprises a same number of dimensions as a vector including the restoration data.

12 . The non-transitory computer readable recording medium of claim 9 , wherein the artificial intelligence model is received from an external device without the first hidden layer and without the second hidden layer.

13 . The non-transitory computer readable recording medium of claim 9 , wherein at least two layers of the plurality of layers of the artificial intelligence model do not include a hidden layer therebetween.

14 . The electronic apparatus as claimed in claim 1 , wherein at least two layers of the plurality of layers of the artificial intelligence model do not include a hidden layer therebetween.

15 . The method as claimed in claim 5 , wherein at least two layers of the plurality of layers of the artificial intelligence model do not include a hidden layer therebetween.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 4, 2020
From: LEE, DONGSOO; KWON, SEJUNG; KIM, BYEOUNGWOOK
To: SAMSUNG ELECTRONICS CO., LTD.
Reel/Frame 052839/0182 →
Priority Claims (1)
KR 10-2019-0089232 · Jul 23, 2019 · national
Continuity (1)
Related Publication 20210027168A1 · Jan 28, 2021
References Cited (39)
US 10614361B2 · Chung · 2020 [cited by examiner]
US 10832138B2 · Choi · 2020 [cited by examiner]
US 11188813B2 · Goudarzi · 2021 [cited by examiner]
US 20160155049A1 · Choi · 2016 [cited by applicant]
US 20170147921A1 · Kasahara · 2017 [cited by applicant]
US 20170177993A1 · Draelos et al. · 2017 [cited by applicant]
US 20180101957A1 · Talathi · 2018 [cited by applicant]
US 20180131946A1 · Lee et al. · 2018 [cited by applicant]
US 20180131953A1 · Wang et al. · 2018 [cited by applicant]
US 20180158552A1 · Liu et al. · 2018 [cited by applicant]
US 20180253640A1 · Goudarzi et al. · 2018 [cited by applicant]
US 20190073594A1 · Eriksson et al. · 2019 [cited by applicant]
US 20190096038A1 · El-Khamy et al. · 2019 [cited by applicant]
US 20190130249A1 · Bradbury et al. · 2019 [cited by applicant]
US 20190138826A1 · Ghafarianzadeh et al. · 2019 [cited by applicant]
US 20190197420A1 · Singh et al. · 2019 [cited by applicant]
US 20200042218A1 · Faibish · 2020 [cited by examiner]
US 20200410326A1 · Obukhov · 2020 [cited by examiner]
CN 106203624A · 2016 [cited by applicant]
CN 108304359A · 2018 [cited by examiner]
CN 109543200A · 2019 [cited by applicant]
JP 2017097585A · 2017 [cited by applicant]
KR 1020180052069A · 2018 [cited by applicant]
KR 101948613B1 · 2019 [cited by applicant]
KR 101951914B1 · 2019 [cited by applicant]
WO 2019092459A1 · 2019 [cited by applicant]
Song Han, Xingyu Liu, Huizi Mao, Jing Pu, Ardavan Pedram, Mark A. Horowitz, and William J. Dally. 2016. EIE: efficient inference engine on compressed deep neural network. SIGARCH Comput. Archit. News 44, 3 (Jun. 2016), … [cited by examiner]
Cao et al., “Constructing method for unsupervised learning unified characteristic extractor”, English Translation of CN-108304359-A, Translated by Espacenet (Year: 2023). [cited by examiner]
Zhengxue Cheng et al., “Deep Convolutional AutoEncoder-based Lossy Image Compression”, 2018 Picture Coding Symposium (PCS), IEEE, Jun. 24, 2018, pp. 253-257, XP033398631. [cited by applicant]
Anonymous, “Autoencoder—Wikipedia”, Jul. 12, 2019, pp. 1-12, XP055892643, URL: https://en.wikipedia.org/w/index.php?title=Autoencoder&oldid=905990949. [cited by applicant]
Extended European Search Report dated Mar. 4, 2022, issued in European Patent Application No. 20843822.6-1207. [cited by applicant]
International Search Report and Written Opinion dated Aug. 24, 2020, issued in International Patent Application No. PCT/KR2020/006351. [cited by applicant]
European Examination Report dated Oct. 5, 2023; European Appln. No. 20 843 822.6-1207. [cited by applicant]
Chinese Office Action with English translation dated Oct. 30, 2024; Chinese Appln. No. 202080039397.9. [cited by applicant]
Chinese Office Action dated Mar. 6, 2025, issued in a Chinese Patent Application No. 202080039397.9. [cited by applicant]
Korean Office Action dated Apr. 28, 2025, issued in a Korean Patent Application No. 10-2019-0089232. [cited by applicant]
Chinese Office Action dated May 9, 2025, issued in a Chinese Patent Application No. 202080039397.9. [cited by applicant]
European Communication pursuant to Article 94(3) EPC dated Jun. 5, 2025; European Appin. No. 20 843 822.6-1218. [cited by applicant]
Chinese Office Action with English translation dated Jul. 23, 2025; Chinese Appln. No. 202080039397.9. [cited by applicant]