Long-Context Generation Is a Sampling Problem (When You Turn Up the Heat)
A study of 29 open-weight models finds that token-sampling methods can strongly affect long-generation performance at high temperatures. The authors report that top-nsigma retained more benchmark accuracy than top-p and other samplers at temperature 2, while most samplers performed similarly at temperature 1.
AI-generated summary based on the headline and feed excerpt.
Researchers writing in arXiv cs.AI report tests of 29 open-weight language models, ranging from 1B to 122B parameters, across ten benchmarks and needle retrieval up to one million tokens. The evaluations covered coding agents, long-form reasoning and writing, structured output, and long-context reading.
The study finds that samplers that keep the candidate-token pool small as temperature rises preserve performance better than methods that admit more low-probability tokens. At temperature 2, top-nsigma coding agents on three Qwen3.5 models solved 46 to 62 of 100 GitHub issues, while agents using top-p, top-k, or Top-H solved none. Across benchmarks, top-nsigma retained a median of 100% of its temperature-1 score, compared with 26% for top-p. At temperature 1, most samplers performed about the same. The researchers say they are releasing the code and data publicly. Why it matters: sampling choices can shape the reliability of long generations without changing the underlying model.
Written by SINN with AI assistance from arXiv cs.AI's reporting.
Originally reported by arXiv cs.AI
Read the full story at arXiv cs.AI