# US 2023/0410376 A1 · Compressing image-to-image models with average smoothing

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0410376 A1
- Document ID: US20230410376A1
- Status: Published application
- Kind: A1
- Application number: 18/238,979
- Filed: 2023-08-28
- Published: 2023-12-21
- Earliest claimed: 2021-03-04
- Assignees: Snap Inc.
- Inventors: Jian Ren; Menglei Chai; Sergey Tulyakov; Qing Jin
- Web page: https://patentgrep.com/patent/US20230410376A1

## CPC

- G06T 9/002: {using neural networks}
- H04N 19/90: using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/047: Probabilistic or stochastic networks
- G06N 3/0475: Generative networks
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/08: Learning methods
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/094: Adversarial learning
- G06N 3/096: Transfer learning
- G06N 3/0985: Hyperparameter optimisation; Meta-learning; Learning-to-learn
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

System and methods for compressing image-to-image models. Generative Adversarial Networks (GANs) have achieved success in generating high-fidelity images. An image compression system and method adds a novel variant to class-dependent parameters (CLADE), referred to as CLADE-Avg, which recovers the image quality without introducing extra computational cost. An extra layer of average smoothing is performed between the parameter and normalization layers. Compared to CLADE, this image compression system and method smooths abrupt boundaries, and introduces more possible values for the scaling and shift. In addition, the kernel size for the average smoothing can be selected as a hyperparameter, such as a 3×3 kernel size. This method does not introduce extra multiplications but only addition, and thus does not introduce much computational overhead, as the division can be absorbed into the parameters after training.

## Claims

### Claim 1

A method of operating a generative adversarial network (GAN), comprising:
receiving an image having learned parameters;
using an input class of the image to determine scaling and shifting parameters in a normalization layer; and
compressing the image using the determined scaling and shifting parameters to smooth abrupt boundaries where semantic information changes.

### Claim 2 (depends on 1)

The method of claim 1, wherein the learned parameters include spatial dependency.

### Claim 3 (depends on 1)

The method of claim 1, wherein the method further comprises performing average smoothing between parameter layers and normalization layers, wherein the average smoothing generates a plurality of values for the scaling and shifting parameters.

### Claim 4 (depends on 1)

The method of claim 1, further comprising using an inception-based residual block containing a kernel.

### Claim 5 (depends on 4)

The method of claim 4, wherein the kernel has a kernel size selected from different kernel sizes.

### Claim 6 (depends on 4)

The method of claim 4, wherein the inception-based block incorporates depth-wise convolutional layers.

### Claim 7 (depends on 1)

The method of claim 1, wherein the GAN is stored on a mobile computing device.

### Claim 8 (depends on 1)

The method of claim 1, wherein the GAN is a pre-trained GAN.

### Claim 9

A system comprising:
a processor; and
a memory storing computer readable instructions that, when executed by the processor, configure the system to perform operations comprising:
receiving an image having learned parameters;
using an input class of the image to determine scaling and shifting parameters in a normalization layer; and
compressing the image using the determined scaling and shifting parameters to smooth abrupt boundaries where semantic information changes.

### Claim 10 (depends on 9)

The system of claim 9, wherein the learned parameters include spatial dependency.

### Claim 11 (depends on 9)

The system of claim 9, wherein the computer readable instructions are configured to perform average smoothing, wherein the average smoothing generates a plurality of values for the scaling and shifting parameters.

### Claim 12 (depends on 9)

The system of claim 9, further comprising using an inception-based residual block containing a kernel.

### Claim 13 (depends on 12)

The system of claim 12, wherein the kernel has a kernel size selected from different kernel sizes.

### Claim 14 (depends on 12)

The system of claim 12, wherein the inception-based block incorporates depth-wise convolutional layers.

### Claim 15 (depends on 9)

The system of claim 9, wherein the operations are performed using a generative adversarial network (GAN) stored on a mobile computing device.

### Claim 16 (depends on 15)

The system of claim 15, wherein the GAN is a pre-trained GAN.

### Claim 17

A non-transitory computer-readable storage medium including instructions that, when executed by a computer, cause the computer to perform operations comprising:
receiving an image having learned parameters;
using an input class of the image to determine scaling and shifting parameters in a normalization layer; and
compressing the image using the determined scaling and shifting parameters to smooth abrupt boundaries where semantic information changes.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the learned parameters include spatial dependency.

### Claim 19 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the instructions are configured to perform average smoothing, wherein the average smoothing generates a plurality of values for the scaling and shifting parameters.

### Claim 20 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, further comprising instructions to use an inception-based residual block containing a kernel.
