Distillation Contrastive Decoding: Improving LLMs Reasoning with Contrastive Decoding and Distillation

Phuc Phan, Hieu Tran, Long Phan
2/21/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: pphuc25/distil-cd (35 stars, last commit 2024-02-27).

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.

View on arXivView PDF

Code Implementations(1)

pphuc25/distil-cdCommunity100%

Distillation Contrastive Decoding: Improving LLMs Reasoning with Contrastive Decoding and Distillation

351Shell, PythonFeb 16, 20242 years ago
arithmetic-reasoningcontrastive-cot-promptingcontrastive-decodingdecodingdistillation-contrastive-decoding+3 more

Similar Papers

Cite this paper

@article{phan2024distillation,
  title  = {Distillation Contrastive Decoding: Improving LLMs Reasoning with Contrastive Decoding and Distillation},
  author = {Phuc Phan and Hieu Tran and Long Phan},
  year   = {2024},
  eprint = {2402.14874},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.14874v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.14874.svg)](https://codeofpaper.com/paper/2402.14874)

Discussion