# US 2022/0284240 A1 · Methods for training and analysing input data using a machine learning model

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

- Number: US 2022/0284240 A1
- Document ID: US20220284240A1
- Status: Published application
- Kind: A1
- Application number: 17/728,281
- Filed: 2022-04-25
- Published: 2022-09-08
- Earliest claimed: 2021-03-08
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Adrian BULAT; Georgios Tzimiropoulos Tzimiropoulos
- Web page: https://patentgrep.com/patent/US20220284240A1

## CPC

- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06F 18/2148: {characterised by the process organisation or structure, e.g. boosting cascade}
- G06F 18/2413: based on distances to training or reference patterns
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/0895: Weakly supervised learning, e.g. semi-supervised or self-supervised learning
- G06N 3/09: Supervised learning
- G06N 3/063: using electronic means
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Broadly speaking, the present techniques generally relate to machine learning models comprising neural network layers, in which the quantisation level of each layer of the model can be independently selected at run-time. In particular, the present application relates to a computer-implemented method for analysing input data on a device using a trained machine learning, ML, model, comprising independently selecting a quantisation level for each of a plurality of network layers of the model at runtime. The present application also relates to a computer-implemented method of training a machine learning model so that the quantisation level of each of the plurality of network layers is independently selectable at runtime. A single trained model with a single set of weights can therefore be deployed, with the quantisation of each layer selected at runtime to suit the capabilities of the device and available resource.

## Claims

### Claim 1

A computer-implemented method for analysing input data on a device using a trained machine learning, ML, model comprising a plurality of neural network layers, the method comprising:
receiving at least one input data item for analysis;
independently selecting a quantisation level for each of the plurality of neural network layers at runtime; and
analysing the received input data item using the selected quantisation levels.

### Claim 2 (depends on 1)

The method of claim 1, wherein the quantisation level is selected from a pre-defined set of quantisation levels.

### Claim 3 (depends on 1)

The method of claim 1, wherein the ML model uses a single shared set of weights.

### Claim 4 (depends on 1)

The method of claim 1, wherein the trained ML model comprises a transitional batch-normalisation layer disposed between a first neural network layer and a second neural network layer of the plurality of neural network layers,
wherein the transitional batch-normalisation layer is configured to compensate for a change in feature distribution between a quantisation level of the first neural network layer and a quantisation level of the second neural network layer.

### Claim 5 (depends on 1)

The method of claim 1, wherein he input data items comprise image data, audio data or text data.

### Claim 6 (depends on 1)

The method of claim 1, wherein the ML model carries out one of image classification, image segmentation, video compression/decompression, video encoding/decoding, speech recognition or text classification.

### Claim 7 (depends on 1)

The method of claim 1, comprising:
storing configuration data, the configuration data comprising a selection of quantisation levels corresponding to a processing environment of a device upon which the ML model will be executed, and
selecting the quantisation levels of the layers of the network based on the stored configuration data,
wherein the processing environment includes one or more of the hardware configuration or properties, firmware configuration and/or operating system version of the device.

### Claim 8 (depends on 1)

The method of claim 1, comprising:
storing a plurality of configuration data items, each configuration data comprising a selection of quantisation levels;
determining processing conditions of the device, and
selecting a configuration data item of the plurality of stored configuration data items, based on the determined processing conditions,
wherein the processing conditions include available computational resource of the device or an amount of remaining battery.

### Claim 9 (depends on 8)

The method of claim 8, wherein each of the configuration data items corresponds to different processing conditions present in same processing environment.

### Claim 10 (depends on 1)

The method of claim 1, comprising:
storing first configuration data comprising a selection of quantisation levels,
generating a plurality of items of second configuration data from the first configuration data by introducing noise into the first configuration data;
calculating a latency associated with each of the plurality of items of second configuration data; and
selecting an item of second configuration data of the plurality of items of second configuration data having a lowest latency.

### Claim 11

An apparatus comprising:
at least one processor, coupled to memory, arranged to analyse input data using a trained machine learning, ML, model by
receiving at least one input data item for analysis;
independently selecting a quantisation level for each of the plurality of neural network layers at runtime; and
analysing the received input data item using the selected quantisation levels.
