最优算法仍然最优吗?重新思考基于LLM的成对排序中的批处理与缓存
Are Optimal Algorithms Still Optimal? Rethinking Sorting in LLM-Based Pairwise Ranking with Batching and Caching
AI总结:
本文提出分析PRP中排序算法的新框架,将成本中心从传统比较转向LLM推理,证明在批处理和缓存优化下经典最优算法可能丧失效率。
摘要:
我们引入了一个用于分析成对排序提示(PRP)中排序算法的新框架,将成本模型重新围绕LLM推理而非传统成对比较构建。虽然基于比较次数的经典指标常被用于衡量效率,但我们的分析表明,昂贵的LLM推理推翻了这些预测;因此,我们的框架鼓励采用批处理和缓存等策略来降低推理成本。我们证明,在特定优化下,当LLM推理主导成本时,经典最优算法会丧失效率。
英文摘要:
We introduce a novel framework for analyzing sorting algorithms in pairwise ranking prompting (PRP), re-centering the cost model around LLM inferences rather than traditional pairwise comparisons. While classical metrics based on comparison counts have traditionally been used to gauge efficiency, our analysis reveals that expensive LLM inferences overturn these predictions; accordingly, our framework encourages strategies such as batching and caching to mitigate inference costs. We show that algorithms optimal in the classical setting can lose efficiency when LLM inferences dominate the cost under certain optimizations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。