arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.06690cs.CL
收藏

在生成过程中思考:面向个性化长文本生成的即兴推理

Think-While-Generating: On-the-Fly Reasoning for Personalized Long-Form Generation

University of Science and Technology of China(科学技术大学);National University of Singapore(国立新加坡大学);The Chinese University of Hong Kong(香港中文大学);National Engineering Laboratory for BITA, University of Science and Technology of China(BITA国家工程实验室,科学技术大学)

Chengbing Wang, Yang Zhang, Wenjie Wang, Xiaoyan Zhao, Fuli Feng, Xiangnan He, Tat-Seng Chua

AI总结:

FlyThinker通过在生成过程中进行动态推理,提升个性化长文本生成的效率和效果。

摘要:

偏好对齐已经使大型语言模型(LLMs)能够更好地反映人类期望,但当前方法大多优化于群体层面的偏好,忽略了个体用户。个性化至关重要,但早期方法如提示定制或微调在处理隐含偏好时存在困难,限制了实际效果。最近的"思考后再生成"方法通过在响应生成前进行推理来解决这一问题。然而,它们在长文本生成中面临挑战:其静态的一次性推理必须捕捉所有相关信息以生成完整响应,使学习困难且限制了对不断变化内容的适应性。为了解决这个问题,我们提出了FlyThinker,一个高效的"在生成过程中思考"框架,用于个性化长文本生成。FlyThinker采用一个独立的推理模型,该模型并行生成潜在的token级推理,这些推理被融合到生成模型中以动态引导响应生成。这种设计使推理和生成能够同时运行,确保推理效率。此外,推理模型仅依赖于先前的响应而非其自身的先前输出,这保留了不同位置之间的训练并行性——允许所有训练数据中的推理token在单次前向传递中生成,如同标准LLM训练一样,确保训练效率。在现实世界基准上的广泛实验表明,FlyThinker在保持训练和推理效率的同时实现了更好的个性化生成。我们的代码可在https://github.com/wcb0219-sketch/FlyThinker.git上获得。

英文摘要:

Preference alignment has enabled large language models (LLMs) to better reflect human expectations, but current methods mostly optimize for population-level preferences, overlooking individual users. Personalization is essential, yet early approaches-such as prompt customization or fine-tuning-struggle to reason over implicit preferences, limiting real-world effectiveness. Recent "think-then-generate" methods address this by reasoning before response generation. However, they face challenges in long-form generation: their static one-shot reasoning must capture all relevant information for the full response generation, making learning difficult and limiting adaptability to evolving content. To address this issue, we propose FlyThinker, an efficient "think-while-generating" framework for personalized long-form generation. FlyThinker employs a separate reasoning model that generates latent token-level reasoning in parallel, which is fused into the generation model to dynamically guide response generation. This design enables reasoning and generation to run concurrently, ensuring inference efficiency. In addition, the reasoning model is designed to depend only on previous responses rather than its own prior outputs, which preserves training parallelism across different positions-allowing all reasoning tokens for training data to be produced in a single forward pass like standard LLM training, ensuring training efficiency. Extensive experiments on real-world benchmarks demonstrate that FlyThinker achieves better personalized generation while keeping training and inference efficiency. Our code is available at https://github.com/wcb0219-sketch/FlyThinker.git.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