Corrector Sampling in Language Models

Itai Gat, Neta Shaul, Uriel Singer, Yaron Lipman
6/6/2025
cs.LGcs.CL

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

Autoregressive language models accumulate errors due to their fixed, irrevocable left-to-right token generation. To address this, we propose a new sampling method called Resample-Previous-Tokens (RPT).

Show full abstract

RPT mitigates error accumulation by iteratively revisiting and potentially replacing tokens in a window of previously generated text. This method can be integrated into existing autoregressive models, preserving their next-token-prediction quality and speed. Fine-tuning a pretrained 8B parameter model with RPT for only 100B resulted in ~10% relative improvements on reasoning and coding benchmarks compared to the standard sampling.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{gat2025corrector,
  title  = {Corrector Sampling in Language Models},
  author = {Itai Gat and Neta Shaul and Uriel Singer and Yaron Lipman},
  year   = {2025},
  eprint = {2506.06215},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.06215v1},
  journal = {NEURIPS 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.06215.svg)](https://codeofpaper.com/paper/2506.06215)

Discussion