Reproduce “Contrastive Decoding Improves Reasoning in Large Language Models” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Sean O'Brien, Mike Lewis
Researchers from Meta AI and UCSD demonstrated that Contrastive Decoding (CD) significantly enhances the reasoning abilities of large language models without additional training, achieving up to an 8 absolute percentage point improvement on benchmarks like GSM8K with minimal computational overhead. This method allows models to surpass the performance of larger, more recent models on several reasoning tasks.
Key insights
- Contrastive Decoding acts as a unified decoding strategy, effectively bridging the gap between open-ended generation and structured reasoning tasks, offering a general-purpose method for LLM text generation.
- CD improves reasoning by encouraging more genuine, structured thought processes, evidenced by reduced prompt copying and a shift from semantic misunderstandings to arithmetic errors in problem-solving.
- The effectiveness of the contrastive penalty is highly dependent on the "weakness" of the amateur model; smaller or partially-trained amateur models are more beneficial than larger, fully-trained ones.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.