Distillation Contrastive Decoding: Improving LLMs Reasoning with Contrastive Decoding and Distillation
Phuc Phan, Hieu Tran, Long Phan
TL;DR
This work introduces Distillation Contrastive Decoding (DCD), a method to improve LLM reasoning during inference by fusing Contrastive Chain-of-thought Prompting with distillation techniques. DCD removes the need for an external amateur model by using Dropout and Quantization to distill amateur-like reasoning signals and contrasts them with an expert's valid CoT, formalized as $s=(1+β)s_e-β s_a$. Empirically, DCD achieves significant gains on GSM8K and StrategyQA across multiple base models, outperforming Contrastive Decoding and Contrastive Prompting baselines while achieving efficiency benefits. The paper also analyzes distillation variants, identifying optimal dropout ranges and highlighting that quantization alone may not always help, and discusses limitations and directions for scaling to larger, more capable models and more complex reasoning tasks.
Abstract
We propose a straightforward approach called Distillation Contrastive Decoding (DCD) to enhance the reasoning capabilities of Large Language Models (LLMs) during inference. In contrast to previous approaches that relied on smaller amateur models or analysis of hidden state differences, DCD employs Contrastive Chain-of-thought Prompting and advanced distillation techniques, including Dropout and Quantization. This approach effectively addresses the limitations of Contrastive Decoding (CD), which typically requires both an expert and an amateur model, thus increasing computational resource demands. By integrating contrastive prompts with distillation, DCD obviates the need for an amateur model and reduces memory usage. Our evaluations demonstrate that DCD significantly enhances LLM performance across a range of reasoning benchmarks, surpassing both CD and existing methods in the GSM8K and StrategyQA datasets.
