# US 2025/0384337 A1 · On-device neural network training for edge devices

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

- Number: US 2025/0384337 A1
- Document ID: US20250384337A1
- Status: Published application
- Kind: A1
- Application number: 18/747,214
- Filed: 2024-06-18
- Published: 2025-12-18
- Earliest claimed: 2024-06-18
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Chen FENG; Shaojie ZHUO; Zhaocong YUAN; Ramchalam KINATTINKARA RAMAKRISHNAN; Xiaopeng ZHANG
- Web page: https://patentgrep.com/patent/US20250384337A1

## CPC

- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 20/00: Machine learning
- G06N 3/09: Supervised learning
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0499: Feedforward networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A processor-implemented method for a fixed-point, forward-forward on-device model training/adaptation is described. The processor-implemented method includes running a first forward call according to positive perturbation parameters sampled from a random perturbation vector that follows standard, normal distribution. The processor-implemented method also includes running a second forward call according to negative perturbation parameters sampled from the random perturbation vector. The processor-implemented method further includes computing forward gradients according to the random perturbation vector and a directional derivative based on the first forward call and the second forward call. The processor-implemented method also includes updating weights of the on-device model according to the forward gradients.

## Claims

### Claim 1

A processor-implemented method for forward-forward on-device model training/adaptation, comprising:
running a first forward call according to positive perturbation parameters sampled from a random perturbation vector that follows standard, normal distribution;
running a second forward call according to negative perturbation parameters sampled from the random perturbation vector;
computing forward gradients according to the random perturbation vector and a directional derivative based on the first forward call and the second forward call; and
updating weights of the on-device model according to the forward gradients.

### Claim 2 (depends on 1)

The processor-implemented method of claim 1, in which computing the forward gradients comprises:
computing the directional derivative according to the first forward call and the second forward call and a perturbation scale; and
multiplying a sign of the directional derivative with the random perturbation vector to generate the forward gradients.

### Claim 3 (depends on 1)

The processor-implemented method of claim 1, in which updating the weights comprises performing a quantized stochastic gradient descent (SGD) process.

### Claim 4 (depends on 1)

The processor-implemented method of claim 1, further comprising applying a scaling factor to the forward gradients.

### Claim 5 (depends on 1)

The processor-implemented method of claim 1, further comprising repeating computing of the forward gradients according to an ‘nFold’ training parameter.

### Claim 6 (depends on 5)

The processor-implemented method of claim 5, in which the ‘nFold’ training parameter comprises a dynamic schedule training parameter to perform a loss landscape sharpness analysis.

### Claim 7 (depends on 1)

The processor-implemented method of claim 1, in which updating of the weights is performed on a subset of the weights of the on-device model.

### Claim 8 (depends on 1)

The processor-implemented method of claim 1, in which the on-device model comprises a fixed-point inference accelerator.

### Claim 9 (depends on 1)

The processor-implemented method of claim 1, in which updating of the weights comprises re-scaling a norm of the weights.

### Claim 10 (depends on 1)

The processor-implemented method of claim 1, in which running the first forward call comprises generating a first loss value.

### Claim 11 (depends on 10)

The processor-implemented method of claim 10, in which running the second forward call comprises generating a second loss value, in which the directional derivative is based on the first loss value and the second loss value.

### Claim 12 (depends on 1)

The processor-implemented method of claim 1, further comprising guiding a sampling from the random perturbation vector according to a momentum.

### Claim 13 (depends on 1)

The processor-implemented method of claim 1, further comprising performing forward-forward on-device model training using a non-continuous loss.

### Claim 14

An apparatus, comprising:
at least one memory; and
at least one processor coupled to the at least one memory, the at least one processor configured to:
run a first forward call according to positive perturbation parameters sampled from a random perturbation vector that follows standard, normal distribution;
run a second forward call according to negative perturbation parameters sampled from the random perturbation vector;
compute forward gradients according to the random perturbation vector and a directional derivative based on the first forward call and the second forward call; and
update weights of the on-device model according to the forward gradients.

### Claim 15 (depends on 14)

The apparatus of claim 14, in which to computing the forward gradients, the processor is further configured to:
compute the directional derivative according to the first forward call and the second forward call and a perturbation scale; and
multiply a sign of the directional derivative with the random perturbation vector to generate the forward gradients.

### Claim 16 (depends on 14)

The apparatus of claim 14, in which to update the weights, the processor is further configured to perform a quantized stochastic gradient descent (SGD) process.

### Claim 17 (depends on 14)

The apparatus of claim 14, in which the at least one processor is further configured to apply a scaling factor to the forward gradients.

### Claim 18 (depends on 14)

The apparatus of claim 14, in which the at least one processor is further configured to repeat the computing of the forward gradients according to an ‘nFold’ training parameter, in which the ‘nFold’ training parameter comprises a dynamic schedule training parameter to perform a loss landscape sharpness analysis.

### Claim 19 (depends on 14)

The apparatus of claim 14, in which the on-device model comprises a fixed-point inference accelerator.

### Claim 20 (depends on 14)

The apparatus of claim 14, in which to run the first forward call the processor is further configured to generate a first loss value and to run the second forward call the processor is further configured to generate a second loss value, in which the directional derivative is based on the first loss value and the second loss value.
