从延迟到学习:在线上下文知识蒸馏用于LLM级联
From Deferral to Learning: Online In-Context Knowledge Distillation for LLM Cascades
AI总结:
Inter-Cascade通过在线上下文知识蒸馏提升LLM级联性能,实现弱模型在任务中学习,减少强模型调用并提高整体准确率。
摘要:
标准的LLM级联通过将困难查询从弱模型推迟到强模型来提高效率。然而,这些系统通常是静态的:当面对重复或语义相似的查询时,它们会重复咨询昂贵的模型,无法在推理过程中进行适应。为了解决这个问题,我们提出了Inter-Cascade,一个在线、交互式的框架,将强模型从临时助手转变为长期教师。在我们的方法中,当强模型解决一个被推迟的查询时,它会生成一个通用、可重用的问题解决策略。这些策略存储在一个动态仓库中,并通过相似性匹配检索,以增强弱模型的上下文,以供未来的查询使用。这使弱模型能够在工作中学习,而无需昂贵的参数微调。我们理论上证明,这种机制提高了弱模型的置信度校准。经验上,Inter-Cascade在多个基准测试中优于标准级联,使弱模型和整体系统准确率分别提高高达33.06个百分点和6.35个百分点,同时将强模型调用减少高达48.05个百分点,并节省费用高达49.63个百分点。Inter-Cascade展示了LLM之间的有效上下文知识转移,并提供了一个通用、可扩展的框架,适用于开源和API-based的LLM。
英文摘要:
Standard LLM cascades improve efficiency by deferring difficult queries from weak to strong models. However, these systems are typically static: when faced with repeated or semantically similar queries, they redundantly consult the expensive model, failing to adapt during inference. To address this, we propose Inter-Cascade, an online, interactive framework that transforms the strong model from a temporary helper into a long-term teacher. In our approach, when the strong model resolves a deferred query, it generates a generalized, reusable problem-solving strategy. These strategies are stored in a dynamic repository and retrieved via similarity matching to augment the weak model's context for future queries. This enables the weak model to learn on the job without expensive parameter fine-tuning. We theoretically show that this mechanism improves the weak model's confidence calibration. Empirically, Inter-Cascade outperforms standard cascades on multiple benchmarks, improving weak model and overall system accuracy by up to 33.06 percent and 6.35 percent, while reducing strong model calls by up to 48.05 percent and saving fee by up to 49.63 percent. Inter-Cascade demonstrates effective in-context knowledge transfer between LLMs and provides a general, scalable framework applicable to both open-source and API-based LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。