Speculative Decoding Policy for Multi-Expert Draft Model Selection
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Large language models (LLMs) are resource-intensive and their auto-regressive decoding process is computationally slow, limiting their applicability in resource-constrained settings, and existing speculative decoding methods do not efficiently scale with multiple expert models.
Innovation Solution
A policy is trained to select a draft model that maximally aligns with an expert model using a contextual bandits framework, allowing for efficient draft model selection and integration of new models without retraining the pipeline, facilitating faster text generation.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If speculative decoding is used with a draft model and expert model, then text generation speed is improved, but model selection complexity increases
Solution Approach 1:
The system employs a policy network that automatically selects the appropriate draft model for each input sequence without human intervention. The policy network evaluates the input and autonomously determines which draft model (from multiple available options) will work best with the expert model, enabling the system to serve itself by making intelligent model selections based on the specific task at hand.
Solution Approach 2:
The system dynamically adapts model selection based on the specific input sequence characteristics. Rather than using a fixed draft model for all inputs, the policy network adjusts its selection in real-time according to the input's properties, allowing the system to optimize performance for diverse text generation tasks while managing complexity through adaptive rather than static model pairing.
2Measurement precision
If multiple draft models are used for different expert models, then alignment accuracy is improved, but training and integration complexity increases
Solution Approach 1:
The policy network serves as a universal selector that can choose from multiple draft models for different expert models based on a unified decision-making framework. This single policy network handles the complexity of matching multiple draft models with multiple expert models, providing a multi-functional solution that improves alignment accuracy without requiring separate training pipelines for each model pair.
Solution Approach 2:
The policy network acts as an intermediary between the pool of draft models and expert models. Rather than directly pairing specific draft models with specific expert models through complex integration, the policy network mediates the selection process by evaluating inputs and routing them to the most suitable draft-expert model pairs, thereby improving alignment while simplifying the overall system architecture.
3Device complexity
If a fixed draft model is used for all inputs, then system simplicity is maintained, but performance across diverse domains deteriorates
Solution Approach 1:
The system transitions from a static, fixed draft model approach to a dynamic model selection approach. The policy network enables the system to adaptively choose the most appropriate draft model for each input sequence, allowing the system to maintain simplicity in its core architecture while achieving high performance across diverse domains through dynamic adaptation rather than fixed configurations.
Data Source
AI summary
A method for generating output using multiple large language models (LLMs) including at least one expert model and a plurality of draft models is disclosed. A selection policy that is configured to select, for each of the at least one expert model, a draft model that is maximally aligned with the expert model is trained. The policy is trained using a training dataset comprising inputs from multiple contexts. Upon receiving a first user input, a pair of expert and draft models for processing the first user input using the trained policy is determined. The output is generated using the determined pair of models.


