Temperature-Dependent Performance of Prompting Strategies in Extended Reasoning Large Language Models
Organizations: Department of Computer Engineering, Gujarat Technological University, India · The University of Texas MD Anderson Cancer Center, Texas, USA
Abstract
Extended reasoning models represent a transformative shift in Large Language Model (LLM) capabilities by enabling explicit test-time computation for complex problem solving. However, the optimal configuration of sampling temperature and prompting strategy for these systems remains largely underexplored. We systematically evaluate chain-of-thought and zero-shot prompting across four temperature settings (0.0, 0.4, 0.7, and 1.0) using Grok-4.1 with extended reasoning on 39 mathematical problems from AMO-Bench, a challenging International Mathematical Olympiad-level benchmark. We find that zero-shot prompting achieves peak performance at moderate temperatures, reaching 59% accuracy at T=0.4 and T=0.7, while chain-of-thought prompting performs best at the temperature extremes. Most notably, the benefit of extended reasoning increases from 6x at T=0.0 to 14.3x at T=1.0. These results suggest that temperature should be optimized jointly with prompting strategy, challenging the common practice of using T=0 for reasoning tasks.
Figures & tables
| Temperature | Correct / Total | Accuracy (%) |
|---|---|---|
| 0.0 (Deterministic) | 49 / 156 | 31.4% |
| 0.4 (Moderate) | 50 / 156 | 32.1% |
| 0.7 (Moderate) | 50 / 156 | 32.1% |
| 1.0 (High) | 46 / 156 | 29.5% |
| Temp | No Reasoning | With Reasoning | Multiplier |
|---|---|---|---|
| 0.0 | 9.0% (7/78) | 53.8% (42/78) | 6.0 |
| 0.4 | 7.7% (6/78) | 56.4% (44/78) | 7.3 |
| 0.7 | 9.0% (7/78) | 55.1% (43/78) | 6.1 |
| 1.0 | 3.8% (3/78) | 55.1% (43/78) | 14.3 |
| Temperature ( ) | Zero-Shot | Chain-of-Thought | (pp) |
|---|---|---|---|
| 0.0 (Deterministic) | 53.8% (21/39) | 53.8% (21/39) | 0.0 |
| 0.4 (Moderate) | 59.0% (23/39) | 53.8% (21/39) | +5.2 |
| 0.7 (Moderate) | 59.0% (23/39) | 51.3% (20/39) | +7.7 |
| 1.0 (High) | 51.3% (20/39) | 59.0% (23/39) | -7.7 |
LLM Prompting
Large language model prompting studies how instructions, examples, context, and formats steer model behavior at inference time.
See all 429 papers