# US 2026/0065143 A1 · Entropy-based early stopping for speculative decoding in generative machine learning models

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

- Number: US 2026/0065143 A1
- Document ID: US20260065143A1
- Status: Published application
- Kind: A1
- Application number: 18/983,103
- Filed: 2024-12-16
- Published: 2026-03-05
- Earliest claimed: 2024-08-29
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Sudhanshu AGRAWAL; Wonseok JEON; Mingu LEE
- Web page: https://patentgrep.com/patent/US20260065143A1

## CPC

- G06N 20/00: Machine learning
- G06N 3/045: Combinations of networks
- G06N 3/047: Probabilistic or stochastic networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Certain aspects of the present disclosure provide techniques and apparatus for machine learning. In an example method, a set of tokens having a probability distribution is generated using a secondary generative machine learning model associated with a primary generative machine learning model. An entropy of the set of tokens is computed based on the probability distribution, and one or more stopping criteria for the secondary generative machine learning model are determined. A next token is generated using the primary generative machine learning model after exiting from the secondary generative machine learning model based on the first entropy and the one or more stopping criteria.

## Claims

### Claim 1

A processing system comprising:
one or more memories comprising processor-executable instructions; and
one or more processors coupled to the one or more memories and configured to execute the processor-executable instructions and cause the processing system to:
generate, using a secondary generative machine learning model associated with a primary generative machine learning model, a first set of tokens having a first probability distribution;
compute a first entropy of the first set of tokens based on the first probability distribution;
determine one or more stopping criteria for the secondary generative machine learning model; and
generate a next token using the primary generative machine learning model after exiting from the secondary generative machine learning model based on the first entropy and the one or more stopping criteria.

### Claim 2 (depends on 1)

The processing system of claim 1, wherein the one or more processors are configured to execute the processor-executable instructions and further cause the processing system to exit from the secondary generative machine learning model in response to determining, based on the first entropy, that the one or more stopping criteria are satisfied.

### Claim 3 (depends on 1)

The processing system of claim 1, wherein the one or more processors are configured to execute the processor-executable instructions and further cause the processing system to:
add a first token, of the first set of tokens, to a sequence of draft tokens; and
submit the sequence of draft tokens for evaluating each respective draft token of the sequence of draft tokens using the primary generative machine learning model.

### Claim 4 (depends on 3)

The processing system of claim 3, wherein the one or more processors are configured to execute the processor-executable instructions and further cause the processing system to:
determine, based on the evaluation of each respective draft token of the sequence of draft tokens, an acceptance rate of the secondary generative machine learning model; and
update at least one of the one or more stopping criteria based on the acceptance rate.

### Claim 5 (depends on 4)

The processing system of claim 4, wherein, to update the at least one of the one or more stopping criteria, the one or more processors are configured to execute the processor-executable instructions and cause the processing system to:
determine a moving average of the acceptance rate; and
compare the moving average with a target acceptance threshold.

### Claim 6 (depends on 5)

The processing system of claim 5, wherein, to update the at least one of the one or more stopping criteria, the one or more processors are configured to execute the processor-executable instructions and further cause the processing system to increase an early-exit threshold for the secondary generative machine learning model in response to determining that the moving average is less than the target acceptance threshold.

### Claim 7 (depends on 5)

The processing system of claim 5, wherein, to update the at least one of the one or more stopping criteria, the one or more processors are configured to execute the processor-executable instructions and further cause the processing system to, in response to determining that the moving average is not less than the target acceptance threshold:
determine a number of tokens, from the sequence of draft tokens, accepted by the primary generative machine learning model; and
compare the number of tokens with a maximum length of the sequence of draft tokens.

### Claim 8 (depends on 7)

The processing system of claim 7, wherein, to update the at least one of the one or more stopping criteria, the one or more processors are configured to execute the processor-executable instructions and further cause the processing system to decrease the early-exit threshold for the secondary generative machine learning model in response to determining that the number of tokens is less than the maximum length.

### Claim 9 (depends on 1)

