Self-Reflective Generation at Test Time

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Mu, Jian, Zhang, Qixin, Wang, Zhiyong, Yang, Menglin, Qiu, Shuang, Qin, Chengwei, Dai, Zhongxiang, Shu, Yao
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916065778335744
author Mu, Jian
Zhang, Qixin
Wang, Zhiyong
Yang, Menglin
Qiu, Shuang
Qin, Chengwei
Dai, Zhongxiang
Shu, Yao
author_facet Mu, Jian
Zhang, Qixin
Wang, Zhiyong
Yang, Menglin
Qiu, Shuang
Qin, Chengwei
Dai, Zhongxiang
Shu, Yao
contents Large language models (LLMs) increasingly solve complex reasoning tasks via long chain-of-thought, but their forward-only autoregressive generation process is fragile; early token errors can cascade, which creates a clear need for self-reflection mechanisms. However, existing self-reflection either performs revisions over full drafts or learns self-correction via expensive training, both fundamentally reactive and inefficient. To address this, we propose Self-Reflective Generation at Test Time (SRGen), a lightweight test-time framework that reflects before generating at uncertain points. During token generation, SRGen utilizes dynamic entropy thresholding to identify high-uncertainty tokens. For each identified token, it trains a specific corrective vector, which fully exploits the already generated context for a self-reflective generation to correct the token probability distribution. By retrospectively analyzing the partial output, this self-reflection enables more trustworthy decisions, thereby significantly reducing the probability of errors at highly uncertain points. Evaluated on challenging mathematical reasoning benchmarks and a diverse set of LLMs, SRGen can significantly strengthen model reasoning. Moreover, our findings position SRGen as a plug-and-play method that integrates reflection into the generation process for reliable LLM reasoning, achieving consistent gains with bounded overhead and can be combined with other training-time (e.g., RLHF) and test-time (e.g., SLOT) techniques.
format Preprint
id arxiv_https___arxiv_org_abs_2510_02919
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Self-Reflective Generation at Test Time
Mu, Jian
Zhang, Qixin
Wang, Zhiyong
Yang, Menglin
Qiu, Shuang
Qin, Chengwei
Dai, Zhongxiang
Shu, Yao
Computation and Language
Large language models (LLMs) increasingly solve complex reasoning tasks via long chain-of-thought, but their forward-only autoregressive generation process is fragile; early token errors can cascade, which creates a clear need for self-reflection mechanisms. However, existing self-reflection either performs revisions over full drafts or learns self-correction via expensive training, both fundamentally reactive and inefficient. To address this, we propose Self-Reflective Generation at Test Time (SRGen), a lightweight test-time framework that reflects before generating at uncertain points. During token generation, SRGen utilizes dynamic entropy thresholding to identify high-uncertainty tokens. For each identified token, it trains a specific corrective vector, which fully exploits the already generated context for a self-reflective generation to correct the token probability distribution. By retrospectively analyzing the partial output, this self-reflection enables more trustworthy decisions, thereby significantly reducing the probability of errors at highly uncertain points. Evaluated on challenging mathematical reasoning benchmarks and a diverse set of LLMs, SRGen can significantly strengthen model reasoning. Moreover, our findings position SRGen as a plug-and-play method that integrates reflection into the generation process for reliable LLM reasoning, achieving consistent gains with bounded overhead and can be combined with other training-time (e.g., RLHF) and test-time (e.g., SLOT) techniques.
title Self-Reflective Generation at Test Time
topic Computation and Language
url https://arxiv.org/abs/2510.02919