top-nsigma
A decoding sampling strategy for language models that determines the candidate pool size by a multiple of the standard deviation of candidate token probabilities relative to the mean, keeping the candidate pool stable at high temperatures and preventing quality collapse in long-form text generation.
Timeline (last 90 days)
At a temperature of 2, coding agents using top-p, top-k, or Top-H solved 0 of 100 GitHub issues, while top-nsigma solved 46 to 62.
Across all benchmarks, top-nsigma at temperature 2 maintained a median of 100% of its temperature-1 score, while top-p maintained only 26%.
At a temperature of 2, on issues where top-nsigma disagreed with top-p/top-k/Top-H, top-nsigma won all of them (based on three Qwen3.5 models).
In a Llama-3.1-8B case, when temperature rises from 1 to 2, the top-p candidate pool expands from 4 tokens to 51,845, while top-nsigma stays constant at 3.
All Facts (4)
At a temperature of 2, coding agents using top-p, top-k, or Top-H solved 0 of 100 GitHub issues, while top-nsigma solved 46 to 62.
50%UnverifiedAcross all benchmarks, top-nsigma at temperature 2 maintained a median of 100% of its temperature-1 score, while top-p maintained only 26%.
50%UnverifiedAt a temperature of 2, on issues where top-nsigma disagreed with top-p/top-k/Top-H, top-nsigma won all of them (based on three Qwen3.5 models).
50%UnverifiedIn a Llama-3.1-8B case, when temperature rises from 1 to 2, the top-p candidate pool expands from 4 tokens to 51,845, while top-nsigma stays constant at 3.
50%