Reproduce “Two-Level Softmax Sampling Done Right: Correcting Bias from Size Imbalance and Dispersion” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Walid Bendada, Guillaume Salha-Galvan

The authors correct two-level softmax sampling by adjusting cluster-selection weights for cluster size and, in a stronger variant, within-cluster similarity dispersion. On VK-LSVD at temperature 0.1, mean KL divergence to exact softmax across 1,000 queries falls from 0.0297 with standard two-level softmax to 0.0051 with size correction and 0.0002 with dispersion correction. These are fidelity results, not recommendation outcomes.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.