Speculative Decoding Early Exit Using Token Entropy

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing speculative decoding techniques in generative machine learning models suffer from inefficiencies due to fixed draft lengths and suboptimal early exiting methods, leading to wasted computational resources and variable performance based on acceptance rates of draft tokens.

Innovation Solution

Implement entropy-based early exiting criteria that evaluate the entire probability distribution of draft model outputs to dynamically adjust the stopping point, combined with adaptive acceptance rate thresholds to optimize computational efficiency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of manufacture

If fixed draft lengths are used in speculative decoding, then the implementation is simple, but computational resources are wasted and performance varies based on acceptance rates

Engineering Contradiction:
Improveimplementation simplicityVSAvoidcomputational efficiency
Core Design Contradiction:
Ease of manufactureVSProductivity

Solution Approach 1:

The patent implements dynamic early exiting by computing entropy of the draft model's probability distribution at each decoding step. When entropy falls below a threshold, the draft model exits early and transfers control to the target model. This dynamic adjustment of draft length based on actual uncertainty resolves the contradiction by adapting the simple fixed-length approach to variable-length execution, improving computational efficiency without significantly complicating implementation.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent changes the parameter of draft length from fixed to variable by introducing entropy-based stopping criteria. The entropy value, computed from the draft model's probability distribution, serves as a dynamic parameter that determines when to switch from draft to target model. This parameter change enables the system to optimize computational resources by extending or shortening the draft phase based on actual token uncertainty.

Inventive Principle:
Principle #35Parameter changes

2Productivity

If early exiting is implemented without entropy-based criteria, then the system switches between models frequently, but performance becomes variable and computational resources are not optimized

Engineering Contradiction:
Improvetoken generation speedVSAvoidperformance consistency
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent implements feedback by continuously monitoring the entropy of the draft model's probability distribution during token generation. This entropy feedback provides real-time information about token uncertainty, allowing the system to make informed decisions about when to switch models. The feedback mechanism ensures consistent performance by only exiting early when uncertainty is genuinely low, preventing premature or inappropriate model switches.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent replaces mechanical early exiting methods (such as fixed-length drafting or simple acceptance rate thresholds) with an entropy-based decision mechanism. Instead of relying on rigid mechanical rules, the system uses information-theoretic entropy computation to dynamically determine switching points, resulting in more reliable and consistent performance across different decoding scenarios.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

3Quantity of substance

If the draft model generates tokens with high uncertainty, then more tokens can be generated by the draft model, but computational resources are wasted on low-quality tokens

Engineering Contradiction:
Improvenumber of draft tokensVSAvoidcomputational resource waste
Core Design Contradiction:
Quantity of substanceVSLoss of energy

Solution Approach 1:

The patent converts the harmful effect of high uncertainty (which would normally lead to wasted computational resources) into a beneficial early-exiting signal. By monitoring entropy, the system identifies when uncertainty becomes high and uses this information to trigger early exiting, preventing further waste of computational resources on low-quality tokens. The entropy metric transforms the problem of uncertainty into a useful control signal.

Inventive Principle:
Principle #22Blessing in disguise (Convert harm into benefit)

Data Source

PatentUS20260065143A1Entropy-based early stopping for speculative decoding in generative machine learning models
Publication Date: 2026.03.05 QUALCOMM INC
  • US20260065143A1 patent drawing
  • US20260065143A1 patent drawing
  • US20260065143A1 patent drawing

AI summary

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.