arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.22160cs.CLcs.AI
收藏

EMO:一种通过交替上下文优化和logits引导的闭环测试时计算框架

EMO: A Closed-Loop Test-Time Computation Framework via Alternating Context Optimization and Logits Steering

State Key Laboratory of General Artificial Intelligence, School of Intelligence Science and Technology, Peking University(北京大学智能科学技术学院通用人工智能国家重点实验室);Samsung Research, Beijing, China(三星研究(北京))

Wei Xia, Yehui Tang, Zhi-Hong Deng

AI总结:

EMO是一种无训练的闭环测试时计算框架,通过交替上下文优化与logits引导,在多模型多基准上显著提升语言模型零样本性能,为测试时计算分配提供新方向。

摘要:

测试时上下文优化通过文本反馈适配冻结的语言模型,但普通条件生成无法单独控制上下文更新诱导的分布变化的强化程度。我们提出EMO,这是一种基于期望最大化的无训练框架,它交替执行特定问题的上下文估计(E步)和分布优化(M步)。E步利用外部评判器的文本梯度修改系统上下文,无需访问标准答案。M步在共享前缀下对比修改后上下文与前序上下文的下一个token分布,以构建置信度约束的logit修正。对引导后响应的反馈驱动下一次上下文更新,将多轮适配与每代内的干预耦合起来。理论上,我们通过共享的目标-KL目标和加性logit表示连接参数优化与上下文优化,并从上下文诱导的logit位移中推导引导向量。在上下文改进和忠实引导的假设下,我们证明当引导强度足够小时,目标-KL散度会在单轮内下降。在8个模型和6个基准的贪心解码下,EMO在40个聚合设置中的39个上优于零样本基线,平均提升9.10个百分点;使用相同评判器时,它比仅上下文优化(TextGrad)平均多提升1.53个百分点,且在各模型上均实现MMLU-Pro增益。在匹配目标模型生成预算下,其在Llama上相对于best-of-N的准确率优势最强,尽管候选更少,但在多数对比中具有更高的oracle覆盖率。覆盖率-选择差距促使将测试时计算同时分配给候选生成和验证。

英文摘要:

Test-time context optimization adapts frozen language models through textual feedback, but ordinary conditional generation provides no separate control over how strongly to reinforce the distributional changes induced by a context update. We introduce EMO, a training-free framework inspired by expectation--maximization that alternates question-specific context estimation (E-step) and distribution refinement (M-step). The E-step revises a system context using textual gradients from an external judge without access to gold answers. The M-step contrasts next-token distributions under the revised and preceding contexts at a shared prefix to construct a confidence-constrained logit correction. Feedback on the steered response drives the next context update, coupling adaptation across rounds with intervention within each generation. Theoretically, we connect parameter and context optimization through a shared target-KL objective and additive logit representations, and derive the steering vector from context-induced logit displacements. Under context-improvement and faithful-steering assumptions, we prove a one-round decrease in target KL divergence for sufficiently small steering strength. Under greedy decoding across eight models and six benchmarks, EMO improves the zero-shot baseline in 39 of 40 aggregated settings, averaging $+9.10$ percentage points. With the same judge, it adds $+1.53$ points on average over context-only optimization (TextGrad), with consistent MMLU-Pro gains across models. At matched target-model generation budgets, accuracy advantages over best-of-$N$ are strongest on Llama, while oracle coverage is higher in most comparisons despite fewer candidates. The coverage--selection gap motivates allocating test-time computation jointly to candidate generation and verification.

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

↑