Introduction
Prompt engineering is frequently marketed as a universal solution for enhancing the performance of Large Language Models (LLMs). However, recent investigations suggest that these linguistic interventions may have limited efficacy when applied to the rigors of formal logic and arithmetic. This study evaluates common prompting strategies—such as persona adoption and conversational context—to determine their impact on ChatGPT-3.5’s mathematical reasoning. The findings indicate that many popular techniques fail to provide consistent improvements and, in several instances, actively degrade the model's performance.
Problem Statement
While LLMs have demonstrated remarkable proficiency in natural language tasks, complex mathematical reasoning remains a significant challenge. To address this "Achilles' heel," various prompting techniques have been proposed, including assigning the model an "expert" persona or utilizing "Chain of Thought" (CoT) contexts. Despite their popularity, evidence for these methods is often anecdotal. This research systematically investigates whether prescriptive prompting can truly "prime" an LLM's internal logic or if such effects are merely cosmetic.
Methodology
The researchers categorized ten distinct prompts into three primary frameworks:
- Simple Prompting: Initial biasing of the model (e.g., "This is a difficult question").
- Persona Prompting: Assigning specific identities, such as "High Confidence" or "Low Confidence" personas.
- Conversational Prompting: Utilizing "two-shot" dialogues to establish context before presenting the target problem.
To facilitate objective evaluation, the team employed GPT-Grader, an automated script designed to parse the model's verbose outputs. This tool was essential for reconciling format variations, such as matching a model's response of "1/4" to a ground truth of "0.25."
Datasets and Evaluation
The study utilized three benchmark datasets representing varying levels of mathematical complexity:
- MATH: 12,500 problems spanning high school to college-level calculus and linear algebra.
- GSM8K: 8,500 grade school word problems.
- MMLU (Massive Multitask Language Understanding): Multiple-choice questions focused on abstract algebra and elementary mathematics.
Key Insights
The study revealed a significant "Generalization Gap": linguistic improvements do not necessarily correlate with logical accuracy. A strategy that enhances creative output may be detrimental to arithmetic precision.
One of the most critical findings involved the "No Explanation" persona. When the model was discouraged from step-by-step reasoning, performance collapsed across all datasets. This underscores the necessity of "Chain of Thought" processes; without the intermediate "work," the model's ability to reach correct conclusions is severely compromised. Furthermore, the model exhibited extreme sensitivity to problem distribution, where a prompt beneficial for one dataset (e.g., MMLU) significantly hindered performance on another (e.g., GSM8K).
Results Summary
Baseline accuracies for ChatGPT-3.5 were established at 29.2% (MATH), 82.0% (GSM8K), and 79.5% (MMLU).
- Conversational Prompting: Increased MMLU accuracy by 11.8% but caused a 28% decline on GSM8K.
- Persona Effects: The "High Confidence" persona yielded a marginal 2.4% gain on MATH but a 17.5% loss on MMLU.
- Reasoning Suppression: Forcing "No Explanation" led to drastic accuracy drops of 63.2% (GSM8K) and 58.7% (MMLU).
- Topic Priming: Simple prompts like "This is a Geometry question" actually decreased MATH accuracy by 3.2%.
Conclusion and Future Directions
The results suggest that "psychological priming" of LLMs is largely ineffective for mathematical tasks. Future work should explore these dynamics in more advanced models like GPT-4 and investigate whether specialized "meta-prompts" can be tailored to specific mathematical sub-fields. While automated grading remains a challenge, refining tools like GPT-Grader will be essential for future large-scale evaluations.
Summary updated