FLEET:从对数几率熵到文本生成中的增强轨迹
研究论文 · 2026/09/24
基于大语言模型(LLM)的解决方案通常依赖温度采样,通过从补全分布中聚合多个样本以提高准确性和稳定性。然而,这种无记忆方法本质上是次优的:由于缺乏对先前生成及其评估的感知,随着采样数量增加,会产生越来越多语义重复的答案,导致收益递减。为解决这一局限,我们提出FLEET,一种将记忆机制集成到生成过程中的新方法。FLEET将每次生成表示为通过熵超过预定义阈值的状态的稀疏轨迹,并利用这些轨迹推断每个token的效用分数以调整logits。基准评估表明,FLEET在达到与重复采样基线相同准确率的同时实现了3倍加速,并在相同预算下显著提升了复杂编码任务的准确率(LiveCodeBench Pass@32从59.9%提升至66.2%)。此外,在此处评估的贪婪解码配置中,该方法具有确定性,仅需一次校准过程即可推导其主要超参数,且对现有LLM流程只需最小修改。
FLEET通过引入记忆机制,在保持准确率的同时显著提升采样效率,并在复杂编码任务上实现大幅性能提升,且易于集成到现有LLM流程中,对提升LLM推理的效率和效果具有重要价值。
Solutions based on large language models (LLMs) often rely on temperature sampling to improve accuracy and stability by aggregating multiple samples from the completion distribution. However, this memoryless approach is inherently suboptimal: because it lacks awareness of prior generations and their evaluations, it produces an increasing proportion of semantically duplicate answers as more samples are drawn, leading to diminishing returns. To address this limitation, we introduce FLEET, a novel method that integrates a memory mechanism into the generation process. FLEET represents each generation as a sparse trajectory through states whose entropy exceeds a predefined threshold and uses these trajectories to infer per-token utility scores that adjust the logits. Benchmark evaluations demonstrate that FLEET achieves the same accuracy as the repeated sampling baseline, with a 3x speedup, and substantially improves accuracy on complex coding tasks (LiveCodeBench Pass@32 increases from 59.9% to 66.2%) under the same budget. Furthermore, in the greedy-decoding configuration evaluated here, the approach is deterministic and uses a single calibration pass to derive its principal hyperparameters, requiring only minimal modifications to existing LLM pipelines.