atlas

Research map / Large language models / Instruction and fine-tuning

Corrector Sampling in Language Models

NeurIPS 2025 · Large language models › Instruction and fine-tuning · approach: Efficient LLM fine-tuning systems · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Resample-Previous-Tokens (RPT), a sampling method that iteratively revisits and resamples a window of previously generated tokens using a previous-token-prediction conditional learned via lightweight fine-tuning of an 8B autoregressive model.

Problem

Autoregressive language models cannot revise tokens once sampled, so errors accumulate during left-to-right next-token-prediction (NTP) sampling.

Approach

Train the model with permuted inputs so it also learns previous-token-prediction conditionals p(x_i | x_<i, x_{i+1}), then at inference iteratively resample a window of previously generated tokens conditioned on future tokens; theory bounds the sampling error via a Markov chain perturbation argument.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply RPT sampling with k=1 after 100B-token fine-tuning8B autoregressive model · HumanEval+score: 25.6 -> 27.4Helped
Apply RPT sampling with k=1 after 100B-token fine-tuning8B autoregressive model · MBPPscore: 39.0 -> 40.6Helped
Apply RPT sampling with k=1 after 100B-token fine-tuning8B autoregressive model · GSM8Kscore: 35.2 -> 37.5Helped
Apply RPT sampling with k=1 after 100B-token fine-tuning8B autoregressive model · MultiPL-E C++score: 28.5 -> 31.0Helped
Apply RPT sampling with k=1 after 100B-token fine-tuning8B autoregressive model · MultiPL-E C#score: 17.7 -> 22.2Helped
Apply RPT sampling with k=1 after 100B-token fine-tuning8B autoregressive model · MultiPL-E PHPscore: 28.5 -> 25.5Hurt
Apply RPT sampling with k=1 after 100B-token fine-tuning8B autoregressive model · MultiPL-E Bashscore: 6.9 -> 9.5Helped
Apply RPT sampling with k=1 after 100B-token fine-tuning8B autoregressive model · MultiPL-E Javascore: 37.9 -> 41.1Helped
Apply RPT sampling with k=1 after 100B-token fine-tuning8B autoregressive model · MultiPL-E TypeScriptscore: 35.8 -> 38.4Helped
Perform one RPT iteration instead of k=0 NTPRPT-trained 8B model · DCLM validationtotal variation distance: .34 -> .30Helped
Perform one RPT iteration instead of k=0 NTPRPT-trained 8B model · GitHub validationtotal variation distance: .18 -> .15Helped
Perform one RPT iteration instead of k=0 NTPRPT-trained 8B model · Wiki validationtotal variation distance: .26 -> .23Helped

Surprising findings

Limitations

Experimental setup

Datasets: proprietary 1T-token language corpus DCLM GitHub Wikipedia arXiv Stack Exchange

Benchmarks: HumanEval+ MBPP GSM8K MultiPL-E

Metrics: pass@1 total variation distance

Baselines: NTP sampling AR-F AR-C Beam Search

Builds on: relative positional encoding

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy