Reflection-Window Decoding: Text Generation with Selective Refinement
Not on the map. Why?
Abstract (arXiv)
The autoregressive decoding for text generation in large language models (LLMs), while widely used, is inherently suboptimal due to the lack of a built-in mechanism to perform refinement and/or correction of the generated content. In this paper, we consider optimality in terms of the joint probability over the generated response, when jointly considering all tokens at the same time. We theoretically characterize the potential deviation of the autoregressively generated response from its globally optimal counterpart that is of the same length. Our analysis suggests that we need to be cautious when noticeable uncertainty arises during text generation, which may signal the sub-optimality of the generation history. To address the pitfall of autoregressive decoding for text generation, we propose an approach that incorporates a sliding reflection window and a pausing criterion, such that refinement and generation can be carried out interchangeably as the decoding proceeds. Our selective refinement framework strikes a balance between efficiency and optimality, and our extensive experimental results demonstrate the effectiveness of our approach.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 40 of its 52 references that are in the map. First posted on arXiv 5 Feb 2025.
Builds on
40 of 52 references.
References · 40
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2024GPT-4o System Cardcited by 4,467
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
28 more
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2024Qwen2 Technical Reportcited by 2,076
- 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
- 2021Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecastingcited by 1,654
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,615
- 2018Hierarchical Neural Story Generationcited by 1,182
- 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 975
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2024Phi-4 Technical Reportcited by 675
- 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 598
- 2023Language Models can Solve Computer Taskscited by 371
- 2024Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decodingcited by 266
- 2023Automatically Correcting Large Language Models: Surveying the landscape of diverse self-correction strategiescited by 236
- 2023Self-Evaluation Guided Beam Search for Reasoningcited by 195
- 2023The Capacity for Moral Self-Correction in Large Language Modelscited by 171
- 2022Speculative Decoding: Exploiting Speculative Execution for Accelerating Seq2seq Generationcited by 169
- 2023Speculative Decoding with Big Little Decodercited by 163
- 2023SpecTr: Fast Speculative Decoding via Optimal Transportcited by 129
- 2018Learning to Write with Cooperative Discriminatorscited by 119
- 2024Is Temperature the Creativity Parameter of Large Language Models?cited by 92
- 2023LLMs cannot find reasoning errors, but can correct them given the error locationcited by 85
- 2020Limitations of Autoregressive Models and Their Alternativescited by 54
- 2024Deductive Beam Search: Decoding Deducible Rationale for Chain-of-Thought Reasoningcited by 24
- 2023Long Horizon Temperature Scalingcited by 18
- 2022ELMER: A Non-Autoregressive Pre-trained Language Model for Efficient and Effective Text Generationcited by 10
- 2024Language-Informed Beam Search Decoding for Multilingual Machine Translationcited by 2
- 2024Confidence-Aware Sub-Structure Beam Search (CABS): Mitigating Hallucination in Structured Data Generation with Large Language Modelscited by 1
Built on by
Citing papers per year: 2025: 4; 2026: 3.
7 papers.
- 2025From System 1 to System 2: A Survey of Reasoning Large Language Modelscited by 319
- 2026Seeing Farther and Smarter: Value-Guided Multi-Path Reflection for VLM Policy Optimizationcited by 4
- 2025Entropy-Guided Loop: Achieving Reasoning through Uncertainty-Aware Generationcited by 2
- 2025AnesSuite: A Comprehensive Benchmark and Dataset Suite for Anesthesiology Reasoning in LLMscited by 1
- 2025PersonaX: Multimodal Datasets with LLM-Inferred Behavior Traitscited by 0
- 2026Token-Guard: Towards Token-Level Hallucination Control via Self-Checking Decodingcited by 0
- 2026Causal Modeling of Selection in Evolutioncited by 0
- 2026Causal Modeling of Selection in Evolution4 Jun 2026
- 2026Seeing Farther and Smarter: Value-Guided Multi-Path Reflection for VLM Policy Optimization22 Feb 2026
- 2026Token-Guard: Towards Token-Level Hallucination Control via Self-Checking Decoding29 Jan 2026
- 2025PersonaX: Multimodal Datasets with LLM-Inferred Behavior Traits14 Sep 2025
- 2025Entropy-Guided Loop: Achieving Reasoning through Uncertainty-Aware Generation26 Aug 2025
- 2025AnesSuite: A Comprehensive Benchmark and Dataset Suite for Anesthesiology Reasoning in LLMs3 Apr 2025
- 2025From System 1 to System 2: A Survey of Reasoning Large Language Models24 Feb 2025