按需思考:基于大语言模型排序的模型感知推理路由
Think When Needed: Model-Aware Reasoning Routing for LLM-based Ranking
AI总结:
研究基于大语言模型排序时推理时机与效果问题,提出推理路由框架,利用生成前信号决定推理与否,能自适应选策略,经实验验证该框架可提高排序效用并减少令牌消耗,解决准确性与效率权衡问题。
摘要:
大语言模型(LLMs)越来越多地应用于检索和推荐中的排序任务。虽然推理提示可以提高排序效用,但初步探索发现其效果不一致且计算成本高昂,表明何时推理与如何推理同样关键。为解决此问题,我们提出了一种推理路由框架,使用轻量级即插即用路由器头在生成前为每个实例决定是使用直接推理(非思考)还是推理(思考)。路由器头仅依赖生成前信号,包括紧凑的排序感知特征和从反映模型推理需求的诊断清单得出的模型感知难度信号。通过在生成前利用这些特征,路由器输出可控令牌以决定是否应用思考模式。此外,路由器可在部署期间沿验证帕累托前沿自适应选择操作策略,在不同系统约束下动态分配计算资源给最可能从思考中受益的实例。在三个不同规模开源LLMs的公共排序数据集上的实验表明,排序效用持续提高且令牌消耗减少,证明推理路由是解决准确性-效率权衡的实用方案。
英文摘要:
Large language models (LLMs) are increasingly applied to ranking tasks in retrieval and recommendation. Although reasoning prompting can enhance ranking utility, our preliminary exploration reveals that its benefits are inconsistent and come at a substantial computational cost, suggesting that when to reason is as crucial as how to reason. To address this issue, we propose a reasoning routing framework that employs a lightweight, plug-and-play router head to decide whether to use direct inference (Non-Think) or reasoning (Think) for each instance before generation. The router head relies solely on pre-generation signals: i) compact ranking-aware features (e.g., candidate dispersion) and ii) model-aware difficulty signals derived from a diagnostic checklist reflecting the model's estimated need for reasoning. By leveraging these features before generation, the router outputs a controllable token that determines whether to apply the Think mode. Furthermore, the router can adaptively select its operating policy along the validation Pareto frontier during deployment, enabling dynamic allocation of computational resources toward instances most likely to benefit from Think under varying system constraints. Experiments on three public ranking datasets with different scales of open-source LLMs show consistent improvements in ranking utility with reduced token consumption (e.g., +6.3\% NDCG@10 with -49.5\% tokens on MovieLens with Qwen3-4B), demonstrating reasoning routing as a practical solution to the accuracy-efficiency trade-off.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。