The processing system of claim 1, wherein the one or more processors are configured to execute the processor-executable instructions and further cause the processing system to:
generate, using the secondary generative machine learning model, a second set of tokens having a second probability distribution; and
generate, using the secondary generative machine learning model, a third set of tokens in response to determining, based on a second entropy of the second set of tokens, that the one or more stopping criteria are not satisfied.

### Claim 10 (depends on 8)

The processing system of claim 8, wherein the one or more processors are configured to execute the processor-executable instructions and further cause the processing system to:
add a second token, of the second set of tokens, to a sequence of draft tokens; and
generate a next token using the primary generative machine learning model after exiting from the secondary generative machine learning model in response to determining, based on a length of the sequence of draft tokens, that the one or more stopping criteria are satisfied.

### Claim 11 (depends on 1)

The processing system of claim 1, wherein, to determine that the one or more stopping criteria are not satisfied, the one or more processors are configured to execute the processor-executable instructions and cause the processing system to:
compute an early-exit score according to 1−√{square root over (γH(DM))}, wherein γ is a hyperparameter and H(DM) is the first entropy of the first set of tokens generated by the secondary generative machine learning model; and
compare the early-exit score with an early-exit threshold.

### Claim 12

A processor-implemented method for machine learning, comprising:
generating, using a secondary generative machine learning model associated with a primary generative machine learning model, a first set of tokens having a first probability distribution;
computing a first entropy of the first set of tokens based on the first probability distribution;
determining one or more stopping criteria for the secondary generative machine learning model; and
generating a next token using the primary generative machine learning model after exiting from the secondary generative machine learning model based on the first entropy and the one or more stopping criteria.

### Claim 13 (depends on 12)

The method of claim 12, further comprising exiting from the secondary generative machine learning model in further response to determining, based on the first entropy, that the one or more stopping criteria are satisfied.

### Claim 14 (depends on 12)

The method of claim 12, further comprising:
adding a first token, of the first set of tokens, to a sequence of draft tokens; and
submitting the sequence of draft tokens for evaluating each respective draft token of the sequence of draft tokens using the primary generative machine learning model.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
determining, based on the evaluation of each respective draft token of the sequence of draft tokens, an acceptance rate of the secondary generative machine learning model; and
updating at least one of the one or more stopping criteria based on the acceptance rate.

### Claim 16 (depends on 15)

The method of claim 15, wherein updating the at least one of the one or more stopping criteria comprises:
determining a moving average of the acceptance rate; and
comparing the moving average with a target acceptance threshold.

### Claim 17 (depends on 16)

The method of claim 16, wherein updating the at least one of the one or more stopping criteria comprises, in response to determining that the moving average is less than the target acceptance threshold, increasing an early-exit threshold for the secondary generative machine learning model.

### Claim 18 (depends on 17)

The method of claim 17, wherein updating the at least one of the one or more stopping criteria comprises, in response to determining that the moving average is not less than the target acceptance threshold:
determining a number of tokens, from the sequence of draft tokens, accepted by the primary generative machine learning model;
comparing the number of tokens with a maximum length of the sequence of draft tokens; and
in response to determining that the number of tokens is less than the maximum length, decreasing an early-exit threshold for the secondary generative machine learning model.

### Claim 19 (depends on 12)

The method of claim 12, further comprising:
generating, using the secondary generative machine learning model, a second set of tokens having a second probability distribution;
in response to determining, based on a second entropy of the second set of tokens, that the one or more stopping criteria are not satisfied, generating, using the secondary generative machine learning model, a third set of tokens;
adding a second token, of the second set of tokens, to a sequence of draft tokens; and
generating a next token using the primary generative machine learning model after exiting from the secondary generative machine learning model in response to determining, based on a length of the sequence of draft tokens, that the one or more stopping criteria are satisfied.

### Claim 20

A processing system, comprising:
means for generating, using a secondary generative machine learning model associated with a primary generative machine learning model, a set of tokens having a probability distribution;
means for computing an entropy of the set of tokens based on the probability distribution;
means for determining one or more stopping criteria for the secondary generative machine learning model; and
means for generating a next token using the primary generative machine learning model after exiting from the secondary generative machine learning model based on the entropy and the one or more stopping criteria.
