# US 2026/0093960 A1 · Large language model inferencing acceleration techniques

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

- Number: US 2026/0093960 A1
- Document ID: US20260093960A1
- Status: Published application
- Kind: A1
- Application number: 18/901,142
- Filed: 2024-09-30
- Published: 2026-04-02
- Earliest claimed: 2024-09-30
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: Yao Cui Fehlis; Jalal Uddin Mahmud
- Web page: https://patentgrep.com/patent/US20260093960A1

## CPC

- G06N 3/047: Probabilistic or stochastic networks
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06N 3/045: Combinations of networks
- G06N 3/092: Reinforcement learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method includes generating a plurality of tokens from a prompt to a large language model (LLM). The method includes, in one or more iterations, using a first neural network to output a set of speculative decoding parameters selected from a plurality of sets of speculative decoding parameters. Additionally, in the one or more iterations, the method includes performing speculative decoding using the set of speculative decoding parameters to generate a subsequent plurality of tokens appended to the plurality of tokens from on the prompt or from a previous iteration to generate an updated plurality of tokens and collecting a runtime of the speculative decoding. The one or more iterations are repeated until the updated plurality of tokens reaches a maximum token length. The first neural network is trained to output sets of speculative decoding parameters to minimize a sum of runtimes during the one or more iterations.

## Claims

### Claim 1

A method comprising:
generating a plurality of tokens from a prompt to a large language model (LLM);
in one or more iterations:
using a first neural network, outputting a set of speculative decoding parameters selected from a plurality of sets of speculative decoding parameters; and
performing speculative decoding using the set of speculative decoding parameters to generate a subsequent plurality of tokens appended to the plurality of tokens from the prompt or from a previous iteration to generate an updated plurality of tokens; and
collecting a runtime of the speculative decoding; and
repeating the one or more iterations until the updated plurality of tokens reaches a maximum token length,
wherein the first neural network is trained to output sets of speculative decoding parameters to minimize a sum of runtimes of the one or more iterations.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first neural network generates a probability distribution defined by the plurality of sets of speculative decoding parameters and selects the set of speculative decoding parameters based on the probability distribution.

### Claim 3 (depends on 1)

The method of claim 1,
wherein a second neural network predicts a reward based on the runtime collected in the one or more iterations, wherein the reward is inversely proportional to or a negative multiple of the runtime.

### Claim 4 (depends on 3)

The method of claim 3, wherein the second neural network is trained to maximize the reward.

### Claim 5 (depends on 1)

The method of claim 1, wherein one speculative decoding parameter of the set speculative decoding parameters is a look ahead token length.

### Claim 6 (depends on 1)

The method of claim 1, wherein one speculative decoding parameter of the set speculative decoding parameters is a size of a draft model.

### Claim 7 (depends on 6)

The method of claim 6, wherein the size of the draft model is determined by selecting one draft model from a plurality of differently sized models of a common model family.

### Claim 8 (depends on 7)

The method of claim 7, wherein the selected one draft model is smaller than a target model used in the speculative decoding, wherein the target model is one of the plurality of differently sized models of the common model family.

### Claim 9

A processor configured to:
generate a plurality of tokens from a prompt to a large language model (LLM);
in one or more iterations:
using a first neural network, output a set of speculative decoding parameters selected from a plurality of sets of speculative decoding parameters; and
perform speculative decoding using the set of speculative decoding parameters to generate a subsequent set of tokens appended to the plurality of tokens based on the prompt or from a previous iteration to generate an updated plurality of tokens; and
collect a runtime of the speculative decoding; and
repeat the one or more iterations until the updated plurality of tokens reaches a maximum token length,
wherein the processor is configured to train the first neural network to output sets of speculative decoding parameters to minimize a sum of runtimes of the one or more iterations.

### Claim 10 (depends on 9)

The processor of claim 9, wherein the processor implements the first neural network to generate a probability distribution defined by the plurality of sets of speculative decoding parameters, and wherein the processor is configured to select the set of speculative decoding parameters based on the probability distribution.

### Claim 11 (depends on 9)

The processor of claim 9, wherein the processor implements a second neural network to predict a reward based on the runtime collected in the one or more iterations, wherein the reward is inversely proportional to or a negative multiple of the runtime.

### Claim 12 (depends on 11)

The processor of claim 11, wherein the second neural network is trained to maximize the reward.

### Claim 13 (depends on 9)

The processor of claim 9, wherein one speculative decoding parameter of the set of speculative decoding parameters is a look ahead token length.

### Claim 14 (depends on 9)

The processor of claim 9, wherein one speculative decoding parameter of the set of speculative decoding parameters is a size of a draft model.

### Claim 15 (depends on 14)

The processor of claim 14, wherein the size of the draft model is determined by selecting one draft model from a plurality of differently sized models of a common model family.

### Claim 16 (depends on 15)

The processor of claim 15, wherein the selected one draft model is smaller than a target model used in the speculative decoding, wherein the target model is one of the plurality of differently sized models of the common model family.

### Claim 17

A system comprising:
a memory configured to store a plurality of speculative decoding parameters;
a processor configured to, in one or more iterations:
retrieve, from the memory, a set of speculative decoding parameters from the plurality of speculative decoding parameters;
perform speculative decoding using the set of speculative decoding parameters to generate a subsequent set of tokens appended to a plurality of tokens generated from a prompt or from a previous iteration to generate an updated plurality of tokens; and
collect a runtime of the speculative decoding; and
repeat the one or more iterations until the updated plurality of tokens reaches a maximum token length,
wherein the processor is configured to implement a first neural network to retrieve sets of speculative decoding parameters from the memory to minimize a sum of runtimes of the one or more iterations.

### Claim 18 (depends on 17)

The system of claim 17, the processor configured to implement a second neural network to predict a reward based on the runtime collected in the one or more iterations, wherein the reward is inversely proportional to or a negative multiple of the runtime, wherein the second neural network is trained to maximize the reward.

### Claim 19 (depends on 17)

The system of claim 17, wherein one speculative decoding parameter of the set of speculative decoding parameters is a look ahead token length.

### Claim 20 (depends on 17)

The system of claim 17, wherein one speculative decoding parameter of the set of speculative decoding parameters is a size of a draft model, wherein the size of the draft model is determined by selecting one draft model from a plurality of differently sized models of a common model family.
