AdaFuse: 用于大语言模型的自适应集成解码与测试时缩放
AdaFuse: Adaptive Ensemble Decoding with Test-Time Scaling for LLMs
AI总结:
AdaFuse通过自适应集成解码与测试时缩放,提升大语言模型在多种任务上的生成性能。
摘要:
大型语言模型(LLMs)由于预训练数据、模型架构和解码行为的差异而表现出互补的优势。推理时的集成提供了一种结合这些能力的实用方法,而无需重新训练。然而,现有的集成方法存在根本性的限制。大多数方法依赖于固定的融合粒度,这缺乏在中间生成过程中进行适应所需的灵活性,并且无法适应不同任务的生成特性。为了解决这些挑战,我们提出了AdaFuse,一种自适应集成解码框架,能够在生成过程中动态选择语义合适的融合单元。与固定粒度不同,AdaFuse根据解码上下文实时调整融合行为,以词作为对齐的基本构建块。具体来说,我们引入了一个基于不确定性的标准,以决定在每个解码步骤是否应用集成。在自信的解码状态下,模型继续生成。在不自信的状态下,AdaFuse调用一种多样性感知的缩放策略来探索替代的候选延续,并指导集成决策。这种设计建立了自适应集成与测试时缩放之间的协同作用,其中集成决策指导定向探索,而由此产生的多样性反过来增强了集成质量。在开放领域问答、算术推理和机器翻译上的实验表明,AdaFuse在强集成基线上始终表现出色,平均相对改进为6.88%。代码可在https://github.com/CCM0111/AdaFuse上获取。
英文摘要:
Large language models (LLMs) exhibit complementary strengths arising from differences in pretraining data, model architectures, and decoding behaviors. Inference-time ensembling provides a practical way to combine these capabilities without retraining. However, existing ensemble approaches suffer from fundamental limitations. Most rely on fixed fusion granularity, which lacks the flexibility required for mid-generation adaptation and fails to adapt to different generation characteristics across tasks. To address these challenges, we propose AdaFuse, an adaptive ensemble decoding framework that dynamically selects semantically appropriate fusion units during generation. Rather than committing to a fixed granularity, AdaFuse adjusts fusion behavior on the fly based on the decoding context, with words serving as basic building blocks for alignment. To be specific, we introduce an uncertainty-based criterion to decide whether to apply ensembling at each decoding step. Under confident decoding states, the model continues generation directly. In less certain states, AdaFuse invokes a diversity-aware scaling strategy to explore alternative candidate continuations and inform ensemble decisions. This design establishes a synergistic interaction between adaptive ensembling and test-time scaling, where ensemble decisions guide targeted exploration, and the resulting diversity in turn strengthens ensemble quality. Experiments on open-domain question answering, arithmetic reasoning, and machine translation demonstrate that AdaFuse consistently outperforms strong ensemble baselines, achieving an average relative improvement of 6.88%. The code is available at https://github.com/CCM0111/AdaFuse.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。