Alpaca · Speculative Decoding

54 papers · 133 extracted observations · instruction following · language · Markdown · CSV · JSON API

Showing 3 of 3 matching observations.

YearMethodMetricScoreProtocol / FacetsPaper & Evidence
2024Llama-68M draft distilled from Llama-2-13B-chat (data-generation temperature 0.2) proposed non-standard sliceSpeedup2.23Speculative Decoding · backbone=Llama-68M · params=68M · draft-model=Llama-68M · target-model=Llama-2-13B-chat · decoding-temperature=0.2 · data-generation-temperature=0.2Temperature-Centric Investigation of Speculative Decoding with Knowledge Distillation
Source quote
L16: We focus on knowledge distillation (KD)~\citep{DBLP:journals/corr/HintonVD15} as the general investigation setting, which has been introduced as an intuitive and general solution to speculative decoding~\citep{zhou2023distillspec, liu2023online}. Particularly, KD aims to align the distributions of draft models better to that of target models. In this way, the acceptance rate of candidate tokens generated by the draft model to the target model could be boosted. Our preliminary experiments in Figure~\ref{fig:intro} validate our motivation, highlighting the impacts brought by different temperatures for both decoding and KD stages. Notably, the speedup of the decoding processes increases and peaks at a decoding temperature of 0.2 before declining as the temperature approaches 1. The impact of temperature on speedup can reach a relative difference of around 30% (\frac{2.23-1.72}{1.72}=29.7%), highlighting its importance. We also notice that KD relieves the degradation of speedup when temperature increases.
2024Llama-68M draft distilled from Llama-2-13B-chat (data-generation temperature 0.2) proposed non-standard sliceSpeedup1.72Speculative Decoding · backbone=Llama-68M · params=68M · draft-model=Llama-68M · target-model=Llama-2-13B-chat · decoding-temperature=approaching 1 · data-generation-temperature=0.2Temperature-Centric Investigation of Speculative Decoding with Knowledge Distillation
Source quote
L16: We focus on knowledge distillation (KD)~\citep{DBLP:journals/corr/HintonVD15} as the general investigation setting, which has been introduced as an intuitive and general solution to speculative decoding~\citep{zhou2023distillspec, liu2023online}. Particularly, KD aims to align the distributions of draft models better to that of target models. In this way, the acceptance rate of candidate tokens generated by the draft model to the target model could be boosted. Our preliminary experiments in Figure~\ref{fig:intro} validate our motivation, highlighting the impacts brought by different temperatures for both decoding and KD stages. Notably, the speedup of the decoding processes increases and peaks at a decoding temperature of 0.2 before declining as the temperature approaches 1. The impact of temperature on speedup can reach a relative difference of around 30% (\frac{2.23-1.72}{1.72}=29.7%), highlighting its importance. We also notice that KD relieves the degradation of speedup when temperature increases.
2024Temperature-aligned KD configurations (offline and online distillation) proposed non-standard sliceSpeedup24%Speculative Decoding · comparison=matched-temperature diagonal vs off-diagonal · distillation=offline and onlineTemperature-Centric Investigation of Speculative Decoding with Knowledge Distillation
Source quote
L123: Our study reveals that configurations along the diagonals of Figure~\ref{fig:overall} typically yield the most accelerated decoding speeds. Grids outside the diagonals show pretty large differences with values on diagonals, with a peak relative difference of 24%. This verifies the effectiveness of KD at a consistent temperature. The speedup can be attributed to the alignment of probability distributions when the KD and decoding temperatures are nearly identical or perfectly match. We posit that this alignment facilitates a more efficient decoding process. Interestingly, as the decoding temperature increases, the speedup improvement resulting from this alignment diminishes. Specifically, for offline distillation, the relative improvement transitions from 31% down to approximately 7%. Despite the challenges associated with accelerating speculative decoding at elevated temperatures, employing a uniform KD temperature for decoding --- particularly at 1.0 --- proves to be more effective than using 0. That being said, the upper right corner of Figure~\ref{fig:overall} is darker than the upper left corner. This finding further underscores the potential of KD as a remedy for alleviating the difficulty in decoding under high-temperature conditions.