[Paper Review] Chain-of-Thought Augmentation with Logit Contrast for Enhanced Reasoning in Language Models
This paper proposes Contrastive Chain-of-Thought Prompting, a method that enhances language model reasoning by contrasting logits from a chain-of-thought (CoT) prompt with those from an 'amateur' prompt lacking reasoning steps. By applying a contrastive strength hyperparameter α, the model is encouraged to rely on CoT reasoning while penalizing over-reliance on prior knowledge, leading to improved faithfulness and accuracy on reasoning benchmarks like GSM8K, AQuA, and CommonSenseQA.
Rapidly increasing model scales coupled with steering methods such as chain-of-thought prompting have led to drastic improvements in language model reasoning. At the same time, models struggle with compositional generalization and are far from human performance on many reasoning-based benchmarks. Leveraging the success of chain-of-thought prompting, and also taking inspiration from context-aware decoding (CAD), we explore input-based contrasting methods to further encourage the type of reasoning induced by chain-of-thought prompting. While work remains to stabilize these results across datasets and models, the improvements we find warrant further investigation into input-based steering methods for context-aware reasoning.
Motivation & Objective
- Address the gap in compositional generalization and faithfulness in large language models during reasoning tasks.
- Improve reasoning performance beyond standard chain-of-thought prompting by incorporating context-aware decoding.
- Investigate whether contrasting CoT prompts with low-context 'amateur' prompts can stabilize and enhance reasoning outputs.
- Reduce hallucination and over-reliance on pre-trained knowledge by steering models toward context-sensitive reasoning.
- Evaluate the effectiveness of input-based contrastive prompting across diverse reasoning benchmarks and model architectures.
Proposed method
- Use a contrastive logit function that combines logits from a chain-of-thought (CoT) prompt and an 'amateur' prompt with no reasoning steps.
- Apply the contrastive decoding rule: y_t ∝ softmax((1+α)·logit_CoT - α·logit_amateur), where α controls reliance on CoT.
- Use greedy decoding on the contrasted logits to generate step-by-step reasoning tokens.
- Define three types of amateur prompts: (1) empty, (2) with answers only, (3) with questions and answers but no CoT reasoning.
- Train and evaluate using Phi-1.5, Mistral 7B, and GPT-3.5-turbo-0125 across GSM8K, AQuA, and CommonSenseQA.
- Perform hyperparameter search on α, testing values between 0 and 1 to optimize performance on CommonSenseQA with Mistral-7B.
Experimental results
Research questions
- RQ1Can contrasting CoT reasoning with low-context amateur prompts improve reasoning accuracy on mathematical and commonsense reasoning tasks?
- RQ2How does the contrastive strength α affect model reliance on CoT versus prior knowledge or hallucinated responses?
- RQ3Does the method improve faithfulness to input context, especially when the context contradicts common knowledge?
- RQ4How do different amateur prompt designs (e.g., no context, only answers) influence the effectiveness of contrastive decoding?
- RQ5To what extent do model size and instruction tuning affect the performance gains from contrastive CoT prompting?
Key findings
- The method improves reasoning accuracy on GSM8K, AQuA, and CommonSenseQA by encouraging context-aware, step-by-step reasoning over hallucinated or off-context responses.
- GPT-3.5-turbo-0125 showed limited improvement on GSM8K and AQuA, possibly due to inherent limitations in mathematical reasoning or pre-existing instruction tuning that already incorporates similar reasoning patterns.
- Phi-1.5 exhibited poor performance on GSM8K with the method, likely due to model size limitations and contamination with the GSM8K dataset during pretraining.
- Mistral-7B showed measurable gains on CommonSenseQA with optimal α values, indicating that the method is effective on medium-sized, non-instruction-tuned models.
- Amateur prompt variants that omit reasoning steps but retain answers or questions improved context sensitivity, suggesting that minimal context can guide reasoning when contrasted with CoT.
- The effectiveness of the method is highly dependent on model architecture, prompting format, and dataset characteristics, with no consistent improvement across all models and benchmarks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.