Does sampling temperature change accuracy? Swift 1.5 IQ4_XS-M on GPQA Diamond and LiveCodeBench v6
This dataset holds the graded results of a temperature sweep. We ran one quantized reasoning model at six sampling temperatures (0, 0.25, 0.5, 0.75, 0.9 and 1.0), several random seeds each, on two benchmarks, and compared every temperature against temperature 1.0 question by question.
- Model: jakeatx/ATX-Swift-1.5-Qwen3.8-27B-Uncensored-IQ4_XS-M-GGUF (a 27B-parameter model, quantized to roughly 4 bits per weight; "IQ4_XS-M" is the file's quantization recipe).
- Engine: llamAmpere v0.5.3.
- Benchmarks: GPQA Diamond (198 graduate-level multiple-choice science questions) and the 100 newest "hard" problems of LiveCodeBench release v6 (code generation).
The files contain per-question results only: right or wrong, how many tokens the model generated, and whether it hit the length cap. They contain no question text, no model output and no code.
Short answer
Plain-English version, with every claim backed by the tables below.
- GPQA Diamond (multiple choice): no detectable difference between any temperature and 1.0. All intervals include zero. Temperatures 0.25, 0.5 and 0.75 differed from 1.0 by -0.2, +1.3 and +1.2 percentage points. This test could have detected a gap of roughly 3.5 points; smaller gaps are neither confirmed nor ruled out.
- LiveCodeBench hard-100 (code): lower temperature scored lower, and the gap grows as temperature falls. Temperature 0 was 15.0 points below 1.0 and temperature 0.25 was 6.7 points below; both are significant at the 95% level. Temperatures 0.5, 0.75 and 0.9 were 4.1, 3.0 and 3.0 points below 1.0, with intervals that include zero (no detectable difference at this sample size; the test could have detected gaps of roughly 6.5 points).
- Low temperature also made the model ramble. On code problems, temperature 0 and 0.25 used 7,067 and 5,028 more generated tokens per problem than 1.0 (both significant), and more of their requests ended by hitting the 100,000-token limit, mostly while stuck repeating the same text (9% of requests at temperature 0, 5.7% at 0.25, 0.3% at 1.0).
Terms used in this report
- Temperature: how random the model's word choices are. At 0 it always takes the most likely next token (a token is a word piece). At 1.0 it samples from the model's full probability spread. All other sampling settings were held fixed: top_p 0.95 (sample only from the smallest set of tokens covering 95% of the probability), top_k 20 (never consider more than the 20 most likely tokens), min_p 0, no repetition or presence penalty.
- Seed: the number that fixes the random draws, so a run can be repeated. The same seed numbers were used at every temperature.
- Paired comparison: the same question at the same seed, answered at temperature T and at 1.0. Subtracting question by question removes the effect of how hard each question is.
- 95% paired-bootstrap confidence interval (CI): we resample the pairs with replacement 10,000 times (fixed resampling seed 20261012) and recompute the accuracy difference each time. The middle 95% of those results is the interval. We call a difference significant when the two-tailed interval excludes 0 (p <= .05). An interval that includes 0 means no detectable difference at this sample size. It does not mean the effect is zero.
- pp: percentage points (80% to 83% is +3 pp).
- Minimum detectable difference (MDD, 80% power): roughly the smallest true difference this sample would detect 4 times out of 5, computed as 2.8 x SD / sqrt(n), where SD is the standard deviation of the per-pair differences and n the number of pairs. A real effect smaller than the MDD would usually be missed.
- GPQA hard-100 slice: the 100 of the 198 questions this model answered correctly least often in six earlier attempts (lowest prior pass rate first, ties broken by longer answers). Its absolute accuracy is lower than the full set by construction. The index list is
gpqa_hard100_idx.json. - LCB v6 hard-100: the 100 newest problems labeled "hard" by LiveCodeBench itself in release v6 (contest dates 2024-12-07 to 2025-04-06; 73 AtCoder, 27 LeetCode). They were chosen by the benchmark's own label and date, before any run, and the list is frozen in
lcb_hard100_ids.json. A program passes only if it passes every hidden test case. - Length cap and loop: each request could generate at most 100,000 tokens. A request "hit the cap" if it stopped for length. We call it a loop if it hit the cap and the last 8,000 characters of its text compress (zlib level 9) to under 20% of their size, meaning the text ends in heavy repetition. On the capped code requests the compression ratios split into two clean groups (0.005 to 0.156 for repeated tails, 0.311 to 0.435 for answers still reasoning normally), so the 20% threshold did not decide any case.
- Generated tokens: the server's
completion_tokens, hidden thinking plus visible answer.
What was tested and why
Reasoning models are usually shipped with a recommended sampling temperature (here 1.0 with top_p 0.95 and top_k 20). Users often lower it hoping for more reliable answers, especially for code. We wanted to know, with enough repeats to put error bars on it, whether lowering the temperature actually helps, hurts or does nothing on a hard science benchmark and a hard coding benchmark.
Setup as run
- Model: Swift 1.5 IQ4_XS-M GGUF (link above). Engine: llamAmpere v0.5.3, serving several requests at once (batched serving).
- Server settings: all layers on GPU, flash attention on, KV cache stored as tq5_0 for keys and turbo4 for values (compressed cache formats), multi-token-prediction drafter on (a speed feature), 131,072 tokens of context per request, maximum 100,000 generated tokens per request.
- Reasoning effort: medium (the model's built-in setting for how long it thinks).
- Sampling: temperature as listed, top_p 0.95, top_k 20, min_p 0. Each request got its own fixed random seed: GPQA used seed x 1000 + question index; LiveCodeBench used the run seed.
- GPQA grading: the model's final line "Answer: X" is read with a pattern match. A missing answer counts as wrong.
- LiveCodeBench grading: the benchmark's standard chat prompt, the last complete fenced code block is extracted, and the program is run against a pinned copy of the benchmark's tests with CPython 3.11, one CPU core, a 4 GiB memory limit, a 180-second limit and no network. A missing code block counts as a fail.
- Every temperature ran on the same engine build, the same model file (checksum verified) and the same settings. A request that had to be re-run keeps its first graded row; identical copies of an already-graded row are counted once.
Design and how much is complete
The core grid was 13 cells, where a cell is one temperature x seed with both benchmarks (temperature 0 had one seed; 0.25, 0.5, 0.75 and 1.0 had seeds 0, 1 and 2). We then extended the code benchmark with temperature 0.9 (new) and extra seeds at 0.75 and 0.9.
| seed 0 | seed 1 | seed 2 | seed 3 | seed 4 | |
|---|---|---|---|---|---|
| GPQA, temp 0 | 198/198 | - | - | - | - |
| GPQA, temps 0.25 / 0.5 / 0.75 / 1.0 | 198/198 each | 198/198 each | 198/198 each | - | - |
| LCB, temp 0 | 100/100 | - | - | - | - |
| LCB, temps 0.25 / 0.75 / 1.0 | 100/100 each | 100/100 each | 100/100 each | - | - |
| LCB, temp 0.5 | 100/100 | 92/100 | 100/100 | - | - |
| LCB, temp 0.75 (extension) | (above) | (above) | (above) | 2/100 | 0/100 |
| LCB, temp 0.9 (extension) | 100/100 | 100/100 | 100/100 | 100/100 | 93/100 |
- GPQA: 13 of 13 cells complete (2,574 graded question-runs, the full 198 questions at every temperature and seed).
- LCB: 12 of 13 core cells complete. The one exception is temperature 0.5 seed 1, with 92 of 100 tasks graded: 8 requests ended when the server connection dropped on all three attempts, so they have no answer and are left out (they are not counted as failures).
- LCB extension: temperature 0.9 has 4 complete seeds plus a 93-task fifth seed; temperature 0.75 has 3 complete seeds (the seed 3 and 4 runs were not finished, 2 tasks graded).
- Total: 4,361 graded rows in
per_question_results.csv(2,574 GPQA, 1,787 LCB). The columncell_completemarks rows from fully graded cells. - The paired comparisons use seeds 0-2, where every temperature has a matching 1.0 run (1.0 has no seed 3 or 4). Seeds 3 and 4 enter only the "every complete seed" table below.
Results
All differences are temperature T minus temperature 1.0, in percentage points. "Significant" means the two-tailed 95% paired-bootstrap interval excludes 0. Pairs are (question, seed). Temperature 0 has one seed and is paired with seed 0 of temperature 1.0. Seeds 0-2 only.
Accuracy per temperature (pooled over complete seeds 0-2; temperature 0: seed 0 only; 95% bootstrap CI)
| temp | GPQA Diamond (198) | GPQA hard-100 slice | LCB v6 hard-100 |
|---|---|---|---|
| 0 | 81.3% (75.8 to 86.4), n=198 | 64.0% (55.0 to 73.0), n=100 | 70.0% (61.0 to 79.0), n=100 |
| 0.25 | 81.6% (78.5 to 84.8), n=594 | 64.0% (58.7 to 69.3), n=300 | 76.0% (71.0 to 80.7), n=300 |
| 0.5 | 83.2% (80.1 to 86.2), n=594 | 67.7% (62.3 to 72.7), n=300 | 76.0% (70.0 to 82.0), n=200 (seeds 0 and 2) |
| 0.75 | 83.0% (80.0 to 85.9), n=594 | 67.0% (61.7 to 72.3), n=300 | 79.7% (75.0 to 84.0), n=300 |
| 0.9 | not run | not run | 79.7% (75.0 to 84.3), n=300 (seeds 0-2); 80.5% (76.5 to 84.2), n=400 (seeds 0-3) |
| 1.0 | 81.8% (78.6 to 84.8), n=594 | 65.3% (60.0 to 70.7), n=300 | 82.7% (78.3 to 87.0), n=300 |
At temperature 0.5 the pooled LCB row leaves out the incomplete seed 1 cell so every row covers the same full task list; the paired table below does use its 92 graded tasks.
Paired difference versus temperature 1.0 (primary result)
| benchmark | temp | pairs | accuracy at T / at 1.0 | difference (pp) | 95% CI (pp) | significant? | T right, 1.0 wrong / 1.0 right, T wrong | MDD (80% power) |
|---|---|---|---|---|---|---|---|---|
| GPQA Diamond | 0 | 198 | 81.3 / 83.3 | -2.0 | -6.1 to +2.0 | no | 6 / 10 | 5.7 pp |
| GPQA Diamond | 0.25 | 594 | 81.6 / 81.8 | -0.2 | -2.5 to +2.2 | no | 24 / 25 | 3.3 pp |
| GPQA Diamond | 0.5 | 594 | 83.2 / 81.8 | +1.3 | -1.0 to +3.7 | no | 30 / 22 | 3.4 pp |
| GPQA Diamond | 0.75 | 594 | 83.0 / 81.8 | +1.2 | -1.3 to +3.7 | no | 32 / 25 | 3.6 pp |
| GPQA hard-100 | 0 | 100 | 64.0 / 67.0 | -3.0 | -11.0 to +4.0 | no | 6 / 9 | 10.9 pp |
| GPQA hard-100 | 0.25 | 300 | 64.0 / 65.3 | -1.3 | -5.7 to +3.0 | no | 20 / 24 | 6.2 pp |
| GPQA hard-100 | 0.5 | 300 | 67.7 / 65.3 | +2.3 | -2.0 to +6.7 | no | 26 / 19 | 6.3 pp |
| GPQA hard-100 | 0.75 | 300 | 67.0 / 65.3 | +1.7 | -3.0 to +6.3 | no | 28 / 23 | 6.7 pp |
| LCB hard-100 | 0 | 100 | 70.0 / 85.0 | -15.0 | -23.0 to -7.0 | yes | 2 / 17 | 11.5 pp |
| LCB hard-100 | 0.25 | 300 | 76.0 / 82.7 | -6.7 | -11.3 to -2.0 | yes | 16 / 36 | 6.7 pp |
| LCB hard-100 | 0.5 | 292 | 78.8 / 82.9 | -4.1 | -8.6 to +0.3 | no | 17 / 29 | 6.5 pp |
| LCB hard-100 | 0.75 | 300 | 79.7 / 82.7 | -3.0 | -7.3 to +1.3 | no | 18 / 27 | 6.3 pp |
| LCB hard-100 | 0.9 | 300 | 79.7 / 82.7 | -3.0 | -7.7 to +1.7 | no | 19 / 28 | 6.4 pp |
How to read it:
- GPQA Diamond and the hard-100 slice: no temperature differs detectably from 1.0. The observed differences range from -3.0 to +2.3 points with no consistent direction, and the MDD is about 3.3 to 3.6 points on the full set (6 to 7 points on the 100-question slice, 5.7 and 10.9 for the single-seed temperature 0). A real effect smaller than that would usually be missed.
- LCB temperature 0 and 0.25: significantly worse than 1.0. At temperature 0, 17 tasks were solved only at 1.0 and 2 only at 0.
- LCB temperatures 0.5, 0.75 and 0.9: 3 to 4 points below 1.0 with intervals that include 0. The MDD is about 6.5 points, so a gap of 3 to 4 points is below what this test detects. The 0.5 interval barely includes 0 (upper end +0.3).
- Number of comparisons: this table makes 13 comparisons at the 95% level, so about 0.65 false positives would be expected by chance if nothing were going on. The temperature 0 result is far from the cutoff (interval end -7.0); the temperature 0.25 result is closer (interval end -2.0), so treat it as probable rather than certain.
Robustness: bootstrap over questions
Seeds of the same question are related, so we repeated the test resampling whole questions (all seeds of a question together) instead of (question, seed) pairs. Every conclusion above is unchanged except one: LCB at temperature 0.5 becomes significant (-4.1 pp, CI -8.2 to -0.3), a borderline result (the interval ends 0.3 points from zero). All other rows keep the same verdict; the full table is in tables.md.
LCB using every complete seed (including the seed 3-4 extension)
Per-task pass rate at temperature T averaged over all its complete seeds, minus the per-task pass rate at 1.0 averaged over its 3 seeds; 100 tasks, bootstrap over tasks. Seeds 3 and 4 have no matching 1.0 run, so they cannot be paired one-to-one; this is the way we use them.
| temp | complete seeds at T | pass at T | pass at 1.0 | difference (pp) | 95% CI (pp) | significant? | MDD |
|---|---|---|---|---|---|---|---|
| 0.25 | 3 | 76.0% | 82.7% | -6.7 | -11.7 to -1.7 | yes | 7.3 pp |
| 0.5 | 2 (seeds 0 and 2) | 76.0% | 82.7% | -6.7 | -11.3 to -2.5 | yes | 6.4 pp |
| 0.75 | 3 | 79.7% | 82.7% | -3.0 | -7.7 to +1.3 | no | 6.5 pp |
| 0.9 | 4 (seeds 0-3) | 80.5% | 82.7% | -2.2 | -5.9 to +1.5 | no | 5.4 pp |
The pass rate climbs steadily with temperature (70.0, 76.0, 76.0, 79.7, 80.5, 82.7 for temperatures 0, 0.25, 0.5, 0.75, 0.9, 1.0), which is consistent with a smooth trend; the individual 0.5 to 0.9 steps are within noise.
Generated tokens, length cap and loops (seeds 0-2 pooled)
| benchmark | temp | requests | mean tokens (95% CI) | median | hit the cap | loops | paired token difference vs 1.0 (95% CI) |
|---|---|---|---|---|---|---|---|
| GPQA | 0 | 198 | 4,085 (3,317 to 4,935) | 2,028 | 0 | 0 | +294 (-234 to +870) |
| GPQA | 0.25 | 594 | 3,969 (3,571 to 4,387) | 2,100 | 0 | 0 | +178 (-53 to +422) |
| GPQA | 0.5 | 594 | 3,988 (3,571 to 4,425) | 2,162 | 0 | 0 | +197 (-70 to +473) |
| GPQA | 0.75 | 594 | 3,980 (3,577 to 4,405) | 2,094 | 0 | 0 | +189 (-60 to +437) |
| GPQA | 1.0 | 594 | 3,791 (3,435 to 4,179) | 2,106 | 0 | 0 | reference |
| LCB | 0 | 100 | 45,533 (39,162 to 52,053) | 39,750 | 14 (14.0%) | 9 (9.0%) | +7,067 (+2,468 to +11,927) |
| LCB | 0.25 | 300 | 42,218 (38,742 to 45,792) | 38,194 | 30 (10.0%) | 17 (5.7%) | +5,028 (+2,502 to +7,608) |
| LCB | 0.5 | 292 | 39,866 (36,331 to 43,399) | 31,472 | 24 (8.2%) | 4 (1.4%) | +3,228 (+969 to +5,471) |
| LCB | 0.75 | 300 | 38,854 (35,663 to 42,060) | 32,082 | 17 (5.7%) | 2 (0.7%) | +1,663 (-541 to +3,887) |
| LCB | 0.9 | 300 | 38,591 (35,433 to 41,863) | 30,030 | 18 (6.0%) | 0 | +1,400 (-689 to +3,477) |
| LCB | 1.0 | 300 | 37,191 (34,111 to 40,377) | 29,902 | 15 (5.0%) | 1 (0.3%) | reference |
- On GPQA no request reached the cap at any temperature, and token use did not differ detectably from 1.0.
- On LCB, token use rises as temperature falls: significantly more tokens than 1.0 at 0, 0.25 and 0.5. Loops (repeated text until the cap) are common at temperature 0 (9 of 100) and 0.25 (17 of 300) and nearly absent from 0.75 upward.
- Every LCB request that hit the cap failed grading. The other caps are long, non-repeating reasoning on the same few hard tasks (for example
abc398_ghit the cap at every temperature).
LCB pass rate by contest month (all graded runs, seeds 0-2; passed/graded)
| month | tasks | t0 | t0.25 | t0.5 | t0.75 | t0.9 | t1.0 |
|---|---|---|---|---|---|---|---|
| 2024-12 | 18 | 16/18 | 50/54 | 50/54 | 51/54 | 47/54 | 50/54 |
| 2025-01 | 21 | 14/21 | 46/63 | 49/61 | 47/63 | 51/63 | 48/63 |
| 2025-02 | 24 | 17/24 | 50/72 | 51/69 | 55/72 | 53/72 | 64/72 |
| 2025-03 | 30 | 19/30 | 71/90 | 66/87 | 69/90 | 73/90 | 70/90 |
| 2025-04 | 7 | 4/7 | 11/21 | 14/21 | 17/21 | 15/21 | 16/21 |
Each cell has 7 to 90 runs, too few for conclusions about individual months.
Figures

Panel A: accuracy per temperature with 95% bootstrap intervals. Panel B: paired difference versus temperature 1.0 with 95% paired-bootstrap intervals (an interval that crosses the zero line is not significant).

Panel C: mean generated tokens. Panel D: share of requests hitting the 100,000-token cap, split into repetition loops and long non-repeating reasoning.
SVG versions are in figures/.
Statistical power in one place
- Per-comparison sample sizes: GPQA Diamond 594 pairs (198 for temperature 0); GPQA hard-100 300 pairs (100 for temperature 0); LCB 292 to 300 pairs (100 for temperature 0). LCB has 100 distinct tasks, so its effective sample is smaller than the pair count.
- Minimum detectable difference at 80% power: about 3.3 to 3.6 pp on GPQA Diamond, 6 to 7 pp on the GPQA hard-100 slice and on LCB, and 5.7 to 11.5 pp for the single-seed temperature 0 comparisons.
- Every "no detectable difference" above is bounded by those numbers; effects smaller than the MDD are neither confirmed nor ruled out. More seeds or more questions would be needed to resolve gaps of 1 to 3 points.
Files
| file | contents |
|---|---|
per_question_results.csv |
one row per graded request (4,361 rows); columns below |
analysis.json |
every number in this report in machine-readable form: completeness, per-cell and pooled accuracy, paired differences with CIs and MDD, question-level robustness check, all-seed LCB comparison, tokens/cap/loops, LCB by month |
tables.md |
the full set of tables behind this report (includes the per-cell accuracy table and every capped LCB request) |
figures/fig_accuracy.png, .svg |
figure panels A and B |
figures/fig_tokens.png, .svg |
figure panels C and D |
gpqa_hard100_idx.json |
the 100 GPQA Diamond question indices in the hard-100 slice |
lcb_hard100_ids.json |
the 100 LiveCodeBench v6 task IDs (with contest date, platform, difficulty) and how they were chosen |
Columns of per_question_results.csv
| column | meaning |
|---|---|
benchmark |
gpqa_diamond or lcb_v6_hard100 |
temperature |
sampling temperature (0, 0.25, 0.5, 0.75, 0.9 or 1.0) |
seed |
run seed (0 to 4) |
item_id |
GPQA: 0-based row position (0-197) in the GPQA Diamond CSV as distributed by its authors. LCB: the LiveCodeBench question_id |
in_gpqa_hard100 |
GPQA only: 1 if the question is in the hard-100 slice, else 0 (blank for LCB) |
lcb_contest_month |
LCB only: contest month, YYYY-MM (blank for GPQA) |
correct |
1 if the answer was right (GPQA) or the program passed every test (LCB), else 0 |
completion_tokens |
tokens generated for the request (thinking plus answer) |
finish_reason |
stop (model finished) or length (hit the 100,000-token cap) |
hit_100k_cap |
1 if the request hit the cap |
loop |
1 if it hit the cap and ended in heavy repetition (definition above) |
no_answer_or_code |
1 if no answer letter (GPQA) or no code block (LCB) could be extracted |
cell_complete |
1 if every item of this temperature x seed cell for the benchmark was graded |
What is not included
- No GPQA question text, choices or answers (the GPQA authors ask that examples not be posted online), and no model reasoning or output for any benchmark. GPQA rows are identified by index only.
- No LiveCodeBench problem statements, test cases or model-written code. The task IDs are public identifiers from LiveCodeBench release v6.
- The benchmark harness and analysis scripts are not published; the method is described in words above.
License and citation
The per-question results and figures are released under CC BY 4.0. GPQA and LiveCodeBench belong to their respective authors; this dataset reuses only identifiers and our own grading results.
If you use this data, please cite it as: jakeatx, "Swift 1.5 temperature sweep on GPQA Diamond and LiveCodeBench v6 hard-100", Hugging Face, 2026.