# US 2026/0065098 A1 · Machine-learned speculative decoding engines

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

- Number: US 2026/0065098 A1
- Document ID: US20260065098A1
- Status: Published application
- Kind: A1
- Application number: 19/313,459
- Filed: 2025-08-28
- Published: 2026-03-05
- Earliest claimed: 2024-08-30
- Assignees: Groq, Inc.
- Applicants: Groq, Inc.
- Inventors: Andrew Esper Bitar
- Web page: https://patentgrep.com/patent/US20260065098A1

## CPC

- G06N 5/04: Inference or reasoning models
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

The present disclosure provides systems and methods for: obtaining a request; obtaining, from a draft model, a first plurality of draft tokens based on the request; determining an error rate associated with the first plurality of draft tokens; determining a modified context length for the draft model based on the error rate; and configuring the draft model based on the modified context length.

## Claims

### Claim 1

A method, comprising:
obtaining a request;
obtaining, from a draft model, a first plurality of draft tokens based on the request;
determining an error rate associated with the first plurality of draft tokens;
determining a modified context length for the draft model based on the error rate; and
configuring the draft model based on the modified context length.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
generating, by the draft model, a second plurality of draft tokens with the draft model configured based on the modified context length; and
generating an output based on at least the second plurality of draft tokens.

### Claim 3 (depends on 2)

The method of claim 2, wherein obtaining the request comprises obtaining the request from a requestor device; and
wherein the method further comprises providing the output to the requestor device.

### Claim 4 (depends on 1)

The method of claim 1, wherein determining the error rate associated with the first plurality of draft tokens comprises validating the first plurality of draft tokens by a target model.

### Claim 5 (depends on 4)

The method of claim 4, wherein an initial context length of the draft model is smaller than a context length of the target model.

### Claim 6 (depends on 4)

The method of claim 4, wherein the draft model comprises a smaller model than the target model.

### Claim 7 (depends on 4)

The method of claim 4, wherein the target model comprises a large language model (LLM).

### Claim 8 (depends on 4)

The method of claim 4, wherein determining the error rate comprises determining a ratio of rejected tokens to validated tokens.

### Claim 9 (depends on 1)

The method of claim 1, wherein determining the modified context length comprises performing a comparison of a current metric to a target metric and determining to modify a present context length of the draft model based on the comparison of the current metric to the target metric.

### Claim 10 (depends on 9)

The method of claim 9, wherein the target metric comprises a target overall throughput.

### Claim 11 (depends on 1)

The method of claim 1, wherein determining the modified context length comprises determining to increase or to decrease the context length from a current context length of the draft model.

### Claim 12 (depends on 1)

The method of claim 1, wherein configuring the draft model based on the modified context length comprises adjusting a size of a key-value cache accessed by the draft model.

### Claim 13 (depends on 1)

The method of claim 1, wherein obtaining the request, obtaining the first plurality of draft tokens, and configuring the draft model based on the modified context length are performed for a single inference task.

### Claim 14

A system, comprising:
one or more processors; and
one or more non-transitory, computer-readable media storing instructions that, when implemented, cause the one or more processors to perform operations, the operations comprising:
obtaining a request;
obtaining, from a draft model, a first plurality of draft tokens based on the request;
determining an error rate associated with the first plurality of draft tokens;
determining a modified context length for the draft model based on the error rate; and
configuring the draft model based on the modified context length.

### Claim 15 (depends on 14)

The system of claim 14, wherein the operations further comprise
generating, by the draft model, a second plurality of draft tokens with the draft model configured based on the modified context length; and
generating an output based on at least the second plurality of draft tokens.

### Claim 16 (depends on 15)

The system of claim 15, wherein obtaining the request comprises obtaining the request from a requestor device; and
wherein the operations further comprise providing the output to the requestor device.

### Claim 17 (depends on 14)

The system of claim 14, wherein determining the error rate associated with the first plurality of draft tokens comprises validating the first plurality of draft tokens by a target model.

### Claim 18 (depends on 16)

The system of claim 16, wherein determining the error rate comprises determining a ratio of rejected tokens to validated tokens.

### Claim 19 (depends on 14)

The system of claim 14, wherein determining the modified context length comprises performing a comparison of a current metric to a target metric and determining to modify a present context length of the draft model based on the comparison of the current metric to the target metric.

### Claim 20

One or more non-transitory, computer-readable media storing instructions that, when implemented, cause one or more processors to perform operations, the operations comprising:
obtaining a request;
obtaining, from a draft model, a first plurality of draft tokens based on the request;
determining an error rate associated with the first plurality of draft tokens;
determining a modified context length for the draft model based on the error rate; and
configuring the draft model based on the modified context length.
